Conversation

I'm surprised at how badly decompiles this very simple function.

It's a syscall 0x57 which is unlink (remove a file).

I'm surprised it decompiles saying it *returns 0x57* ...

1
0
0
@cryptax I guess that's the result of incorrectly identified calling convention? You can check/set with right click on func name -> Edit Function Signature
1
0
2

@buherator not sure. I tried to edit and set calling convention to "syscall", but that will only touch the function signature, not the decompiled lines within it, right?

1
0
0
@cryptax The calling convention defines how return value is set, so it may very well affect the decompilation afaik
0
0
0