Function at 0x14000f620
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0xa8], r9
mov esi, ecx
mov r14, rdx
mov r13, r8
test r8, r8
je 0x14000f94e
mov r9d, dword [0x1400164dc]
test r9d, r9d
je 0x14000f7e8
cmp dword [0x1400164c0], 0xffffffff
je 0x14000f7fc
mov eax, dword [0x140022468]
test eax, eax
jne 0x14000f7fc
movzx edx, byte [r13]
cmp dl, 0x2d
je 0x14000f830
mov r8d, dword [0x1400164c0]
test r8d, r8d
jne 0x14000f693
cmp dl, 0x2b
jne 0x14000f6a4
and dword [rsp + 0xb8], 0xfffffffe
cmp dl, 0x2b
je 0x14000f838
mov qword [0x140022460], 0
test eax, eax
je 0x14000f6c7
mov dword [0x1400164c4], 0xffffffff
mov dword [0x1400164c8], 0xffffffff
mov edi, dword [rsp + 0xb8]
mov r12d, dword [rsp + 0xb8]
lea rbp, [0x140018948]
and edi, 2
and r12d, 1
test eax, eax
je 0x14000f759
mov dword [0x140022468], 0
mov ebx, dword [0x1400164dc]
cmp ebx, esi
jge 0x14000f910
movsxd rax, ebx
mov r15, qword [r14 + rax*8]
cmp byte [r15], 0x2d
mov qword [0x1400164d0], r15
je 0x14000f848
mov qword [0x1400164d0], rbp
test edi, edi
jne 0x14000f970
test r12d, r12d
je 0x14000f94e
mov r15d, dword [0x1400164c8]
cmp r15d, 0xffffffff
je 0x14000f8b0
mov edx, dword [0x1400164c4]
cmp edx, 0xffffffff
jne 0x14000f8c8
add ebx, 1
mov dword [0x1400164dc], ebx
mov r9, qword [0x1400164d0]
movzx eax, byte [r9]
test al, al
je 0x14000f6e8
cmp qword [rsp + 0xa8], 0
je 0x14000f796
movsxd rdx, dword [0x1400164dc]
cmp qword [r14 + rdx*8], r9
je 0x14000f796
cmp al, 0x2d
je 0x14000fbdd
test byte [rsp + 0xb8], 4
jne 0x14000f9a1
lea rbx, [r9 + 1]
movsx r12d, al
mov qword [0x1400164d0], rbx
cmp al, 0x3a
jne 0x14000f9f8
cmp byte [r9 + 1], 0
jne 0x14000f7bb
add dword [0x1400164dc], 1
mov ecx, dword [0x1400164e0]
test ecx, ecx
je 0x14000f7d0
cmp byte [r13], 0x3a
jne 0x14000fb78
mov dword [0x1400164d8], r12d
mov r12d, 0x3f
jmp 0x14000f954
mov dword [0x140022468], 1
mov dword [0x1400164dc], 1
xor edx, edx
xor r8d, r8d
lea rcx, str.POSIXLY_CORRECT
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
movzx edx, byte [r13]
test eax, eax
setne al
movzx eax, al
mov dword [0x1400164c0], eax
mov eax, dword [0x140022468]
cmp dl, 0x2d
jne 0x14000f682
or dword [rsp + 0xb8], 2
add r13, 1
jmp 0x14000f6a4
movzx eax, byte [r15 + 1]
test al, al
jne 0x14000fafb
mov edx, 0x2d
mov rcx, r13
call sub.msvcrt.dll_strchr
test rax, rax
je 0x14000f718
cmp dword [0x1400164c8], 0xffffffff
je 0x14000fbef
cmp dword [0x1400164c4], 0xffffffff
je 0x14000fbd2
lea rbx, [r15 + 1]
mov qword [0x1400164d0], rbx
cmp byte [r15 + 1], 0
je 0x14000fab8
mov r12d, 0x2d
jmp 0x14000f7bb
mov dword [0x1400164c8], ebx
add ebx, 1
mov dword [0x1400164dc], ebx
jmp 0x14000f759
mov ecx, r15d
mov r9, r14
mov r8d, ebx
mov dword [rsp + 0x38], edx
call fcn.14000f130
mov ecx, dword [0x1400164dc]
mov edx, dword [rsp + 0x38]
mov dword [0x1400164c4], 0xffffffff
mov eax, ecx
sub edx, r15d
add ecx, 1
sub eax, edx
mov dword [0x1400164dc], ecx
mov dword [0x1400164c8], eax
mov eax, dword [0x140022468]
jmp 0x14000f6e4
mov esi, dword [0x1400164c4]
lea rax, [0x140018948]
mov edi, dword [0x1400164c8]
mov qword [0x1400164d0], rax
cmp esi, 0xffffffff
jne 0x14000f988
cmp edi, 0xffffffff
je 0x14000f93a
mov dword [0x1400164dc], edi
mov dword [0x1400164c4], 0xffffffff
mov dword [0x1400164c8], 0xffffffff
mov r12d, 0xffffffff
mov eax, r12d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
add ebx, 1
mov qword [0x140022460], r15
mov r12d, 1
mov dword [0x1400164dc], ebx
jmp 0x14000f954
mov r9, r14
mov r8d, ebx
mov edx, esi
mov ecx, edi
sub esi, edi
call fcn.14000f130
sub dword [0x1400164dc], esi
jmp 0x14000f93a
xor edx, edx
cmp al, 0x3a
je 0x14000f9ba
movsx edx, al
mov rcx, r13
call sub.msvcrt.dll_strchr
xor edx, edx
test rax, rax
setne dl
mov dword [rsp + 0x20], edx
mov r9, qword [rsp + 0xb0]
mov rdx, r13
mov rcx, r14
mov r8, qword [rsp + 0xa8]
call fcn.14000f280
mov r12d, eax
cmp eax, 0xffffffff
je 0x14000fb68
lea rax, [0x140018948]
mov qword [0x1400164d0], rax
jmp 0x14000f954
cmp r12d, 0x2d
je 0x14000fbfd
mov edx, r12d
mov rcx, r13
mov qword [rsp + 0x38], r9
call sub.msvcrt.dll_strchr
mov r9, qword [rsp + 0x38]
test rax, rax
je 0x14000f7ad
cmp qword [rsp + 0xa8], 0
movzx edx, byte [rax + 1]
je 0x14000fadb
cmp r12d, 0x57
jne 0x14000fadb
cmp dl, 0x3b
jne 0x14000fadb
cmp byte [r9 + 1], 0
jne 0x14000fc38
mov eax, dword [0x1400164dc]
add eax, 1
mov dword [0x1400164dc], eax
cmp eax, esi
jl 0x14000fc2b
mov edx, dword [0x1400164e0]
lea rax, [0x140018948]
mov qword [0x1400164d0], rax
test edx, edx
je 0x14000fa98
cmp byte [r13], 0x3a
je 0x14000fa98
mov edx, 0x57
lea rcx, str.option_requires_an_argument_____c
call fcn.14000f1f0
mov dword [0x1400164d8], 0x57
cmp byte [r13], 0x3a
je 0x14000fca3
mov r12d, 0x3f
jmp 0x14000f954
mov edx, 0x2d
mov rcx, r13
call sub.msvcrt.dll_strchr
test rax, rax
je 0x14000f94e
movzx edx, byte [rax + 1]
mov r9, r15
mov r12d, 0x2d
cmp dl, 0x3a
je 0x14000fb8c
cmp byte [r9 + 1], 0
jne 0x14000f954
add dword [0x1400164dc], 1
jmp 0x14000f954
mov edi, dword [0x1400164c8]
cmp edi, 0xffffffff
je 0x14000fb13
cmp dword [0x1400164c4], 0xffffffff
je 0x14000fbc7
lea r9, [r15 + 1]
mov qword [0x1400164d0], r9
cmp al, 0x2d
jne 0x14000f768
cmp byte [r15 + 2], 0
jne 0x14000f768
mov esi, dword [0x1400164c4]
lea r8d, [rbx + 1]
lea rax, [0x140018948]
mov dword [0x1400164dc], r8d
mov qword [0x1400164d0], rax
cmp esi, 0xffffffff
je 0x14000f93a
mov r9, r14
jmp 0x14000f98e
mov r9, qword [0x1400164d0]
movzx eax, byte [r9]
jmp 0x14000f796
mov edx, r12d
lea rcx, str.unknown_option_____c
call fcn.14000f1f0
jmp 0x14000f7d0
mov qword [0x140022460], 0
cmp byte [r9 + 1], 0
mov edx, dword [0x1400164dc]
je 0x14000fc08
mov qword [0x140022460], rbx
lea rax, [0x140018948]
add edx, 1
mov qword [0x1400164d0], rax
mov dword [0x1400164dc], edx
jmp 0x14000f954
mov dword [0x1400164c4], ebx
jmp 0x14000fb13
mov dword [0x1400164c4], ebx
jmp 0x14000f885
add r9, 1
xor edx, edx
mov qword [0x1400164d0], r9
jmp 0x14000f9ba
lea rbx, [r15 + 1]
mov r9, r15
mov qword [0x1400164d0], rbx
mov r15, r9
jmp 0x14000f890
cmp byte [rax + 2], 0x3a
je 0x14000fbab
add edx, 1
mov dword [0x1400164dc], edx
cmp esi, edx
jle 0x14000fc63
movsxd rax, edx
mov rax, qword [r14 + rax*8]
mov qword [0x140022460], rax
jmp 0x14000fbab
cdqe
mov rax, qword [r14 + rax*8]
mov qword [0x1400164d0], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0xb0]
mov rdx, r13
mov rcx, r14
mov r8, qword [rsp + 0xa8]
call fcn.14000f280
mov r12d, eax
jmp 0x14000f9e5
lea rax, [0x140018948]
mov qword [0x1400164d0], rax
mov eax, dword [0x1400164e0]
test eax, eax
je 0x14000fc91
cmp byte [r13], 0x3a
je 0x14000fc91
mov edx, r12d
lea rcx, str.option_requires_an_argument_____c
call fcn.14000f1f0
mov dword [0x1400164d8], r12d
cmp byte [r13], 0x3a
jne 0x14000faad
mov r12d, 0x3a
jmp 0x14000f954