Function at 0x140001570
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r15, rdx
mov ebp, ecx
cmp ecx, 1
jl 0x140001705
mov ebx, dword [0x140008034]
xor r12d, r12d
mov qword [0x140008670], r12
test ebx, ebx
je 0x1400015c0
cmp dword [0x140008668], r12d
je 0x1400015cb
mov edi, dword [0x140008644]
mov r14, qword [0x140008630]
jmp 0x140001615
mov ebx, 1
mov dword [0x140008034], ebx
lea rcx, str.POSIXLY_CORRECT
mov dword [0x140008648], ebx
mov dword [0x140008640], ebx
mov qword [0x140008638], r12
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov ebx, dword [0x140008034]
mov edi, r12d
test rax, rax
mov qword [0x140008630], rax
mov r14, rax
mov dword [0x140008668], 1
sete dil
mov dword [0x140008644], edi
mov rsi, qword [0x140008638]
test rsi, rsi
je 0x14000162a
cmp byte [rsi], r12b
jne 0x140001730
mov edx, dword [0x140008648]
cmp edx, ebx
mov ecx, dword [0x140008640]
cmovg edx, ebx
cmp ecx, ebx
mov dword [0x140008648], edx
cmovg ecx, ebx
mov dword [0x140008640], ecx
cmp edi, 1
jne 0x1400016a6
cmp ecx, edx
je 0x140001669
cmp edx, ebx
je 0x140001674
mov rcx, r15
call fcn.140001460
mov ecx, dword [0x140008640]
jmp 0x140001674
cmp edx, ebx
cmovne ecx, ebx
mov dword [0x140008640], ecx
cmp ebx, ebp
jge 0x14000169e
nop dword [rax + rax]
movsxd rax, ebx
mov rdx, qword [r15 + rax*8]
cmp byte [rdx], 0x2d
jne 0x140001692
cmp byte [rdx + 1], r12b
jne 0x14000169e
inc ebx
mov dword [0x140008034], ebx
cmp ebx, ebp
jl 0x140001680
mov edx, ebx
mov dword [0x140008648], ebx
cmp ebx, ebp
je 0x1400016fa
movsxd rax, ebx
mov r8, qword [r15 + rax*8]
cmp byte [r8], 0x2d
jne 0x140001ab1
cmp byte [r8 + 1], 0x2d
jne 0x140001711
cmp byte [r8 + 2], r12b
jne 0x140001711
inc ebx
mov dword [0x140008034], ebx
cmp ecx, edx
je 0x1400016e8
cmp edx, ebx
je 0x1400016f0
mov rcx, r15
call fcn.140001460
mov ecx, dword [0x140008640]
jmp 0x1400016f0
mov ecx, ebx
mov dword [0x140008640], ebx
mov edx, ebp
mov ebx, ebp
mov dword [0x140008648], edx
cmp ecx, edx
cmovne ebx, ecx
mov dword [0x140008034], ebx
mov rax, 0xffffffffffffffff
jmp 0x14000194e
cmp byte [r8], 0x2d
jne 0x140001ab1
cmp byte [r8 + 1], r12b
lea rsi, [r8 + 1]
je 0x140001ab1
nop dword [rax]
movsx edx, byte [rsi]
lea rax, str.hukln:p:s:d:x:
inc rsi
mov cl, 0x68
mov qword [0x140008638], rsi
cmp cl, dl
je 0x140001758
movzx ecx, byte [rax + 1]
inc rax
test cl, cl
jne 0x140001746
mov rax, r12
movzx ecx, byte [rsi]
test cl, cl
jne 0x140001767
inc ebx
mov dword [0x140008034], ebx
test rax, rax
je 0x140001a76
cmp dl, 0x3a
je 0x140001a76
cmp byte [rax], 0x57
jne 0x1400019e3
cmp byte [rax + 1], 0x3b
jne 0x1400019e3
mov qword [rsp + 0x50], r13
mov r13d, r12d
mov r14, r12
test cl, cl
jne 0x1400017cd
cmp ebx, ebp
jne 0x1400017c6
mov ecx, 2
mov ebx, edx
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, ebx
call fcn.140001410
jmp 0x140001944
movsxd rax, ebx
mov rsi, qword [r15 + rax*8]
movzx eax, byte [rsi]
inc ebx
mov qword [0x140008670], rsi
mov r9, rsi
mov dword [0x140008034], ebx
mov qword [0x140008638], rsi
test al, al
je 0x1400017ff
nop dword [rax]
cmp al, 0x3d
je 0x1400017ff
movzx eax, byte [rsi + 1]
inc rsi
test al, al
jne 0x1400017f0
xor ebx, ebx
mov rax, qword [rbx]
test rax, rax
je 0x1400019ce
lea rdi, [rbx - 1]
mov r8, rsi
mov rdx, r9
sub r8, r9
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
mov r9, qword [0x140008638]
test eax, eax
jne 0x140001857
mov rax, qword [rbx]
mov rcx, rdi
inc rcx
cmp byte [rax + rcx], r13b
jne 0x140001834
mov eax, esi
sub eax, r9d
cmp rax, rcx
je 0x140001866
test r14, r14
jne 0x140001851
mov r14, rbx
jmp 0x140001857
mov r12d, 1
mov rax, qword [rbx + 0x20]
add rbx, 0x20
test rax, rax
jne 0x140001811
jmp 0x14000186f
mov r14, rbx
mov r13d, 1
test r12d, r12d
je 0x1400018be
test r13d, r13d
jne 0x1400018be
movsxd rbx, dword [0x140008034]
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.140001410
mov rax, qword [0x140008638]
inc rdi
cmp byte [rax + rdi], 0
jne 0x1400018a7
add rax, rdi
inc dword [0x140008034]
jmp 0x14000193d
test r14, r14
je 0x1400019ce
cmp byte [rsi], 0
mov eax, dword [r14 + 8]
je 0x140001965
test eax, eax
je 0x14000190a
lea rax, [rsi + 1]
mov qword [0x140008670], rax
inc rdi
cmp byte [r9 + rdi], 0
jne 0x1400018e3
mov rcx, qword [r14 + 0x10]
add r9, rdi
mov eax, dword [r14 + 0x18]
mov qword [0x140008638], r9
test rcx, rcx
je 0x140001949
mov dword [rcx], eax
xor eax, eax
jmp 0x140001949
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.140001410
mov rax, qword [0x140008638]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140001931
add rax, rdi
mov qword [0x140008638], rax
mov eax, 0x3f
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
cmp eax, 1
jne 0x1400018e3
movsxd rdx, dword [0x140008034]
cmp edx, ebp
jge 0x140001991
mov rcx, qword [r15 + rdx*8]
inc edx
mov dword [0x140008034], edx
mov qword [0x140008670], rcx
jmp 0x1400018e3
lea eax, [rdx - 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.140001410
mov rax, qword [0x140008638]
nop
inc rdi
cmp byte [rax + rdi], 0
jne 0x1400019c0
jmp 0x14000193a
mov qword [0x140008638], 0
mov eax, 0x57
jmp 0x140001949
cmp byte [rax + 1], 0x3a
jne 0x140001a6e
cmp byte [rax + 2], 0x3a
jne 0x140001a0d
test cl, cl
jne 0x140001a11
mov qword [0x140008670], r12
mov qword [0x140008638], r12
movsx eax, dl
jmp 0x14000194e
test cl, cl
je 0x140001a1a
mov qword [0x140008670], rsi
jmp 0x140001a5f
cmp ebx, ebp
jne 0x140001a51
mov ecx, 2
mov ebx, edx
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, ebx
call fcn.140001410
mov dl, 0x3f
mov qword [0x140008638], r12
movsx eax, dl
jmp 0x14000194e
movsxd rax, ebx
mov rcx, qword [r15 + rax*8]
mov qword [0x140008670], rcx
inc ebx
mov qword [0x140008638], r12
mov dword [0x140008034], ebx
movsx eax, dl
jmp 0x14000194e
mov rdi, qword [r15]
mov ecx, 2
mov ebx, edx
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 r14, r14
jne 0x140001a99
lea rdx, str._s:_invalid_option_____c_n
mov r9d, ebx
mov r8, rdi
mov rcx, rax
call fcn.140001410
mov eax, 0x3f
jmp 0x14000194e
test edi, edi
je 0x140001705
inc ebx
mov qword [0x140008670], r8
mov dword [0x140008034], ebx
mov eax, 1
jmp 0x14000194e