Function at 0x14011ef50
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 [0x14016d608]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov ebx, edx
mov rsi, r9
mov dword [rbp - 0x31], ebx
mov r12, r8
mov r13, rcx
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x14011efb9
test byte [rcx + 0x1c], 1
je 0x14011efb9
cmp byte [rcx + 0x19], 4
jb 0x14011efb9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155920]
mov edx, 0x14
call fcn.140004968
xor edi, edi
test r13, r13
jne 0x14011efd8
lea r8, str.pMetadata
mov edx, 0x1b6
lea rcx, str.base_stor_blbengine_blbengutils_blbwriterutils.cpp
call fcn.140081b60
test r12, r12
jne 0x14011eff5
lea r8, str.pguidWriterId
mov edx, 0x1b7
lea rcx, str.base_stor_blbengine_blbengutils_blbwriterutils.cpp
call fcn.140081b60
movups xmm0, xmmword [0x140156cf8]
movdqu xmmword [r12], xmm0
test rsi, rsi
je 0x14011f00a
mov qword [rsi], rdi
mov rcx, qword [r13 + 0x10]
mov r15, rbx
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x21], rdi
mov dword [rbp - 0x35], edi
mov dword [rbp - 0x39], edi
mov rcx, qword [rcx + rbx*8]
mov qword [rbp - 0x29], rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r14, rax
test rax, rax
jne 0x14011f03f
mov ebx, 0x8007000e
jmp 0x14011f107
lea rdx, [rbp - 0x19]
mov rcx, r14
call qword [sym.imp.VSSAPI.DLL_CreateVssExamineWriterMetadataInternal]
mov ebx, eax
test eax, eax
js 0x14011f107
mov rcx, qword [rbp - 0x19]
lea rdx, [rbp - 0x39]
mov qword [rsp + 0x28], rdx
lea r9, [rbp - 0x21]
lea rdx, [rbp - 0x35]
mov qword [rsp + 0x20], rdx
lea r8, [rbp - 0x11]
mov rax, qword [rcx]
lea rdx, [rbp - 1]
mov rax, qword [rax + 0x18]
call qword [case.0x140005783.0]
mov ebx, eax
test eax, eax
js 0x14011f107
test rsi, rsi
je 0x14011f0fb
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
jne 0x14011f0c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14011f107
mov r8d, 2
lea rcx, [rbp - 0x29]
mov edx, r15d
call fcn.14000f570
mov rdi, qword [rbp - 0x29]
mov ebx, eax
test eax, eax
js 0x14011f107
mov rcx, qword [r13 + 0x10]
mov r8d, r15d
mov r9d, dword [rbp - 0x31]
mov rdx, rdi
mov rcx, qword [rcx + r9*8]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14011f0aa
mov qword [rsi], rdi
movups xmm0, xmmword [rbp - 0x11]
xor edi, edi
movdqu xmmword [r12], xmm0
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x14011f11b
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
and qword [rbp - 0x21], 0
test r14, r14
je 0x14011f129
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14011f13f
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140005783.0]
test rdi, rdi
je 0x14011f14d
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x14011f181
test byte [rcx + 0x1c], 1
je 0x14011f181
cmp byte [rcx + 0x19], 4
jb 0x14011f181
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155920]
mov edx, 0x15
call fcn.140004968
mov eax, ebx
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.14013cc00
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret