; ; sub_180041CD0 from 0x180041cd0 to 0x180041d13 (67 bytes) ; ; 8 xrefs: ; > sub_180046C10 @ 0x180046e78 ; > sub_180046ED0 @ 0x180046ff4 ; > sub_180046ED0 @ 0x18004709f ; > sub_180047260 @ 0x1800472e6 ; > sub_1800474C0 @ 0x180047556 ; > sub_1800474C0 @ 0x18004760c ; > sub_1800474C0 @ 0x18004764e ; > @ 0x1801f7fec ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 10:53:11 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x180041cd0 push rdi ; +0x5, 0x180041cd5 sub rsp, 20h ; +0x6, 0x180041cd6 mov edi, r9d ; +0xa, 0x180041cda mov rbx, r8 ; +0xd, 0x180041cdd call sub_180041D20 ; +0x10, 0x180041ce0 test eax, eax ; +0x15, 0x180041ce5 jnz short loc_180041CF4 ; +0x17, 0x180041ce7 mov rbx, [rsp+28h+arg_0] ; +0x19, 0x180041ce9 add rsp, 20h ; +0x1e, 0x180041cee pop rdi ; +0x22, 0x180041cf2 retn ; +0x23, 0x180041cf3 mov eax, [rbx] ; +0x24, 0x180041cf4 mov ecx, 20h ; ' ' ; +0x26, 0x180041cf6 sub ecx, edi ; +0x2b, 0x180041cfb shl eax, cl ; +0x2d, 0x180041cfd sar eax, cl ; +0x2f, 0x180041cff mov [rbx], eax ; +0x31, 0x180041d01 mov eax, 1 ; +0x33, 0x180041d03 mov rbx, [rsp+28h+arg_0] ; +0x38, 0x180041d08 add rsp, 20h ; +0x3d, 0x180041d0d pop rdi ; +0x41, 0x180041d11 retn ; +0x42, 0x180041d12