Function at 0x140034f70
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 [0x1400ad3b0]
mov qword [0x1400ad390], 0
mov esi, ecx
mov r11, r8
mov r12, r9
test eax, eax
jne 0x1400350d8
mov dword [0x1400ad3b0], 1
mov eax, 1
lea rcx, str.POSIXLY_CORRECT
mov qword [rsp + 0xb0], r11
mov qword [rsp + 0xa8], rdx
mov dword [0x1400acdc0], eax
mov dword [0x1400acce0], eax
mov qword [0x1400ad300], 0
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov r11, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov qword [0x1400ad4d0], rax
movzx ecx, byte [r11]
cmp cl, 0x2d
je 0x140035190
test rax, rax
sete al
movzx eax, al
cmp cl, 0x2b
jne 0x140035199
mov dword [0x1400ac160], 1
xor eax, eax
add r11, 1
mov dword [0x1400ad3d0], eax
nop
mov r15, qword [0x1400ad300]
test r15, r15
je 0x1400350f0
movsx edi, byte [r15]
test dil, dil
je 0x1400350f0
test r12, r12
je 0x140035230
movsxd rax, dword [0x1400ad3b0]
mov r9, qword [rdx + rax*8]
mov rbp, rax
movzx ecx, byte [r9 + 1]
cmp cl, 0x2d
je 0x140035330
mov eax, dword [rsp + 0xc8]
test eax, eax
je 0x140035230
cmp byte [r9 + 2], 0
jne 0x140035330
movzx r10d, byte [r11]
test r10b, r10b
je 0x140035330
mov eax, r10d
mov rbx, r11
jmp 0x1400350b8
movzx eax, byte [rbx + 1]
add rbx, 1
test al, al
je 0x140035330
cmp al, cl
jne 0x1400350a8
lea rbx, [r15 + 1]
movzx ecx, byte [r15 + 1]
mov qword [0x1400ad300], rbx
jmp 0x14003524d
mov ecx, dword [0x1400ac160]
test ecx, ecx
je 0x140034fb0
jmp 0x140035030
mov ebp, dword [0x1400ad3b0]
cmp dword [0x1400acdc0], ebp
jle 0x140035104
mov dword [0x1400acdc0], ebp
cmp ebp, dword [0x1400acce0]
jge 0x140035112
mov dword [0x1400acce0], ebp
mov ebx, dword [0x1400ad3d0]
cmp ebx, 1
je 0x1400351b0
cmp esi, ebp
je 0x1400351d8
movsxd rax, ebp
mov r9, qword [rdx + rax*8]
cmp byte [r9], 0x2d
jne 0x1400351f8
cmp byte [r9 + 1], 0x2d
jne 0x1400351f8
cmp byte [r9 + 2], 0
jne 0x1400351f8
mov eax, dword [0x1400acce0]
mov ecx, dword [0x1400acdc0]
add ebp, 1
mov dword [0x1400ad3b0], ebp
cmp eax, ecx
je 0x140035770
cmp ebp, ecx
je 0x14003517f
mov rcx, rdx
call fcn.140090090
mov eax, dword [0x1400acce0]
mov dword [0x1400acdc0], esi
mov dword [0x1400ad3b0], esi
jmp 0x1400351e4
add r11, 1
mov eax, 2
mov dword [0x1400ad3d0], eax
mov dword [0x1400ac160], 1
jmp 0x140035030
mov eax, dword [0x1400acdc0]
cmp dword [0x1400acce0], eax
je 0x140035478
cmp ebp, eax
jne 0x140035490
mov ecx, ebp
jmp 0x1400354be
mov eax, dword [0x1400acce0]
mov esi, dword [0x1400acdc0]
cmp eax, esi
je 0x1400351ee
mov dword [0x1400ad3b0], eax
mov edi, 0xffffffff
jmp 0x14003521b
cmp byte [r9], 0x2d
je 0x1400352f0
test ebx, ebx
je 0x1400351ee
add ebp, 1
mov qword [0x1400ad390], r9
mov edi, 1
mov dword [0x1400ad3b0], 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 r10d, byte [r11]
lea rbx, [r15 + 1]
movzx ecx, byte [r15 + 1]
mov qword [0x1400ad300], rbx
test r10b, r10b
je 0x140035518
mov rax, r11
jmp 0x14003526a
movzx r10d, byte [rax + 1]
add rax, 1
test r10b, r10b
je 0x140035518
cmp r10b, dil
jne 0x140035258
test rax, rax
sete r9b
cmp dil, 0x3a
sete r10b
or r9d, r10d
test cl, cl
jne 0x14003528c
add dword [0x1400ad3b0], 1
test r9b, r9b
jne 0x140035523
cmp byte [rax], 0x57
movzx ecx, byte [rax + 1]
je 0x140035570
cmp cl, 0x3a
jne 0x14003521b
cmp byte [rax + 2], 0x3a
movzx ecx, byte [r15 + 1]
je 0x14003574a
movsxd rax, dword [0x1400ad3b0]
test cl, cl
je 0x140035846
add eax, 1
mov qword [0x1400ad390], rbx
mov dword [0x1400ad3b0], eax
mov qword [0x1400ad300], 0
jmp 0x14003521b
movzx ecx, byte [r9 + 1]
test cl, cl
je 0x140035202
test r12, r12
je 0x1400357c0
cmp cl, 0x2d
je 0x14003531e
lea r15, [r9 + 1]
movsx edi, cl
mov qword [0x1400ad300], r15
jmp 0x140035072
lea r15, [r9 + 2]
movsx edi, byte [r9 + 2]
mov qword [0x1400ad300], r15
nop
mov rax, r15
test dil, dil
je 0x140035354
cmp dil, 0x3d
je 0x140035354
nop
movzx r8d, byte [rax + 1]
add rax, 1
test r8b, r8b
je 0x140035354
cmp r8b, 0x3d
jne 0x140035340
mov rbx, qword [r12]
test rbx, rbx
je 0x140035700
mov r10, rax
xor r8d, r8d
mov byte [rsp + 0x38], dil
mov r14, r12
sub r10, r15
mov dword [rsp + 0x48], ebp
xor r13d, r13d
mov rbp, r8
mov dword [rsp + 0xa0], esi
mov rdi, r10
xor esi, esi
mov qword [rsp + 0xb8], r12
mov r12, 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], r11
jmp 0x1400353d6
mov esi, 1
mov rbx, qword [r14 + 0x20]
add r14, 0x20
add r13d, 1
test rbx, rbx
je 0x140035420
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 0x1400353c5
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
cmp edi, eax
je 0x140035668
test rbp, rbp
jne 0x1400353c0
mov rbp, r14
mov rbx, qword [r14 + 0x20]
mov dword [rsp + 0x30], r13d
add r14, 0x20
add r13d, 1
test rbx, rbx
jne 0x1400353d6
nop word cs:[rax + rax]
mov ebx, esi
mov r14, rbp
mov rax, r12
movsx edi, byte [rsp + 0x38]
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 r11, qword [rsp + 0xb0]
mov r12, qword [rsp + 0xb8]
test ebx, ebx
jne 0x140035780
test r14, r14
je 0x140035700
mov r13d, dword [rsp + 0x30]
jmp 0x140035686
cmp ebp, eax
je 0x1400351ca
mov dword [0x1400acce0], ebp
mov ecx, ebp
jmp 0x1400354be
mov rcx, rdx
mov qword [rsp + 0xb0], r11
mov qword [rsp + 0xa8], rdx
call fcn.140090090
mov ecx, dword [0x1400ad3b0]
mov rdx, qword [rsp + 0xa8]
mov r11, qword [rsp + 0xb0]
cmp esi, ecx
jle 0x140035510
movsxd rax, ecx
jmp 0x1400354e1
add ecx, 1
add rax, 1
mov dword [0x1400ad3b0], ecx
cmp esi, eax
jle 0x140035510
mov r8, qword [rdx + rax*8]
mov ecx, eax
cmp byte [r8], 0x2d
jne 0x1400354d0
cmp byte [r8 + 1], 0
je 0x1400354d0
mov ebp, dword [0x1400ad3b0]
mov dword [0x1400acdc0], ecx
cmp esi, ebp
jne 0x140035129
jmp 0x1400351d8
mov ebp, ecx
jmp 0x1400354fa
test cl, cl
jne 0x140035523
add dword [0x1400ad3b0], 1
mov r11d, dword [0x1400ad3a0]
test r11d, r11d
je 0x140035560
cmp qword [0x1400ad4d0], 0
mov rbx, qword [rdx]
mov ecx, 2
je 0x140035981
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.140092970
mov dword [0x1400ad3c0], edi
mov edi, 0x3f
jmp 0x14003521b
cmp cl, 0x3b
jne 0x1400352a2
cmp byte [r15 + 1], 0
movsxd rax, dword [0x1400ad3b0]
je 0x140035923
add eax, 1
mov qword [0x1400ad390], rbx
mov dword [0x1400ad3b0], eax
movzx r15d, byte [rbx]
mov qword [0x1400ad300], rbx
mov rax, rbx
test r15b, r15b
jne 0x1400355be
jmp 0x1400355c4
movzx r15d, byte [rax + 1]
add rax, 1
test r15b, r15b
je 0x1400355c4
cmp r15b, 0x3d
jne 0x1400355b0
mov r14, qword [r12]
test r14, r14
je 0x140035bb2
mov rbp, rax
xor r8d, r8d
mov byte [rsp + 0x48], r15b
xor edi, edi
sub rbp, rbx
mov dword [rsp + 0xa0], esi
xor r13d, r13d
mov rsi, r14
mov ecx, ebp
mov qword [rsp + 0x38], rax
mov r15d, r8d
mov dword [rsp + 0x30], 0
mov r14, rcx
mov qword [rsp + 0xa8], rdx
mov qword [rsp + 0xb0], r11
jmp 0x140035633
mov r15d, 1
mov rsi, qword [r12 + 0x20]
add r12, 0x20
add edi, 1
test rsi, rsi
je 0x14003588b
mov r8, rbp
mov rdx, rbx
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x14003561e
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
cmp r14, rax
je 0x140035a5c
test r13, r13
jne 0x140035618
mov dword [rsp + 0x30], edi
mov r13, r12
jmp 0x14003561e
mov ebp, dword [rsp + 0x48]
mov esi, dword [rsp + 0xa0]
mov rax, r12
mov rdx, qword [rsp + 0xa8]
mov r11, qword [rsp + 0xb0]
lea ecx, [rbp + 1]
mov r9d, dword [r14 + 8]
mov dword [0x1400ad3b0], ecx
cmp byte [rax], 0
jne 0x1400356e8
cmp r9d, 1
je 0x140035867
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 [0x1400ad300], rax
je 0x1400356ca
mov rax, qword [rsp + 0xc0]
mov dword [rax], r13d
mov rax, qword [r14 + 0x10]
mov edi, dword [r14 + 0x18]
test rax, rax
je 0x14003521b
mov dword [rax], edi
xor edi, edi
jmp 0x14003521b
test r9d, r9d
je 0x1400357d0
add rax, 1
mov qword [0x1400ad390], rax
jmp 0x1400356a2
mov ebp, dword [rsp + 0xc8]
test ebp, ebp
je 0x1400359a1
cmp cl, 0x2d
je 0x140035b08
movzx r10d, byte [r11]
test r10b, r10b
je 0x140035b67
mov rcx, r11
mov eax, r10d
jmp 0x140035740
movzx eax, byte [rcx + 1]
add rcx, 1
test al, al
je 0x140035b67
cmp al, dil
jne 0x140035730
jmp 0x1400350bc
test cl, cl
je 0x14003597a
add dword [0x1400ad3b0], 1
mov qword [0x1400ad390], rbx
mov qword [0x1400ad300], 0
jmp 0x14003521b
mov dword [0x1400acce0], ebp
mov eax, ebp
jmp 0x14003517f
mov eax, dword [0x1400ad3a0]
test eax, eax
jne 0x140035944
mov rcx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add dword [0x1400ad3b0], 1
mov dword [0x1400ad3c0], 0
add rax, r15
mov qword [0x1400ad300], rax
jmp 0x140035566
movzx r10d, byte [r11]
lea r15, [r9 + 1]
movsx edi, cl
jmp 0x140035234
mov eax, dword [0x1400ad3a0]
test eax, eax
je 0x1400356a2
movsxd rcx, ecx
mov rsi, qword [r14]
mov rbx, qword [rdx]
mov rax, qword [rdx + rcx*8 - 8]
cmp byte [rax + 1], 0x2d
je 0x140035bee
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.140092970
mov rbx, qword [0x1400ad300]
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add rbx, rax
mov eax, dword [r14 + 0x18]
mov qword [0x1400ad300], rbx
mov dword [0x1400ad3c0], eax
jmp 0x140035566
cmp esi, eax
je 0x140035a35
lea ecx, [rax + 1]
mov rax, qword [rdx + rax*8]
mov dword [0x1400ad3b0], ecx
mov qword [0x1400ad390], rax
jmp 0x1400352d9
cmp ecx, esi
jge 0x140035a8a
movsxd rcx, ecx
add ebp, 2
mov rax, qword [rdx + rcx*8]
mov dword [0x1400ad3b0], ebp
mov qword [0x1400ad390], rax
jmp 0x1400356a2
mov r8d, r15d
mov rax, qword [rsp + 0x38]
movzx r15d, byte [rsp + 0x48]
mov esi, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0xa8]
mov r11, qword [rsp + 0xb0]
test r8d, r8d
jne 0x140035ada
test r13, r13
je 0x140035bb2
mov ecx, dword [r13 + 8]
test r15b, r15b
je 0x140035a04
test ecx, ecx
je 0x140035bc7
add rax, 1
mov qword [0x1400ad390], rax
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add rax, rbx
cmp qword [rsp + 0xc0], 0
mov qword [0x1400ad300], rax
je 0x14003590d
mov rax, qword [rsp + 0xc0]
mov esi, dword [rsp + 0x30]
mov dword [rax], esi
mov rax, qword [r13 + 0x10]
mov edi, dword [r13 + 0x18]
test rax, rax
jne 0x1400356db
jmp 0x14003521b
cmp esi, eax
je 0x140035b3e
mov rbx, qword [rdx + rax*8]
lea ecx, [rax + 1]
mov dword [0x1400ad3b0], ecx
mov qword [0x1400ad390], rbx
jmp 0x14003559b
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.140092970
mov r15, qword [0x1400ad300]
jmp 0x14003578e
xor ebx, ebx
jmp 0x140035759
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.140092970
jmp 0x140035560
mov ebx, dword [0x1400ad3a0]
test ebx, ebx
je 0x1400359e0
cmp cl, 0x2d
je 0x140035b16
mov rbx, qword [rdx]
movsx esi, byte [r9]
mov ecx, 2
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 r9d, esi
mov r8, rbx
call fcn.140092970
lea rax, [0x1400cd0d8]
add dword [0x1400ad3b0], 1
mov qword [0x1400ad300], rax
mov dword [0x1400ad3c0], 0
jmp 0x140035566
cmp ecx, 1
jne 0x1400358e2
movsxd rax, dword [0x1400ad3b0]
cmp eax, esi
jge 0x140035c94
lea ecx, [rax + 1]
mov rax, qword [rdx + rax*8]
mov dword [0x1400ad3b0], ecx
mov qword [0x1400ad390], rax
jmp 0x1400358e2
mov eax, dword [0x1400ad3a0]
test eax, eax
jne 0x140035b7a
mov dword [0x1400ad3c0], edi
xor edi, edi
cmp byte [r11], 0x3a
setne dil
lea edi, [rdi + rdi*4 + 0x3a]
jmp 0x1400352d9
mov dword [rsp + 0x30], edi
movzx r15d, byte [rsp + 0x48]
mov r13, r12
mov rax, qword [rsp + 0x38]
mov esi, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0xa8]
mov r11, qword [rsp + 0xb0]
jmp 0x1400358c2
mov r12d, dword [0x1400ad3a0]
test r12d, r12d
jne 0x140035c13
mov rcx, r15
mov qword [rsp + 0xb0], r11
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r11, qword [rsp + 0xb0]
add rax, r15
mov qword [0x1400ad300], rax
mov eax, dword [r14 + 0x18]
mov dword [0x1400ad3c0], eax
cmp byte [r11], 0x3a
jne 0x140035566
mov edi, 0x3a
jmp 0x14003521b
mov r9d, dword [0x1400ad3a0]
test r9d, r9d
jne 0x140035c5a
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add dword [0x1400ad3b0], 1
add rax, rbx
mov qword [0x1400ad300], rax
jmp 0x140035566
mov esi, dword [0x1400ad3a0]
test esi, esi
je 0x1400359e0
mov rbx, qword [rdx]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, r15
lea rdx, str._s:_unrecognized_option_____s_n
mov rcx, rax
mov r8, rbx
call fcn.140092970
jmp 0x1400359e0
mov r10d, dword [0x1400ad3a0]
test r10d, r10d
jne 0x140035cda
mov dword [0x1400ad3c0], edi
xor edi, edi
cmp byte [r11], 0x3a
setne dil
lea edi, [rdi + rdi*4 + 0x3a]
jmp 0x14003521b
mov edi, dword [0x1400ad3a0]
test edi, edi
jne 0x1400359b4
jmp 0x1400359e0
mov rbx, qword [rdx]
mov qword [rsp + 0xb0], r11
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, edi
lea rdx, str._s:_option_requires_an_argument_____c_n
mov rcx, rax
mov r8, rbx
call fcn.140092970
mov r11, qword [rsp + 0xb0]
jmp 0x140035a43
mov qword [0x1400ad300], 0
mov edi, 0x57
jmp 0x14003521b
mov r8d, dword [0x1400ad3a0]
test r8d, r8d
jne 0x140035d12
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add rax, rbx
mov qword [0x1400ad300], rax
jmp 0x140035566
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.140092970
jmp 0x14003581e
movsxd rcx, ecx
mov rbx, qword [rdx]
mov qword [rsp + 0xb0], r11
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]
mov r8, rbx
lea rdx, str._s:_option___s_requires_an_argument_n
mov rcx, rax
mov r9, rsi
call fcn.140092970
mov r15, qword [0x1400ad300]
mov r11, qword [rsp + 0xb0]
jmp 0x140035a9a
movsxd rax, dword [0x1400ad3b0]
mov rbx, qword [rdx]
mov ecx, 2
mov rsi, qword [rdx + rax*8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str._s:_option___W__s_is_ambiguous_n
mov rcx, rax
mov r9, rsi
call fcn.140092970
mov rbx, qword [0x1400ad300]
jmp 0x140035aea
mov ecx, dword [0x1400ad3a0]
test ecx, ecx
jne 0x140035d45
mov rbx, qword [0x1400ad300]
mov qword [rsp + 0xb0], r11
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r11, qword [rsp + 0xb0]
add rbx, rax
cmp byte [r11], 0x3a
mov qword [0x1400ad300], rbx
jne 0x140035566
jmp 0x140035ad0
mov rbx, qword [rdx]
mov qword [rsp + 0xb0], r11
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, edi
lea rdx, str._s:_option_requires_an_argument_____c_n
mov rcx, rax
mov r8, rbx
call fcn.140092970
mov r11, qword [rsp + 0xb0]
jmp 0x140035b4e
mov rbx, qword [rdx]
mov rsi, qword [r13]
mov ecx, 2
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 r8, rbx
mov rcx, rax
mov r9, rsi
call fcn.140092970
mov rbx, qword [0x1400ad300]
jmp 0x140035bd7
mov rsi, qword [rdx + rax*8 - 8]
mov rbx, qword [rdx]
mov ecx, 2
mov qword [rsp + 0xb0], r11
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 r9, rsi
mov r8, rbx
call fcn.140092970
mov r11, qword [rsp + 0xb0]
jmp 0x140035ca2