Function at 0x140036aa0
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 r14d, dword [rsp + 0xb8]
mov ebp, ecx
mov r15, rdx
mov r12, r8
mov r13, r9
test r8, r8
je 0x140036d76
mov r9d, dword [0x14027b29c]
mov eax, dword [0x14027b280]
test r9d, r9d
je 0x140036c70
cmp eax, 0xffffffff
je 0x140036c84
mov edx, dword [0x1404007c8]
test edx, edx
jne 0x140036c84
movzx eax, byte [r12]
cmp al, 0x2d
je 0x140036cb7
mov r8d, dword [0x14027b280]
test r8d, r8d
jne 0x140036b16
cmp al, 0x2b
jne 0x140036b22
and r14d, 0xfffffffe
cmp al, 0x2b
je 0x140036cbb
mov qword [0x1404007c0], 0
test edx, edx
je 0x140036be9
mov dword [0x14027b284], 0xffffffff
mov dword [0x14027b288], 0xffffffff
nop dword [rax]
mov dword [0x1404007c8], 0
mov ebx, dword [0x14027b29c]
cmp ebx, ebp
jge 0x140036d38
movsxd rax, ebx
mov rsi, qword [r15 + rax*8]
cmp byte [rsi], 0x2d
mov qword [0x14027b290], rsi
je 0x140036cc8
lea rax, [0x1403e8de8]
mov qword [0x14027b290], rax
test r14b, 2
jne 0x140036d90
test r14b, 1
je 0x140036d76
mov esi, dword [0x14027b288]
cmp esi, 0xffffffff
je 0x140036d28
mov edi, dword [0x14027b284]
cmp edi, 0xffffffff
je 0x140036be0
mov edx, edi
mov r9, r15
mov r8d, ebx
mov ecx, esi
call fcn.1400365b0
sub edi, esi
mov eax, ebx
mov dword [0x14027b284], 0xffffffff
sub eax, edi
mov dword [0x14027b288], eax
add ebx, 1
mov dword [0x14027b29c], ebx
mov rdi, qword [0x14027b290]
movzx eax, byte [rdi]
test al, al
je 0x140036b50
test r13, r13
je 0x140036c1f
movsxd rdx, dword [0x14027b29c]
cmp qword [r15 + rdx*8], rdi
je 0x140036c1f
cmp al, 0x2d
je 0x140036ffb
and r14d, 4
jne 0x140036dc3
lea rbx, [rdi + 1]
movsx r14d, al
mov qword [0x14027b290], rbx
cmp al, 0x3a
jne 0x140036e15
cmp byte [rdi + 1], 0
jne 0x140036c43
add dword [0x14027b29c], 1
mov ecx, dword [0x14027b2a0]
test ecx, ecx
je 0x140036c58
cmp byte [r12], 0x3a
jne 0x140036f97
mov dword [0x14027b298], r14d
mov r14d, 0x3f
jmp 0x140036d7c
mov dword [0x1404007c8], 1
mov dword [0x14027b29c], 1
xor edx, edx
xor r8d, r8d
lea rcx, str.POSIXLY_CORRECT
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edx, dword [0x1404007c8]
test eax, eax
setne al
movzx eax, al
mov dword [0x14027b280], eax
movzx eax, byte [r12]
cmp al, 0x2d
jne 0x140036b06
or r14d, 2
add r12, 1
jmp 0x140036b22
movzx eax, byte [rsi + 1]
test al, al
jne 0x140036f06
mov edx, 0x2d
mov rcx, r12
call sub.msvcrt.dll_strchr
test rax, rax
je 0x140036b7f
cmp dword [0x14027b288], 0xffffffff
je 0x14003700d
cmp dword [0x14027b284], 0xffffffff
je 0x140036ff0
lea rbx, [rsi + 1]
mov qword [0x14027b290], rbx
cmp byte [rsi + 1], 0
je 0x140036ec4
mov r14d, 0x2d
jmp 0x140036c43
mov dword [0x14027b288], ebx
jmp 0x140036be0
mov esi, dword [0x14027b284]
lea rax, [0x1403e8de8]
mov edi, dword [0x14027b288]
mov qword [0x14027b290], rax
cmp esi, 0xffffffff
jne 0x140036da8
cmp edi, 0xffffffff
je 0x140036d62
mov dword [0x14027b29c], edi
mov dword [0x14027b284], 0xffffffff
mov dword [0x14027b288], 0xffffffff
mov r14d, 0xffffffff
mov eax, r14d
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 [0x1404007c0], rsi
mov r14d, 1
mov dword [0x14027b29c], ebx
jmp 0x140036d7c
mov edx, esi
sub esi, edi
mov r8d, ebx
mov r9, r15
mov ecx, edi
sub ebx, esi
call fcn.1400365b0
mov dword [0x14027b29c], ebx
jmp 0x140036d62
xor edx, edx
cmp al, 0x3a
je 0x140036ddc
movsx edx, al
mov rcx, r12
call sub.msvcrt.dll_strchr
xor edx, edx
test rax, rax
setne dl
mov dword [rsp + 0x20], edx
mov r8, r13
mov rdx, r12
mov rcx, r15
mov r9, qword [rsp + 0xb0]
call fcn.140036700
mov r14d, eax
cmp eax, 0xffffffff
je 0x140036f88
lea rax, [0x1403e8de8]
mov qword [0x14027b290], rax
jmp 0x140036d7c
cmp r14d, 0x2d
je 0x14003701b
mov edx, r14d
mov rcx, r12
call sub.msvcrt.dll_strchr
test rax, rax
je 0x140036c36
movzx edx, byte [rax + 1]
test r13, r13
je 0x140036ee7
cmp r14d, 0x57
jne 0x140036ee7
cmp dl, 0x3b
jne 0x140036ee7
cmp byte [rdi + 1], 0
jne 0x140037053
mov eax, dword [0x14027b29c]
add eax, 1
mov dword [0x14027b29c], eax
cmp eax, ebp
jl 0x140037046
mov edx, dword [0x14027b2a0]
lea rax, [0x1403e8de8]
mov qword [0x14027b290], rax
test edx, edx
je 0x140036ea4
cmp byte [r12], 0x3a
je 0x140036ea4
mov edx, 0x57
lea rcx, str.option_requires_an_argument_____c
call fcn.140036670
mov dword [0x14027b298], 0x57
cmp byte [r12], 0x3a
je 0x1400370b9
mov r14d, 0x3f
jmp 0x140036d7c
mov edx, 0x2d
mov rcx, r12
call sub.msvcrt.dll_strchr
test rax, rax
je 0x140036d76
movzx edx, byte [rax + 1]
mov rdi, rsi
mov r14d, 0x2d
cmp dl, 0x3a
je 0x140036fab
cmp byte [rdi + 1], 0
jne 0x140036d7c
add dword [0x14027b29c], 1
jmp 0x140036d7c
mov ecx, dword [0x14027b288]
cmp ecx, 0xffffffff
je 0x140036f1e
cmp dword [0x14027b284], 0xffffffff
je 0x140036fe5
lea rdi, [rsi + 1]
mov qword [0x14027b290], rdi
cmp al, 0x2d
jne 0x140036bfb
cmp byte [rsi + 2], 0
jne 0x140036bfb
mov esi, dword [0x14027b284]
add ebx, 1
lea rax, [0x1403e8de8]
mov dword [0x14027b29c], ebx
mov qword [0x14027b290], rax
cmp esi, 0xffffffff
je 0x140036d62
mov r8d, ebx
mov edx, esi
mov r9, r15
mov dword [rsp + 0x3c], ecx
call fcn.1400365b0
mov ecx, dword [rsp + 0x3c]
sub esi, ecx
sub ebx, esi
mov dword [0x14027b29c], ebx
jmp 0x140036d62
mov rdi, qword [0x14027b290]
movzx eax, byte [rdi]
jmp 0x140036c1f
mov edx, r14d
lea rcx, str.unknown_option_____c
call fcn.140036670
jmp 0x140036c58
mov qword [0x1404007c0], 0
cmp byte [rdi + 1], 0
mov edx, dword [0x14027b29c]
je 0x140037023
mov qword [0x1404007c0], rbx
lea rax, [0x1403e8de8]
add edx, 1
mov qword [0x14027b290], rax
mov dword [0x14027b29c], edx
jmp 0x140036d7c
mov dword [0x14027b284], ebx
jmp 0x140036f1e
mov dword [0x14027b284], ebx
jmp 0x140036d04
add rdi, 1
xor edx, edx
mov qword [0x14027b290], rdi
jmp 0x140036ddc
lea rbx, [rsi + 1]
mov rdi, rsi
mov qword [0x14027b290], rbx
mov rsi, rdi
jmp 0x140036d0f
cmp byte [rax + 2], 0x3a
je 0x140036fc9
add edx, 1
mov dword [0x14027b29c], edx
cmp ebp, edx
jle 0x140037079
movsxd rax, edx
mov rax, qword [r15 + rax*8]
mov qword [0x1404007c0], rax
jmp 0x140036fc9
cdqe
mov rax, qword [r15 + rax*8]
mov qword [0x14027b290], rax
mov dword [rsp + 0x20], 0
mov r8, r13
mov rdx, r12
mov rcx, r15
mov r9, qword [rsp + 0xb0]
call fcn.140036700
mov r14d, eax
jmp 0x140036e02
lea rax, [0x1403e8de8]
mov qword [0x14027b290], rax
mov eax, dword [0x14027b2a0]
test eax, eax
je 0x1400370a7
cmp byte [r12], 0x3a
je 0x1400370a7
mov edx, r14d
lea rcx, str.option_requires_an_argument_____c
call fcn.140036670
mov dword [0x14027b298], r14d
cmp byte [r12], 0x3a
jne 0x140036eb9
mov r14d, 0x3a
jmp 0x140036d7c