Function at 0x14000b480
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 [0x14008d144]
mov r15, rdx
xor edx, edx
mov r13d, ecx
cmp r8d, 0xffffffff
jne 0x14000b4c7
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 [0x14008d144], r8d
mov ebx, dword [reloc.WS2_32.dll_accept]
test r8d, r8d
mov r12d, 1
cmovne r12d, edx
test ebx, ebx
jne 0x14000b4f6
mov r14d, 1
mov ebx, r14d
mov dword [0x1400a85c8], r14d
mov dword [reloc.WS2_32.dll_accept], ebx
jmp 0x14000b4fd
mov r14d, dword [0x1400a85c8]
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov qword [0x1400a85c0], rdx
test r14d, r14d
je 0x14000b526
or ebp, 0xffffffff
or esi, ebp
mov dword [0x14008d154], ebp
mov dword [0x14008d150], esi
jmp 0x14000b532
mov esi, dword [0x14008d150]
mov ebp, dword [0x14008d154]
mov rdi, qword [0x14008d148]
lea rcx, [0x14007d76a]
test r14d, r14d
jne 0x14000b54e
cmp byte [rdi], r14b
jne 0x14000b681
mov dword [0x1400a85c8], edx
mov r14d, edx
cmp ebx, r13d
jge 0x14000b871
movsxd rax, ebx
mov rdi, qword [r15 + rax*8]
mov qword [0x14008d148], rdi
cmp byte [rdi], 0x2d
jne 0x14000b5b4
cmp byte [rdi + 1], 0
jne 0x14000b62f
mov edx, Ordinal_46
lea rcx, str.a:Bc:k:i:Dhp:Px:f:m:nqr:R:s:t:T:o:u:O:Vd:N:b:l:L:
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov ebx, dword [reloc.WS2_32.dll_accept]
lea rcx, [0x14007d76a]
mov esi, dword [0x14008d150]
mov ebp, dword [0x14008d154]
test rax, rax
jne 0x14000b626
mov r14d, dword [0x1400a85c8]
mov qword [0x14008d148], rcx
mov rdi, rcx
test r12b, 2
jne 0x14000b854
test r12b, 1
je 0x14000b8a0
cmp esi, 0xffffffff
jne 0x14000b5ee
mov esi, ebx
mov dword [0x14008d150], ebx
inc ebx
mov dword [reloc.WS2_32.dll_accept], ebx
xor edx, edx
jmp 0x14000b540
cmp ebp, 0xffffffff
je 0x14000b617
mov r9, r15
call fcn.14000b170
mov eax, ebx
lea rcx, [0x14007d76a]
sub eax, ebp
add esi, eax
or ebp, 0xffffffff
mov dword [0x14008d150], esi
mov dword [0x14008d154], ebp
inc ebx
mov dword [reloc.WS2_32.dll_accept], ebx
xor edx, edx
jmp 0x14000b540
mov rdi, qword [0x14008d148]
xor edx, edx
cmp esi, 0xffffffff
je 0x14000b640
cmp ebp, 0xffffffff
cmove ebp, ebx
mov dword [0x14008d154], ebp
cmp byte [rdi + 1], 0
lea rax, [rdi + 1]
je 0x14000b681
cmp byte [rax], 0x2d
mov rdi, rax
jne 0x14000b681
cmp byte [rax + 1], 0
jne 0x14000b681
inc ebx
mov qword [0x14008d148], rcx
mov dword [reloc.WS2_32.dll_accept], ebx
cmp ebp, 0xffffffff
je 0x14000b88c
mov r9, r15
call fcn.14000b170
sub esi, ebp
add ebx, esi
jmp 0x14000b886
movsxd rax, ebx
cmp rdi, qword [r15 + rax*8]
je 0x14000b6c2
cmp byte [rdi], 0x2d
jne 0x14000b6c2
mov dword [rsp + 0x20], edx
inc rdi
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 qword [0x14008d148], rdi
mov rcx, r15
call fcn.14000b250
cmp eax, 0xffffffff
jne 0x14000b776
mov ebx, dword [reloc.WS2_32.dll_accept]
mov rdi, qword [0x14008d148]
movsx esi, byte [rdi]
inc rdi
mov qword [0x14008d148], rdi
cmp esi, 0x3a
je 0x14000b826
cmp esi, 0x2d
jne 0x14000b6e6
cmp byte [rdi], 0
jne 0x14000b83f
mov edx, esi
lea rcx, str.a:Bc:k:i:Dhp:Px:f:m:nqr:R:s:t:T:o:u:O:Vd:N:b:l:L:
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
je 0x14000b819
cmp esi, 0x57
jne 0x14000b789
cmp byte [rax + 1], 0x3b
jne 0x14000b789
mov rax, qword [0x14008d148]
cmp byte [rax], 0
jne 0x14000b75f
mov eax, dword [reloc.WS2_32.dll_accept]
inc eax
mov dword [reloc.WS2_32.dll_accept], eax
cmp eax, r13d
jl 0x14000b752
mov edx, esi
lea rcx, [0x14007d76a]
mov qword [0x14008d148], rcx
lea rcx, str.option_requires_an_argument_____c
call fcn.14000b0d0
mov eax, 0x3f
jmp 0x14000b8a3
cdqe
mov rcx, qword [r15 + rax*8]
mov qword [0x14008d148], 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 dword [rsp + 0x20], 0
mov rcx, r15
call fcn.14000b250
lea rcx, [0x14007d76a]
mov qword [0x14008d148], rcx
jmp 0x14000b8a3
cmp byte [rax + 1], 0x3a
je 0x14000b7a8
mov rax, qword [0x14008d148]
cmp byte [rax], 0
jne 0x14000b7e2
inc dword [reloc.WS2_32.dll_accept]
mov eax, esi
jmp 0x14000b8a3
mov rcx, qword [0x14008d148]
mov qword [0x1400a85c0], 0
cmp byte [rcx], 0
je 0x14000b7e9
mov qword [0x1400a85c0], rcx
mov edx, dword [reloc.WS2_32.dll_accept]
lea rcx, [0x14007d76a]
inc edx
mov qword [0x14008d148], rcx
mov dword [reloc.WS2_32.dll_accept], edx
mov eax, esi
jmp 0x14000b8a3
cmp byte [rax + 2], 0x3a
je 0x14000b7c6
mov edx, dword [reloc.WS2_32.dll_accept]
inc edx
mov dword [reloc.WS2_32.dll_accept], edx
cmp edx, r13d
jl 0x14000b809
mov edx, esi
jmp 0x14000b72e
movsxd rax, edx
mov rcx, qword [r15 + rax*8]
mov qword [0x1400a85c0], rcx
jmp 0x14000b7cc
mov ebx, dword [reloc.WS2_32.dll_accept]
mov rdi, qword [0x14008d148]
cmp esi, 0x2d
jne 0x14000b832
cmp byte [rdi], 0
jne 0x14000b83f
jmp 0x14000b8a0
cmp byte [rdi], 0
jne 0x14000b83f
inc ebx
mov dword [reloc.WS2_32.dll_accept], ebx
mov edx, esi
lea rcx, str.unknown_option_____c
call fcn.14000b0d0
mov eax, 0x3f
jmp 0x14000b8a3
movsxd rcx, ebx
mov eax, 1
inc ebx
mov dword [reloc.WS2_32.dll_accept], ebx
mov rdx, qword [r15 + rcx*8]
mov qword [0x1400a85c0], rdx
jmp 0x14000b8a3
mov qword [0x14008d148], rcx
cmp ebp, 0xffffffff
jne 0x14000b670
cmp esi, ebp
cmovne ebx, esi
mov dword [reloc.WS2_32.dll_accept], ebx
mov dword [0x14008d150], 0xffffffff
mov dword [0x14008d154], 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