Function at 0x140001330
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x2a8
movaps xmmword [rsp + 0x290], xmm6
mov r14, rdx
mov rdi, rcx
mov rcx, qword [0x1400070b0]
test rcx, rcx
jne 0x140001467
lea rsi, [rsp + 0x60]
mov r8d, 0x208
mov rcx, rsi
xor edx, edx
call fcn.140001030
lea rcx, str._WINDIR__system32cabinet.dll
mov rdx, rsi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x104
jae 0x1400013b1
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
mov qword [0x1400070b0], rax
jmp 0x1400013b8
mov rcx, qword [0x1400070b0]
test rcx, rcx
jne 0x140001467
lea rdx, [rsp + 0x60]
mov word [rdx], 0
lea rcx, str._SYSTEMROOT__system32cabinet.dll
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x104
jae 0x140001406
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
mov qword [0x1400070b0], rax
jmp 0x14000140d
mov rcx, qword [0x1400070b0]
test rcx, rcx
jne 0x140001467
lea rdx, [rsp + 0x60]
mov word [rdx], 0
lea rcx, str.C:Windows_system32cabinet.dll
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x104
jae 0x140001457
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
mov qword [0x1400070b0], rax
jmp 0x14000145e
mov rcx, qword [0x1400070b0]
test rcx, rcx
je 0x140001772
lea rdx, str.FDICreate
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rsi
mov qword [0x140007098], rax
mov rcx, qword [0x1400070b0]
lea rdx, str.FDIDestroy
call rsi
mov qword [0x1400070a8], rax
mov rcx, qword [0x1400070b0]
lea rdx, str.FDICopy
call rsi
mov rcx, rax
mov qword [0x1400070a0], rax
xor eax, eax
cmp qword [0x140007098], 0
je 0x140001759
cmp qword [0x1400070a8], 0
je 0x140001759
test rcx, rcx
je 0x140001759
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cdqe
lea rsi, [rdi + rax*2]
test eax, eax
jle 0x1400014f8
cmp word [rsi], 0x5c
je 0x1400014f8
add rsi, 0xfffffffffffffffe
cmp rsi, rdi
ja 0x1400014e9
cmp rsi, rdi
je 0x140001722
add rsi, 2
xorps xmm6, xmm6
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r12d, r12d
mov ecx, 0xfde9
xor edx, edx
mov r8, rsi
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140001589
mov ebx, eax
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor r12d, r12d
mov rcx, rax
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140001589
mov r15, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rsi
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r12, r15
sub rsi, rdi
shr rsi, 1
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov ecx, 0xfde9
xor edx, edx
mov r8, rdi
mov r9d, esi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140001719
mov ebx, eax
xor eax, eax
cmp esi, 0xffffffff
setne al
add ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140001719
mov r15, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rdi
mov r9d, esi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp esi, 0xffffffff
je 0x14000161e
movsxd rax, ebx
mov byte [rax + r15 - 1], 0
test r12, r12
je 0x140001726
lea rax, [rsp + 0x50]
mov dword [rax + 8], 0
mov qword [rax], 0
mov qword [rsp + 0x40], rax
lea rax, [0x140001780]
mov qword [rsp + 0x30], rax
lea rax, [0x140001790]
mov qword [rsp + 0x28], rax
lea rax, [0x1400017b0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], 0xffffffff
lea rcx, [0x140001980]
lea rdx, [0x140001950]
lea r8, [0x140001830]
lea r9, [0x1400017f0]
call qword [0x140007098]
test rax, rax
je 0x140001726
mov rdi, rax
lea rsi, [rsp + 0x68]
mov qword [rsi - 8], r14
mov rcx, rsi
call fcn.140001c70
mov byte [rsi + 0x218], 0
lea rbx, [rsp + 0x60]
mov qword [rsp + 0x30], rbx
lea rax, [0x1400019b0]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
mov rcx, rdi
mov rdx, r12
mov r8, r15
xor r9d, r9d
call qword [0x1400070a0]
mov rcx, rdi
call qword [0x1400070a8]
mov bl, byte [rbx + 0x220]
test bl, bl
jne 0x140001709
mov rcx, rsi
call fcn.140001d70
test al, al
je 0x140001709
mov rcx, rsi
call fcn.140001d80
test bl, bl
setne dil
mov rcx, rsi
call fcn.140001c90
jmp 0x140001728
xor edi, edi
mov eax, 0
jmp 0x14000173e
xor eax, eax
jmp 0x140001759
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
test r12, r12
je 0x140001759
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8, r12
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
movaps xmm6, xmmword [rsp + 0x290]
add rsp, 0x2a8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, qword [0x1400070a0]
jmp 0x1400014af