; ; sub_18004C7C0 from 0x18004c7c0 to 0x18004ca0b (587 bytes) ; ; 6 xrefs: ; > sub_180052E90 @ 0x180053056 ; > sub_180052E90 @ 0x180053111 ; > @ 0x180181778 ; > @ 0x180181788 ; > @ 0x1801f86ac ; > @ 0x1801f86b8 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; push rbx ; +0x0, 0x18004c7c0 push rbp ; +0x2, 0x18004c7c2 push rsi ; +0x3, 0x18004c7c3 push r12 ; +0x4, 0x18004c7c4 push r14 ; +0x6, 0x18004c7c6 push r15 ; +0x8, 0x18004c7c8 sub rsp, 58h ; +0xa, 0x18004c7ca mov rax, cs:__security_cookie ; +0xe, 0x18004c7ce xor rax, rsp ; +0x15, 0x18004c7d5 mov [rsp+88h+var_40], rax ; +0x18, 0x18004c7d8 mov r14, r9 ; +0x1d, 0x18004c7dd mov r12, r8 ; +0x20, 0x18004c7e0 mov rsi, rdx ; +0x23, 0x18004c7e3 mov r15, rcx ; +0x26, 0x18004c7e6 test r9, r9 ; +0x29, 0x18004c7e9 jz loc_18004C9E4 ; +0x2c, 0x18004c7ec mov r8d, [r9+8] ; +0x32, 0x18004c7f2 lea rcx, [rsp+88h+var_68] ; +0x36, 0x18004c7f6 mov rdx, [r9] ; +0x3b, 0x18004c7fb mov [rsp+88h+var_38], rdi ; +0x3e, 0x18004c7fe call sub_180048340 ; +0x43, 0x18004c803 mov edx, 8 ; +0x48, 0x18004c808 lea rcx, [rsp+88h+var_68] ; +0x4d, 0x18004c80d call sub_180048210 ; +0x52, 0x18004c812 mov ebp, eax ; +0x57, 0x18004c817 lea rbx, [rsp+88h+var_48] ; +0x59, 0x18004c819 xor eax, eax ; +0x5e, 0x18004c81e mov [rsp+88h+var_48], eax ; +0x60, 0x18004c820 mov [rsp+88h+var_44], ax ; +0x64, 0x18004c824 lea edi, [rax+6] ; +0x69, 0x18004c829 nop dword ptr [rax+00h] ; +0x6c, 0x18004c82c mov edx, 8 ; +0x70, 0x18004c830 lea rcx, [rsp+88h+var_68] ; +0x75, 0x18004c835 call sub_180048210 ; +0x7a, 0x18004c83a mov [rbx], al ; +0x7f, 0x18004c83f lea rbx, [rbx+1] ; +0x81, 0x18004c841 sub edi, 1 ; +0x85, 0x18004c845 jnz short loc_18004C830 ; +0x88, 0x18004c848 cmp [rsp+88h+var_48], 62726F76h ; +0x8a, 0x18004c84a mov rdi, [rsp+88h+var_38] ; +0x92, 0x18004c852 jnz loc_18004CA04 ; +0x97, 0x18004c857 cmp [rsp+88h+var_44], 7369h ; +0x9d, 0x18004c85d jnz loc_18004CA04 ; +0xa4, 0x18004c864 sub ebp, 1 ; +0xaa, 0x18004c86a jz short loc_18004C8C7 ; +0xad, 0x18004c86d sub ebp, 2 ; +0xaf, 0x18004c86f jz short loc_18004C8A8 ; +0xb2, 0x18004c872 cmp ebp, 2 ; +0xb4, 0x18004c874 jnz loc_18004C9E4 ; +0xb7, 0x18004c877 cmp dword ptr [rsi+8], 0 ; +0xbd, 0x18004c87d jz loc_18004C9E4 ; +0xc1, 0x18004c881 cmp qword ptr [r12+18h], 0 ; +0xc7, 0x18004c887 jz loc_18004C9E4 ; +0xcd, 0x18004c88d lea r8, [rsp+88h+var_68] ; +0xd3, 0x18004c893 mov rdx, rsi ; +0xd8, 0x18004c898 mov rcx, r15 ; +0xdb, 0x18004c89b call sub_18004CB30 ; +0xde, 0x18004c89e jmp loc_18004C9E9 ; +0xe3, 0x18004c8a3 cmp dword ptr [rsi+8], 0 ; +0xe8, 0x18004c8a8 jz loc_18004C9E4 ; +0xec, 0x18004c8ac lea r8, [rsp+88h+var_68] ; +0xf2, 0x18004c8b2 mov rdx, r12 ; +0xf7, 0x18004c8b7 mov rcx, r15 ; +0xfa, 0x18004c8ba call sub_18004CEC0 ; +0xfd, 0x18004c8bd jmp loc_18004C9E9 ; +0x102, 0x18004c8c2 cmp dword ptr [r14+0Ch], 0 ; +0x107, 0x18004c8c7 jz loc_18004C9E4 ; +0x10c, 0x18004c8cc cmp dword ptr [rsi+8], 0 ; +0x112, 0x18004c8d2 jnz loc_18004C9E4 ; +0x116, 0x18004c8d6 mov rbx, [rsi+20h] ; +0x11c, 0x18004c8dc test rbx, rbx ; +0x120, 0x18004c8e0 jnz short loc_18004C8EF ; +0x123, 0x18004c8e3 mov eax, 0FFFFFF7Fh ; +0x125, 0x18004c8e5 jmp loc_18004C9E9 ; +0x12a, 0x18004c8ea mov edx, 20h ; ' ' ; +0x12f, 0x18004c8ef lea rcx, [rsp+88h+var_68] ; +0x134, 0x18004c8f4 call sub_180048210 ; +0x139, 0x18004c8f9 mov [rsi], eax ; +0x13e, 0x18004c8fe test eax, eax ; +0x140, 0x18004c900 jz short loc_18004C90E ; +0x142, 0x18004c902 mov eax, 0FFFFFF7Ah ; +0x144, 0x18004c904 jmp loc_18004C9E9 ; +0x149, 0x18004c909 mov edx, 8 ; +0x14e, 0x18004c90e lea rcx, [rsp+88h+var_68] ; +0x153, 0x18004c913 call sub_180048210 ; +0x158, 0x18004c918 mov edx, 20h ; ' ' ; +0x15d, 0x18004c91d mov [rsi+4], eax ; +0x162, 0x18004c922 lea rcx, [rsp+88h+var_68] ; +0x165, 0x18004c925 call sub_180048210 ; +0x16a, 0x18004c92a mov edx, 20h ; ' ' ; +0x16f, 0x18004c92f mov [rsi+8], eax ; +0x174, 0x18004c934 lea rcx, [rsp+88h+var_68] ; +0x177, 0x18004c937 call sub_180048210 ; +0x17c, 0x18004c93c mov edx, 20h ; ' ' ; +0x181, 0x18004c941 mov [rsi+0Ch], eax ; +0x186, 0x18004c946 lea rcx, [rsp+88h+var_68] ; +0x189, 0x18004c949 call sub_180048210 ; +0x18e, 0x18004c94e mov edx, 20h ; ' ' ; +0x193, 0x18004c953 mov [rsi+10h], eax ; +0x198, 0x18004c958 lea rcx, [rsp+88h+var_68] ; +0x19b, 0x18004c95b call sub_180048210 ; +0x1a0, 0x18004c960 mov edx, 4 ; +0x1a5, 0x18004c965 mov [rsi+14h], eax ; +0x1aa, 0x18004c96a lea rcx, [rsp+88h+var_68] ; +0x1ad, 0x18004c96d call sub_180048210 ; +0x1b2, 0x18004c972 mov ecx, eax ; +0x1b7, 0x18004c977 mov edx, 4 ; +0x1b9, 0x18004c979 mov eax, 1 ; +0x1be, 0x18004c97e shl eax, cl ; +0x1c3, 0x18004c983 lea rcx, [rsp+88h+var_68] ; +0x1c5, 0x18004c985 mov [rbx], eax ; +0x1ca, 0x18004c98a call sub_180048210 ; +0x1cc, 0x18004c98c mov ecx, eax ; +0x1d1, 0x18004c991 mov r8d, 1 ; +0x1d3, 0x18004c993 shl r8d, cl ; +0x1d9, 0x18004c999 mov [rbx+4], r8d ; +0x1dc, 0x18004c99c cmp dword ptr [rsi+8], 1 ; +0x1e0, 0x18004c9a0 jl short loc_18004C9D9 ; +0x1e4, 0x18004c9a4 cmp dword ptr [rsi+4], 1 ; +0x1e6, 0x18004c9a6 jl short loc_18004C9D9 ; +0x1ea, 0x18004c9aa mov eax, [rbx] ; +0x1ec, 0x18004c9ac cmp eax, 40h ; '@' ; +0x1ee, 0x18004c9ae jl short loc_18004C9D9 ; +0x1f1, 0x18004c9b1 cmp r8d, eax ; +0x1f3, 0x18004c9b3 jl short loc_18004C9D9 ; +0x1f6, 0x18004c9b6 cmp r8d, 2000h ; +0x1f8, 0x18004c9b8 jg short loc_18004C9D9 ; +0x1ff, 0x18004c9bf mov edx, 1 ; +0x201, 0x18004c9c1 lea rcx, [rsp+88h+var_68] ; +0x206, 0x18004c9c6 call sub_180048210 ; +0x20b, 0x18004c9cb cmp eax, 1 ; +0x210, 0x18004c9d0 jnz short loc_18004C9D9 ; +0x213, 0x18004c9d3 xor eax, eax ; +0x215, 0x18004c9d5 jmp short loc_18004C9E9 ; +0x217, 0x18004c9d7 mov rdx, rsi ; +0x219, 0x18004c9d9 mov rcx, r15 ; +0x21c, 0x18004c9dc call sub_18004C5B0 ; +0x21f, 0x18004c9df mov eax, 0FFFFFF7Bh ; +0x224, 0x18004c9e4 mov rcx, [rsp+88h+var_40] ; +0x229, 0x18004c9e9 xor rcx, rsp; StackCookie ; +0x22e, 0x18004c9ee call __security_check_cookie ; +0x231, 0x18004c9f1 add rsp, 58h ; +0x236, 0x18004c9f6 pop r15 ; +0x23a, 0x18004c9fa pop r14 ; +0x23c, 0x18004c9fc pop r12 ; +0x23e, 0x18004c9fe pop rsi ; +0x240, 0x18004ca00 pop rbp ; +0x241, 0x18004ca01 pop rbx ; +0x242, 0x18004ca02 retn ; +0x243, 0x18004ca03 mov eax, 0FFFFFF7Ch ; +0x244, 0x18004ca04 jmp short loc_18004C9E9 ; +0x249, 0x18004ca09