; ; sub_180017E70 from 0x180017e70 to 0x1800180ef (639 bytes) ; ; 2 xrefs: ; > sub_180017E60 @ 0x180017e60 ; > @ 0x1801f7224 ; ; 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, 0x180017e70 push rbp ; +0x2, 0x180017e72 push rdi ; +0x3, 0x180017e73 push r13 ; +0x4, 0x180017e74 push r15 ; +0x6, 0x180017e76 sub rsp, 70h ; +0x8, 0x180017e78 mov rax, cs:__security_cookie ; +0xc, 0x180017e7c xor rax, rsp ; +0x13, 0x180017e83 mov [rsp+98h+var_40], rax ; +0x16, 0x180017e86 mov rbx, rcx ; +0x1b, 0x180017e8b mov r15d, r8d ; +0x1e, 0x180017e8e mov rcx, [rcx+1A0h] ; +0x21, 0x180017e91 call sub_180003F20 ; +0x28, 0x180017e98 mov rax, [rbx+8] ; +0x2d, 0x180017e9d xor ebp, ebp ; +0x31, 0x180017ea1 mov [rbx+1B0h], ebp ; +0x33, 0x180017ea3 mov r13d, ebp ; +0x39, 0x180017ea9 mov edi, ebp ; +0x3c, 0x180017eac mov ecx, [rax+10h] ; +0x3e, 0x180017eae cmp r15d, ecx ; +0x41, 0x180017eb1 jbe short loc_180017EDC ; +0x44, 0x180017eb4 xor edx, edx ; +0x46, 0x180017eb6 mov eax, r15d ; +0x48, 0x180017eb8 div ecx ; +0x4b, 0x180017ebb dec eax ; +0x4d, 0x180017ebd movsxd rcx, eax ; +0x4f, 0x180017ebf mov rax, [rbx+1C8h] ; +0x52, 0x180017ec2 mov rdi, [rax+rcx*8] ; +0x59, 0x180017ec9 mov rax, rdi ; +0x5d, 0x180017ecd shr rax, 20h ; +0x60, 0x180017ed0 add eax, [rbx+110h] ; +0x64, 0x180017ed4 jmp short loc_180017EE2 ; +0x6a, 0x180017eda mov eax, [rbx+110h] ; +0x6c, 0x180017edc mov rcx, [rbx+170h] ; +0x72, 0x180017ee2 xor r8d, r8d ; +0x79, 0x180017ee9 mov edx, eax ; +0x7c, 0x180017eec call sub_1800B3990 ; +0x7e, 0x180017eee mov [rsp+98h+arg_8], rsi ; +0x83, 0x180017ef3 mov [rsp+98h+var_30], r12 ; +0x8b, 0x180017efb mov [rsp+98h+var_38], r14 ; +0x90, 0x180017f00 nop word ptr [rax+rax+00000000h] ; +0x95, 0x180017f05 mov rcx, [rbx+170h] ; +0xa0, 0x180017f10 lea rdx, [rsp+98h+var_68] ; +0xa7, 0x180017f17 mov r9d, 2 ; +0xac, 0x180017f1c mov [rsp+98h+var_64], ebp ; +0xb2, 0x180017f22 mov [rsp+98h+var_78], rbp ; +0xb6, 0x180017f26 lea r8d, [r9-1] ; +0xbb, 0x180017f2b call sub_1800B3470 ; +0xbf, 0x180017f2f test eax, eax ; +0xc4, 0x180017f34 jnz loc_1800180C4 ; +0xc6, 0x180017f36 movzx eax, byte ptr [rsp+98h+var_68] ; +0xcc, 0x180017f3c lea rdx, [rsp+98h+var_64] ; +0xd1, 0x180017f41 movzx r14d, byte ptr [rsp+98h+var_68+1] ; +0xd6, 0x180017f46 mov r9d, 4 ; +0xdc, 0x180017f4c mov rcx, [rbx+170h] ; +0xe2, 0x180017f52 shl r14d, 8 ; +0xe9, 0x180017f59 or r14d, eax ; +0xed, 0x180017f5d mov [rsp+98h+var_78], rbp ; +0xf0, 0x180017f60 lea r8d, [r9-3] ; +0xf5, 0x180017f65 call sub_1800B3470 ; +0xf9, 0x180017f69 test eax, eax ; +0xfe, 0x180017f6e jnz loc_1800180C4 ; +0x100, 0x180017f70 mov rcx, [rbx+170h] ; +0x106, 0x180017f76 lea edx, [r14-4] ; +0x10d, 0x180017f7d lea r8d, [rax+1] ; +0x111, 0x180017f81 call sub_1800B3990 ; +0x115, 0x180017f85 test eax, eax ; +0x11a, 0x180017f8a jnz loc_1800180C4 ; +0x11c, 0x180017f8c lea r8d, [rax+4] ; +0x122, 0x180017f92 lea rdx, [rsp+98h+var_64] ; +0x126, 0x180017f96 lea rcx, [rsp+98h+var_60] ; +0x12b, 0x180017f9b call sub_180001320 ; +0x130, 0x180017fa0 lea rdx, [rsp+98h+var_60] ; +0x135, 0x180017fa5 lea rcx, [rbx+178h] ; +0x13a, 0x180017faa call sub_180004490 ; +0x141, 0x180017fb1 mov esi, eax ; +0x146, 0x180017fb6 test eax, eax ; +0x148, 0x180017fb8 js loc_180017F10 ; +0x14a, 0x180017fba test r13d, r13d ; +0x150, 0x180017fc0 jz short loc_180017FD2 ; +0x153, 0x180017fc3 lea ebp, [rax+r13] ; +0x155, 0x180017fc5 mov ecx, ebp ; +0x159, 0x180017fc9 sar ecx, 2 ; +0x15b, 0x180017fcb add edi, ecx ; +0x15e, 0x180017fce jmp short loc_180017FD4 ; +0x160, 0x180017fd0 mov ebp, esi ; +0x162, 0x180017fd2 mov edx, 1 ; +0x164, 0x180017fd4 lea rcx, [rbx+178h] ; +0x169, 0x180017fd9 call sub_180007770 ; +0x170, 0x180017fe0 add eax, esi ; +0x175, 0x180017fe5 sar eax, 2 ; +0x177, 0x180017fe7 add eax, edi ; +0x17a, 0x180017fea cmp eax, r15d ; +0x17c, 0x180017fec jge short loc_180018043 ; +0x17f, 0x180017fef mov r8d, 4 ; +0x181, 0x180017ff1 lea rdx, [rsp+98h+var_64] ; +0x187, 0x180017ff7 lea rcx, [rsp+98h+var_60] ; +0x18c, 0x180017ffc call sub_180001320 ; +0x191, 0x180018001 mov rcx, [rbx+1A0h] ; +0x196, 0x180018006 lea rdx, [rsp+98h+var_60] ; +0x19d, 0x18001800d xor r8d, r8d ; +0x1a2, 0x180018012 call sub_180003F70 ; +0x1a5, 0x180018015 mov rcx, [rbx+1A0h] ; +0x1aa, 0x18001801a xor r8d, r8d ; +0x1b1, 0x180018021 xor edx, edx ; +0x1b4, 0x180018024 call sub_180003D30 ; +0x1b6, 0x180018026 mov rcx, [rbx+1A0h] ; +0x1bb, 0x18001802b mov edx, eax ; +0x1c2, 0x180018032 call sub_180003F00 ; +0x1c4, 0x180018034 xor ebp, ebp ; +0x1c9, 0x180018039 mov r13d, esi ; +0x1cb, 0x18001803b jmp loc_180017F10 ; +0x1ce, 0x18001803e mov rcx, [rbx+170h] ; +0x1d3, 0x180018043 mov eax, 0 ; +0x1da, 0x18001804a sar ebp, 2 ; +0x1df, 0x18001804f mov edx, 0FFFFFFFEh ; +0x1e2, 0x180018052 test r13d, r13d ; +0x1e7, 0x180018057 cmovz ebp, eax ; +0x1ea, 0x18001805a lea r8d, [rax+1] ; +0x1ed, 0x18001805d sub edx, r14d ; +0x1f1, 0x180018061 sub edi, ebp ; +0x1f4, 0x180018064 call sub_1800B3990 ; +0x1f6, 0x180018066 cmp edi, r15d ; +0x1fb, 0x18001806b jge short loc_1800180C2 ; +0x1fe, 0x18001806e mov rcx, [rbx+1A0h] ; +0x200, 0x180018070 mov ebp, r15d ; +0x207, 0x180018077 xor r8d, r8d ; +0x20a, 0x18001807a xor edx, edx ; +0x20d, 0x18001807d sub ebp, edi ; +0x20f, 0x18001807f call sub_180003D30 ; +0x211, 0x180018081 mov rcx, [rbx+1A0h] ; +0x216, 0x180018086 mov esi, eax ; +0x21d, 0x18001808d cmp eax, ebp ; +0x21f, 0x18001808f jg short loc_1800180BB ; +0x221, 0x180018091 mov edx, eax ; +0x223, 0x180018093 call sub_180003F00 ; +0x225, 0x180018095 add edi, esi ; +0x22a, 0x18001809a cmp esi, ebp ; +0x22c, 0x18001809c jge short loc_1800180B4 ; +0x22e, 0x18001809e xor r9d, r9d ; +0x230, 0x1800180a0 xor r8d, r8d ; +0x233, 0x1800180a3 xor edx, edx ; +0x236, 0x1800180a6 mov rcx, rbx ; +0x238, 0x1800180a8 call sub_180017A50 ; +0x23b, 0x1800180ab test eax, eax ; +0x240, 0x1800180b0 jnz short loc_1800180C4 ; +0x242, 0x1800180b2 cmp edi, r15d ; +0x244, 0x1800180b4 jl short loc_180018070 ; +0x247, 0x1800180b7 jmp short loc_1800180C2 ; +0x249, 0x1800180b9 mov edx, ebp ; +0x24b, 0x1800180bb call sub_180003F00 ; +0x24d, 0x1800180bd xor eax, eax ; +0x252, 0x1800180c2 mov r14, [rsp+98h+var_38] ; +0x254, 0x1800180c4 mov r12, [rsp+98h+var_30] ; +0x259, 0x1800180c9 mov rsi, [rsp+98h+arg_8] ; +0x25e, 0x1800180ce mov rcx, [rsp+98h+var_40] ; +0x266, 0x1800180d6 xor rcx, rsp; StackCookie ; +0x26b, 0x1800180db call __security_check_cookie ; +0x26e, 0x1800180de add rsp, 70h ; +0x273, 0x1800180e3 pop r15 ; +0x277, 0x1800180e7 pop r13 ; +0x279, 0x1800180e9 pop rdi ; +0x27b, 0x1800180eb pop rbp ; +0x27c, 0x1800180ec pop rbx ; +0x27d, 0x1800180ed retn ; +0x27e, 0x1800180ee