Function at 0x14002c060
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r8d, dword [0x1401770cc]
mov r15, rdx
xor edx, edx
mov r13d, ecx
mov edi, 1
cmp r8d, 0xffffffff
jne 0x14002c0ac
lea rcx, str.POSIXLY_CORRECT
call qword [sym.imp.MSVCR120.dll_getenv]
xor edx, edx
mov r8d, edx
test rax, rax
setne r8b
mov dword [0x1401770cc], r8d
mov ebx, dword [0x1401770c8]
test r8d, r8d
mov r12d, edi
cmovne r12d, edx
test ebx, ebx
jne 0x14002c0d3
mov ebx, edi
mov r14d, edi
mov dword [0x1401f4fc8], edi
mov dword [0x1401770c8], ebx
jmp 0x14002c0da
mov r14d, dword [0x1401f4fc8]
mov qword [rsp + 0x60], rbp
mov qword [0x1401f4fc0], rdx
mov qword [rsp + 0x68], rsi
test r14d, r14d
je 0x14002c103
or ebp, 0xffffffff
or esi, ebp
mov dword [0x1401770d8], ebp
mov dword [0x1401770c0], esi
jmp 0x14002c10f
mov esi, dword [0x1401770c0]
mov ebp, dword [0x1401770d8]
mov rdi, qword [0x1401770d0]
lea rcx, [0x140137a06]
nop dword [rax]
test r14d, r14d
jne 0x14002c12e
cmp byte [rdi], r14b
jne 0x14002c268
mov r14d, edx
mov dword [0x1401f4fc8], edx
cmp ebx, r13d
jge 0x14002c4a5
movsxd rax, ebx
mov rdi, qword [r15 + rax*8]
mov qword [0x1401770d0], rdi
cmp byte [rdi], 0x2d
jne 0x14002c194
cmp byte [rdi + 1], 0
jne 0x14002c20f
lea rcx, str.a:Bc:k:i:Dhp:Px:f:m:nqr:R:s:t:T:o:u:O:Vd:N:b:l:L:
mov edx, 0x2d
call qword [sym.imp.MSVCR120.dll_strchr]
mov ebx, dword [0x1401770c8]
mov esi, dword [0x1401770c0]
mov ebp, dword [0x1401770d8]
lea rcx, [0x140137a06]
test rax, rax
jne 0x14002c206
mov r14d, dword [0x1401f4fc8]
mov rdi, rcx
mov qword [0x1401770d0], rcx
test r12b, 2
jne 0x14002c488
test r12b, 1
je 0x14002c4d4
cmp esi, 0xffffffff
jne 0x14002c1ce
mov esi, ebx
mov dword [0x1401770c0], ebx
inc ebx
mov dword [0x1401770c8], ebx
xor edx, edx
jmp 0x14002c120
cmp ebp, 0xffffffff
je 0x14002c1f7
mov r9, r15
call fcn.14002bd10
mov eax, ebx
lea rcx, [0x140137a06]
sub eax, ebp
add esi, eax
or ebp, 0xffffffff
mov dword [0x1401770d8], ebp
mov dword [0x1401770c0], esi
inc ebx
xor edx, edx
mov dword [0x1401770c8], ebx
jmp 0x14002c120
mov rdi, qword [0x1401770d0]
xor edx, edx
cmp esi, 0xffffffff
je 0x14002c220
cmp ebp, 0xffffffff
cmove ebp, ebx
mov dword [0x1401770d8], ebp
cmp byte [rdi + 1], 0
lea rax, [rdi + 1]
je 0x14002c268
cmp byte [rax], 0x2d
mov rdi, rax
mov qword [0x1401770d0], rax
jne 0x14002c268
cmp byte [rax + 1], 0
jne 0x14002c268
inc ebx
mov qword [0x1401770d0], rcx
mov dword [0x1401770c8], ebx
cmp ebp, 0xffffffff
je 0x14002c4c0
mov r9, r15
call fcn.14002bd10
sub esi, ebp
add ebx, esi
jmp 0x14002c4ba
movsxd rax, ebx
cmp rdi, qword [r15 + rax*8]
je 0x14002c2d8
movzx eax, byte [rdi]
cmp al, 0x2d
je 0x14002c27e
test r12b, 4
je 0x14002c2d8
mov ebx, edx
cmp al, 0x2d
jne 0x14002c290
inc rdi
mov qword [0x1401770d0], rdi
jmp 0x14002c2af
cmp al, 0x3a
je 0x14002c2af
lea rcx, str.a:Bc:k:i:Dhp:Px:f:m:nqr:R:s:t:T:o:u:O:Vd:N:b:l:L:
movsx edx, al
call qword [sym.imp.MSVCR120.dll_strchr]
test rax, rax
mov eax, 1
cmovne ebx, eax
lea rdx, str.a:Bc:k:i:Dhp:Px:f:m:nqr:R:s:t:T:o:u:O:Vd:N:b:l:L:
mov rcx, r15
mov dword [rsp + 0x20], ebx
call fcn.14002bdf0
cmp eax, 0xffffffff
jne 0x14002c394
mov ebx, dword [0x1401770c8]
mov rdi, qword [0x1401770d0]
movsx esi, byte [rdi]
inc rdi
mov qword [0x1401770d0], rdi
cmp esi, 0x3a
je 0x14002c454
cmp esi, 0x2d
jne 0x14002c2fc
cmp byte [rdi], 0
jne 0x14002c46d
lea rcx, str.a:Bc:k:i:Dhp:Px:f:m:nqr:R:s:t:T:o:u:O:Vd:N:b:l:L:
mov edx, esi
call qword [sym.imp.MSVCR120.dll_strchr]
test rax, rax
je 0x14002c447
cmp esi, 0x57
jne 0x14002c3a7
cmp byte [rax + 1], 0x3b
jne 0x14002c3a7
mov rax, qword [0x1401770d0]
cmp byte [rax], 0
jne 0x14002c37d
mov eax, dword [0x1401770c8]
inc eax
mov dword [0x1401770c8], eax
cmp eax, r13d
jl 0x14002c370
lea rcx, [0x140137a06]
mov edx, esi
mov qword [0x1401770d0], rcx
lea rcx, str.option_requires_an_argument_____c
call fcn.14002bc90
mov dword [0x1401770c4], esi
lea eax, [rsi - 0x18]
jmp 0x14002c4d7
cdqe
mov rcx, qword [r15 + rax*8]
mov qword [0x1401770d0], rcx
lea rdx, str.a:Bc:k:i:Dhp:Px:f:m:nqr:R:s:t:T:o:u:O:Vd:N:b:l:L:
mov rcx, r15
mov dword [rsp + 0x20], 0
call fcn.14002bdf0
lea rcx, [0x140137a06]
mov qword [0x1401770d0], rcx
jmp 0x14002c4d7
cmp byte [rax + 1], 0x3a
je 0x14002c3c6
mov rax, qword [0x1401770d0]
cmp byte [rax], 0
jne 0x14002c400
inc dword [0x1401770c8]
mov eax, esi
jmp 0x14002c4d7
mov rcx, qword [0x1401770d0]
mov qword [0x1401f4fc0], 0
cmp byte [rcx], 0
je 0x14002c407
mov qword [0x1401f4fc0], rcx
mov edx, dword [0x1401770c8]
lea rcx, [0x140137a06]
inc edx
mov qword [0x1401770d0], rcx
mov dword [0x1401770c8], edx
mov eax, esi
jmp 0x14002c4d7
cmp byte [rax + 2], 0x3a
je 0x14002c3e4
mov edx, dword [0x1401770c8]
inc edx
mov dword [0x1401770c8], edx
cmp edx, r13d
jl 0x14002c437
lea rcx, [0x140137a06]
mov qword [0x1401770d0], rcx
lea rcx, str.option_requires_an_argument_____c
jmp 0x14002c474
movsxd rax, edx
mov rcx, qword [r15 + rax*8]
mov qword [0x1401f4fc0], rcx
jmp 0x14002c3ea
mov ebx, dword [0x1401770c8]
mov rdi, qword [0x1401770d0]
cmp esi, 0x2d
jne 0x14002c460
cmp byte [rdi], 0
jne 0x14002c46d
jmp 0x14002c4d4
cmp byte [rdi], 0
jne 0x14002c46d
inc ebx
mov dword [0x1401770c8], ebx
lea rcx, str.unknown_option_____c
mov edx, esi
call fcn.14002bc90
mov dword [0x1401770c4], esi
mov eax, 0x3f
jmp 0x14002c4d7
movsxd rcx, ebx
inc ebx
mov eax, 1
mov rdx, qword [r15 + rcx*8]
mov dword [0x1401770c8], ebx
mov qword [0x1401f4fc0], rdx
jmp 0x14002c4d7
mov qword [0x1401770d0], rcx
cmp ebp, 0xffffffff
jne 0x14002c257
cmp esi, ebp
cmovne ebx, esi
mov dword [0x1401770c8], ebx
mov dword [0x1401770c0], 0xffffffff
mov dword [0x1401770d8], 0xffffffff
or eax, 0xffffffff
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret