[DiscordArchive] i don't yet fully understand how (if even possible) i can find out the ObjectName of those extra fun
[DiscordArchive] i don't yet fully understand how (if even possible) i can find out the ObjectName of those extra fun
Archived author: 4bhorrent • Posted: 2024-02-13T00:27:51.268000+00:00
Original source
i don't yet fully understand how (if even possible) i can find out the ObjectName of those extra functions.
i know that there is `FUN_004a79b0` which is called a lot and loops over arrays of FrameScript_Method (and that method itself calls `FrameScript_Object__FillScriptMethodTable` + some more nested calls).
is there a string with the object name i can get somehow, which is related to the vftable?
![[Image: image.png?ex=690c951c&is=690b439c&hm=a0d...d31b66784&]](https://cdn.discordapp.com/attachments/1086807686571642900/1206759497150758933/image.png?ex=690c951c&is=690b439c&hm=a0d12559be06dd07f94a0c2994f0537c964df8ea039fcdee1b2e757d31b66784&)
![[Image: image.png?ex=690c951c&is=690b439c&hm=06d...d5703d071&]](https://cdn.discordapp.com/attachments/1086807686571642900/1206759497461145660/image.png?ex=690c951c&is=690b439c&hm=06d9a81c6c7f0c99428a4ca6d783ccebae58e3ffbf3055625a46835d5703d071&)
Archived author: 4bhorrent • Posted: 2024-02-13T00:31:24.693000+00:00
Original source
also i have weirdly enough some discrepancy between the ghidra and ida repo.
(`sub_84E8D0` is the `lua_settable` call)
![[Image: image.png?ex=690c951c&is=690b439c&hm=a0d...d31b66784&]](https://cdn.discordapp.com/attachments/1086807686571642900/1206759497150758933/image.png?ex=690c951c&is=690b439c&hm=a0d12559be06dd07f94a0c2994f0537c964df8ea039fcdee1b2e757d31b66784&)
![[Image: image.png?ex=690c951c&is=690b439c&hm=06d...d5703d071&]](https://cdn.discordapp.com/attachments/1086807686571642900/1206759497461145660/image.png?ex=690c951c&is=690b439c&hm=06d9a81c6c7f0c99428a4ca6d783ccebae58e3ffbf3055625a46835d5703d071&)
Archived author: 4bhorrent • Posted: 2024-02-13T00:32:44.849000+00:00
Original source
according to the lua5.1 source this function should return void, but in IDA it returns something (prb a pointer, if this is valid)
![[Image: image.png?ex=690c9583&is=690b4403&hm=f54...3afcb7da6&]](https://cdn.discordapp.com/attachments/1086807686571642900/1206759927452798986/image.png?ex=690c9583&is=690b4403&hm=f54c4add6d06d335a94c69b6510dff0dd721a6ac4a7ad10bf29a4643afcb7da6&)
Archived author: 4bhorrent • Posted: 2024-02-13T00:33:07.265000+00:00
Original source
![[Image: image.png?ex=690c9583&is=690b4403&hm=f54...3afcb7da6&]](https://cdn.discordapp.com/attachments/1086807686571642900/1206759927452798986/image.png?ex=690c9583&is=690b4403&hm=f54c4add6d06d335a94c69b6510dff0dd721a6ac4a7ad10bf29a4643afcb7da6&)
Archived author: Nix • Posted: 2024-02-13T00:33:38.372000+00:00
Original source
Sometimes IDA sets return value to int for me when in reality there is no return at all
Archived author: Nix • Posted: 2024-02-13T00:33:55.362000+00:00
Original source
I just manually adjust it to void
Archived author: Nix • Posted: 2024-02-13T00:34:04.348000+00:00
Original source
You can typically check the assembly + the call sites for the function
Archived author: Nix • Posted: 2024-02-13T00:35:24.786000+00:00
Original source
I think it has a tendency to add return value when the eax register is in use, even if the call site doesn't use it
Archived author: Nix • Posted: 2024-02-13T00:35:53.317000+00:00
Original source
For example
Archived author: Nix • Posted: 2024-02-13T00:36:07.691000+00:00
Original source
If function A calls function b, and uses the result of B in it, then the eax register will be occupied