Function at 0x14017a8e4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20270]
mov eax, 0x20370
call fcn.14021a050
sub rsp, rax
mov rax, qword [0x140412700]
xor rax, rsp
mov qword [rbp + 0x20260], rax
mov dil, r8b
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], r15
mov r8, qword [rdx + 0x10]
lea r12d, [r15 + 7]
cmp qword [rdx + 0x18], r12
jbe 0x14017a94d
mov rdx, qword [rdx]
lea rcx, [rbp - 0x38]
call fcn.140038e84
nop
cmp qword [rbp - 0x28], 1
jae 0x14017a998
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov r8d, 0x20
lea rdx, [rbp - 0x38]
mov rcx, rbx
call fcn.1402bec40
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], r12
mov word [rbp - 0x38], r15w
mov dword [rsp + 0x20], 1
jmp 0x14017ae91
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rbp + 0x260]
call fcn.1402bf2e0
lea rsi, [rbp - 0x38]
cmp qword [rbp - 0x20], r12
cmova rsi, qword [rbp - 0x38]
mov r14d, 0x7fff
lea r13d, [r14 - 2]
test dil, dil
je 0x14017aa00
mov edx, SafeArrayAllocDescriptorEx
mov rcx, rsi
call fcn.140278c80
test rax, rax
je 0x14017aa00
mov r8d, r14d
lea rdx, [rbp + 0x10260]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
lea rcx, [rbp + 0x10260]
cmp eax, r13d
cmova rcx, rsi
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x48], xmm1
or rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp word [rsi + r8*2], r15w
jne 0x14017aa16
mov rdx, rsi
lea rcx, [rbp - 0x58]
call fcn.140013184
nop
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x30]
call fcn.1400765a0
nop
lea rdx, [rax + 0x28]
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 8], xmm1
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], r12
jbe 0x14017aa5c
mov rdx, qword [rdx]
lea rcx, [rbp - 0x18]
call fcn.140038e84
nop
lea rcx, [rsp + 0x30]
call fcn.140222560
nop
lea rcx, [rbp - 0x58]
call fcn.14000dd24
lea rcx, [rbp - 0x18]
cmp qword [rbp], r12
cmova rcx, qword [rbp - 0x18]
lea r9, [rbp - 0x80]
lea r8, [rbp + 0x260]
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
dec eax
cmp eax, r13d
jbe 0x14017aaf1
lea rdx, [rbp - 0x18]
cmp qword [rbp], r12
cmova rdx, qword [rbp - 0x18]
lea rcx, [rbp + 0x260]
lea rax, [rbp + 0x260]
sub rdx, rax
lea rax, [r14 + 0x7fff7fff]
test rax, rax
je 0x14017aae2
movzx eax, word [rdx + rcx]
test ax, ax
je 0x14017aae2
mov word [rcx], ax
add rcx, 2
sub r14, 1
jne 0x14017aac0
lea rax, [rcx - 2]
test r14, r14
cmovne rax, rcx
mov word [rax], r15w
mov edx, 0x7e
lea rcx, [rbp + 0x260]
call fcn.140278c80
xorps xmm0, xmm0
test rax, rax
jne 0x14017ab45
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
lea rax, [rbp + 0x260]
inc rdi
cmp word [rax + rdi*2], r15w
jne 0x14017ab1c
mov r8, rdi
lea rdx, [rbp + 0x260]
mov rcx, rbx
call fcn.140013184
mov dword [rsp + 0x20], 1
jmp 0x14017ae87
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], r12
mov word [rbp - 0x78], r15w
lea rcx, [rbp + 0x260]
call fcn.140286900
cmp rax, 2
jbe 0x14017ae44
mov r13d, 0x5c
mov edx, r13d
lea rcx, [rbp + 0x264]
call fcn.140278c80
mov rsi, rax
test rax, rax
je 0x14017ae44
lea r8d, [r13 - 0x5a]
lea rdx, [0x1403a18c0]
lea rcx, [rbp + 0x260]
call fcn.140287430
test eax, eax
jne 0x14017abc8
mov edx, r13d
lea rcx, [rsi + 2]
call fcn.140278c80
mov rsi, rax
test rax, rax
je 0x14017ae44
mov word [rsi], r15w
lea rax, [rbp + 0x260]
mov r8, rdi
inc r8
cmp word [rax + r8*2], r15w
jne 0x14017abd6
lea rdx, [rbp + 0x260]
lea rcx, [rbp - 0x78]
call fcn.140011a6c
add rsi, 2
je 0x14017ad4f
mov edx, r13d
mov rcx, rsi
call fcn.140278c80
mov r14, rax
test rax, rax
je 0x14017ac11
mov word [rax], r15w
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], r15
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], r12
cmova rdx, qword [rbp - 0x78]
mov r8, qword [rbp - 0x68]
lea rcx, [rbp - 0x58]
call fcn.140038e84
nop
mov rcx, qword [rbp - 0x48]
cmp rcx, qword [rbp - 0x40]
jae 0x14017ac63
lea rax, [rcx + 1]
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x58]
cmp qword [rbp - 0x40], r12
cmova rax, qword [rbp - 0x58]
mov dword [rax + rcx*2], 0x5c
jmp 0x14017ac77
mov r9d, r13d
mov r8b, r15b
mov edx, 1
lea rcx, [rbp - 0x58]
call fcn.1400120e0
mov r8, rdi
inc r8
cmp word [rsi + r8*2], r15w
jne 0x14017ac7a
mov rdx, rsi
lea rcx, [rbp - 0x58]
call fcn.140011a6c
lea rax, [r14 + 2]
neg r14
sbb rsi, rsi
and rsi, rax
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x30]
call fcn.1400765a0
nop
lea rcx, [rax + 0x28]
cmp qword [rcx + 0x18], r12
jbe 0x14017acb9
mov rcx, qword [rcx]
lea rdx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
lea rcx, [rsp + 0x30]
call fcn.140222560
cmp r14, rdi
je 0x14017ad81
mov rcx, qword [rbp - 0x68]
cmp rcx, qword [rbp - 0x60]
jae 0x14017ad01
lea rax, [rcx + 1]
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x78]
cmp qword [rbp - 0x60], r12
cmova rax, qword [rbp - 0x78]
mov dword [rax + rcx*2], 0x5c
jmp 0x14017ad15
mov r9d, r13d
mov r8b, r15b
mov edx, 1
lea rcx, [rbp - 0x78]
call fcn.1400120e0
lea rax, [rbp + 0x3c]
mov r8, rdi
inc r8
cmp word [rax + r8*2], r15w
jne 0x14017ad1c
lea rdx, [rbp + 0x3c]
lea rcx, [rbp - 0x78]
call fcn.140011a6c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rbp - 0x58]
call fcn.14000dd24
test rsi, rsi
jne 0x14017abfa
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov r8d, 0x20
lea rdx, [rbp - 0x78]
mov rcx, rbx
call fcn.1402bec40
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], r12
mov word [rbp - 0x78], r15w
jmp 0x14017ae75
lea rcx, [rbp - 0x78]
call fcn.14000dd24
mov r14d, 0x20
mov r8d, r14d
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x78]
call fcn.1402bec40
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], r12
mov word [rbp - 0x58], r15w
test rsi, rsi
je 0x14017ae07
mov rcx, qword [rbp - 0x68]
cmp rcx, qword [rbp - 0x60]
jae 0x14017adda
lea rax, [rcx + 1]
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x78]
cmp qword [rbp - 0x60], r12
cmova rax, qword [rbp - 0x78]
mov dword [rax + rcx*2], 0x5c
jmp 0x14017adee
mov r9d, r13d
mov r8b, r15b
mov edx, 1
lea rcx, [rbp - 0x78]
call fcn.1400120e0
inc rdi
cmp word [rsi + rdi*2], r15w
jne 0x14017adee
mov r8, rdi
mov rdx, rsi
lea rcx, [rbp - 0x78]
call fcn.140011a6c
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov r8, r14
lea rdx, [rbp - 0x78]
mov rcx, rbx
call fcn.1402bec40
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], r12
mov word [rbp - 0x78], r15w
mov dword [rsp + 0x20], 1
lea rcx, [rbp - 0x58]
call fcn.14000dd24
jmp 0x14017ae7d
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
lea rax, [rbp + 0x260]
inc rdi
cmp word [rax + rdi*2], r15w
jne 0x14017ae59
mov r8, rdi
lea rdx, [rbp + 0x260]
mov rcx, rbx
call fcn.140013184
mov dword [rsp + 0x20], 1
lea rcx, [rbp - 0x78]
call fcn.14000dd24
nop
lea rcx, [rbp - 0x18]
call fcn.14000dd24
nop
lea rcx, [rbp - 0x38]
call fcn.14000dd24
mov rax, rbx
mov rcx, qword [rbp + 0x20260]
xor rcx, rsp
call fcn.1402194b0
mov rbx, qword [rsp + 0x203c0]
add rsp, 0x20370
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret