; ; sub_180035A30 from 0x180035a30 to 0x180035e04 (980 bytes) ; ; 6 xrefs: ; > sub_180034270 @ 0x1800343ff ; > @ 0x180180308 ; > @ 0x180180344 ; > @ 0x180180364 ; > @ 0x1801f7ba8 ; > @ 0x1801f7bb4 ; ; 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 rbp ; +0x0, 0x180035a30 push rsi ; +0x2, 0x180035a32 lea rbp, [rsp-568h] ; +0x3, 0x180035a33 sub rsp, 668h ; +0xb, 0x180035a3b mov rax, cs:__security_cookie ; +0x12, 0x180035a42 xor rax, rsp ; +0x19, 0x180035a49 mov [rbp+570h+var_20], rax ; +0x1c, 0x180035a4c mov rsi, rcx ; +0x23, 0x180035a53 mov [rsp+670h+var_62C], 200h ; +0x26, 0x180035a56 mov rcx, [rcx+170h] ; +0x2e, 0x180035a5e xor r8d, r8d ; +0x35, 0x180035a65 xor edx, edx ; +0x38, 0x180035a68 call sub_1800B3990 ; +0x3a, 0x180035a6a test eax, eax ; +0x3f, 0x180035a6f jnz loc_180035DE5 ; +0x41, 0x180035a71 mov [rsp+670h+var_10], r15 ; +0x47, 0x180035a77 lea r8, [rsp+670h+var_62C] ; +0x4f, 0x180035a7f xor r15d, r15d ; +0x54, 0x180035a84 lea rdx, [rsp+670h+var_620] ; +0x57, 0x180035a87 xor r9d, r9d ; +0x5c, 0x180035a8c mov [rsp+670h+var_650], r15 ; +0x5f, 0x180035a8f mov rcx, rsi ; +0x64, 0x180035a94 call sub_180033E10 ; +0x67, 0x180035a97 test eax, eax ; +0x6c, 0x180035a9c jnz loc_180035DDD ; +0x6e, 0x180035a9e lea r8d, [r15+0Ch] ; +0x74, 0x180035aa4 lea rdx, [rsp+670h+var_620] ; +0x78, 0x180035aa8 lea rcx, aWplVersion_0; "?WPL VERSION" ; +0x7d, 0x180035aad call sub_1800B7FF0 ; +0x84, 0x180035ab4 test eax, eax ; +0x89, 0x180035ab9 jz short loc_180035AD0 ; +0x8b, 0x180035abb lea eax, [r15+13h] ; +0x8d, 0x180035abd jmp loc_180035DDD ; +0x91, 0x180035ac1 align 10h ; +0x96, 0x180035ac6 xor r9d, r9d ; +0xa0, 0x180035ad0 mov [rsp+670h+var_62C], 200h ; +0xa3, 0x180035ad3 lea r8, [rsp+670h+var_62C] ; +0xab, 0x180035adb mov [rsp+670h+var_650], r15 ; +0xb0, 0x180035ae0 lea rdx, [rsp+670h+var_620] ; +0xb5, 0x180035ae5 mov rcx, rsi ; +0xba, 0x180035aea call sub_180033E10 ; +0xbd, 0x180035aed test eax, eax ; +0xc2, 0x180035af2 jnz loc_180035DDD ; +0xc4, 0x180035af4 lea r8d, [rax+3] ; +0xca, 0x180035afa lea rdx, [rsp+670h+var_620] ; +0xce, 0x180035afe lea rcx, aSeq; "seq" ; +0xd3, 0x180035b03 call sub_1800B7FF0 ; +0xda, 0x180035b0a test eax, eax ; +0xdf, 0x180035b0f jnz short loc_180035AD0 ; +0xe1, 0x180035b11 mov [rsp+670h+arg_8], rbx ; +0xe3, 0x180035b13 mov [rsp+670h+arg_10], rdi ; +0xeb, 0x180035b1b mov [rsp+670h+arg_18], r14 ; +0xf3, 0x180035b23 nop dword ptr [rax+rax+00h] ; +0xfb, 0x180035b2b mov edi, r15d ; +0x100, 0x180035b30 mov [rsp+670h+var_630], dil ; +0x103, 0x180035b33 nop dword ptr [rax+rax+00000000h] ; +0x108, 0x180035b38 mov rcx, [rsi+170h] ; +0x110, 0x180035b40 lea rdx, [rsp+670h+var_62F] ; +0x117, 0x180035b47 call sub_1800B2CB0 ; +0x11c, 0x180035b4c test eax, eax ; +0x121, 0x180035b51 jnz loc_180035DC3 ; +0x123, 0x180035b53 movzx eax, [rsp+670h+var_62F] ; +0x129, 0x180035b59 cmp al, 20h ; ' ' ; +0x12e, 0x180035b5e jz short loc_180035B40 ; +0x130, 0x180035b60 cmp al, 9 ; +0x132, 0x180035b62 jz short loc_180035B40 ; +0x134, 0x180035b64 cmp al, 0Ah ; +0x136, 0x180035b66 jz short loc_180035B40 ; +0x138, 0x180035b68 cmp al, 0Dh ; +0x13a, 0x180035b6a jz short loc_180035B40 ; +0x13c, 0x180035b6c mov rcx, [rsi+170h] ; +0x13e, 0x180035b6e mov edx, 0FFFFFFFFh ; +0x145, 0x180035b75 lea r8d, [rdx+2] ; +0x14a, 0x180035b7a call sub_1800B3990 ; +0x14e, 0x180035b7e test eax, eax ; +0x153, 0x180035b83 jnz loc_180035DC3 ; +0x155, 0x180035b85 nop dword ptr [rax+rax+00h] ; +0x15b, 0x180035b8b mov rcx, [rsi+170h] ; +0x160, 0x180035b90 lea rdx, [rsp+670h+var_630] ; +0x167, 0x180035b97 call sub_1800B2CB0 ; +0x16c, 0x180035b9c test eax, eax ; +0x171, 0x180035ba1 jnz loc_180035DC3 ; +0x173, 0x180035ba3 cmp [rsp+670h+var_630], 3Ch ; '<' ; +0x179, 0x180035ba9 jnz short loc_180035B90 ; +0x17e, 0x180035bae lea rbx, [rsp+670h+var_620] ; +0x180, 0x180035bb0 nop word ptr [rax+rax+00000000h] ; +0x185, 0x180035bb5 mov rcx, [rsi+170h] ; +0x190, 0x180035bc0 lea rdx, [rsp+670h+var_630] ; +0x197, 0x180035bc7 call sub_1800B2CB0 ; +0x19c, 0x180035bcc test eax, eax ; +0x1a1, 0x180035bd1 jnz loc_180035DC3 ; +0x1a3, 0x180035bd3 movzx eax, [rsp+670h+var_630] ; +0x1a9, 0x180035bd9 cmp edi, 200h ; +0x1ae, 0x180035bde jge short loc_180035BED ; +0x1b4, 0x180035be4 inc edi ; +0x1b6, 0x180035be6 mov [rbx], al ; +0x1b8, 0x180035be8 inc rbx ; +0x1ba, 0x180035bea cmp al, 3Eh ; '>' ; +0x1bd, 0x180035bed jnz short loc_180035BC0 ; +0x1bf, 0x180035bef lea r14d, [rdi-1] ; +0x1c1, 0x180035bf1 xor edx, edx ; +0x1c5, 0x180035bf5 mov rcx, rsi ; +0x1c7, 0x180035bf7 mov edi, r15d ; +0x1ca, 0x180035bfa mov rbx, r15 ; +0x1cd, 0x180035bfd call sub_180035E20 ; +0x1d0, 0x180035c00 test eax, eax ; +0x1d5, 0x180035c05 jnz loc_180035DC3 ; +0x1d7, 0x180035c07 nop dword ptr [rax] ; +0x1dd, 0x180035c0d mov rcx, [rsi+170h] ; +0x1e0, 0x180035c10 lea rdx, [rsp+670h+var_630] ; +0x1e7, 0x180035c17 call sub_1800B2CB0 ; +0x1ec, 0x180035c1c test eax, eax ; +0x1f1, 0x180035c21 jnz loc_180035DC3 ; +0x1f3, 0x180035c23 movzx eax, [rsp+670h+var_630] ; +0x1f9, 0x180035c29 cmp rbx, 200h ; +0x1fe, 0x180035c2e jge short loc_180035C43 ; +0x205, 0x180035c35 inc edi ; +0x207, 0x180035c37 mov [rbp+rbx+570h+var_220], al ; +0x209, 0x180035c39 inc rbx ; +0x210, 0x180035c40 cmp al, 3Ch ; '<' ; +0x213, 0x180035c43 jnz short loc_180035C10 ; +0x215, 0x180035c45 mov rcx, [rsi+170h] ; +0x217, 0x180035c47 lea rdx, [rsp+670h+var_630] ; +0x21e, 0x180035c4e lea ebx, [rdi-1] ; +0x223, 0x180035c53 call sub_1800B2CB0 ; +0x226, 0x180035c56 test eax, eax ; +0x22b, 0x180035c5b jnz loc_180035DC3 ; +0x22d, 0x180035c5d cmp [rsp+670h+var_630], 2Fh ; '/' ; +0x233, 0x180035c63 jnz short loc_180035C92 ; +0x238, 0x180035c68 nop word ptr [rax+rax+00h] ; +0x23a, 0x180035c6a mov rcx, [rsi+170h] ; +0x240, 0x180035c70 lea rdx, [rsp+670h+var_630] ; +0x247, 0x180035c77 call sub_1800B2CB0 ; +0x24c, 0x180035c7c test eax, eax ; +0x251, 0x180035c81 jnz loc_180035DC3 ; +0x253, 0x180035c83 cmp [rsp+670h+var_630], 3Eh ; '>' ; +0x259, 0x180035c89 jnz short loc_180035C70 ; +0x25e, 0x180035c8e jmp short loc_180035CAF ; +0x260, 0x180035c90 mov rcx, [rsi+170h] ; +0x262, 0x180035c92 mov edx, 0FFFFFFFEh ; +0x269, 0x180035c99 lea r8d, [rdx+3] ; +0x26e, 0x180035c9e call sub_1800B3990 ; +0x272, 0x180035ca2 test eax, eax ; +0x277, 0x180035ca7 jnz loc_180035DC3 ; +0x279, 0x180035ca9 movsxd rax, r14d ; +0x27f, 0x180035caf cmp rax, 200h ; +0x282, 0x180035cb2 jnb loc_180035DFE ; +0x288, 0x180035cb8 mov [rsp+rax+670h+var_620], r15b ; +0x28e, 0x180035cbe movsxd rax, ebx ; +0x293, 0x180035cc3 cmp rax, 200h ; +0x296, 0x180035cc6 jnb loc_180035DFE ; +0x29c, 0x180035ccc mov [rbp+rax+570h+var_220], r15b ; +0x2a2, 0x180035cd2 test ebx, ebx ; +0x2aa, 0x180035cda jnz loc_180035D8C ; +0x2ac, 0x180035cdc xor cl, cl ; +0x2b2, 0x180035ce2 mov rax, r15 ; +0x2b4, 0x180035ce4 mov ebx, r15d ; +0x2b7, 0x180035ce7 mov rdx, r15 ; +0x2ba, 0x180035cea nop dword ptr [rax] ; +0x2bd, 0x180035ced cmp rax, 200h ; +0x2c0, 0x180035cf0 jge short loc_180035D00 ; +0x2c6, 0x180035cf6 movzx ecx, [rsp+rax+670h+var_620] ; +0x2c8, 0x180035cf8 inc rax ; +0x2cd, 0x180035cfd cmp cl, 22h ; '"' ; +0x2d0, 0x180035d00 jnz short loc_180035CF0 ; +0x2d3, 0x180035d03 nop word ptr [rax+rax+00000000h] ; +0x2d5, 0x180035d05 movzx ecx, [rsp+rax+670h+var_620] ; +0x2e0, 0x180035d10 inc rax ; +0x2e5, 0x180035d15 cmp cl, 22h ; '"' ; +0x2e8, 0x180035d18 jz short loc_180035D31 ; +0x2eb, 0x180035d1b mov [rbp+rdx+570h+var_420], cl ; +0x2ed, 0x180035d1d inc ebx ; +0x2f4, 0x180035d24 inc rdx ; +0x2f6, 0x180035d26 cmp rax, 1FFh ; +0x2f9, 0x180035d29 jl short loc_180035D10 ; +0x2ff, 0x180035d2f mov [rbp+rdx+570h+var_420], r15b ; +0x301, 0x180035d31 lea rcx, aMediaSrc; "MEDIA SRC" ; +0x309, 0x180035d39 lea rdx, [rsp+670h+var_620] ; +0x310, 0x180035d40 mov r8d, 8 ; +0x315, 0x180035d45 call sub_1800B7FF0 ; +0x31b, 0x180035d4b test eax, eax ; +0x320, 0x180035d50 jnz loc_180035B30 ; +0x322, 0x180035d52 lea eax, [rbx+1] ; +0x328, 0x180035d58 mov [rsp+670h+var_640], r15b ; +0x32b, 0x180035d5b mov [rsp+670h+var_648], 6 ; +0x330, 0x180035d60 lea r9, [rbp+570h+var_420] ; +0x338, 0x180035d68 lea r8, aFile; "FILE" ; +0x33f, 0x180035d6f mov dword ptr [rsp+670h+var_650], eax ; +0x346, 0x180035d76 mov edx, 8 ; +0x34a, 0x180035d7a mov rcx, rsi ; +0x34f, 0x180035d7f call sub_180012590 ; +0x352, 0x180035d82 jmp loc_180035B30 ; +0x357, 0x180035d87 lea rcx, [rsp+670h+var_620] ; +0x35c, 0x180035d8c call sub_1800B8170 ; +0x361, 0x180035d91 mov [rsp+670h+var_640], r15b ; +0x366, 0x180035d96 lea r9, [rbp+570h+var_220] ; +0x36b, 0x180035d9b mov r8, rax ; +0x372, 0x180035da2 mov [rsp+670h+var_648], 6 ; +0x375, 0x180035da5 mov edx, 8 ; +0x37d, 0x180035dad mov dword ptr [rsp+670h+var_650], edi ; +0x382, 0x180035db2 mov rcx, rsi ; +0x386, 0x180035db6 call sub_180012590 ; +0x389, 0x180035db9 jmp loc_180035B30 ; +0x38e, 0x180035dbe mov r14, [rsp+670h+arg_18] ; +0x393, 0x180035dc3 xor eax, eax ; +0x39b, 0x180035dcb mov rdi, [rsp+670h+arg_10] ; +0x39d, 0x180035dcd mov rbx, [rsp+670h+arg_8] ; +0x3a5, 0x180035dd5 mov r15, [rsp+670h+var_10] ; +0x3ad, 0x180035ddd mov rcx, [rbp+570h+var_20] ; +0x3b5, 0x180035de5 xor rcx, rsp; StackCookie ; +0x3bc, 0x180035dec call __security_check_cookie ; +0x3bf, 0x180035def add rsp, 668h ; +0x3c4, 0x180035df4 pop rsi ; +0x3cb, 0x180035dfb pop rbp ; +0x3cc, 0x180035dfc retn ; +0x3cd, 0x180035dfd call __report_rangecheckfailure ; +0x3ce, 0x180035dfe db 0CCh ; +0x3d3, 0x180035e03