; ; sub_180054D60 from 0x180054d60 to 0x180054e5c (252 bytes) ; ; 5 xrefs: ; > @ 0x180167180 ; > @ 0x1801820d4 ; > @ 0x18018210c ; > @ 0x18018211c ; > @ 0x1801f8c58 ; ; 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:18 +0000 ; mov [rsp+arg_8], rdx ; +0x0, 0x180054d60 push rdi ; +0x5, 0x180054d65 sub rsp, 50h ; +0x6, 0x180054d66 mov rdi, rcx ; +0xa, 0x180054d6a call sub_18007CF40 ; +0xd, 0x180054d6d test eax, eax ; +0x12, 0x180054d72 jnz loc_180054E56 ; +0x14, 0x180054d74 mov [rsp+58h+arg_0], rbx ; +0x1a, 0x180054d7a mov rbx, [rdi+320h] ; +0x1f, 0x180054d7f mov [rsp+58h+var_10], rsi ; +0x26, 0x180054d86 mov esi, dword ptr [rsp+58h+arg_8+4] ; +0x2b, 0x180054d8b mov [rsp+58h+var_18], r14 ; +0x2f, 0x180054d8f xor r14d, r14d ; +0x34, 0x180054d94 mov [rsp+58h+arg_10], r14d ; +0x37, 0x180054d97 mov rax, [rbx+0F8h] ; +0x3c, 0x180054d9c test rax, rax ; +0x43, 0x180054da3 jz short loc_180054DE0 ; +0x46, 0x180054da6 mov [rsp+58h+var_28], r14 ; +0x48, 0x180054da8 lea r9, [rsp+58h+arg_10] ; +0x4d, 0x180054dad mov [rsp+58h+var_30], r14 ; +0x52, 0x180054db2 xor r8d, r8d ; +0x57, 0x180054db7 xor edx, edx ; +0x5a, 0x180054dba mov [rsp+58h+var_38], r14 ; +0x5c, 0x180054dbc mov rcx, rbx ; +0x61, 0x180054dc1 call rax ; +0x64, 0x180054dc4 mov ecx, [rsp+58h+arg_10] ; +0x66, 0x180054dc6 mov rbx, [rdi+320h] ; +0x6a, 0x180054dca test ecx, ecx ; +0x71, 0x180054dd1 jz short loc_180054DE0 ; +0x73, 0x180054dd3 mov eax, esi ; +0x75, 0x180054dd5 xor edx, edx ; +0x77, 0x180054dd7 div ecx ; +0x79, 0x180054dd9 mov esi, eax ; +0x7b, 0x180054ddb imul esi, ecx ; +0x7d, 0x180054ddd mov rcx, [rbx+140h]; void * ; +0x80, 0x180054de0 mov [rbx+158h], r14d ; +0x87, 0x180054de7 mov r14, [rsp+58h+var_18] ; +0x8e, 0x180054dee test rcx, rcx ; +0x93, 0x180054df3 jz short loc_180054E06 ; +0x96, 0x180054df6 mov r8d, [rbx+154h]; Size ; +0x98, 0x180054df8 xor edx, edx; Val ; +0x9f, 0x180054dff call memset ; +0xa1, 0x180054e01 mov rdx, [rbx+0B0h] ; +0xa6, 0x180054e06 test rdx, rdx ; +0xad, 0x180054e0d jz short loc_180054E17 ; +0xb0, 0x180054e10 mov rcx, rbx ; +0xb2, 0x180054e12 call rdx ; +0xb5, 0x180054e15 mov rcx, [rdi+320h] ; +0xb7, 0x180054e17 mov r9d, 2 ; +0xbe, 0x180054e1e mov r8d, esi ; +0xc4, 0x180054e24 xor edx, edx ; +0xc7, 0x180054e27 call sub_180012B90 ; +0xc9, 0x180054e29 mov ecx, [rsp+58h+arg_10] ; +0xce, 0x180054e2e mov rbx, [rsp+58h+arg_0] ; +0xd2, 0x180054e32 test ecx, ecx ; +0xd7, 0x180054e37 jz short loc_180054E49 ; +0xd9, 0x180054e39 mov eax, dword ptr [rsp+58h+arg_8+4] ; +0xdb, 0x180054e3b xor edx, edx ; +0xdf, 0x180054e3f div ecx ; +0xe1, 0x180054e41 add [rdi+274h], edx ; +0xe3, 0x180054e43 mov [rdi+2E0h], esi ; +0xe9, 0x180054e49 xor eax, eax ; +0xef, 0x180054e4f mov rsi, [rsp+58h+var_10] ; +0xf1, 0x180054e51 add rsp, 50h ; +0xf6, 0x180054e56 pop rdi ; +0xfa, 0x180054e5a retn ; +0xfb, 0x180054e5b