[DiscordArchive] from what i understood so far, it should be `__stdcall` in 335a
[DiscordArchive] from what i understood so far, it should be `__stdcall` in 335a
Archived author: 4bhorrent • Posted: 2023-06-16T21:51:34.757000+00:00
Original source
from what i understood so far, it should be `__stdcall` in 335a
this is because it can't be `__fastcall`, because no registers are used to pass arguments... only the stack (see following screenshot #1)
and it shouldn't be `__cdecl`, because it's not the function who calls `CVar__Register`, which restores the stack at the end, but it is `CVar__Register` itself (see following screenshot #2)
did i deduce this correctly?
![[Image: image.png?ex=690c702b&is=690b1eab&hm=d3b...d5ddab603&]](https://cdn.discordapp.com/attachments/1086807686571642900/1119384353642917939/image.png?ex=690c702b&is=690b1eab&hm=d3b41de7fa106d2e2e01d054ecdff8f674acc3f7af05e716c3257eed5ddab603&)
Archived author: 4bhorrent • Posted: 2023-06-16T21:53:47.130000+00:00
Original source
screenshot #1
values are only pushed, not passed by register
![[Image: image.png?ex=690c702b&is=690b1eab&hm=d3b...d5ddab603&]](https://cdn.discordapp.com/attachments/1086807686571642900/1119384353642917939/image.png?ex=690c702b&is=690b1eab&hm=d3b41de7fa106d2e2e01d054ecdff8f674acc3f7af05e716c3257eed5ddab603&)
![[Image: image.png?ex=690c705d&is=690b1edd&hm=118...68bdee718&]](https://cdn.discordapp.com/attachments/1086807686571642900/1119384565484625930/image.png?ex=690c705d&is=690b1edd&hm=118041f9955effd831be349e7468f02d8579a8f92dbb33d9fefdf3268bdee718&)
Archived author: 4bhorrent • Posted: 2023-06-16T21:54:37.578000+00:00
Original source
screenshot #2
`CVar__Register` itself does the stack cleanup just before returning
![[Image: image.png?ex=690c705d&is=690b1edd&hm=118...68bdee718&]](https://cdn.discordapp.com/attachments/1086807686571642900/1119384565484625930/image.png?ex=690c705d&is=690b1edd&hm=118041f9955effd831be349e7468f02d8579a8f92dbb33d9fefdf3268bdee718&)