Function at 0x14025c680
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r15d, dword [rsp + 0xb8]
mov r12d, ecx
mov rbp, rdx
mov r13, r8
mov r14, r9
test r8, r8
je 0x14025ca26
mov r9d, dword [0x14026db9c]
mov eax, dword [0x14026db80]
test r9d, r9d
je 0x14025c8b0
cmp eax, 0xffffffff
je 0x14025c8c4
mov edx, dword [0x14036cd48]
test edx, edx
jne 0x14025c8c4
movzx eax, byte [r13]
cmp al, 0x2d
je 0x14025c8f7
mov r8d, dword [0x14026db80]
test r8d, r8d
jne 0x14025c9d0
cmp al, 0x2b
je 0x14025ca72
mov qword [0x14036cd40], 0
test edx, edx
je 0x14025c7c4
mov dword [0x14026db84], 0xffffffff
mov dword [0x14026db88], 0xffffffff
nop word cs:[rax + rax]
mov dword [0x14036cd48], 0
mov ebx, dword [0x14026db9c]
cmp ebx, r12d
jge 0x14025c9e8
movsxd rax, ebx
mov rsi, qword [rbp + rax*8]
cmp byte [rsi], 0x2d
je 0x14025c908
lea rax, [0x1402c5248]
mov qword [str.HR__], rax
test r15b, 2
jne 0x14025ca40
test r15b, 1
je 0x14025ca26
mov esi, dword [0x14026db88]
cmp esi, 0xffffffff
je 0x14025c9c0
mov edi, dword [0x14026db84]
cmp edi, 0xffffffff
je 0x14025c7bb
mov edx, edi
mov r9, rbp
mov r8d, ebx
mov ecx, esi
call fcn.14025c180
sub edi, esi
mov eax, ebx
mov dword [0x14026db84], 0xffffffff
sub eax, edi
mov dword [0x14026db88], eax
add ebx, 1
mov dword [0x14026db9c], ebx
mov rdi, qword [str.HR__]
movzx eax, byte [rdi]
test al, al
je 0x14025c730
test r14, r14
je 0x14025c846
movsxd rdx, dword [0x14026db9c]
cmp qword [rbp + rdx*8], rdi
je 0x14025c846
cmp al, 0x2d
je 0x14025cb5b
and r15d, 4
je 0x14025cb00
cmp al, 0x3a
je 0x14025cb66
movsx edx, al
mov rcx, r13
call sub.msvcrt.dll_strchr
test rax, rax
setne al
movzx eax, al
mov dword [rsp + 0x20], eax
mov r8, r14
mov rdx, r13
mov rcx, rbp
mov r9, qword [rsp + 0xb0]
call fcn.14025c2e0
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14025cc1e
mov rdi, qword [str.HR__]
movzx eax, byte [rdi]
lea r15, [rdi + 1]
movsx ebx, al
mov qword [str.HR__], r15
cmp al, 0x3a
je 0x14025cb16
cmp ebx, 0x2d
je 0x14025cca0
mov edx, ebx
mov rcx, r13
call sub.msvcrt.dll_strchr
test rax, rax
je 0x14025cb16
movzx edx, byte [rax + 1]
test r14, r14
je 0x14025c88f
cmp ebx, 0x57
jne 0x14025c88f
cmp dl, 0x3b
je 0x14025cb6d
cmp dl, 0x3a
je 0x14025c97d
cmp byte [rdi + 1], 0
jne 0x14025ca2b
add dword [0x14026db9c], 1
jmp 0x14025ca2b
mov dword [0x14036cd48], 1
mov dword [0x14026db9c], 1
xor edx, edx
xor r8d, r8d
lea rcx, str.POSIXLY_CORRECT
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edx, dword [0x14036cd48]
test eax, eax
setne al
movzx eax, al
mov dword [0x14026db80], eax
movzx eax, byte [r13]
cmp al, 0x2d
jne 0x14025c6e7
or r15d, 2
add r13, 1
jmp 0x14025c6ff
movzx eax, byte [rsi + 1]
test al, al
jne 0x14025ca7b
mov edx, 0x2d
mov rcx, r13
call sub.msvcrt.dll_strchr
test rax, rax
je 0x14025c75a
cmp dword [0x14026db88], 0xffffffff
je 0x14025c940
cmp dword [0x14026db84], 0xffffffff
je 0x14025cbda
lea r15, [rsi + 1]
mov qword [str.HR__], r15
cmp byte [rsi + 1], 0
jne 0x14025cb44
mov edx, 0x2d
mov rcx, r13
call sub.msvcrt.dll_strchr
test rax, rax
je 0x14025ca26
cmp byte [rax + 1], 0x3a
mov ebx, 0x2d
mov rdi, rsi
jne 0x14025c8a2
mov qword [0x14036cd40], 0
cmp byte [rdi + 1], 0
mov edx, dword [0x14026db9c]
je 0x14025cc31
mov qword [0x14036cd40], r15
lea rax, [0x1402c5248]
add edx, 1
mov qword [str.HR__], rax
mov dword [0x14026db9c], edx
jmp 0x14025ca2b
mov dword [0x14026db88], ebx
jmp 0x14025c7bb
and r15d, 0xfffffffe
cmp al, 0x2b
jne 0x14025c6ff
jmp 0x14025c8fb
mov esi, dword [0x14026db84]
lea rax, [0x1402c5248]
mov edi, dword [0x14026db88]
mov qword [str.HR__], rax
cmp esi, 0xffffffff
jne 0x14025ca57
cmp edi, 0xffffffff
je 0x14025ca12
mov dword [0x14026db9c], edi
mov dword [0x14026db84], 0xffffffff
mov dword [0x14026db88], 0xffffffff
mov ebx, 0xffffffff
mov eax, ebx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
add ebx, 1
mov qword [0x14036cd40], rsi
mov dword [0x14026db9c], ebx
mov ebx, 1
jmp 0x14025ca2b
mov edx, esi
sub esi, edi
mov r8d, ebx
mov r9, rbp
mov ecx, edi
sub ebx, esi
call fcn.14025c180
mov dword [0x14026db9c], ebx
jmp 0x14025ca12
and r15d, 0xfffffffe
jmp 0x14025c8fb
mov ecx, dword [0x14026db88]
cmp ecx, 0xffffffff
je 0x14025ca93
cmp dword [0x14026db84], 0xffffffff
je 0x14025cbe5
lea rdi, [rsi + 1]
mov qword [str.HR__], rdi
cmp al, 0x2d
jne 0x14025c7d6
cmp byte [rsi + 2], 0
jne 0x14025c7d6
mov esi, dword [0x14026db84]
add ebx, 1
lea rax, [0x1402c5248]
mov dword [0x14026db9c], ebx
mov qword [str.HR__], rax
cmp esi, 0xffffffff
je 0x14025ca12
mov r8d, ebx
mov edx, esi
mov r9, rbp
mov dword [rsp + 0x3c], ecx
call fcn.14025c180
mov ecx, dword [rsp + 0x3c]
sub esi, ecx
sub ebx, esi
mov dword [0x14026db9c], ebx
jmp 0x14025ca12
lea r15, [rdi + 1]
movsx ebx, al
mov qword [str.HR__], r15
cmp al, 0x3a
jne 0x14025c865
cmp byte [rdi + 1], 0
jne 0x14025cb23
add dword [0x14026db9c], 1
mov ecx, dword [0x14026dba0]
test ecx, ecx
je 0x14025cb34
cmp byte [r13], 0x3a
jne 0x14025cb4b
mov dword [0x14026db98], ebx
mov ebx, 0x3f
jmp 0x14025ca2b
mov ebx, 0x2d
jmp 0x14025cb23
mov edx, ebx
lea rcx, str.unknown_option_____c
call fcn.14025c250
jmp 0x14025cb34
add rdi, 1
mov qword [str.HR__], rdi
xor eax, eax
jmp 0x14025c817
cmp byte [rdi + 1], 0
jne 0x14025cbfe
mov eax, dword [0x14026db9c]
add eax, 1
mov dword [0x14026db9c], eax
cmp eax, r12d
jl 0x14025cbf0
mov edx, dword [0x14026dba0]
lea rax, [0x1402c5248]
mov qword [str.HR__], rax
test edx, edx
je 0x14025cbbb
cmp byte [r13], 0x3a
je 0x14025cbbb
mov edx, 0x57
lea rcx, str.option_requires_an_argument_____c
call fcn.14025c250
mov dword [0x14026db98], 0x57
cmp byte [r13], 0x3a
jne 0x14025cb3a
mov ebx, 0x3a
jmp 0x14025ca2b
mov dword [0x14026db84], ebx
jmp 0x14025c940
mov dword [0x14026db84], ebx
jmp 0x14025ca93
cdqe
mov rax, qword [rbp + rax*8]
mov qword [str.HR__], rax
mov dword [rsp + 0x20], 0
mov r8, r14
mov rdx, r13
mov rcx, rbp
mov r9, qword [rsp + 0xb0]
call fcn.14025c2e0
mov ebx, eax
lea rax, [0x1402c5248]
mov qword [str.HR__], rax
jmp 0x14025ca2b
cmp byte [rax + 2], 0x3a
je 0x14025c99f
add edx, 1
mov dword [0x14026db9c], edx
cmp r12d, edx
jle 0x14025cc5d
movsxd rax, edx
mov rax, qword [rbp + rax*8]
mov qword [0x14036cd40], rax
jmp 0x14025c99f
lea rax, [0x1402c5248]
mov qword [str.HR__], rax
mov eax, dword [0x14026dba0]
test eax, eax
je 0x14025cc8a
cmp byte [r13], 0x3a
je 0x14025cc8a
mov edx, ebx
lea rcx, str.option_requires_an_argument_____c
call fcn.14025c250
mov dword [0x14026db98], ebx
cmp byte [r13], 0x3a
jne 0x14025cb3a
jmp 0x14025cbd0
mov rsi, rdi
jmp 0x14025c94b