Function at 0x1400013d0
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 [0x140072144]
mov r13d, ecx
xor ecx, ecx
mov r15, rdx
mov edi, 1
cmp r8d, 0xffffffff
jne 0x14000141c
lea rcx, str.POSIXLY_CORRECT
call qword [sym.imp.MSVCR120.dll_getenv]
xor ecx, ecx
mov r8d, ecx
test rax, rax
setne r8b
mov dword [0x140072144], r8d
mov ebx, dword [reloc.WS2_32.dll_accept]
test r8d, r8d
mov r12d, edi
cmovne r12d, ecx
test ebx, ebx
jne 0x140001443
mov ebx, edi
mov r14d, edi
mov dword [0x140075968], edi
mov dword [reloc.WS2_32.dll_accept], ebx
jmp 0x14000144a
mov r14d, dword [0x140075968]
mov qword [rsp + 0x60], rbp
mov qword [0x140075960], rcx
mov qword [rsp + 0x68], rsi
test r14d, r14d
je 0x140001473
or ebp, 0xffffffff
or esi, ebp
mov dword [0x140072150], ebp
mov dword [0x140072138], esi
jmp 0x14000147f
mov esi, dword [0x140072138]
mov ebp, dword [0x140072150]
mov rdi, qword [0x140072148]
test r14d, r14d
jne 0x140001494
cmp byte [rdi], r14b
jne 0x1400015cb
mov r14d, ecx
mov dword [0x140075968], ecx
cmp ebx, r13d
jge 0x140001817
movsxd rax, ebx
mov rdi, qword [r15 + rax*8]
mov qword [0x140072148], rdi
cmp byte [rdi], 0x2d
jne 0x1400014f3
cmp byte [rdi + 1], 0
jne 0x14000156b
lea rcx, str.a:c:Dhp:Px:kqr:R:s:t:T:o:u:O:Vd:f:ml:
mov edx, Ordinal_46
call qword [sym.imp.MSVCR120.dll_strchr]
mov ebx, dword [reloc.WS2_32.dll_accept]
mov esi, dword [0x140072138]
mov ebp, dword [0x140072150]
test rax, rax
jne 0x140001562
mov r14d, dword [0x140075968]
lea rdi, [0x1400751d2]
mov qword [0x140072148], rdi
test r12b, 2
jne 0x1400017fa
test r12b, 1
je 0x14000184d
cmp esi, 0xffffffff
jne 0x140001531
mov esi, ebx
mov dword [0x140072138], ebx
inc ebx
mov dword [reloc.WS2_32.dll_accept], ebx
xor ecx, ecx
jmp 0x140001486
cmp ebp, 0xffffffff
je 0x140001553
mov r9, r15
call fcn.140001080
mov eax, ebx
sub eax, ebp
add esi, eax
or ebp, 0xffffffff
mov dword [0x140072150], ebp
mov dword [0x140072138], esi
inc ebx
xor ecx, ecx
mov dword [reloc.WS2_32.dll_accept], ebx
jmp 0x140001486
mov rdi, qword [0x140072148]
xor ecx, ecx
cmp esi, 0xffffffff
je 0x14000157c
cmp ebp, 0xffffffff
cmove ebp, ebx
mov dword [0x140072150], ebp
cmp byte [rdi + 1], 0
lea rax, [rdi + 1]
je 0x1400015cb
cmp byte [rax], 0x2d
mov rdi, rax
mov qword [0x140072148], rax
jne 0x1400015cb
cmp byte [rax + 1], 0
jne 0x1400015cb
inc ebx
lea rcx, [0x1400751d3]
mov qword [0x140072148], rcx
mov dword [reloc.WS2_32.dll_accept], ebx
cmp ebp, 0xffffffff
je 0x140001839
mov r9, r15
call fcn.140001080
sub esi, ebp
add ebx, esi
jmp 0x140001833
movsxd rax, ebx
cmp rdi, qword [r15 + rax*8]
je 0x14000164a
movzx eax, byte [rdi]
cmp al, 0x2d
je 0x1400015e1
test r12b, 4
je 0x14000164a
mov ebx, ecx
cmp al, 0x2d
jne 0x1400015f3
inc rdi
mov qword [0x140072148], rdi
jmp 0x140001612
cmp al, 0x3a
je 0x140001612
lea rcx, str.a:c:Dhp:Px:kqr:R:s:t:T:o:u:O:Vd:f:ml:
movsx edx, al
call qword [sym.imp.MSVCR120.dll_strchr]
test rax, rax
mov eax, 1
cmovne ebx, eax
lea rdx, str.a:c:Dhp:Px:kqr:R:s:t:T:o:u:O:Vd:f:ml:
mov rcx, r15
mov dword [rsp + 0x20], ebx
call fcn.140001160
cmp eax, 0xffffffff
je 0x14000163d
lea rcx, [0x1400751d4]
mov qword [0x140072148], rcx
jmp 0x140001850
mov ebx, dword [reloc.WS2_32.dll_accept]
mov rdi, qword [0x140072148]
movsx esi, byte [rdi]
inc rdi
mov qword [0x140072148], rdi
cmp esi, 0x3a
je 0x1400017c6
cmp esi, 0x2d
jne 0x14000166e
cmp byte [rdi], 0
jne 0x1400017df
lea rcx, str.a:c:Dhp:Px:kqr:R:s:t:T:o:u:O:Vd:f:ml:
mov edx, esi
call qword [sym.imp.MSVCR120.dll_strchr]
test rax, rax
je 0x1400017b9
cmp esi, 0x57
jne 0x140001719
cmp byte [rax + 1], 0x3b
jne 0x140001719
mov rax, qword [0x140072148]
cmp byte [rax], 0
jne 0x1400016ef
mov eax, dword [reloc.WS2_32.dll_accept]
inc eax
mov dword [reloc.WS2_32.dll_accept], eax
cmp eax, r13d
jl 0x1400016e2
lea rax, [0x1400751d5]
lea rcx, str.option_requires_an_argument_____c
mov edx, esi
mov qword [0x140072148], rax
call section..text
mov dword [0x14007213c], esi
lea eax, [rsi - 0x18]
jmp 0x140001850
cdqe
mov rcx, qword [r15 + rax*8]
mov qword [0x140072148], rcx
lea rdx, str.a:c:Dhp:Px:kqr:R:s:t:T:o:u:O:Vd:f:ml:
mov rcx, r15
mov dword [rsp + 0x20], 0
call fcn.140001160
lea rcx, [0x1400751d6]
mov qword [0x140072148], rcx
jmp 0x140001850
cmp byte [rax + 1], 0x3a
je 0x140001738
mov rax, qword [0x140072148]
cmp byte [rax], 0
jne 0x140001772
inc dword [reloc.WS2_32.dll_accept]
mov eax, esi
jmp 0x140001850
mov rcx, qword [0x140072148]
mov qword [0x140075960], 0
cmp byte [rcx], 0
je 0x140001779
mov qword [0x140075960], rcx
mov edx, dword [reloc.WS2_32.dll_accept]
lea rax, [0x1400751d8]
inc edx
mov qword [0x140072148], rax
mov dword [reloc.WS2_32.dll_accept], edx
mov eax, esi
jmp 0x140001850
cmp byte [rax + 2], 0x3a
je 0x140001756
mov edx, dword [reloc.WS2_32.dll_accept]
inc edx
mov dword [reloc.WS2_32.dll_accept], edx
cmp edx, r13d
jl 0x1400017a9
lea rax, [0x1400751d7]
lea rcx, str.option_requires_an_argument_____c
mov qword [0x140072148], rax
jmp 0x1400017e6
movsxd rax, edx
mov rcx, qword [r15 + rax*8]
mov qword [0x140075960], rcx
jmp 0x14000175c
mov ebx, dword [reloc.WS2_32.dll_accept]
mov rdi, qword [0x140072148]
cmp esi, 0x2d
jne 0x1400017d2
cmp byte [rdi], 0
jne 0x1400017df
jmp 0x14000184d
cmp byte [rdi], 0
jne 0x1400017df
inc ebx
mov dword [reloc.WS2_32.dll_accept], ebx
lea rcx, str.unknown_option_____c
mov edx, esi
call section..text
mov dword [0x14007213c], esi
mov eax, 0x3f
jmp 0x140001850
movsxd rcx, ebx
inc ebx
mov eax, 1
mov rdx, qword [r15 + rcx*8]
mov dword [reloc.WS2_32.dll_accept], ebx
mov qword [0x140075960], rdx
jmp 0x140001850
lea rax, [0x1400751d1]
mov qword [0x140072148], rax
cmp ebp, 0xffffffff
jne 0x1400015ba
cmp esi, ebp
cmovne ebx, esi
mov dword [reloc.WS2_32.dll_accept], ebx
mov dword [0x140072138], 0xffffffff
mov dword [0x140072150], 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