Function at 0x140149b04
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x88
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 7], rax
mov ebx, edx
mov rsi, r9
mov r12, r8
mov dword [rbp - 0x21], ebx
mov r13, rcx
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x140149b6d
test byte [rcx + 0x1c], 1
je 0x140149b6d
cmp byte [rcx + 0x19], 4
jb 0x140149b6d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140014df0]
mov edx, 0x14
call fcn.14001dd24
xor edi, edi
test r13, r13
jne 0x140149b8c
lea r8, [0x140003638]
lea rcx, [0x140014d48]
mov edx, 0x1b6
call fcn.1400a8be8
test r12, r12
jne 0x140149ba9
lea r8, [0x140014de0]
lea rcx, [0x140014d48]
mov edx, 0x1b7
call fcn.1400a8be8
movups xmm0, xmmword [0x14000ab48]
movdqu xmmword [r12], xmm0
test rsi, rsi
je 0x140149bbe
mov qword [rsi], rdi
mov rcx, qword [r13 + 0x10]
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x39], rdi
mov dword [rbp - 0x1d], edi
mov dword [rbp - 0x31], edi
mov rcx, qword [rcx + rbx*8]
mov r15, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r14, rax
test rax, rax
jne 0x140149bef
mov ebx, 0x8007000e
jmp 0x140149cd8
lea rdx, [rbp - 0x29]
mov rcx, rax
call qword [sym.imp.VSSAPI.DLL_CreateVssExamineWriterMetadataInternal]
mov ebx, eax
test eax, eax
js 0x140149cd8
mov rcx, qword [rbp - 0x29]
lea rdx, [rbp - 0x31]
lea r9, [rbp - 0x39]
mov rax, qword [rcx]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp - 0x1d]
mov qword [rsp + 0x20], rdx
lea r8, [rbp - 0x19]
lea rdx, [rbp - 9]
call qword [rax + 0x18]
mov ebx, eax
test eax, eax
js 0x140149cd8
test rsi, rsi
je 0x140149ccc
mov rcx, qword [r13 + 0x10]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + r15*8]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r15d, eax
test eax, eax
je 0x140149cb3
mov eax, r15d
mov ecx, reloc.ADVAPI32.dll_TraceEvent
add rax, rax
cmp rax, rcx
jbe 0x140149c72
mov ebx, 0x80070216
jmp 0x140149cd8
mov ecx, eax
mov ebx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
je 0x140149be5
mov r8d, ebx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rcx, qword [r13 + 0x10]
mov r9d, dword [rbp - 0x21]
mov rcx, qword [rcx + r9*8]
mov r8d, r15d
mov rdx, rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x140149cc9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140149cd8
mov qword [rsi], rdi
movups xmm0, xmmword [rbp - 0x19]
xor edi, edi
movdqu xmmword [r12], xmm0
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x140149cec
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
and qword [rbp - 0x39], 0
test r14, r14
je 0x140149cfa
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140149d09
mov rax, qword [rcx]
call qword [rax + CoRevokeClassObject]
test rdi, rdi
je 0x140149d17
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x140149d4b
test byte [rcx + 0x1c], 1
je 0x140149d4b
cmp byte [rcx + 0x19], 4
jb 0x140149d4b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140014df0]
mov edx, 0x15
call fcn.14001dd24
mov eax, ebx
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.140168920
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret