; ; parse_command_line from 0x180131a8c to 0x180131c4b (447 bytes) ; ; 3 xrefs: ; > _configure_narrow_argv @ 0x180131d3e ; > _configure_narrow_argv @ 0x180131d90 ; > @ 0x180202f3c ; ; 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 rax, rsp ; +0x0, 0x180131a8c mov [rax+8], rbx ; +0x3, 0x180131a8f mov [rax+10h], rbp ; +0x7, 0x180131a93 mov [rax+18h], rsi ; +0xb, 0x180131a97 mov [rax+20h], rdi ; +0xf, 0x180131a9b push r12 ; +0x13, 0x180131a9f push r14 ; +0x15, 0x180131aa1 push r15 ; +0x17, 0x180131aa3 sub rsp, 20h ; +0x19, 0x180131aa5 mov r15, [rsp+38h+arg_20] ; +0x1d, 0x180131aa9 mov r12, r9 ; +0x22, 0x180131aae mov rbx, r8 ; +0x25, 0x180131ab1 mov r14, rdx ; +0x28, 0x180131ab4 mov rdi, rcx ; +0x2b, 0x180131ab7 and qword ptr [r15], 0 ; +0x2e, 0x180131aba mov qword ptr [r9], 1 ; +0x32, 0x180131abe test rdx, rdx ; +0x39, 0x180131ac5 jz short loc_180131AD1 ; +0x3c, 0x180131ac8 mov [rdx], rbx ; +0x3e, 0x180131aca add r14, 8 ; +0x41, 0x180131acd xor bpl, bpl ; +0x45, 0x180131ad1 cmp byte ptr [rdi], 22h ; '"' ; +0x48, 0x180131ad4 jnz short loc_180131AE8 ; +0x4b, 0x180131ad7 test bpl, bpl ; +0x4d, 0x180131ad9 mov sil, 22h ; '"' ; +0x50, 0x180131adc setz bpl ; +0x53, 0x180131adf inc rdi ; +0x57, 0x180131ae3 jmp short loc_180131B1F ; +0x5a, 0x180131ae6 inc qword ptr [r15] ; +0x5c, 0x180131ae8 test rbx, rbx ; +0x5f, 0x180131aeb jz short loc_180131AF7 ; +0x62, 0x180131aee mov al, [rdi] ; +0x64, 0x180131af0 mov [rbx], al ; +0x66, 0x180131af2 inc rbx ; +0x68, 0x180131af4 movsx esi, byte ptr [rdi] ; +0x6b, 0x180131af7 inc rdi ; +0x6e, 0x180131afa mov ecx, esi; Ch ; +0x71, 0x180131afd call _ismbblead ; +0x73, 0x180131aff test eax, eax ; +0x78, 0x180131b04 jz short loc_180131B1A ; +0x7a, 0x180131b06 inc qword ptr [r15] ; +0x7c, 0x180131b08 test rbx, rbx ; +0x7f, 0x180131b0b jz short loc_180131B17 ; +0x82, 0x180131b0e mov al, [rdi] ; +0x84, 0x180131b10 mov [rbx], al ; +0x86, 0x180131b12 inc rbx ; +0x88, 0x180131b14 inc rdi ; +0x8b, 0x180131b17 test sil, sil ; +0x8e, 0x180131b1a jz short loc_180131B3B ; +0x91, 0x180131b1d test bpl, bpl ; +0x93, 0x180131b1f jnz short loc_180131AD4 ; +0x96, 0x180131b22 cmp sil, 20h ; ' ' ; +0x98, 0x180131b24 jz short loc_180131B30 ; +0x9c, 0x180131b28 cmp sil, 9 ; +0x9e, 0x180131b2a jnz short loc_180131AD4 ; +0xa2, 0x180131b2e test rbx, rbx ; +0xa4, 0x180131b30 jz short loc_180131B3E ; +0xa7, 0x180131b33 mov byte ptr [rbx-1], 0 ; +0xa9, 0x180131b35 jmp short loc_180131B3E ; +0xad, 0x180131b39 dec rdi ; +0xaf, 0x180131b3b xor sil, sil ; +0xb2, 0x180131b3e mov al, [rdi] ; +0xb5, 0x180131b41 test al, al ; +0xb7, 0x180131b43 jz loc_180131C1F ; +0xb9, 0x180131b45 cmp al, 20h ; ' ' ; +0xbf, 0x180131b4b jz short loc_180131B53 ; +0xc1, 0x180131b4d cmp al, 9 ; +0xc3, 0x180131b4f jnz short loc_180131B5A ; +0xc5, 0x180131b51 inc rdi ; +0xc7, 0x180131b53 mov al, [rdi] ; +0xca, 0x180131b56 jmp short loc_180131B4B ; +0xcc, 0x180131b58 test al, al ; +0xce, 0x180131b5a jz loc_180131C1F ; +0xd0, 0x180131b5c test r14, r14 ; +0xd6, 0x180131b62 jz short loc_180131B6E ; +0xd9, 0x180131b65 mov [r14], rbx ; +0xdb, 0x180131b67 add r14, 8 ; +0xde, 0x180131b6a inc qword ptr [r12] ; +0xe2, 0x180131b6e mov edx, 1 ; +0xe6, 0x180131b72 xor eax, eax ; +0xeb, 0x180131b77 jmp short loc_180131B80 ; +0xed, 0x180131b79 inc rdi ; +0xef, 0x180131b7b inc eax ; +0xf2, 0x180131b7e mov cl, [rdi] ; +0xf4, 0x180131b80 cmp cl, 5Ch ; '\' ; +0xf6, 0x180131b82 jz short loc_180131B7B ; +0xf9, 0x180131b85 cmp cl, 22h ; '"' ; +0xfb, 0x180131b87 jnz short loc_180131BBC ; +0xfe, 0x180131b8a test dl, al ; +0x100, 0x180131b8c jnz short loc_180131BA8 ; +0x102, 0x180131b8e test sil, sil ; +0x104, 0x180131b90 jz short loc_180131B9F ; +0x107, 0x180131b93 cmp [rdi+1], cl ; +0x109, 0x180131b95 jnz short loc_180131B9F ; +0x10c, 0x180131b98 inc rdi ; +0x10e, 0x180131b9a jmp short loc_180131BA8 ; +0x111, 0x180131b9d xor edx, edx ; +0x113, 0x180131b9f test sil, sil ; +0x115, 0x180131ba1 setz sil ; +0x118, 0x180131ba4 shr eax, 1 ; +0x11c, 0x180131ba8 jmp short loc_180131BBC ; +0x11e, 0x180131baa dec eax ; +0x120, 0x180131bac test rbx, rbx ; +0x122, 0x180131bae jz short loc_180131BB9 ; +0x125, 0x180131bb1 mov byte ptr [rbx], 5Ch ; '\' ; +0x127, 0x180131bb3 inc rbx ; +0x12a, 0x180131bb6 inc qword ptr [r15] ; +0x12d, 0x180131bb9 test eax, eax ; +0x130, 0x180131bbc jnz short loc_180131BAC ; +0x132, 0x180131bbe mov al, [rdi] ; +0x134, 0x180131bc0 test al, al ; +0x136, 0x180131bc2 jz short loc_180131C0C ; +0x138, 0x180131bc4 test sil, sil ; +0x13a, 0x180131bc6 jnz short loc_180131BD3 ; +0x13d, 0x180131bc9 cmp al, 20h ; ' ' ; +0x13f, 0x180131bcb jz short loc_180131C0C ; +0x141, 0x180131bcd cmp al, 9 ; +0x143, 0x180131bcf jz short loc_180131C0C ; +0x145, 0x180131bd1 test edx, edx ; +0x147, 0x180131bd3 jz short loc_180131C04 ; +0x149, 0x180131bd5 test rbx, rbx ; +0x14b, 0x180131bd7 jz short loc_180131BE3 ; +0x14e, 0x180131bda mov [rbx], al ; +0x150, 0x180131bdc inc rbx ; +0x152, 0x180131bde mov al, [rdi] ; +0x155, 0x180131be1 movsx ecx, al; Ch ; +0x157, 0x180131be3 call _ismbblead ; +0x15a, 0x180131be6 test eax, eax ; +0x15f, 0x180131beb jz short loc_180131C01 ; +0x161, 0x180131bed inc qword ptr [r15] ; +0x163, 0x180131bef inc rdi ; +0x166, 0x180131bf2 test rbx, rbx ; +0x169, 0x180131bf5 jz short loc_180131C01 ; +0x16c, 0x180131bf8 mov al, [rdi] ; +0x16e, 0x180131bfa mov [rbx], al ; +0x170, 0x180131bfc inc rbx ; +0x172, 0x180131bfe inc qword ptr [r15] ; +0x175, 0x180131c01 inc rdi ; +0x178, 0x180131c04 jmp loc_180131B72 ; +0x17b, 0x180131c07 test rbx, rbx ; +0x180, 0x180131c0c jz short loc_180131C17 ; +0x183, 0x180131c0f mov byte ptr [rbx], 0 ; +0x185, 0x180131c11 inc rbx ; +0x188, 0x180131c14 inc qword ptr [r15] ; +0x18b, 0x180131c17 jmp loc_180131B41 ; +0x18e, 0x180131c1a test r14, r14 ; +0x193, 0x180131c1f jz short loc_180131C28 ; +0x196, 0x180131c22 and qword ptr [r14], 0 ; +0x198, 0x180131c24 inc qword ptr [r12] ; +0x19c, 0x180131c28 mov rbx, [rsp+38h+arg_0] ; +0x1a0, 0x180131c2c mov rbp, [rsp+38h+arg_8] ; +0x1a5, 0x180131c31 mov rsi, [rsp+38h+arg_10] ; +0x1aa, 0x180131c36 mov rdi, [rsp+38h+arg_18] ; +0x1af, 0x180131c3b add rsp, 20h ; +0x1b4, 0x180131c40 pop r15 ; +0x1b8, 0x180131c44 pop r14 ; +0x1ba, 0x180131c46 pop r12 ; +0x1bc, 0x180131c48 retn ; +0x1be, 0x180131c4a