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 [0x140008660], r12
test ebx, ebx
je 0x1400015c0
cmp dword [0x140008658], r12d
je 0x1400015cb
mov edi, dword [0x140008634]
mov r14, qword [0x140008620]
jmp 0x140001615
mov ebx, 1
mov dword [0x140008034], ebx
lea rcx, str.POSIXLY_CORRECT
mov dword [0x140008638], ebx
mov dword [0x140008630], ebx
mov qword [0x140008628], 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 [0x140008620], rax
mov r14, rax
mov dword [0x140008658], 1
sete dil
mov dword [0x140008634], edi
mov rsi, qword [0x140008628]
test rsi, rsi
je 0x14000162a
cmp byte [rsi], r12b
jne 0x140001729
mov edx, dword [0x140008638]
cmp edx, ebx
mov ecx, dword [0x140008630]
cmovg edx, ebx
cmp ecx, ebx
mov dword [0x140008638], edx
cmovg ecx, ebx
mov dword [0x140008630], 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 [0x140008630]
jmp 0x140001674
cmp edx, ebx
cmovne ecx, ebx
mov dword [0x140008630], 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 [0x140008638], 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 [0x140008630]
jmp 0x1400016f0
mov ecx, ebx
mov dword [0x140008630], ebx
mov edx, ebp
mov ebx, ebp
mov dword [0x140008638], edx
cmp ecx, edx
cmovne ebx, ecx
mov dword [0x140008034], ebx
mov rax, 0xffffffffffffffff
jmp 0x14000194d
cmp byte [r8], 0x2d
jne 0x140001ab1
cmp byte [r8 + 1], r12b
lea rsi, [r8 + 1]
je 0x140001ab1
movsx edx, byte [rsi]
lea rax, str.hukln:p:s:d:x:
inc rsi
mov cl, 0x68
mov qword [0x140008628], rsi
nop
cmp cl, dl
je 0x140001752
movzx ecx, byte [rax + 1]
inc rax
test cl, cl
jne 0x140001740
mov rax, r12
movzx ecx, byte [rsi]
test cl, cl
jne 0x140001761
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 0x1400017c7
cmp ebx, ebp
jne 0x1400017c0
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 0x140001943
movsxd rax, ebx
mov rsi, qword [r15 + rax*8]
movzx eax, byte [rsi]
inc ebx
mov qword [0x140008660], rsi
mov r9, rsi
mov dword [0x140008034], ebx
mov qword [0x140008628], rsi
test al, al
je 0x1400017f6
cmp al, 0x3d
je 0x1400017f6
movzx eax, byte [rsi + 1]
inc rsi
test al, al
jne 0x1400017e7
xor ebx, ebx
mov rax, qword [rbx]
test rax, rax
je 0x1400019ce
lea rdi, [rbx - 1]
nop dword [rax + rax]
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 [0x140008628]
test eax, eax
jne 0x140001856
mov rax, qword [rbx]
mov rcx, rdi
inc rcx
cmp byte [rax + rcx], r13b
jne 0x140001833
mov eax, esi
sub eax, r9d
cmp rax, rcx
je 0x140001865
test r14, r14
jne 0x140001850
mov r14, rbx
jmp 0x140001856
mov r12d, 1
mov rax, qword [rbx + 0x20]
add rbx, 0x20
test rax, rax
jne 0x140001810
jmp 0x14000186e
mov r14, rbx
mov r13d, 1
test r12d, r12d
je 0x1400018bd
test r13d, r13d
jne 0x1400018bd
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 [0x140008628]
inc rdi
cmp byte [rax + rdi], 0
jne 0x1400018a6
add rax, rdi
inc dword [0x140008034]
jmp 0x14000193c
test r14, r14
je 0x1400019ce
cmp byte [rsi], 0
mov eax, dword [r14 + 8]
je 0x140001964
test eax, eax
je 0x140001909
lea rax, [rsi + 1]
mov qword [0x140008660], rax
inc rdi
cmp byte [r9 + rdi], 0
jne 0x1400018e2
mov rcx, qword [r14 + 0x10]
add r9, rdi
mov eax, dword [r14 + 0x18]
mov qword [0x140008628], r9
test rcx, rcx
je 0x140001948
mov dword [rcx], eax
xor eax, eax
jmp 0x140001948
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 [0x140008628]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140001930
add rax, rdi
mov qword [0x140008628], 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 0x1400018e2
movsxd rdx, dword [0x140008034]
cmp edx, ebp
jge 0x140001990
mov rcx, qword [r15 + rdx*8]
inc edx
mov dword [0x140008034], edx
mov qword [0x140008660], rcx
jmp 0x1400018e2
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 [0x140008628]
nop
inc rdi
cmp byte [rax + rdi], 0
jne 0x1400019c0
jmp 0x140001939
mov qword [0x140008628], 0
mov eax, 0x57
jmp 0x140001948
cmp byte [rax + 1], 0x3a
jne 0x140001a6e
cmp byte [rax + 2], 0x3a
jne 0x140001a0d
test cl, cl
jne 0x140001a11
mov qword [0x140008660], r12
mov qword [0x140008628], r12
movsx eax, dl
jmp 0x14000194d
test cl, cl
je 0x140001a1a
mov qword [0x140008660], 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 [0x140008628], r12
movsx eax, dl
jmp 0x14000194d
movsxd rax, ebx
mov rcx, qword [r15 + rax*8]
mov qword [0x140008660], rcx
inc ebx
mov qword [0x140008628], r12
mov dword [0x140008034], ebx
movsx eax, dl
jmp 0x14000194d
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 0x14000194d
test edi, edi
je 0x140001705
inc ebx
mov qword [0x140008660], r8
mov dword [0x140008034], ebx
mov eax, 1
jmp 0x14000194d