Function at 0x140060610
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov eax, dword [0x1400b5228]
mov qword [0x1401f3778], 0
test eax, eax
mov esi, ecx
mov r10, r8
mov r13, r9
jne 0x140060778
mov dword [0x1400b5228], 1
mov eax, 1
lea rcx, str.POSIXLY_CORRECT
mov qword [rsp + 0xb0], r10
mov qword [rsp + 0xa8], rdx
mov dword [0x1401f3780], eax
mov dword [0x1401f3784], eax
mov qword [0x1401f3798], 0
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov r10, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov qword [0x1401f3788], rax
movzx ecx, byte [r10]
cmp cl, 0x2d
je 0x140060830
test rax, rax
sete al
cmp cl, 0x2b
movzx eax, al
jne 0x140060839
mov dword [0x1401f3770], 1
xor eax, eax
add r10, 1
mov dword [0x1401f3790], eax
nop
mov r15, qword [0x1401f3798]
test r15, r15
je 0x140060790
movsx edi, byte [r15]
test dil, dil
je 0x140060790
test r13, r13
je 0x1400608d0
movsxd rax, dword [0x1400b5228]
mov r9, qword [rdx + rax*8]
mov rbp, rax
movzx ecx, byte [r9 + 1]
cmp cl, 0x2d
je 0x1400609d0
mov eax, dword [rsp + 0xc8]
test eax, eax
je 0x1400608d0
cmp byte [r9 + 2], 0
jne 0x1400609d0
movzx r8d, byte [r10]
test r8b, r8b
je 0x1400609d0
mov eax, r8d
mov rbx, r10
jmp 0x140060758
movzx eax, byte [rbx + 1]
add rbx, 1
test al, al
je 0x1400609d0
cmp al, cl
jne 0x140060748
lea r14, [r15 + 1]
movzx ecx, byte [r15 + 1]
mov qword [0x1401f3798], r14
jmp 0x1400608ed
mov ecx, dword [0x1401f3770]
test ecx, ecx
je 0x140060650
jmp 0x1400606d0
mov ebp, dword [0x1400b5228]
cmp dword [0x1401f3780], ebp
jle 0x1400607a4
mov dword [0x1401f3780], ebp
cmp ebp, dword [0x1401f3784]
jge 0x1400607b2
mov dword [0x1401f3784], ebp
mov ebx, dword [0x1401f3790]
cmp ebx, 1
je 0x140060850
cmp esi, ebp
je 0x140060878
movsxd rax, ebp
mov r9, qword [rdx + rax*8]
cmp byte [r9], 0x2d
jne 0x140060898
cmp byte [r9 + 1], 0x2d
jne 0x140060898
cmp byte [r9 + 2], 0
jne 0x140060898
mov eax, dword [0x1401f3784]
add ebp, 1
mov ecx, dword [0x1401f3780]
mov dword [0x1400b5228], ebp
cmp eax, ecx
je 0x140060e00
cmp ebp, ecx
je 0x14006081f
mov rcx, rdx
call fcn.1400604f0
mov eax, dword [0x1401f3784]
mov dword [0x1401f3780], esi
mov dword [0x1400b5228], esi
jmp 0x140060884
add r10, 1
mov eax, 2
mov dword [0x1401f3790], eax
mov dword [0x1401f3770], 1
jmp 0x1400606d0
mov eax, dword [0x1401f3780]
cmp dword [0x1401f3784], eax
je 0x140060ab0
cmp ebp, eax
jne 0x140060ac8
mov ecx, ebp
jmp 0x140060af6
mov eax, dword [0x1401f3784]
mov esi, dword [0x1401f3780]
cmp eax, esi
je 0x14006088e
mov dword [0x1400b5228], eax
mov edi, 0xffffffff
jmp 0x1400608bb
cmp byte [r9], 0x2d
je 0x140060990
test ebx, ebx
je 0x14006088e
add ebp, 1
mov qword [0x1401f3778], r9
mov edi, 1
mov dword [0x1400b5228], ebp
mov eax, edi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx r8d, byte [r10]
lea r14, [r15 + 1]
test r8b, r8b
movzx ecx, byte [r15 + 1]
mov qword [0x1401f3798], r14
je 0x140060b48
mov rax, r10
jmp 0x14006090a
movzx r8d, byte [rax + 1]
add rax, 1
test r8b, r8b
je 0x140060b48
cmp r8b, dil
jne 0x1400608f8
test rax, rax
sete r8b
cmp dil, 0x3a
sete r9b
or r8d, r9d
test cl, cl
jne 0x14006092c
add dword [0x1400b5228], 1
test r8b, r8b
jne 0x140060b53
cmp byte [rax], 0x57
movzx ecx, byte [rax + 1]
je 0x140060c00
cmp cl, 0x3a
jne 0x1400608bb
cmp byte [rax + 2], 0x3a
movzx ecx, byte [r15 + 1]
je 0x140060dda
test cl, cl
movsxd rax, dword [0x1400b5228]
je 0x140060ed8
add eax, 1
mov qword [0x1401f3778], r14
mov dword [0x1400b5228], eax
mov qword [0x1401f3798], 0
jmp 0x1400608bb
movzx ecx, byte [r9 + 1]
test cl, cl
je 0x1400608a2
test r13, r13
je 0x140060e50
cmp cl, 0x2d
je 0x1400609be
lea r15, [r9 + 1]
movsx edi, cl
mov qword [0x1401f3798], r15
jmp 0x140060712
movsx edi, byte [r9 + 2]
lea r15, [r9 + 2]
mov qword [0x1401f3798], r15
nop
test dil, dil
mov rax, r15
je 0x1400609f4
cmp dil, 0x3d
je 0x1400609f4
nop
movzx r8d, byte [rax + 1]
add rax, 1
test r8b, r8b
je 0x1400609f4
cmp r8b, 0x3d
jne 0x1400609e0
mov rbx, qword [r13]
test rbx, rbx
je 0x140060d90
mov r11, rax
xor r8d, r8d
mov r12, r13
mov byte [rsp + 0x38], dil
sub r11, r15
mov dword [rsp + 0x48], ebp
xor r14d, r14d
xor ebp, ebp
mov dword [rsp + 0xa0], esi
mov rdi, r11
mov rsi, r8
mov qword [rsp + 0xb8], r13
mov r13, rax
mov dword [rsp + 0x30], 0xffffffff
mov qword [rsp + 0x40], r9
mov byte [rsp + 0x4f], cl
mov qword [rsp + 0xa8], rdx
mov qword [rsp + 0xb0], r10
jmp 0x140060a7b
mov ebp, 1
mov rbx, qword [r12 + 0x20]
add r12, 0x20
add r14d, 1
test rbx, rbx
je 0x140060ba0
mov r8, rdi
mov rdx, r15
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x140060a65
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
cmp edi, eax
je 0x140060cf0
test rsi, rsi
jne 0x140060a60
mov dword [rsp + 0x30], r14d
mov rsi, r12
jmp 0x140060a65
cmp ebp, eax
je 0x14006086a
mov dword [0x1401f3784], ebp
mov ecx, ebp
jmp 0x140060af6
mov rcx, rdx
mov qword [rsp + 0xb0], r10
mov qword [rsp + 0xa8], rdx
call fcn.1400604f0
mov ecx, dword [0x1400b5228]
mov rdx, qword [rsp + 0xa8]
mov r10, qword [rsp + 0xb0]
cmp esi, ecx
jle 0x140060b40
movsxd rax, ecx
jmp 0x140060b11
add rax, 1
add ecx, 1
cmp esi, eax
mov dword [0x1400b5228], ecx
jle 0x140060b40
mov r8, qword [rdx + rax*8]
mov ecx, eax
cmp byte [r8], 0x2d
jne 0x140060b00
cmp byte [r8 + 1], 0
je 0x140060b00
mov ebp, dword [0x1400b5228]
cmp esi, ebp
mov dword [0x1401f3780], ecx
jne 0x1400607c9
jmp 0x140060878
mov ebp, ecx
jmp 0x140060b2a
test cl, cl
jne 0x140060b53
add dword [0x1400b5228], 1
mov ebx, dword [0x1400b5224]
test ebx, ebx
je 0x140060b8e
cmp qword [0x1401f3788], 0
mov ecx, 2
mov rbx, qword [rdx]
je 0x140061003
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, edi
mov r8, rbx
lea rdx, str._s:_illegal_option_____c_n
mov rcx, rax
call fcn.1400605e0
mov dword [0x1400b5220], edi
mov edi, 0x3f
jmp 0x1400608bb
mov ebx, ebp
mov r11, rsi
mov rax, r13
movsx edi, byte [rsp + 0x38]
test ebx, ebx
mov r9, qword [rsp + 0x40]
movzx ecx, byte [rsp + 0x4f]
mov ebp, dword [rsp + 0x48]
mov esi, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0xa8]
mov r10, qword [rsp + 0xb0]
mov r13, qword [rsp + 0xb8]
jne 0x140060e10
test r11, r11
mov r12, r11
je 0x140060d90
mov r14d, dword [rsp + 0x30]
jmp 0x140060d0e
cmp cl, 0x3b
jne 0x140060942
cmp byte [r15 + 1], 0
movsxd rax, dword [0x1400b5228]
je 0x140060fa4
add eax, 1
mov qword [0x1401f3778], r14
mov dword [0x1400b5228], eax
movzx eax, byte [r14]
mov qword [0x1401f3798], r14
mov rcx, r14
test al, al
jne 0x140060c4c
jmp 0x140060c50
movzx eax, byte [rcx + 1]
add rcx, 1
test al, al
je 0x140060c50
cmp al, 0x3d
jne 0x140060c40
mov r15, qword [r13]
test r15, r15
je 0x140061235
mov rdi, rcx
mov dword [rsp + 0xa0], esi
xor ebx, ebx
xor ebp, ebp
sub rdi, r14
mov dword [rsp + 0x30], 0
xor r12d, r12d
mov r11d, edi
mov byte [rsp + 0x48], al
mov qword [rsp + 0x38], rcx
mov rsi, r11
mov qword [rsp + 0xa8], rdx
mov qword [rsp + 0xb0], r10
jmp 0x140060cb9
mov ebp, 1
mov r15, qword [r13 + 0x20]
add r13, 0x20
add ebx, 1
test r15, r15
je 0x140060f1d
mov r8, rdi
mov rdx, r14
mov rcx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x140060ca5
mov rcx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
cmp rsi, rax
je 0x1400610df
test r12, r12
jne 0x140060ca0
mov dword [rsp + 0x30], ebx
mov r12, r13
jmp 0x140060ca5
mov ebp, dword [rsp + 0x48]
mov rax, r13
mov esi, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0xa8]
mov r10, qword [rsp + 0xb0]
lea ecx, [rbp + 1]
mov r8d, dword [r12 + 8]
mov dword [0x1400b5228], ecx
cmp byte [rax], 0
jne 0x140060d70
cmp r8d, 1
je 0x140060ef9
mov rcx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add rax, r15
cmp qword [rsp + 0xc0], 0
mov qword [0x1401f3798], rax
je 0x140060d53
mov rax, qword [rsp + 0xc0]
mov dword [rax], r14d
mov rax, qword [r12 + 0x10]
mov edi, dword [r12 + 0x18]
test rax, rax
je 0x1400608bb
mov dword [rax], edi
xor edi, edi
jmp 0x1400608bb
test r8d, r8d
je 0x140060e60
add rax, 1
mov qword [0x1401f3778], rax
jmp 0x140060d2b
mov r12d, dword [rsp + 0xc8]
test r12d, r12d
je 0x140061023
cmp cl, 0x2d
je 0x14006118b
movzx r8d, byte [r10]
test r8b, r8b
je 0x1400611ea
mov rcx, r10
mov eax, r8d
jmp 0x140060dd0
movzx eax, byte [rcx + 1]
add rcx, 1
test al, al
je 0x1400611ea
cmp al, dil
jne 0x140060dc0
jmp 0x14006075c
test cl, cl
je 0x140060ffb
add dword [0x1400b5228], 1
mov qword [0x1401f3778], r14
mov qword [0x1401f3798], 0
jmp 0x1400608bb
mov dword [0x1401f3784], ebp
mov eax, ebp
jmp 0x14006081f
mov eax, dword [0x1400b5224]
test eax, eax
jne 0x140060fc5
mov rcx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov dword [0x1400b5220], 0
add dword [0x1400b5228], 1
add rax, r15
mov qword [0x1401f3798], rax
jmp 0x140060b94
movzx r8d, byte [r10]
lea r15, [r9 + 1]
movsx edi, cl
jmp 0x1400608d4
mov eax, dword [0x1400b5224]
test eax, eax
je 0x140060d2b
movsxd rcx, ecx
mov rsi, qword [r12]
mov rax, qword [rdx + rcx*8 - 8]
mov rbx, qword [rdx]
cmp byte [rax + 1], 0x2d
je 0x140061271
movsx edi, byte [rax]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [rsp + 0x20], rsi
mov r8, rbx
lea rdx, str._s:_option___c_s_doesnt_allow_an_argument_n
mov rcx, rax
mov r9d, edi
call fcn.1400605e0
mov rbx, qword [0x1401f3798]
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add rbx, rax
mov eax, dword [r12 + 0x18]
mov qword [0x1401f3798], rbx
mov dword [0x1400b5220], eax
jmp 0x140060b94
cmp esi, eax
je 0x1400610b8
lea ecx, [rax + 1]
mov rax, qword [rdx + rax*8]
mov dword [0x1400b5228], ecx
mov qword [0x1401f3778], rax
jmp 0x140060979
cmp ecx, esi
jge 0x14006110c
movsxd rcx, ecx
add ebp, 2
mov rax, qword [rdx + rcx*8]
mov dword [0x1400b5228], ebp
mov qword [0x1401f3778], rax
jmp 0x140060d2b
test ebp, ebp
movzx eax, byte [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
mov esi, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0xa8]
mov r10, qword [rsp + 0xb0]
jne 0x14006115d
test r12, r12
je 0x140061235
test al, al
mov r8d, dword [r12 + 8]
je 0x140061086
test r8d, r8d
je 0x14006124a
add rcx, 1
mov qword [0x1401f3778], rcx
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add rax, r14
cmp qword [rsp + 0xc0], 0
mov qword [0x1401f3798], rax
je 0x140060d53
mov rax, qword [rsp + 0xc0]
mov esi, dword [rsp + 0x30]
mov dword [rax], esi
jmp 0x140060d53
cmp esi, eax
je 0x1400611c1
mov r14, qword [rdx + rax*8]
lea ecx, [rax + 1]
mov dword [0x1400b5228], ecx
mov qword [0x1401f3778], r14
jmp 0x140060c2b
mov rbx, qword [rdx]
mov qword [rsp + 0x30], r9
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rsp + 0x30]
lea rdx, str._s:_option___s_is_ambiguous_n
mov rcx, rax
mov r8, rbx
call fcn.1400605e0
mov r15, qword [0x1401f3798]
jmp 0x140060e1e
xor r14d, r14d
jmp 0x140060de9
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, edi
mov r8, rbx
lea rdx, str._s:_invalid_option_____c_n
mov rcx, rax
call fcn.1400605e0
jmp 0x140060b8e
mov esi, dword [0x1400b5224]
test esi, esi
je 0x140061062
cmp cl, 0x2d
je 0x140061199
mov rbx, qword [rdx]
mov ecx, 2
movsx esi, byte [r9]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [rsp + 0x20], r15
lea rdx, str._s:_unrecognized_option___c_s_n
mov rcx, rax
mov r8, rbx
mov r9d, esi
call fcn.1400605e0
add dword [0x1400b5228], 1
lea rax, [0x14010bf68]
mov dword [0x1400b5220], 0
mov qword [0x1401f3798], rax
jmp 0x140060b94
cmp r8d, 1
jne 0x140060f70
movsxd rax, dword [0x1400b5228]
cmp eax, esi
jge 0x140061317
lea ecx, [rax + 1]
mov rax, qword [rdx + rax*8]
mov dword [0x1400b5228], ecx
mov qword [0x1401f3778], rax
jmp 0x140060f70
mov eax, dword [0x1400b5224]
test eax, eax
jne 0x1400611fd
mov dword [0x1400b5220], edi
xor edi, edi
cmp byte [r10], 0x3a
setne dil
lea edi, [rdi + rdi*4 + 0x3a]
jmp 0x140060979
movzx eax, byte [rsp + 0x48]
mov dword [rsp + 0x30], ebx
mov r12, r13
mov rcx, qword [rsp + 0x38]
mov esi, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0xa8]
mov r10, qword [rsp + 0xb0]
jmp 0x140060f4f
mov r13d, dword [0x1400b5224]
test r13d, r13d
jne 0x140061296
mov rcx, r15
mov qword [rsp + 0xb0], r10
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r10, qword [rsp + 0xb0]
add rax, r15
mov qword [0x1401f3798], rax
mov eax, dword [r12 + 0x18]
mov dword [0x1400b5220], eax
cmp byte [r10], 0x3a
jne 0x140060b94
mov edi, 0x3a
jmp 0x1400608bb
mov r9d, dword [0x1400b5224]
test r9d, r9d
jne 0x1400612dd
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add dword [0x1400b5228], 1
add rax, r14
mov qword [0x1401f3798], rax
jmp 0x140060b94
mov edi, dword [0x1400b5224]
test edi, edi
je 0x140061062
mov rbx, qword [rdx]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._s:_unrecognized_option_____s_n
mov r9, r15
mov rcx, rax
mov r8, rbx
call fcn.1400605e0
jmp 0x140061062
mov r11d, dword [0x1400b5224]
test r11d, r11d
jne 0x14006135d
mov dword [0x1400b5220], edi
xor edi, edi
cmp byte [r10], 0x3a
setne dil
lea edi, [rdi + rdi*4 + 0x3a]
jmp 0x1400608bb
mov ebp, dword [0x1400b5224]
test ebp, ebp
jne 0x140061036
jmp 0x140061062
mov rbx, qword [rdx]
mov qword [rsp + 0xb0], r10
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._s:_option_requires_an_argument_____c_n
mov r9d, edi
mov rcx, rax
mov r8, rbx
call fcn.1400605e0
mov r10, qword [rsp + 0xb0]
jmp 0x1400610c6
mov qword [0x1401f3798], 0
mov edi, 0x57
jmp 0x1400608bb
mov r8d, dword [0x1400b5224]
test r8d, r8d
jne 0x140061395
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add rax, r14
mov qword [0x1401f3798], rax
jmp 0x140060b94
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rsi
mov r8, rbx
lea rdx, str._s:_option_____s_doesnt_allow_an_argument_n
mov rcx, rax
call fcn.1400605e0
jmp 0x140060eaf
movsxd rcx, ecx
mov rbx, qword [rdx]
mov qword [rsp + 0xb0], r10
mov rsi, qword [rdx + rcx*8 - 8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._s:_option___s_requires_an_argument_n
mov rcx, rax
mov r8, rbx
mov r9, rsi
call fcn.1400605e0
mov r15, qword [0x1401f3798]
mov r10, qword [rsp + 0xb0]
jmp 0x14006111c
movsxd rax, dword [0x1400b5228]
mov ecx, 2
mov rbx, qword [rdx]
mov rsi, qword [rdx + rax*8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._s:_option___W__s_is_ambiguous_n
mov r8, rbx
mov rcx, rax
mov r9, rsi
call fcn.1400605e0
mov r14, qword [0x1401f3798]
jmp 0x14006116d
mov ecx, dword [0x1400b5224]
test ecx, ecx
jne 0x1400613c8
mov rbx, qword [0x1401f3798]
mov qword [rsp + 0xb0], r10
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r10, qword [rsp + 0xb0]
add rbx, rax
mov qword [0x1401f3798], rbx
cmp byte [r10], 0x3a
jne 0x140060b94
jmp 0x140061153
mov rbx, qword [rdx]
mov qword [rsp + 0xb0], r10
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._s:_option_requires_an_argument_____c_n
mov r9d, edi
mov rcx, rax
mov r8, rbx
call fcn.1400605e0
mov r10, qword [rsp + 0xb0]
jmp 0x1400611d1
mov rbx, qword [rdx]
mov ecx, 2
mov rsi, qword [r12]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._s:_option___W__s_doesnt_allow_an_argument_n
mov rcx, rax
mov r8, rbx
mov r9, rsi
call fcn.1400605e0
mov r14, qword [0x1401f3798]
jmp 0x14006125a
mov rbx, qword [rdx]
mov qword [rsp + 0xb0], r10
mov ecx, 2
mov rsi, qword [rdx + rax*8 - 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._s:_option___s_requires_an_argument_n
mov rcx, rax
mov r8, rbx
mov r9, rsi
call fcn.1400605e0
mov r10, qword [rsp + 0xb0]
jmp 0x140061325