Function at 0x14005aeb0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r12d, r12d
mov rsi, r8
mov r8d, dword [0x1402fb4bc]
mov r14, rdx
mov qword [0x140306900], r12
mov r15d, ecx
lea ebp, [r12 + 1]
test r8d, r8d
jne 0x14005aeef
mov r8d, ebp
mov dword [0x1402fb4bc], ebp
mov eax, dword [0x140306908]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
test eax, eax
je 0x14005af18
mov edi, 0xffffffff
mov ebx, edi
mov dword [0x1402fb4b4], edi
mov dword [0x1402fb4b0], ebx
jmp 0x14005af24
mov ebx, dword [0x1402fb4b0]
mov edi, dword [0x1402fb4b4]
lea r13, [0x14012eaa1]
nop dword [rax + rax]
test eax, eax
jne 0x14005af46
mov rax, qword [0x1402fb4a8]
movzx ecx, byte [rax]
test cl, cl
jne 0x14005b042
mov dword [0x140306908], r12d
cmp r8d, r15d
jge 0x14005b24a
movsxd rax, r8d
mov rax, qword [r14 + rax*8]
cmp byte [rax], 0x2d
jne 0x14005af6e
inc rax
cmp byte [rax], r12b
jne 0x14005b015
lea rcx, str.POSIXLY_CORRECT
mov qword [0x1402fb4a8], r13
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14005af90
cmp byte [rsi], 0x2d
je 0x14005b22c
lea rcx, str.POSIXLY_CORRECT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14005b28b
movzx eax, byte [rsi]
sub al, 0x2b
test al, 0xfd
je 0x14005b28b
mov ebx, dword [0x1402fb4b0]
mov edi, dword [0x1402fb4b4]
mov r8d, dword [0x1402fb4bc]
cmp ebx, 0xffffffff
jne 0x14005afd0
mov ebx, r8d
jmp 0x14005affa
cmp edi, 0xffffffff
je 0x14005b000
mov r9, r14
mov edx, edi
mov ecx, ebx
call fcn.14005b5c0
mov r8d, dword [0x1402fb4bc]
mov eax, r8d
sub eax, edi
mov edi, 0xffffffff
mov dword [0x1402fb4b4], edi
add ebx, eax
mov dword [0x1402fb4b0], ebx
mov eax, dword [0x140306908]
inc r8d
mov dword [0x1402fb4bc], r8d
jmp 0x14005af30
cmp ebx, 0xffffffff
je 0x14005b026
cmp edi, 0xffffffff
jne 0x14005b026
mov dword [0x1402fb4b4], r8d
movzx ecx, byte [rax]
cmp cl, 0x2d
jne 0x14005b042
inc rax
mov qword [0x1402fb4a8], rax
mov eax, 0xfffffffe
jmp 0x14005b290
inc rax
movsx ebx, cl
mov qword [0x1402fb4a8], rax
cmp ebx, 0x3a
je 0x14005b1ee
movzx eax, byte [rsi]
mov edx, ebx
sub al, 0x2b
test al, 0xfd
mov rax, r12
sete al
lea rcx, [rax + rsi]
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x14005b1e0
cmp ebx, 0x57
jne 0x14005b120
cmp byte [rax + 1], 0x3b
jne 0x14005b120
mov rax, qword [0x1402fb4a8]
cmp byte [rax], r12b
jne 0x14005b038
mov eax, dword [0x1402fb4bc]
inc eax
mov dword [0x1402fb4bc], eax
cmp eax, r15d
jl 0x14005b109
cmp dword [0x1402fb4b8], r12d
mov qword [0x1402fb4a8], r13
je 0x14005b0c0
cmp byte [rsi], 0x3a
jne 0x14005b0c3
mov ebp, r12d
mov r8d, 0x57
lea rdx, str.option_requires_an_argument_____c
mov ecx, ebp
call fcn.14005b690
mov dword [0x14030690c], 0x57
movzx ecx, byte [rsi]
lea eax, [rcx - 0x2b]
test al, 0xfd
jne 0x14005b0f1
cmp byte [rsi + 1], 0x3a
je 0x14005b0ff
mov eax, 0x3f
cmp cl, 0x3a
jne 0x14005b290
mov eax, 0x3a
jmp 0x14005b290
cdqe
mov rcx, qword [r14 + rax*8]
mov eax, 0xfffffffe
mov qword [0x1402fb4a8], rcx
jmp 0x14005b290
cmp byte [rax + 1], 0x3a
je 0x14005b143
mov rax, qword [0x1402fb4a8]
cmp byte [rax], r12b
jne 0x14005b1d9
inc dword [0x1402fb4bc]
mov eax, ebx
jmp 0x14005b290
mov rcx, qword [0x1402fb4a8]
mov qword [0x140306900], r12
cmp byte [rcx], r12b
je 0x14005b171
inc dword [0x1402fb4bc]
mov eax, ebx
mov qword [0x140306900], rcx
mov qword [0x1402fb4a8], r13
jmp 0x14005b290
cmp byte [rax + 2], 0x3a
je 0x14005b1cc
mov eax, dword [0x1402fb4bc]
inc eax
mov dword [0x1402fb4bc], eax
cmp eax, r15d
jl 0x14005b1be
cmp dword [0x1402fb4b8], r12d
mov qword [0x1402fb4a8], r13
je 0x14005b19f
cmp byte [rsi], 0x3a
jne 0x14005b1a2
mov ebp, r12d
mov r8d, ebx
lea rdx, str.option_requires_an_argument_____c
mov ecx, ebp
call fcn.14005b690
mov dword [0x14030690c], ebx
jmp 0x14005b0e1
movsxd rcx, eax
mov rdx, qword [r14 + rcx*8]
mov qword [0x140306900], rdx
inc dword [0x1402fb4bc]
mov qword [0x1402fb4a8], r13
mov eax, ebx
jmp 0x14005b290
mov r8d, dword [0x1402fb4bc]
mov rax, qword [0x1402fb4a8]
cmp byte [rax], r12b
jne 0x14005b1fd
inc r8d
mov dword [0x1402fb4bc], r8d
cmp dword [0x1402fb4b8], r12d
je 0x14005b20b
cmp byte [rsi], 0x3a
jne 0x14005b20e
mov ebp, r12d
mov r8d, ebx
lea rdx, str.unknown_option_____c
mov ecx, ebp
call fcn.14005b690
mov eax, 0x3f
mov dword [0x14030690c], ebx
jmp 0x14005b290
movsxd rdx, dword [0x1402fb4bc]
mov eax, ebp
mov rcx, qword [r14 + rdx*8]
inc edx
mov dword [0x1402fb4bc], edx
mov qword [0x140306900], rcx
jmp 0x14005b290
mov qword [0x1402fb4a8], r13
cmp edi, 0xffffffff
je 0x14005b26c
mov r9, r14
mov edx, edi
mov ecx, ebx
call fcn.14005b5c0
sub ebx, edi
add dword [0x1402fb4bc], ebx
jmp 0x14005b277
cmp ebx, 0xffffffff
je 0x14005b277
mov dword [0x1402fb4bc], ebx
mov dword [0x1402fb4b4], 0xffffffff
mov dword [0x1402fb4b0], 0xffffffff
mov eax, 0xffffffff
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret