; ; sub_18004CA10 from 0x18004ca10 to 0x18004cadf (207 bytes) ; ; 4 xrefs: ; > sub_180052E90 @ 0x18005302a ; > @ 0x180181738 ; > @ 0x180181748 ; > @ 0x1801f86dc ; ; 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:16 +0000 ; push rbx ; +0x0, 0x18004ca10 sub rsp, 50h ; +0x2, 0x18004ca12 mov rax, cs:__security_cookie ; +0x6, 0x18004ca16 xor rax, rsp ; +0xd, 0x18004ca1d mov [rsp+58h+var_10], rax ; +0x10, 0x18004ca20 mov rbx, rcx ; +0x15, 0x18004ca25 test rcx, rcx ; +0x18, 0x18004ca28 jz loc_18004CACA ; +0x1b, 0x18004ca2b mov r8d, [rcx+8] ; +0x21, 0x18004ca31 mov rdx, [rcx] ; +0x25, 0x18004ca35 lea rcx, [rsp+58h+var_38] ; +0x28, 0x18004ca38 call sub_180048340 ; +0x2d, 0x18004ca3d cmp dword ptr [rbx+0Ch], 0 ; +0x32, 0x18004ca42 jz loc_18004CACA ; +0x36, 0x18004ca46 mov edx, 8 ; +0x3c, 0x18004ca4c lea rcx, [rsp+58h+var_38] ; +0x41, 0x18004ca51 call sub_180048210 ; +0x46, 0x18004ca56 cmp eax, 1 ; +0x4b, 0x18004ca5b jnz short loc_18004CACA ; +0x4e, 0x18004ca5e xor eax, eax ; +0x50, 0x18004ca60 mov [rsp+58h+arg_8], rdi ; +0x52, 0x18004ca62 mov [rsp+58h+var_18], eax ; +0x57, 0x18004ca67 lea rbx, [rsp+58h+var_18] ; +0x5b, 0x18004ca6b mov [rsp+58h+var_14], ax ; +0x60, 0x18004ca70 lea edi, [rax+6] ; +0x65, 0x18004ca75 nop dword ptr [rax+rax+00000000h] ; +0x68, 0x18004ca78 mov edx, 8 ; +0x70, 0x18004ca80 lea rcx, [rsp+58h+var_38] ; +0x75, 0x18004ca85 call sub_180048210 ; +0x7a, 0x18004ca8a mov [rbx], al ; +0x7f, 0x18004ca8f lea rbx, [rbx+1] ; +0x81, 0x18004ca91 sub edi, 1 ; +0x85, 0x18004ca95 jnz short loc_18004CA80 ; +0x88, 0x18004ca98 cmp [rsp+58h+var_18], 62726F76h ; +0x8a, 0x18004ca9a mov rdi, [rsp+58h+arg_8] ; +0x92, 0x18004caa2 jnz short loc_18004CACA ; +0x97, 0x18004caa7 cmp [rsp+58h+var_14], 7369h ; +0x99, 0x18004caa9 jnz short loc_18004CACA ; +0xa0, 0x18004cab0 mov eax, 1 ; +0xa2, 0x18004cab2 mov rcx, [rsp+58h+var_10] ; +0xa7, 0x18004cab7 xor rcx, rsp; StackCookie ; +0xac, 0x18004cabc call __security_check_cookie ; +0xaf, 0x18004cabf add rsp, 50h ; +0xb4, 0x18004cac4 pop rbx ; +0xb8, 0x18004cac8 retn ; +0xb9, 0x18004cac9 xor eax, eax ; +0xba, 0x18004caca mov rcx, [rsp+58h+var_10] ; +0xbc, 0x18004cacc xor rcx, rsp; StackCookie ; +0xc1, 0x18004cad1 call __security_check_cookie ; +0xc4, 0x18004cad4 add rsp, 50h ; +0xc9, 0x18004cad9 pop rbx ; +0xcd, 0x18004cadd retn ; +0xce, 0x18004cade