Function at 0x1400015c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x20
mov r15, rdx
mov ebp, ecx
cmp ecx, 1
jl 0x140001758
mov ebx, dword [0x140007074]
xor r12d, r12d
mov qword [0x1400076a0], r12
test ebx, ebx
je 0x14000160a
cmp dword [0x140007698], r12d
je 0x140001615
mov edi, dword [0x140007674]
mov rsi, qword [0x140007660]
jmp 0x14000165f
mov ebx, 1
mov dword [0x140007074], ebx
lea rcx, str.POSIXLY_CORRECT
mov dword [0x140007678], ebx
mov dword [0x140007670], ebx
mov qword [0x140007668], r12
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov ebx, dword [0x140007074]
mov edi, r12d
test rax, rax
mov qword [0x140007660], rax
mov rsi, rax
mov dword [0x140007698], 1
sete dil
mov dword [0x140007674], edi
mov rdx, qword [0x140007668]
test rdx, rdx
je 0x140001674
cmp byte [rdx], r12b
jne 0x140001788
mov ecx, dword [0x140007678]
cmp ecx, ebx
jle 0x140001686
mov ecx, ebx
mov dword [0x140007678], ebx
mov edx, dword [0x140007670]
cmp edx, ebx
jle 0x140001698
mov edx, ebx
mov dword [0x140007670], ebx
cmp edi, 1
jne 0x1400016f6
cmp edx, ecx
je 0x1400016b5
cmp ecx, ebx
je 0x1400016c1
mov rcx, r15
call fcn.1400014b0
mov edx, dword [0x140007670]
jmp 0x1400016c1
cmp ecx, ebx
je 0x1400016c1
mov edx, ebx
mov dword [0x140007670], ebx
cmp ebx, ebp
jge 0x1400016ee
nop word [rax + rax]
movsxd rax, ebx
mov rcx, qword [r15 + rax*8]
cmp byte [rcx], 0x2d
jne 0x1400016e2
cmp byte [rcx + 1], r12b
jne 0x1400016e8
inc ebx
cmp ebx, ebp
jl 0x1400016d0
mov dword [0x140007074], ebx
mov ecx, ebx
mov dword [0x140007678], ebx
cmp ebx, ebp
je 0x14000174e
movsxd rax, ebx
mov r8, qword [r15 + rax*8]
cmp byte [r8], 0x2d
jne 0x140001b42
cmp byte [r8 + 1], 0x2d
jne 0x140001770
cmp byte [r8 + 2], r12b
jne 0x140001770
inc ebx
mov dword [0x140007074], ebx
cmp edx, ecx
je 0x140001738
cmp ecx, ebx
je 0x140001740
mov rcx, r15
call fcn.1400014b0
mov edx, dword [0x140007670]
jmp 0x140001740
mov edx, ebx
mov dword [0x140007670], ebx
mov ecx, ebp
mov dword [0x140007074], ebp
mov dword [0x140007678], ecx
cmp edx, ecx
je 0x140001758
mov dword [0x140007074], edx
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp byte [r8], 0x2d
jne 0x140001b42
cmp byte [r8 + 1], r12b
lea rdx, [r8 + 1]
je 0x140001b42
movsx edi, byte [rdx]
lea rax, str.hukln:p:s:d:x:
inc rdx
mov cl, 0x68
mov qword [0x140007668], rdx
nop
cmp cl, dil
je 0x1400017b3
movzx ecx, byte [rax + 1]
inc rax
test cl, cl
jne 0x1400017a0
mov rax, r12
movzx ecx, byte [rdx]
test cl, cl
jne 0x1400017c2
inc ebx
mov dword [0x140007074], ebx
test rax, rax
je 0x140001afd
cmp dil, 0x3a
je 0x140001afd
cmp byte [rax], 0x57
jne 0x140001a44
cmp byte [rax + 1], 0x3b
jne 0x140001a44
mov qword [rsp + 0x50], r13
mov r13d, r12d
mov qword [rsp + 0x58], r14
mov r14, r12
test cl, cl
jne 0x14000182c
cmp ebx, ebp
jne 0x140001825
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [r15]
lea rdx, str._s:_option_requires_an_argument_____c_n
mov rcx, rax
mov r9d, edi
call fcn.140001460
jmp 0x1400019a3
movsxd rax, ebx
mov rdx, qword [r15 + rax*8]
movzx eax, byte [rdx]
inc ebx
mov qword [0x1400076a0], rdx
mov rsi, rdx
mov dword [0x140007074], ebx
mov qword [0x140007668], rdx
test al, al
je 0x14000185f
nop dword [rax]
cmp al, 0x3d
je 0x14000185f
movzx eax, byte [rsi + 1]
inc rsi
test al, al
jne 0x140001850
xor ebx, ebx
cmp qword [rbx], rbx
je 0x140001a2f
lea rdi, [rbx - 1]
nop
mov rcx, qword [rbx]
mov r8, rsi
sub r8, rdx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
mov rdx, qword [0x140007668]
test eax, eax
jne 0x1400018b2
mov rax, qword [rbx]
mov rcx, rdi
inc rcx
cmp byte [rax + rcx], r13b
jne 0x140001890
mov eax, esi
sub eax, edx
cmp rax, rcx
je 0x1400018bd
test r14, r14
jne 0x1400018ac
mov r14, rbx
jmp 0x1400018b2
mov r12d, 1
add rbx, 0x20
cmp qword [rbx], r13
jne 0x140001870
jmp 0x1400018c6
mov r14, rbx
mov r13d, 1
test r12d, r12d
je 0x140001917
test r13d, r13d
jne 0x140001917
movsxd rbx, dword [0x140007074]
lea ecx, [r13 + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [r15 + rbx*8]
lea rdx, str._s:_option___W__s_is_ambiguous_n
mov r8, qword [r15]
mov rcx, rax
call fcn.140001460
mov rax, qword [0x140007668]
nop
inc rdi
cmp byte [rax + rdi], 0
jne 0x140001900
add rax, rdi
inc dword [0x140007074]
jmp 0x14000199c
test r14, r14
je 0x140001a2f
cmp byte [rsi], 0
mov eax, dword [r14 + 8]
je 0x1400019c3
test eax, eax
je 0x140001966
lea rax, [rsi + 1]
mov qword [0x1400076a0], rax
nop dword [rax]
inc rdi
cmp byte [rdx + rdi], 0
jne 0x140001940
mov rcx, qword [r14 + 0x10]
add rdx, rdi
mov eax, dword [r14 + 0x18]
mov qword [0x140007668], rdx
test rcx, rcx
je 0x1400019a8
mov dword [rcx], eax
xor eax, eax
jmp 0x1400019a8
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [r14]
lea rdx, str._t_t_t_t_t_t_t_t_t_t_t___s:_option___W__s_doesnt_allow_an_argument_n
mov r8, qword [r15]
mov rcx, rax
call fcn.140001460
mov rax, qword [0x140007668]
nop dword [rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140001990
add rax, rdi
mov qword [0x140007668], rax
mov eax, 0x3f
mov r13, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp eax, 1
jne 0x140001940
movsxd r8, dword [0x140007074]
cmp r8d, ebp
jge 0x1400019f2
mov rcx, qword [r15 + r8*8]
inc r8d
mov dword [0x140007074], r8d
mov qword [0x1400076a0], rcx
jmp 0x140001940
lea eax, [r8 - 1]
mov ecx, 2
movsxd rbx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [r15 + rbx*8]
lea rdx, str._s:_option___s_requires_an_argument_n
mov r8, qword [r15]
mov rcx, rax
call fcn.140001460
mov rax, qword [0x140007668]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140001a21
jmp 0x140001999
mov qword [0x140007668], 0
mov eax, 0x57
jmp 0x1400019a8
cmp byte [rax + 1], 0x3a
jne 0x140001ae8
cmp byte [rax + 2], 0x3a
jne 0x140001a7b
test cl, cl
jne 0x140001a7f
mov qword [0x1400076a0], r12
mov qword [0x140007668], r12
movsx eax, dil
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
test cl, cl
je 0x140001a88
mov qword [0x1400076a0], rdx
jmp 0x140001ad9
cmp ebx, ebp
jne 0x140001acb
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [r15]
lea rdx, str._s:_option_requires_an_argument_____c_n
mov rcx, rax
mov r9d, edi
call fcn.140001460
mov dil, 0x3f
mov qword [0x140007668], r12
movsx eax, dil
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
movsxd rax, ebx
mov rcx, qword [r15 + rax*8]
mov qword [0x1400076a0], rcx
inc ebx
mov qword [0x140007668], r12
mov dword [0x140007074], ebx
movsx eax, dil
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [r15]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._s:_illegal_option_____c_n
test rsi, rsi
jne 0x140001b1e
lea rdx, str._s:_invalid_option_____c_n
mov r9d, edi
mov r8, rbx
mov rcx, rax
call fcn.140001460
mov eax, 0x3f
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
test edi, edi
je 0x140001758
inc ebx
mov qword [0x1400076a0], r8
mov dword [0x140007074], ebx
mov eax, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret