Function at 0x1401313c8
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, 0x98
mov rax, qword [0x14017a608]
xor rax, rsp
mov qword [rbp + 7], rax
mov ebx, edx
mov rsi, r9
mov dword [rbp - 0x31], ebx
mov r12, r8
mov r13, rcx
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x140131431
test byte [rcx + 0x1c], 1
je 0x140131431
cmp byte [rcx + 0x19], 4
jb 0x140131431
mov rcx, qword [rcx + 0x10]
lea r8, [0x140168cd0]
mov edx, 0x14
call fcn.140006b98
xor edi, edi
test r13, r13
jne 0x140131450
lea r8, str.pMetadata
mov edx, 0x1b6
lea rcx, str.base_stor_blbengine_blbengutils_blbwriterutils.cpp
call fcn.14008ac24
test r12, r12
jne 0x14013146d
lea r8, str.pguidWriterId
mov edx, 0x1b7
lea rcx, str.base_stor_blbengine_blbengutils_blbwriterutils.cpp
call fcn.14008ac24
movups xmm0, xmmword [0x14015f068]
movdqu xmmword [r12], xmm0
test rsi, rsi
je 0x140131482
mov qword [rsi], rdi
mov rcx, qword [r13 + 0x10]
mov r15, rbx
mov qword [rbp - 0x21], rdi
mov qword [rbp - 0x29], rdi
mov dword [rbp - 0x35], edi
mov dword [rbp - 0x39], edi
mov rcx, qword [rcx + rbx*8]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x1401314b9
mov ebx, 0x8007000e
jmp 0x1401315cf
lea rdx, [rbp - 0x21]
mov rcx, r14
call qword [sym.imp.VSSAPI.DLL_CreateVssExamineWriterMetadataInternal]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x1401315cf
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
movabs r10, 0xa394376e1058ba70
mov rax, qword [rax + 0x18]
lea rdx, [rbp - 0x39]
mov qword [rsp + 0x28], rdx
lea r9, [rbp - 0x29]
lea rdx, [rbp - 0x35]
mov qword [rsp + 0x20], rdx
lea r8, [rbp - 0x19]
lea rdx, [rbp - 9]
call qword [vtable.H_MA8HI.0]
mov ebx, eax
test eax, eax
js 0x1401315cf
test rsi, rsi
je 0x1401315c3
mov rcx, qword [r13 + 0x10]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + r15*8]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov r15d, eax
test eax, eax
jne 0x14013155f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1401315cf
movzx ebx, ax
or ebx, 0x80070000
jmp 0x1401315cf
mov rax, r15
mov ecx, 0xffffffff
add rax, rax
cmp rax, rcx
ja 0x140131688
mov ecx, eax
mov ebx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x1401314af
mov r8d, ebx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rcx, qword [r13 + 0x10]
mov r8d, r15d
mov r9d, dword [rbp - 0x31]
mov rdx, rdi
xor ebx, ebx
mov rcx, qword [rcx + r9*8]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
je 0x140131542
mov qword [rsi], rdi
movups xmm0, xmmword [rbp - 0x19]
xor edi, edi
movdqu xmmword [r12], xmm0
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x1401315e9
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
and qword [rbp - 0x29], 0
test r14, r14
je 0x1401315fd
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x14013161d
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [vtable.H_MA8HI.0]
test rdi, rdi
je 0x140131631
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x140131665
test byte [rcx + 0x1c], 1
je 0x140131665
cmp byte [rcx + 0x19], 4
jb 0x140131665
mov rcx, qword [rcx + 0x10]
lea r8, [0x140168cd0]
mov edx, 0x15
call fcn.140006b98
mov eax, ebx
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.140001d90
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ebx, 0x80070216
jmp 0x1401315cf