; ; sub_180035080 from 0x180035080 to 0x180035504 (1156 bytes) ; ; 5 xrefs: ; > sub_180034270 @ 0x18003436f ; > @ 0x180180394 ; > @ 0x1801803a4 ; > @ 0x1801803bc ; > @ 0x1801f7b30 ; ; 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 ; mov [rsp-8+arg_18], rdi ; +0x0, 0x180035080 push rbp ; +0x5, 0x180035085 lea rbp, [rsp-160h] ; +0x6, 0x180035086 sub rsp, 260h ; +0xe, 0x18003508e mov rax, cs:__security_cookie ; +0x15, 0x180035095 xor rax, rsp ; +0x1c, 0x18003509c mov [rbp+160h+var_10], rax ; +0x1f, 0x18003509f mov rdi, rcx ; +0x26, 0x1800350a6 mov [rsp+260h+var_218], 0 ; +0x29, 0x1800350a9 mov rcx, [rcx+170h] ; +0x31, 0x1800350b1 xor r8d, r8d ; +0x38, 0x1800350b8 xor edx, edx ; +0x3b, 0x1800350bb call sub_1800B3990 ; +0x3d, 0x1800350bd test eax, eax ; +0x42, 0x1800350c2 jnz loc_1800354DE ; +0x44, 0x1800350c4 mov [rsp+260h+arg_8], rbx ; +0x4a, 0x1800350ca xor ebx, ebx ; +0x52, 0x1800350d2 mov [rsp+260h+arg_10], rsi ; +0x54, 0x1800350d4 nop dword ptr [rax+00h] ; +0x5c, 0x1800350dc mov rcx, [rdi+170h] ; +0x60, 0x1800350e0 lea rdx, [rsp+260h+var_220] ; +0x67, 0x1800350e7 call sub_1800B2CB0 ; +0x6c, 0x1800350ec test eax, eax ; +0x71, 0x1800350f1 jnz loc_1800354C9 ; +0x73, 0x1800350f3 cmp rbx, 200h ; +0x79, 0x1800350f9 jge loc_1800354C9 ; +0x80, 0x180035100 movzx eax, [rsp+260h+var_220] ; +0x86, 0x180035106 mov [rsp+rbx+260h+var_210], al ; +0x8b, 0x18003510b inc rbx ; +0x8f, 0x18003510f cmp al, 0Ah ; +0x92, 0x180035112 jz short loc_180035147 ; +0x94, 0x180035114 cmp al, 0Dh ; +0x96, 0x180035116 jnz short loc_1800350E0 ; +0x98, 0x180035118 mov rcx, [rdi+170h] ; +0x9a, 0x18003511a lea rdx, [rsp+260h+var_21F] ; +0xa1, 0x180035121 call sub_1800B2CB0 ; +0xa6, 0x180035126 mov rcx, [rdi+170h] ; +0xab, 0x18003512b mov edx, 0FFFFFFFFh ; +0xb2, 0x180035132 lea r8d, [rdx+2] ; +0xb7, 0x180035137 call sub_1800B3990 ; +0xbb, 0x18003513b cmp [rsp+260h+var_21F], 0Ah ; +0xc0, 0x180035140 jz short loc_1800350E0 ; +0xc5, 0x180035145 mov r8d, 7 ; +0xc7, 0x180035147 lea rdx, aExtm3u; "#EXTM3U" ; +0xcd, 0x18003514d lea rcx, [rsp+260h+var_210] ; +0xd4, 0x180035154 call sub_1800B7FF0 ; +0xd9, 0x180035159 test eax, eax ; +0xde, 0x18003515e jnz loc_1800354C9 ; +0xe0, 0x180035160 nop word ptr [rax+rax+00000000h] ; +0xe6, 0x180035166 xor ebx, ebx ; +0xf0, 0x180035170 mov rcx, [rdi+170h] ; +0xf2, 0x180035172 lea rdx, [rsp+260h+var_21F] ; +0xf9, 0x180035179 call sub_1800B2CB0 ; +0xfe, 0x18003517e test eax, eax ; +0x103, 0x180035183 jnz loc_1800354C5 ; +0x105, 0x180035185 movzx eax, [rsp+260h+var_21F] ; +0x10b, 0x18003518b cmp al, 20h ; ' ' ; +0x110, 0x180035190 jz short loc_180035172 ; +0x112, 0x180035192 cmp al, 9 ; +0x114, 0x180035194 jz short loc_180035172 ; +0x116, 0x180035196 cmp al, 0Ah ; +0x118, 0x180035198 jz short loc_180035172 ; +0x11a, 0x18003519a cmp al, 0Dh ; +0x11c, 0x18003519c jz short loc_180035172 ; +0x11e, 0x18003519e mov rcx, [rdi+170h] ; +0x120, 0x1800351a0 mov edx, 0FFFFFFFFh ; +0x127, 0x1800351a7 lea r8d, [rdx+2] ; +0x12c, 0x1800351ac call sub_1800B3990 ; +0x130, 0x1800351b0 test eax, eax ; +0x135, 0x1800351b5 jnz loc_1800354C5 ; +0x137, 0x1800351b7 nop dword ptr [rax] ; +0x13d, 0x1800351bd mov rcx, [rdi+170h] ; +0x140, 0x1800351c0 lea rdx, [rsp+260h+var_220] ; +0x147, 0x1800351c7 call sub_1800B2CB0 ; +0x14c, 0x1800351cc test eax, eax ; +0x151, 0x1800351d1 jnz short loc_1800351EE ; +0x153, 0x1800351d3 movzx eax, [rsp+260h+var_220] ; +0x155, 0x1800351d5 cmp rbx, 200h ; +0x15a, 0x1800351da jge short loc_1800351EA ; +0x161, 0x1800351e1 mov [rsp+rbx+260h+var_210], al ; +0x163, 0x1800351e3 inc rbx ; +0x167, 0x1800351e7 cmp al, 3Ah ; ':' ; +0x16a, 0x1800351ea jnz short loc_1800351C0 ; +0x16c, 0x1800351ec mov r8d, 7 ; +0x16e, 0x1800351ee lea rdx, [rsp+260h+var_210] ; +0x174, 0x1800351f4 lea rcx, aExtinf; "#EXTINF" ; +0x179, 0x1800351f9 call sub_1800B7FF0 ; +0x180, 0x180035200 test eax, eax ; +0x185, 0x180035205 jnz loc_1800354C9 ; +0x187, 0x180035207 nop dword ptr [rax] ; +0x18d, 0x18003520d mov rcx, [rdi+170h] ; +0x190, 0x180035210 lea rdx, [rsp+260h+var_21E] ; +0x197, 0x180035217 call sub_1800B2CB0 ; +0x19c, 0x18003521c test eax, eax ; +0x1a1, 0x180035221 jnz loc_1800354C5 ; +0x1a3, 0x180035223 movzx eax, [rsp+260h+var_21E] ; +0x1a9, 0x180035229 cmp al, 20h ; ' ' ; +0x1ae, 0x18003522e jz short loc_180035210 ; +0x1b0, 0x180035230 cmp al, 9 ; +0x1b2, 0x180035232 jz short loc_180035210 ; +0x1b4, 0x180035234 cmp al, 0Ah ; +0x1b6, 0x180035236 jz short loc_180035210 ; +0x1b8, 0x180035238 cmp al, 0Dh ; +0x1ba, 0x18003523a jz short loc_180035210 ; +0x1bc, 0x18003523c mov rcx, [rdi+170h] ; +0x1be, 0x18003523e mov edx, 0FFFFFFFFh ; +0x1c5, 0x180035245 lea r8d, [rdx+2] ; +0x1ca, 0x18003524a call sub_1800B3990 ; +0x1ce, 0x18003524e test eax, eax ; +0x1d3, 0x180035253 jnz loc_1800354C5 ; +0x1d5, 0x180035255 xor ebx, ebx ; +0x1db, 0x18003525b nop dword ptr [rax] ; +0x1dd, 0x18003525d mov rcx, [rdi+170h] ; +0x1e0, 0x180035260 lea rdx, [rsp+260h+var_220] ; +0x1e7, 0x180035267 call sub_1800B2CB0 ; +0x1ec, 0x18003526c test eax, eax ; +0x1f1, 0x180035271 jnz short loc_18003528E ; +0x1f3, 0x180035273 movzx eax, [rsp+260h+var_220] ; +0x1f5, 0x180035275 cmp rbx, 1FFh ; +0x1fa, 0x18003527a jge short loc_18003528A ; +0x201, 0x180035281 mov [rsp+rbx+260h+var_210], al ; +0x203, 0x180035283 inc rbx ; +0x207, 0x180035287 cmp al, 2Ch ; ',' ; +0x20a, 0x18003528a jnz short loc_180035260 ; +0x20c, 0x18003528c dec rbx ; +0x20e, 0x18003528e cmp rbx, 200h ; +0x211, 0x180035291 jnb loc_1800354FE ; +0x218, 0x180035298 lea rcx, [rsp+260h+var_210] ; +0x21e, 0x18003529e mov [rsp+rbx+260h+var_210], 0 ; +0x223, 0x1800352a3 call unknown_libname_28; Microsoft VisualC 64bit universal runtime ; +0x228, 0x1800352a8 mov [rsp+260h+var_230], 0 ; +0x22d, 0x1800352ad lea r9, [rsp+260h+var_218] ; +0x232, 0x1800352b2 mov [rsp+260h+var_238], 1 ; +0x237, 0x1800352b7 lea r8, aLength; "LENGTH" ; +0x23f, 0x1800352bf mov edx, 8 ; +0x246, 0x1800352c6 mov [rsp+260h+var_240], 4 ; +0x24b, 0x1800352cb mov rcx, rdi ; +0x253, 0x1800352d3 mov [rsp+260h+var_218], eax ; +0x256, 0x1800352d6 call sub_180012590 ; +0x25a, 0x1800352da nop ; +0x25f, 0x1800352df mov rcx, [rdi+170h] ; +0x260, 0x1800352e0 lea rdx, [rsp+260h+var_21D] ; +0x267, 0x1800352e7 call sub_1800B2CB0 ; +0x26c, 0x1800352ec test eax, eax ; +0x271, 0x1800352f1 jnz loc_1800354C5 ; +0x273, 0x1800352f3 movzx eax, [rsp+260h+var_21D] ; +0x279, 0x1800352f9 cmp al, 20h ; ' ' ; +0x27e, 0x1800352fe jz short loc_1800352E0 ; +0x280, 0x180035300 cmp al, 9 ; +0x282, 0x180035302 jz short loc_1800352E0 ; +0x284, 0x180035304 cmp al, 0Ah ; +0x286, 0x180035306 jz short loc_1800352E0 ; +0x288, 0x180035308 cmp al, 0Dh ; +0x28a, 0x18003530a jz short loc_1800352E0 ; +0x28c, 0x18003530c mov rcx, [rdi+170h] ; +0x28e, 0x18003530e mov edx, 0FFFFFFFFh ; +0x295, 0x180035315 lea r8d, [rdx+2] ; +0x29a, 0x18003531a call sub_1800B3990 ; +0x29e, 0x18003531e test eax, eax ; +0x2a3, 0x180035323 jnz loc_1800354C5 ; +0x2a5, 0x180035325 xor esi, esi ; +0x2ab, 0x18003532b xor ebx, ebx ; +0x2ad, 0x18003532d nop ; +0x2af, 0x18003532f mov rcx, [rdi+170h] ; +0x2b0, 0x180035330 lea rdx, [rsp+260h+var_220] ; +0x2b7, 0x180035337 call sub_1800B2CB0 ; +0x2bc, 0x18003533c test eax, eax ; +0x2c1, 0x180035341 jnz short loc_180035395 ; +0x2c3, 0x180035343 movzx eax, [rsp+260h+var_220] ; +0x2c5, 0x180035345 cmp al, 0Ah ; +0x2ca, 0x18003534a jz short loc_180035395 ; +0x2cc, 0x18003534c cmp al, 0Dh ; +0x2ce, 0x18003534e jz short loc_180035368 ; +0x2d0, 0x180035350 cmp rbx, 1FFh ; +0x2d2, 0x180035352 jge short loc_180035364 ; +0x2d9, 0x180035359 inc esi ; +0x2db, 0x18003535b mov [rsp+rbx+260h+var_210], al ; +0x2dd, 0x18003535d inc rbx ; +0x2e1, 0x180035361 cmp al, 0Dh ; +0x2e4, 0x180035364 jnz short loc_180035330 ; +0x2e6, 0x180035366 mov rcx, [rdi+170h] ; +0x2e8, 0x180035368 lea rdx, [rsp+260h+var_21C] ; +0x2ef, 0x18003536f call sub_1800B2CB0 ; +0x2f4, 0x180035374 mov rcx, [rdi+170h] ; +0x2f9, 0x180035379 mov edx, 0FFFFFFFFh ; +0x300, 0x180035380 lea r8d, [rdx+2] ; +0x305, 0x180035385 call sub_1800B3990 ; +0x309, 0x180035389 cmp [rsp+260h+var_21C], 0Ah ; +0x30e, 0x18003538e jz short loc_180035330 ; +0x313, 0x180035393 cmp rbx, 200h ; +0x315, 0x180035395 jnb loc_1800354FE ; +0x31c, 0x18003539c lea eax, [rsi+1] ; +0x322, 0x1800353a2 mov [rsp+260h+var_230], 0 ; +0x325, 0x1800353a5 mov [rsp+260h+var_238], 3 ; +0x32a, 0x1800353aa lea r9, [rsp+260h+var_210] ; +0x332, 0x1800353b2 lea r8, aTitle; "TITLE" ; +0x337, 0x1800353b7 mov [rsp+260h+var_240], eax ; +0x33e, 0x1800353be mov edx, 8 ; +0x342, 0x1800353c2 mov [rsp+rbx+260h+var_210], 0 ; +0x347, 0x1800353c7 mov rcx, rdi ; +0x34c, 0x1800353cc call sub_180012590 ; +0x34f, 0x1800353cf mov rcx, [rdi+170h] ; +0x354, 0x1800353d4 lea rdx, [rsp+260h+var_21B] ; +0x35b, 0x1800353db call sub_1800B2CB0 ; +0x360, 0x1800353e0 test eax, eax ; +0x365, 0x1800353e5 jnz loc_1800354C5 ; +0x367, 0x1800353e7 movzx eax, [rsp+260h+var_21B] ; +0x36d, 0x1800353ed cmp al, 20h ; ' ' ; +0x372, 0x1800353f2 jz short loc_1800353D4 ; +0x374, 0x1800353f4 cmp al, 9 ; +0x376, 0x1800353f6 jz short loc_1800353D4 ; +0x378, 0x1800353f8 cmp al, 0Ah ; +0x37a, 0x1800353fa jz short loc_1800353D4 ; +0x37c, 0x1800353fc cmp al, 0Dh ; +0x37e, 0x1800353fe jz short loc_1800353D4 ; +0x380, 0x180035400 mov rcx, [rdi+170h] ; +0x382, 0x180035402 mov edx, 0FFFFFFFFh ; +0x389, 0x180035409 lea r8d, [rdx+2] ; +0x38e, 0x18003540e call sub_1800B3990 ; +0x392, 0x180035412 test eax, eax ; +0x397, 0x180035417 jnz loc_1800354C5 ; +0x399, 0x180035419 xor esi, esi ; +0x39f, 0x18003541f xor ebx, ebx ; +0x3a1, 0x180035421 mov rcx, [rdi+170h] ; +0x3a3, 0x180035423 lea rdx, [rsp+260h+var_220] ; +0x3aa, 0x18003542a call sub_1800B2CB0 ; +0x3af, 0x18003542f test eax, eax ; +0x3b4, 0x180035434 jnz short loc_180035488 ; +0x3b6, 0x180035436 movzx eax, [rsp+260h+var_220] ; +0x3b8, 0x180035438 cmp al, 0Ah ; +0x3bd, 0x18003543d jz short loc_180035488 ; +0x3bf, 0x18003543f cmp al, 0Dh ; +0x3c1, 0x180035441 jz short loc_18003545B ; +0x3c3, 0x180035443 cmp rbx, 1FFh ; +0x3c5, 0x180035445 jge short loc_180035457 ; +0x3cc, 0x18003544c inc esi ; +0x3ce, 0x18003544e mov [rsp+rbx+260h+var_210], al ; +0x3d0, 0x180035450 inc rbx ; +0x3d4, 0x180035454 cmp al, 0Dh ; +0x3d7, 0x180035457 jnz short loc_180035423 ; +0x3d9, 0x180035459 mov rcx, [rdi+170h] ; +0x3db, 0x18003545b lea rdx, [rsp+260h+var_21A] ; +0x3e2, 0x180035462 call sub_1800B2CB0 ; +0x3e7, 0x180035467 mov rcx, [rdi+170h] ; +0x3ec, 0x18003546c mov edx, 0FFFFFFFFh ; +0x3f3, 0x180035473 lea r8d, [rdx+2] ; +0x3f8, 0x180035478 call sub_1800B3990 ; +0x3fc, 0x18003547c cmp [rsp+260h+var_21A], 0Ah ; +0x401, 0x180035481 jz short loc_180035423 ; +0x406, 0x180035486 cmp rbx, 200h ; +0x408, 0x180035488 jnb short loc_1800354FE ; +0x40f, 0x18003548f mov [rsp+260h+var_230], 0 ; +0x411, 0x180035491 lea r9, [rsp+260h+var_210] ; +0x416, 0x180035496 mov [rsp+260h+var_238], 3 ; +0x41b, 0x18003549b lea r8, aFile; "FILE" ; +0x423, 0x1800354a3 mov edx, 8 ; +0x42a, 0x1800354aa mov [rsp+260h+var_240], esi ; +0x42f, 0x1800354af mov rcx, rdi ; +0x433, 0x1800354b3 mov [rsp+rbx+260h+var_210], 0 ; +0x436, 0x1800354b6 call sub_180012590 ; +0x43b, 0x1800354bb jmp loc_180035170 ; +0x440, 0x1800354c0 xor eax, eax ; +0x445, 0x1800354c5 jmp short loc_1800354CE ; +0x447, 0x1800354c7 mov eax, 13h ; +0x449, 0x1800354c9 mov rsi, [rsp+260h+arg_10] ; +0x44e, 0x1800354ce mov rbx, [rsp+260h+arg_8] ; +0x456, 0x1800354d6 mov rcx, [rbp+160h+var_10] ; +0x45e, 0x1800354de xor rcx, rsp; StackCookie ; +0x465, 0x1800354e5 call __security_check_cookie ; +0x468, 0x1800354e8 mov rdi, [rsp+260h+arg_18] ; +0x46d, 0x1800354ed add rsp, 260h ; +0x475, 0x1800354f5 pop rbp ; +0x47c, 0x1800354fc retn ; +0x47d, 0x1800354fd call __report_rangecheckfailure ; +0x47e, 0x1800354fe db 0CCh ; +0x483, 0x180035503