Function at 0x14002ab70
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 [0x14025821c]
mov r15, rdx
xor edx, edx
mov r13d, ecx
mov edi, 1
cmp r8d, 0xffffffff
jne 0x14002abbc
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 [0x14025821c], r8d
mov ebx, dword [reloc.WS2_32.dll_accept]
test r8d, r8d
mov r12d, edi
cmovne r12d, edx
test ebx, ebx
jne 0x14002abe3
mov ebx, edi
mov r14d, edi
mov dword [0x1402e0308], edi
mov dword [reloc.WS2_32.dll_accept], ebx
jmp 0x14002abea
mov r14d, dword [0x1402e0308]
mov qword [rsp + 0x60], rbp
mov qword [0x1402e0300], rdx
mov qword [rsp + 0x68], rsi
test r14d, r14d
je 0x14002ac13
or ebp, 0xffffffff
or esi, ebp
mov dword [0x140258228], ebp
mov dword [0x140258210], esi
jmp 0x14002ac1f
mov esi, dword [0x140258210]
mov ebp, dword [0x140258228]
mov rdi, qword [0x140258220]
lea rcx, [0x1401d3072]
nop dword [rax]
test r14d, r14d
jne 0x14002ac3e
cmp byte [rdi], r14b
jne 0x14002ad78
mov r14d, edx
mov dword [0x1402e0308], edx
cmp ebx, r13d
jge 0x14002afb5
movsxd rax, ebx
mov rdi, qword [r15 + rax*8]
mov qword [0x140258220], rdi
cmp byte [rdi], 0x2d
jne 0x14002aca4
cmp byte [rdi + 1], 0
jne 0x14002ad1f
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 [0x140258210]
mov ebp, dword [0x140258228]
lea rcx, [0x1401d3072]
test rax, rax
jne 0x14002ad16
mov r14d, dword [0x1402e0308]
mov rdi, rcx
mov qword [0x140258220], rcx
test r12b, 2
jne 0x14002af98
test r12b, 1
je 0x14002afe4
cmp esi, 0xffffffff
jne 0x14002acde
mov esi, ebx
mov dword [0x140258210], ebx
inc ebx
mov dword [reloc.WS2_32.dll_accept], ebx
xor edx, edx
jmp 0x14002ac30
cmp ebp, 0xffffffff
je 0x14002ad07
mov r9, r15
call fcn.14002a820
mov eax, ebx
lea rcx, [0x1401d3072]
sub eax, ebp
add esi, eax
or ebp, 0xffffffff
mov dword [0x140258228], ebp
mov dword [0x140258210], esi
inc ebx
xor edx, edx
mov dword [reloc.WS2_32.dll_accept], ebx
jmp 0x14002ac30
mov rdi, qword [0x140258220]
xor edx, edx
cmp esi, 0xffffffff
je 0x14002ad30
cmp ebp, 0xffffffff
cmove ebp, ebx
mov dword [0x140258228], ebp
cmp byte [rdi + 1], 0
lea rax, [rdi + 1]
je 0x14002ad78
cmp byte [rax], 0x2d
mov rdi, rax
mov qword [0x140258220], rax
jne 0x14002ad78
cmp byte [rax + 1], 0
jne 0x14002ad78
inc ebx
mov qword [0x140258220], rcx
mov dword [reloc.WS2_32.dll_accept], ebx
cmp ebp, 0xffffffff
je 0x14002afd0
mov r9, r15
call fcn.14002a820
sub esi, ebp
add ebx, esi
jmp 0x14002afca
movsxd rax, ebx
cmp rdi, qword [r15 + rax*8]
je 0x14002ade8
movzx eax, byte [rdi]
cmp al, 0x2d
je 0x14002ad8e
test r12b, 4
je 0x14002ade8
mov ebx, edx
cmp al, 0x2d
jne 0x14002ada0
inc rdi
mov qword [0x140258220], rdi
jmp 0x14002adbf
cmp al, 0x3a
je 0x14002adbf
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.14002a900
cmp eax, 0xffffffff
jne 0x14002aea4
mov ebx, dword [reloc.WS2_32.dll_accept]
mov rdi, qword [0x140258220]
movsx esi, byte [rdi]
inc rdi
mov qword [0x140258220], rdi
cmp esi, 0x3a
je 0x14002af64
cmp esi, 0x2d
jne 0x14002ae0c
cmp byte [rdi], 0
jne 0x14002af7d
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 0x14002af57
cmp esi, 0x57
jne 0x14002aeb7
cmp byte [rax + 1], 0x3b
jne 0x14002aeb7
mov rax, qword [0x140258220]
cmp byte [rax], 0
jne 0x14002ae8d
mov eax, dword [reloc.WS2_32.dll_accept]
inc eax
mov dword [reloc.WS2_32.dll_accept], eax
cmp eax, r13d
jl 0x14002ae80
lea rcx, [0x1401d3072]
mov edx, esi
mov qword [0x140258220], rcx
lea rcx, str.option_requires_an_argument_____c
call fcn.14002a7a0
mov dword [0x140258214], esi
lea eax, [rsi - 0x18]
jmp 0x14002afe7
cdqe
mov rcx, qword [r15 + rax*8]
mov qword [0x140258220], 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.14002a900
lea rcx, [0x1401d3072]
mov qword [0x140258220], rcx
jmp 0x14002afe7
cmp byte [rax + 1], 0x3a
je 0x14002aed6
mov rax, qword [0x140258220]
cmp byte [rax], 0
jne 0x14002af10
inc dword [reloc.WS2_32.dll_accept]
mov eax, esi
jmp 0x14002afe7
mov rcx, qword [0x140258220]
mov qword [0x1402e0300], 0
cmp byte [rcx], 0
je 0x14002af17
mov qword [0x1402e0300], rcx
mov edx, dword [reloc.WS2_32.dll_accept]
lea rcx, [0x1401d3072]
inc edx
mov qword [0x140258220], rcx
mov dword [reloc.WS2_32.dll_accept], edx
mov eax, esi
jmp 0x14002afe7
cmp byte [rax + 2], 0x3a
je 0x14002aef4
mov edx, dword [reloc.WS2_32.dll_accept]
inc edx
mov dword [reloc.WS2_32.dll_accept], edx
cmp edx, r13d
jl 0x14002af47
lea rcx, [0x1401d3072]
mov qword [0x140258220], rcx
lea rcx, str.option_requires_an_argument_____c
jmp 0x14002af84
movsxd rax, edx
mov rcx, qword [r15 + rax*8]
mov qword [0x1402e0300], rcx
jmp 0x14002aefa
mov ebx, dword [reloc.WS2_32.dll_accept]
mov rdi, qword [0x140258220]
cmp esi, 0x2d
jne 0x14002af70
cmp byte [rdi], 0
jne 0x14002af7d
jmp 0x14002afe4
cmp byte [rdi], 0
jne 0x14002af7d
inc ebx
mov dword [reloc.WS2_32.dll_accept], ebx
lea rcx, str.unknown_option_____c
mov edx, esi
call fcn.14002a7a0
mov dword [0x140258214], esi
mov eax, 0x3f
jmp 0x14002afe7
movsxd rcx, ebx
inc ebx
mov eax, 1
mov rdx, qword [r15 + rcx*8]
mov dword [reloc.WS2_32.dll_accept], ebx
mov qword [0x1402e0300], rdx
jmp 0x14002afe7
mov qword [0x140258220], rcx
cmp ebp, 0xffffffff
jne 0x14002ad67
cmp esi, ebp
cmovne ebx, esi
mov dword [reloc.WS2_32.dll_accept], ebx
mov dword [0x140258210], 0xffffffff
mov dword [0x140258228], 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