Function at 0x1400282a0
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 [0x140185934]
mov r15, rdx
xor edx, edx
mov r13d, ecx
cmp r8d, 0xffffffff
jne 0x1400282e7
lea rcx, str.POSIXLY_CORRECT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor edx, edx
mov r8d, edx
test rax, rax
setne r8b
mov dword [0x140185934], r8d
mov ebx, dword [reloc.WS2_32.dll_accept]
test r8d, r8d
mov r12d, 1
cmovne r12d, edx
test ebx, ebx
jne 0x140028316
mov r14d, 1
mov ebx, r14d
mov dword [0x140197e28], r14d
mov dword [reloc.WS2_32.dll_accept], ebx
jmp 0x14002831d
mov r14d, dword [0x140197e28]
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov qword [0x140197e20], rdx
test r14d, r14d
je 0x140028346
or ebp, 0xffffffff
or esi, ebp
mov dword [0x140185944], ebp
mov dword [0x140185940], esi
jmp 0x140028352
mov esi, dword [0x140185940]
mov ebp, dword [0x140185944]
mov rdi, qword [0x140185938]
lea rcx, [0x1401332a2]
test r14d, r14d
jne 0x14002836e
cmp byte [rdi], r14b
jne 0x1400284a1
mov dword [0x140197e28], edx
mov r14d, edx
cmp ebx, r13d
jge 0x140028691
movsxd rax, ebx
mov rdi, qword [r15 + rax*8]
mov qword [0x140185938], rdi
cmp byte [rdi], 0x2d
jne 0x1400283d4
cmp byte [rdi + 1], 0
jne 0x14002844f
mov edx, Ordinal_46
lea rcx, str.a:c:i:Dhp:Px:nqr:R:s:t:T:o:u:O:Vd:f:m:N:b:eB
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov ebx, dword [reloc.WS2_32.dll_accept]
lea rcx, [0x1401332a2]
mov esi, dword [0x140185940]
mov ebp, dword [0x140185944]
test rax, rax
jne 0x140028446
mov r14d, dword [0x140197e28]
mov qword [0x140185938], rcx
mov rdi, rcx
test r12b, 2
jne 0x140028674
test r12b, 1
je 0x1400286c0
cmp esi, 0xffffffff
jne 0x14002840e
mov esi, ebx
mov dword [0x140185940], ebx
inc ebx
mov dword [reloc.WS2_32.dll_accept], ebx
xor edx, edx
jmp 0x140028360
cmp ebp, 0xffffffff
je 0x140028437
mov r9, r15
call fcn.140027f90
mov eax, ebx
lea rcx, [0x1401332a2]
sub eax, ebp
add esi, eax
or ebp, 0xffffffff
mov dword [0x140185940], esi
mov dword [0x140185944], ebp
inc ebx
mov dword [reloc.WS2_32.dll_accept], ebx
xor edx, edx
jmp 0x140028360
mov rdi, qword [0x140185938]
xor edx, edx
cmp esi, 0xffffffff
je 0x140028460
cmp ebp, 0xffffffff
cmove ebp, ebx
mov dword [0x140185944], ebp
cmp byte [rdi + 1], 0
lea rax, [rdi + 1]
je 0x1400284a1
cmp byte [rax], 0x2d
mov rdi, rax
jne 0x1400284a1
cmp byte [rax + 1], 0
jne 0x1400284a1
inc ebx
mov qword [0x140185938], rcx
mov dword [reloc.WS2_32.dll_accept], ebx
cmp ebp, 0xffffffff
je 0x1400286ac
mov r9, r15
call fcn.140027f90
sub esi, ebp
add ebx, esi
jmp 0x1400286a6
movsxd rax, ebx
cmp rdi, qword [r15 + rax*8]
je 0x1400284e2
cmp byte [rdi], 0x2d
jne 0x1400284e2
mov dword [rsp + 0x20], edx
inc rdi
lea rdx, str.a:c:i:Dhp:Px:nqr:R:s:t:T:o:u:O:Vd:f:m:N:b:eB
mov qword [0x140185938], rdi
mov rcx, r15
call fcn.140028070
cmp eax, 0xffffffff
jne 0x140028596
mov ebx, dword [reloc.WS2_32.dll_accept]
mov rdi, qword [0x140185938]
movsx esi, byte [rdi]
inc rdi
mov qword [0x140185938], rdi
cmp esi, 0x3a
je 0x140028646
cmp esi, 0x2d
jne 0x140028506
cmp byte [rdi], 0
jne 0x14002865f
mov edx, esi
lea rcx, str.a:c:i:Dhp:Px:nqr:R:s:t:T:o:u:O:Vd:f:m:N:b:eB
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
je 0x140028639
cmp esi, 0x57
jne 0x1400285a9
cmp byte [rax + 1], 0x3b
jne 0x1400285a9
mov rax, qword [0x140185938]
cmp byte [rax], 0
jne 0x14002857f
mov eax, dword [reloc.WS2_32.dll_accept]
inc eax
mov dword [reloc.WS2_32.dll_accept], eax
cmp eax, r13d
jl 0x140028572
mov edx, esi
lea rcx, [0x1401332a2]
mov qword [0x140185938], rcx
lea rcx, str.option_requires_an_argument_____c
call fcn.140027ef0
mov eax, 0x3f
jmp 0x1400286c3
cdqe
mov rcx, qword [r15 + rax*8]
mov qword [0x140185938], rcx
lea rdx, str.a:c:i:Dhp:Px:nqr:R:s:t:T:o:u:O:Vd:f:m:N:b:eB
mov dword [rsp + 0x20], 0
mov rcx, r15
call fcn.140028070
lea rcx, [0x1401332a2]
mov qword [0x140185938], rcx
jmp 0x1400286c3
cmp byte [rax + 1], 0x3a
je 0x1400285c8
mov rax, qword [0x140185938]
cmp byte [rax], 0
jne 0x140028602
inc dword [reloc.WS2_32.dll_accept]
mov eax, esi
jmp 0x1400286c3
mov rcx, qword [0x140185938]
mov qword [0x140197e20], 0
cmp byte [rcx], 0
je 0x140028609
mov qword [0x140197e20], rcx
mov edx, dword [reloc.WS2_32.dll_accept]
lea rcx, [0x1401332a2]
inc edx
mov qword [0x140185938], rcx
mov dword [reloc.WS2_32.dll_accept], edx
mov eax, esi
jmp 0x1400286c3
cmp byte [rax + 2], 0x3a
je 0x1400285e6
mov edx, dword [reloc.WS2_32.dll_accept]
inc edx
mov dword [reloc.WS2_32.dll_accept], edx
cmp edx, r13d
jl 0x140028629
mov edx, esi
jmp 0x14002854e
movsxd rax, edx
mov rcx, qword [r15 + rax*8]
mov qword [0x140197e20], rcx
jmp 0x1400285ec
mov ebx, dword [reloc.WS2_32.dll_accept]
mov rdi, qword [0x140185938]
cmp esi, 0x2d
jne 0x140028652
cmp byte [rdi], 0
jne 0x14002865f
jmp 0x1400286c0
cmp byte [rdi], 0
jne 0x14002865f
inc ebx
mov dword [reloc.WS2_32.dll_accept], ebx
mov edx, esi
lea rcx, str.unknown_option_____c
call fcn.140027ef0
mov eax, 0x3f
jmp 0x1400286c3
movsxd rcx, ebx
mov eax, 1
inc ebx
mov dword [reloc.WS2_32.dll_accept], ebx
mov rdx, qword [r15 + rcx*8]
mov qword [0x140197e20], rdx
jmp 0x1400286c3
mov qword [0x140185938], rcx
cmp ebp, 0xffffffff
jne 0x140028490
cmp esi, ebp
cmovne ebx, esi
mov dword [reloc.WS2_32.dll_accept], ebx
mov dword [0x140185940], 0xffffffff
mov dword [0x140185944], 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