Function at 0x14000ceb0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
test ecx, ecx
je 0x14000cee9
mov rsi, rdx
test rdx, rdx
je 0x14000cee9
mov r13, r9
mov r12, r8
mov ebx, ecx
test r8, r8
jne 0x14000cf0e
test r13, r13
jne 0x14000cf0e
mov dword [0x14017e610], 0x3f
mov edi, 0x3f
mov eax, edi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov r14d, dword [0x1401853b0]
mov edi, 0xffffffff
cmp r14d, ebx
jge 0x14000cef8
movsxd rax, r14d
mov rcx, qword [rsi + rax*8]
test rcx, rcx
je 0x14000cef8
lea rdx, [0x14012ad70]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x14000cf82
test r14d, r14d
jne 0x14000cf5b
mov dword [0x1401853b0], 1
mov qword [0x1401853b8], 1
mov r14d, 1
test r12, r12
je 0x14000cf91
mov al, byte [r12]
cmp al, 0x2d
je 0x14000cf6c
cmp al, 0x2b
jne 0x14000cf91
xor ecx, ecx
cmp al, 0x2d
sete cl
mov eax, 2
sub eax, ecx
mov dword [rbp + 4], eax
inc r12
jmp 0x14000cfaa
inc r14d
mov dword [0x1401853b0], r14d
jmp 0x14000cef8
lea rcx, str.POSIXLY_CORRECT
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
xor ecx, ecx
test rax, rax
setne cl
add ecx, ecx
mov dword [rbp + 4], ecx
mov r11d, dword [rbp + 0x78]
mov r15, qword [0x1401853b8]
cmp r15, 1
jne 0x14000d0b6
mov eax, dword [rbp + 4]
cmp eax, 2
je 0x14000d06d
cmp eax, 1
je 0x14000d091
test eax, eax
jne 0x14000d0b6
mov qword [rbp - 0x28], r15
movsxd rax, r14d
mov qword [rbp - 8], rax
mov rcx, qword [rsi + rax*8]
test rcx, rcx
je 0x14000cf85
test r11d, r11d
setne al
mov dl, byte [rcx]
cmp dl, 0x2b
sete r8b
xor r15d, r15d
cmp dl, 0x2d
je 0x14000d4e7
mov rdx, r14
and al, r8b
jne 0x14000d4ea
mov rax, qword [rbp - 8]
lea r8, [rsi + rax*8]
add r8, 8
mov r9d, edx
xor r15d, r15d
mov r14, rdx
lea eax, [r9 + r15]
inc eax
mov dword [0x1401853b0], eax
mov rcx, qword [r8 + r15*8]
test rcx, rcx
je 0x14000cf85
test r11d, r11d
setne al
mov r10b, byte [rcx]
cmp r10b, 0x2b
sete dl
inc r15
cmp r10b, 0x2d
je 0x14000d062
and al, dl
je 0x14000d02c
mov rdx, r14
add r14d, r15d
jmp 0x14000d4ea
movsxd rax, r14d
mov rax, qword [rsi + rax*8]
test rax, rax
je 0x14000d0b6
mov al, byte [rax]
cmp al, 0x2d
je 0x14000d0b6
test r11d, r11d
je 0x14000cef8
cmp al, 0x2b
je 0x14000d0b6
jmp 0x14000cef8
movsxd rax, r14d
mov rax, qword [rsi + rax*8]
test rax, rax
je 0x14000d0b6
mov cl, byte [rax]
cmp cl, 0x2d
je 0x14000d0b6
test r11d, r11d
je 0x14000d531
cmp cl, 0x2b
jne 0x14000d531
xor eax, eax
mov qword [rbp - 8], rax
xor edx, edx
mov r9d, 0xffffffff
movsxd rax, r14d
test r13, r13
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rsi
je 0x14000d237
mov qword [rbp - 0x20], rax
mov rdi, qword [rsi + rax*8]
lea rdx, [0x14012ad70]
mov r8d, 2
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
je 0x14000d11e
cmp dword [rbp + 0x78], 0
je 0x14000d15c
cmp r15, 1
mov r9d, 0xffffffff
jne 0x14000d162
mov rax, r15
mov r15d, 1
cmp byte [rdi], 0x2b
je 0x14000d135
mov r15, rax
jmp 0x14000d162
cmp r15, 1
jne 0x14000d15c
mov qword [0x1401853b8], 2
mov r15d, 2
lea rcx, [rdi + r15]
mov qword [rbp - 0x28], rcx
mov edx, 0x3d
call sub.VCRUNTIME140.dll_strchr
test rax, rax
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x40], rdi
je 0x14000d16f
mov rsi, rax
sub rsi, rdi
jmp 0x14000d17d
mov r9d, 0xffffffff
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x20]
jmp 0x14000d237
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rsi, rax
add rax, rdi
mov rdi, qword [r13]
test rdi, rdi
mov r9d, 0xffffffff
je 0x14000d1ee
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], r15
sub rsi, r15
mov qword [rbp - 0x38], r13
add r13, 0x20
mov r15d, 0xffffffff
xor r14d, r14d
mov rcx, qword [rbp - 0x28]
mov rdx, rdi
mov r8, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
je 0x14000d1c0
mov r9d, r15d
jmp 0x14000d1d9
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
cmp rsi, rax
je 0x14000d1fc
mov r9d, r14d
test r15d, r15d
jns 0x14000d495
mov rdi, qword [r13]
inc r14d
add r13, 0x20
mov r15d, r9d
test rdi, rdi
jne 0x14000d1a8
jmp 0x14000d1ff
mov r14, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x20]
jmp 0x14000d233
mov r9d, r14d
test r9d, r9d
mov r14, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x20]
js 0x14000d22b
mov eax, r9d
shl rax, 5
mov r13, qword [rbp - 0x38]
mov eax, dword [r13 + rax + 8]
xor ecx, ecx
xor r12d, r12d
mov r15, qword [rbp - 0x50]
jmp 0x14000d2a4
mov r13, qword [rbp - 0x38]
mov r15, qword [rbp - 0x50]
mov rsi, qword [rbp - 0x10]
test r12, r12
je 0x14000d39e
mov dword [rbp - 0x28], r9d
mov rdi, qword [rsi + rax*8]
movsx esi, byte [rdi + r15]
mov rcx, r12
mov edx, esi
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x14000d2f7
mov r12, rax
mov r8, r15
mov qword [rbp - 0x40], rdi
lea rcx, [rdi + r15]
xor eax, eax
cmp byte [r12 + 1], 0x3a
jne 0x14000d285
xor eax, eax
cmp byte [r12 + 2], 0x3a
sete al
inc eax
inc rcx
mov qword [rbp - 0x48], rcx
movsx ecx, byte [r12]
mov dword [0x14017e610], ecx
mov cl, 1
mov rdx, qword [rbp - 0x18]
mov r9d, dword [rbp - 0x28]
mov r15, r8
test eax, eax
je 0x14000d369
cmp eax, 1
je 0x14000d421
cmp eax, 2
jne 0x14000d39e
mov rcx, qword [rbp - 0x48]
lea rax, [rcx + 1]
cmp byte [rcx], 0x3d
cmovne rax, rcx
cmp byte [rax], 0
mov ecx, dword [rbp + 4]
je 0x14000d44e
mov qword [0x1401853a8], rax
mov qword [0x1401853b8], 1
mov esi, 1
mov al, 1
jmp 0x14000d3ad
cmp dword [0x14017e60c], 0
je 0x14000d338
mov rdi, qword [rbp - 0x10]
mov rbx, qword [rdi]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, str._s:_invalid_option_______c_n
mov rcx, rax
mov r8, rbx
mov r9d, esi
call fcn.140005579
mov r15, qword [0x1401853b8]
movsxd r14, dword [0x1401853b0]
mov rdi, qword [rdi + r14*8]
lea rax, [r15 + 1]
mov qword [0x1401853b8], rax
cmp byte [rdi + r15 + 1], 0
jne 0x14000cee9
inc r14d
mov dword [0x1401853b0], r14d
mov qword [0x1401853b8], 1
jmp 0x14000cee9
mov eax, 1
test cl, cl
je 0x14000d389
mov rax, qword [rbp - 0x40]
cmp byte [rax + r15 + 1], 0
lea rcx, [r15 + 1]
mov eax, 1
cmovne rax, rcx
mov qword [0x1401853b8], rax
mov qword [0x1401853a8], 0
mov r15, rax
mov ecx, dword [rbp + 4]
cmp r15, 1
sete al
mov esi, 1
test edx, edx
je 0x14000d3d5
test ecx, ecx
jne 0x14000d3d5
test al, al
je 0x14000d3d5
mov r14, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
lea rcx, [rax + r14*8]
mov ebx, r9d
mov r8d, esi
call fcn.14000d614
mov r9d, ebx
jmp 0x14000d3d9
test al, al
je 0x14000d3e2
add esi, r14d
mov dword [0x1401853b0], esi
test r9d, r9d
js 0x14000d416
mov rax, qword [rbp + 0x70]
test rax, rax
je 0x14000d3f3
mov dword [rax], r9d
mov ecx, r9d
shl rcx, 5
mov rax, qword [r13 + rcx + 0x10]
mov edi, dword [r13 + rcx + 0x18]
test rax, rax
je 0x14000cef8
mov dword [rax], edi
xor edi, edi
jmp 0x14000cef8
mov edi, dword [0x14017e610]
jmp 0x14000cef8
mov rcx, qword [rbp - 0x48]
lea rax, [rcx + 1]
cmp byte [rcx], 0x3d
cmovne rax, rcx
cmp byte [rax], 0
je 0x14000d45e
mov qword [0x1401853a8], rax
mov qword [0x1401853b8], 1
mov esi, 1
jmp 0x14000d48b
mov qword [0x1401853a8], 0
jmp 0x14000d3a1
lea eax, [r14 + 1]
cmp eax, ebx
jge 0x14000d556
cdqe
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx + rax*8]
mov qword [0x1401853a8], rax
mov qword [0x1401853b8], 1
mov esi, 2
mov al, 1
mov ecx, dword [rbp + 4]
jmp 0x14000d3ad
cmp dword [0x14017e60c], 0
je 0x14000cee9
mov eax, r15d
shl rax, 5
mov rcx, qword [rbp - 0x38]
mov rbx, qword [rcx + rax]
mov rax, qword [rbp - 0x10]
mov rsi, qword [rax]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
lea rdx, str._s:_option___s_is_ambiguous__could_be_____s_or_____s__n
mov rcx, rax
mov r8, rsi
mov r9, qword [rbp - 0x40]
call fcn.140005579
jmp 0x14000cee9
mov rdx, r14
mov qword [rbp - 0x30], rdx
lea rdx, [0x14012ad70]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x14000d50a
mov rdx, r15
mov r15, qword [rbp - 0x28]
jmp 0x14000d0be
mov rax, qword [rbp - 8]
lea rcx, [rsi + rax*8]
mov edx, r15d
mov r8d, 1
call fcn.14000d614
mov rax, qword [rbp - 0x30]
inc eax
mov dword [0x1401853b0], eax
jmp 0x14000cef8
inc r14d
mov dword [0x1401853b0], r14d
mov qword [0x1401853a8], rax
mov dword [0x14017e610], 1
mov edi, 1
jmp 0x14000cef8
cmp dword [0x14017e60c], 0
je 0x14000d5d3
mov rax, qword [rbp - 0x10]
mov rdi, qword [rax]
mov ecx, 2
mov ebx, r9d
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, str._s:_argument_required_for_option__
mov rcx, rax
mov r8, rdi
call fcn.140005579
test ebx, ebx
js 0x14000d5b2
mov eax, ebx
shl rax, 5
mov rsi, qword [r13 + rax]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, str.___s_n
mov rcx, rax
mov r8, rsi
call fcn.140005579
jmp 0x14000d5d3
movsx esi, byte [r12]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, [0x140130ca9]
mov rcx, rax
mov r8d, esi
call fcn.140005579
inc dword [0x1401853b0]
mov dword [0x14017e610], 0x3a
mov edi, 0x3a
jmp 0x14000cef8