Function at 0x14002bf80
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 [0x14026436c]
mov r15, rdx
xor edx, edx
mov r13d, ecx
mov edi, 1
cmp r8d, 0xffffffff
jne 0x14002bfcc
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 [0x14026436c], r8d
mov ebx, dword [reloc.WS2_32.dll_accept]
test r8d, r8d
mov r12d, edi
cmovne r12d, edx
test ebx, ebx
jne 0x14002bff3
mov ebx, edi
mov r14d, edi
mov dword [0x1402ed508], edi
mov dword [reloc.WS2_32.dll_accept], ebx
jmp 0x14002bffa
mov r14d, dword [0x1402ed508]
mov qword [rsp + 0x60], rbp
mov qword [0x1402ed500], rdx
mov qword [rsp + 0x68], rsi
test r14d, r14d
je 0x14002c023
or ebp, 0xffffffff
or esi, ebp
mov dword [0x140264378], ebp
mov dword [0x140264360], esi
jmp 0x14002c02f
mov esi, dword [0x140264360]
mov ebp, dword [0x140264378]
mov rdi, qword [0x140264370]
lea rcx, [0x1401de1a2]
nop dword [rax]
test r14d, r14d
jne 0x14002c04e
cmp byte [rdi], r14b
jne 0x14002c188
mov r14d, edx
mov dword [0x1402ed508], edx
cmp ebx, r13d
jge 0x14002c3c5
movsxd rax, ebx
mov rdi, qword [r15 + rax*8]
mov qword [0x140264370], rdi
cmp byte [rdi], 0x2d
jne 0x14002c0b4
cmp byte [rdi + 1], 0
jne 0x14002c12f
lea rcx, str.a:Bc: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 [reloc.WS2_32.dll_accept]
mov esi, dword [0x140264360]
mov ebp, dword [0x140264378]
lea rcx, [0x1401de1a2]
test rax, rax
jne 0x14002c126
mov r14d, dword [0x1402ed508]
mov rdi, rcx
mov qword [0x140264370], rcx
test r12b, 2
jne 0x14002c3a8
test r12b, 1
je 0x14002c3f4
cmp esi, 0xffffffff
jne 0x14002c0ee
mov esi, ebx
mov dword [0x140264360], ebx
inc ebx
mov dword [reloc.WS2_32.dll_accept], ebx
xor edx, edx
jmp 0x14002c040
cmp ebp, 0xffffffff
je 0x14002c117
mov r9, r15
call fcn.14002bc30
mov eax, ebx
lea rcx, [0x1401de1a2]
sub eax, ebp
add esi, eax
or ebp, 0xffffffff
mov dword [0x140264378], ebp
mov dword [0x140264360], esi
inc ebx
xor edx, edx
mov dword [reloc.WS2_32.dll_accept], ebx
jmp 0x14002c040
mov rdi, qword [0x140264370]
xor edx, edx
cmp esi, 0xffffffff
je 0x14002c140
cmp ebp, 0xffffffff
cmove ebp, ebx
mov dword [0x140264378], ebp
cmp byte [rdi + 1], 0
lea rax, [rdi + 1]
je 0x14002c188
cmp byte [rax], 0x2d
mov rdi, rax
mov qword [0x140264370], rax
jne 0x14002c188
cmp byte [rax + 1], 0
jne 0x14002c188
inc ebx
mov qword [0x140264370], rcx
mov dword [reloc.WS2_32.dll_accept], ebx
cmp ebp, 0xffffffff
je 0x14002c3e0
mov r9, r15
call fcn.14002bc30
sub esi, ebp
add ebx, esi
jmp 0x14002c3da
movsxd rax, ebx
cmp rdi, qword [r15 + rax*8]
je 0x14002c1f8
movzx eax, byte [rdi]
cmp al, 0x2d
je 0x14002c19e
test r12b, 4
je 0x14002c1f8
mov ebx, edx
cmp al, 0x2d
jne 0x14002c1b0
inc rdi
mov qword [0x140264370], rdi
jmp 0x14002c1cf
cmp al, 0x3a
je 0x14002c1cf
lea rcx, str.a:Bc: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: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.14002bd10
cmp eax, 0xffffffff
jne 0x14002c2b4
mov ebx, dword [reloc.WS2_32.dll_accept]
mov rdi, qword [0x140264370]
movsx esi, byte [rdi]
inc rdi
mov qword [0x140264370], rdi
cmp esi, 0x3a
je 0x14002c374
cmp esi, 0x2d
jne 0x14002c21c
cmp byte [rdi], 0
jne 0x14002c38d
lea rcx, str.a:Bc: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 0x14002c367
cmp esi, 0x57
jne 0x14002c2c7
cmp byte [rax + 1], 0x3b
jne 0x14002c2c7
mov rax, qword [0x140264370]
cmp byte [rax], 0
jne 0x14002c29d
mov eax, dword [reloc.WS2_32.dll_accept]
inc eax
mov dword [reloc.WS2_32.dll_accept], eax
cmp eax, r13d
jl 0x14002c290
lea rcx, [0x1401de1a2]
mov edx, esi
mov qword [0x140264370], rcx
lea rcx, str.option_requires_an_argument_____c
call fcn.14002bbb0
mov dword [0x140264364], esi
lea eax, [rsi - 0x18]
jmp 0x14002c3f7
cdqe
mov rcx, qword [r15 + rax*8]
mov qword [0x140264370], rcx
lea rdx, str.a:Bc: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.14002bd10
lea rcx, [0x1401de1a2]
mov qword [0x140264370], rcx
jmp 0x14002c3f7
cmp byte [rax + 1], 0x3a
je 0x14002c2e6
mov rax, qword [0x140264370]
cmp byte [rax], 0
jne 0x14002c320
inc dword [reloc.WS2_32.dll_accept]
mov eax, esi
jmp 0x14002c3f7
mov rcx, qword [0x140264370]
mov qword [0x1402ed500], 0
cmp byte [rcx], 0
je 0x14002c327
mov qword [0x1402ed500], rcx
mov edx, dword [reloc.WS2_32.dll_accept]
lea rcx, [0x1401de1a2]
inc edx
mov qword [0x140264370], rcx
mov dword [reloc.WS2_32.dll_accept], edx
mov eax, esi
jmp 0x14002c3f7
cmp byte [rax + 2], 0x3a
je 0x14002c304
mov edx, dword [reloc.WS2_32.dll_accept]
inc edx
mov dword [reloc.WS2_32.dll_accept], edx
cmp edx, r13d
jl 0x14002c357
lea rcx, [0x1401de1a2]
mov qword [0x140264370], rcx
lea rcx, str.option_requires_an_argument_____c
jmp 0x14002c394
movsxd rax, edx
mov rcx, qword [r15 + rax*8]
mov qword [0x1402ed500], rcx
jmp 0x14002c30a
mov ebx, dword [reloc.WS2_32.dll_accept]
mov rdi, qword [0x140264370]
cmp esi, 0x2d
jne 0x14002c380
cmp byte [rdi], 0
jne 0x14002c38d
jmp 0x14002c3f4
cmp byte [rdi], 0
jne 0x14002c38d
inc ebx
mov dword [reloc.WS2_32.dll_accept], ebx
lea rcx, str.unknown_option_____c
mov edx, esi
call fcn.14002bbb0
mov dword [0x140264364], esi
mov eax, 0x3f
jmp 0x14002c3f7
movsxd rcx, ebx
inc ebx
mov eax, 1
mov rdx, qword [r15 + rcx*8]
mov dword [reloc.WS2_32.dll_accept], ebx
mov qword [0x1402ed500], rdx
jmp 0x14002c3f7
mov qword [0x140264370], rcx
cmp ebp, 0xffffffff
jne 0x14002c177
cmp esi, ebp
cmovne ebx, esi
mov dword [reloc.WS2_32.dll_accept], ebx
mov dword [0x140264360], 0xffffffff
mov dword [0x140264378], 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