; ; sub_1800357C0 from 0x1800357c0 to 0x180035a30 (624 bytes) ; ; 4 xrefs: ; > sub_180034270 @ 0x1800344ec ; > @ 0x180180490 ; > @ 0x1801804a0 ; > @ 0x1801f7b90 ; ; 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, 0x1800357c0 sub rsp, 260h ; +0x2, 0x1800357c2 mov rax, cs:__security_cookie ; +0x9, 0x1800357c9 xor rax, rsp ; +0x10, 0x1800357d0 mov [rsp+268h+var_18], rax ; +0x13, 0x1800357d3 mov rbx, rcx ; +0x1b, 0x1800357db xor r8d, r8d ; +0x1e, 0x1800357de mov rcx, [rcx+170h] ; +0x21, 0x1800357e1 xor edx, edx ; +0x28, 0x1800357e8 call sub_1800B3990 ; +0x2a, 0x1800357ea test eax, eax ; +0x2f, 0x1800357ef jnz loc_180035A17 ; +0x31, 0x1800357f1 mov [rsp+268h+arg_8], rsi ; +0x37, 0x1800357f7 mov [rsp+268h+arg_10], rdi ; +0x3f, 0x1800357ff nop word ptr [rax+rax+00000000h] ; +0x47, 0x180035807 mov rcx, [rbx+170h] ; +0x50, 0x180035810 lea rdx, [rsp+268h+var_227] ; +0x57, 0x180035817 call sub_1800B2CB0 ; +0x5c, 0x18003581c test eax, eax ; +0x61, 0x180035821 jnz loc_180035A05 ; +0x63, 0x180035823 movzx eax, [rsp+268h+var_227] ; +0x69, 0x180035829 cmp al, 20h ; ' ' ; +0x6e, 0x18003582e jz short loc_180035810 ; +0x70, 0x180035830 cmp al, 9 ; +0x72, 0x180035832 jz short loc_180035810 ; +0x74, 0x180035834 cmp al, 0Ah ; +0x76, 0x180035836 jz short loc_180035810 ; +0x78, 0x180035838 cmp al, 0Dh ; +0x7a, 0x18003583a jz short loc_180035810 ; +0x7c, 0x18003583c mov rcx, [rbx+170h] ; +0x7e, 0x18003583e mov edx, 0FFFFFFFFh ; +0x85, 0x180035845 lea r8d, [rdx+2] ; +0x8a, 0x18003584a call sub_1800B3990 ; +0x8e, 0x18003584e test eax, eax ; +0x93, 0x180035853 jnz loc_180035A05 ; +0x95, 0x180035855 mov rcx, [rbx+170h] ; +0x9b, 0x18003585b lea rdx, [rsp+268h+var_228] ; +0xa2, 0x180035862 call sub_1800B2CB0 ; +0xa7, 0x180035867 test eax, eax ; +0xac, 0x18003586c jnz loc_180035A05 ; +0xae, 0x18003586e movzx eax, [rsp+268h+var_228] ; +0xb4, 0x180035874 cmp al, 23h ; '#' ; +0xb9, 0x180035879 jz short loc_180035881 ; +0xbb, 0x18003587b cmp al, 5Bh ; '[' ; +0xbd, 0x18003587d jnz short loc_1800358DD ; +0xbf, 0x18003587f mov rcx, [rbx+170h] ; +0xc1, 0x180035881 lea rdx, [rsp+268h+var_228] ; +0xc8, 0x180035888 call sub_1800B2CB0 ; +0xcd, 0x18003588d test eax, eax ; +0xd2, 0x180035892 jnz loc_180035A05 ; +0xd4, 0x180035894 movzx eax, [rsp+268h+var_228] ; +0xda, 0x18003589a cmp al, 0Ah ; +0xdf, 0x18003589f jz loc_180035810 ; +0xe1, 0x1800358a1 cmp al, 0Dh ; +0xe7, 0x1800358a7 jnz short loc_180035881 ; +0xe9, 0x1800358a9 mov rcx, [rbx+170h] ; +0xeb, 0x1800358ab lea rdx, [rsp+268h+var_226] ; +0xf2, 0x1800358b2 call sub_1800B2CB0 ; +0xf7, 0x1800358b7 mov rcx, [rbx+170h] ; +0xfc, 0x1800358bc mov edx, 0FFFFFFFFh ; +0x103, 0x1800358c3 lea r8d, [rdx+2] ; +0x108, 0x1800358c8 call sub_1800B3990 ; +0x10c, 0x1800358cc cmp [rsp+268h+var_226], 0Ah ; +0x111, 0x1800358d1 jz short loc_180035881 ; +0x116, 0x1800358d6 jmp loc_180035810 ; +0x118, 0x1800358d8 mov rcx, [rbx+170h] ; +0x11d, 0x1800358dd mov edx, 0FFFFFFFFh ; +0x124, 0x1800358e4 lea r8d, [rdx+2] ; +0x129, 0x1800358e9 call sub_1800B3990 ; +0x12d, 0x1800358ed test eax, eax ; +0x132, 0x1800358f2 jnz loc_180035A05 ; +0x134, 0x1800358f4 xor esi, esi ; +0x13a, 0x1800358fa xor edi, edi ; +0x13c, 0x1800358fc xchg ax, ax ; +0x13e, 0x1800358fe mov rcx, [rbx+170h] ; +0x140, 0x180035900 lea rdx, [rsp+268h+var_225] ; +0x147, 0x180035907 call sub_1800B2CB0 ; +0x14c, 0x18003590c test eax, eax ; +0x151, 0x180035911 jnz loc_180035A05 ; +0x153, 0x180035913 movzx eax, [rsp+268h+var_225] ; +0x159, 0x180035919 cmp al, 20h ; ' ' ; +0x15e, 0x18003591e jz short loc_180035900 ; +0x160, 0x180035920 cmp al, 9 ; +0x162, 0x180035922 jz short loc_180035900 ; +0x164, 0x180035924 cmp al, 0Ah ; +0x166, 0x180035926 jz short loc_180035900 ; +0x168, 0x180035928 cmp al, 0Dh ; +0x16a, 0x18003592a jz short loc_180035900 ; +0x16c, 0x18003592c mov rcx, [rbx+170h] ; +0x16e, 0x18003592e mov edx, 0FFFFFFFFh ; +0x175, 0x180035935 lea r8d, [rdx+2] ; +0x17a, 0x18003593a call sub_1800B3990 ; +0x17e, 0x18003593e test eax, eax ; +0x183, 0x180035943 jnz loc_180035A05 ; +0x185, 0x180035945 nop dword ptr [rax+rax+00h] ; +0x18b, 0x18003594b mov rcx, [rbx+170h] ; +0x190, 0x180035950 lea rdx, [rsp+268h+var_224] ; +0x197, 0x180035957 call sub_1800B2CB0 ; +0x19c, 0x18003595c test eax, eax ; +0x1a1, 0x180035961 jnz loc_180035A05 ; +0x1a3, 0x180035963 movzx eax, [rsp+268h+var_224] ; +0x1a9, 0x180035969 cmp al, 0Ah ; +0x1ae, 0x18003596e jz short loc_1800359B9 ; +0x1b0, 0x180035970 cmp al, 0Dh ; +0x1b2, 0x180035972 jz short loc_18003598C ; +0x1b4, 0x180035974 cmp rdi, 1FFh ; +0x1b6, 0x180035976 jge short loc_180035988 ; +0x1bd, 0x18003597d inc esi ; +0x1bf, 0x18003597f mov [rsp+rdi+268h+var_218], al ; +0x1c1, 0x180035981 inc rdi ; +0x1c5, 0x180035985 cmp al, 0Dh ; +0x1c8, 0x180035988 jnz short loc_180035950 ; +0x1ca, 0x18003598a mov rcx, [rbx+170h] ; +0x1cc, 0x18003598c lea rdx, [rsp+268h+var_223] ; +0x1d3, 0x180035993 call sub_1800B2CB0 ; +0x1d8, 0x180035998 mov rcx, [rbx+170h] ; +0x1dd, 0x18003599d mov edx, 0FFFFFFFFh ; +0x1e4, 0x1800359a4 lea r8d, [rdx+2] ; +0x1e9, 0x1800359a9 call sub_1800B3990 ; +0x1ed, 0x1800359ad cmp [rsp+268h+var_223], 0Ah ; +0x1f2, 0x1800359b2 jz short loc_180035950 ; +0x1f7, 0x1800359b7 lea rcx, [rsp+268h+var_218] ; +0x1f9, 0x1800359b9 mov [rsp+rdi+268h+var_218], 0 ; +0x1fe, 0x1800359be call sub_1800B81C0 ; +0x203, 0x1800359c3 test eax, eax ; +0x208, 0x1800359c8 jz short loc_1800359FE ; +0x20a, 0x1800359ca lea eax, [rsi+1] ; +0x20c, 0x1800359cc mov [rsp+268h+var_238], 0 ; +0x20f, 0x1800359cf mov [rsp+268h+var_240], 3 ; +0x214, 0x1800359d4 lea r9, [rsp+268h+var_218] ; +0x21c, 0x1800359dc lea r8, aFile; "FILE" ; +0x221, 0x1800359e1 mov [rsp+268h+var_248], eax ; +0x228, 0x1800359e8 mov edx, 8 ; +0x22c, 0x1800359ec mov rcx, rbx ; +0x231, 0x1800359f1 call sub_180012590 ; +0x234, 0x1800359f4 jmp loc_180035810 ; +0x239, 0x1800359f9 mov eax, 13h ; +0x23e, 0x1800359fe jmp short loc_180035A07 ; +0x243, 0x180035a03 xor eax, eax ; +0x245, 0x180035a05 mov rsi, [rsp+268h+arg_8] ; +0x247, 0x180035a07 mov rdi, [rsp+268h+arg_10] ; +0x24f, 0x180035a0f mov rcx, [rsp+268h+var_18] ; +0x257, 0x180035a17 xor rcx, rsp; StackCookie ; +0x25f, 0x180035a1f call __security_check_cookie ; +0x262, 0x180035a22 add rsp, 260h ; +0x267, 0x180035a27 pop rbx ; +0x26e, 0x180035a2e retn ; +0x26f, 0x180035a2f