Function at 0x140020020
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x130
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400541a0]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov r12d, 7
mov qword [rsp + 0x60], r12
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov word [rsp + 0x48], r15w
lea r14d, [r12 + 0x16]
mov r8d, r14d
lea rdx, str.VssFileDescriptor::Initialize
lea rcx, [rsp + 0x48]
call fcn.140002d18
nop
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x40], r15
mov word [rbp - 0x50], r15w
lea r8d, [r12 + 0x1f]
lea rdx, str.base_stor_vss_tools_vshadowwriter.cpp
lea rcx, [rbp - 0x50]
call fcn.140002d18
nop
lea r9, [rsp + 0x48]
mov r8d, 0x306
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.140002028
nop
mov dword [rdi + 0x64], ebx
mov qword [rsp + 0x68], r15
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x40], r15
mov word [rbp - 0x50], r15w
lea ebx, [r12 + 0x10]
mov r8d, ebx
lea r13, str.Executing_COM_call__s
mov rdx, r13
lea rcx, [rbp - 0x50]
call fcn.140002d18
nop
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r15
mov word [rsp + 0x48], r15w
mov r8d, r14d
lea rdx, str.VssFileDescriptor::Initialize
lea rcx, [rsp + 0x48]
call fcn.140002d18
nop
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x60], r15
mov word [rbp - 0x70], r15w
lea r8d, [r12 + 0x1f]
lea rdx, str.base_stor_vss_tools_vshadowwriter.cpp
lea rcx, [rbp - 0x70]
call fcn.140002d18
nop
lea rax, str._pFileDesc__GetPath_bstrPath__
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8d, 0x30c
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x30]
call fcn.140001cb4
mov rax, qword [rsi]
lea rdx, [rsp + 0x68]
mov rcx, rsi
mov rax, qword [rax + 0x18]
call qword [0x1400375e8]
mov r14d, eax
test eax, eax
js 0x140020855
mov qword [rsp + 0x78], r15
lea rax, [rbp - 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x60], r15
mov word [rbp - 0x70], r15w
mov r8d, ebx
mov rdx, r13
lea rcx, [rbp - 0x70]
call fcn.140002d18
nop
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x40], r15
mov word [rbp - 0x50], r15w
lea r8d, [r12 + 0x16]
lea rdx, str.VssFileDescriptor::Initialize
lea rcx, [rbp - 0x50]
call fcn.140002d18
nop
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r15
mov word [rsp + 0x48], r15w
lea r8d, [r12 + 0x1f]
lea rdx, str.base_stor_vss_tools_vshadowwriter.cpp
lea rcx, [rsp + 0x48]
call fcn.140002d18
nop
lea rax, str._pFileDesc__GetFilespec__bstrFilespec__
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x50]
mov r8d, 0x30f
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x30]
call fcn.140001cb4
mov rax, qword [rsi]
lea rdx, [rsp + 0x78]
mov rcx, rsi
mov rax, qword [rax + 0x20]
call qword [0x1400375e8]
mov r14d, eax
lea rcx, [rbp - 0x70]
test eax, eax
js 0x14002090d
mov byte [rsp + 0x38], r15b
lea rax, [rbp - 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x60], r15
mov word [rbp - 0x70], r15w
mov r8d, ebx
mov rdx, r13
call fcn.140002d18
nop
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x40], r15
mov word [rbp - 0x50], r15w
lea r8d, [r12 + 0x16]
lea rdx, str.VssFileDescriptor::Initialize
lea rcx, [rbp - 0x50]
call fcn.140002d18
nop
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r15
mov word [rsp + 0x48], r15w
lea r8d, [r12 + 0x1f]
lea rdx, str.base_stor_vss_tools_vshadowwriter.cpp
lea rcx, [rsp + 0x48]
call fcn.140002d18
nop
lea rax, str._pFileDesc__GetRecursive_bRecursive__
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x50]
mov r8d, 0x312
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x30]
call fcn.140001cb4
mov rax, qword [rsi]
lea rdx, [rsp + 0x38]
mov rcx, rsi
mov rax, qword [rax + 0x28]
call qword [0x1400375e8]
mov r14d, eax
test eax, eax
js 0x1400209c1
mov qword [rbp - 0x80], r15
lea rax, [rbp - 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x60], r15
mov word [rbp - 0x70], r15w
mov r8d, ebx
mov rdx, r13
lea rcx, [rbp - 0x70]
call fcn.140002d18
nop
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x40], r15
mov word [rbp - 0x50], r15w
lea r8d, [r12 + 0x16]
lea rdx, str.VssFileDescriptor::Initialize
lea rcx, [rbp - 0x50]
call fcn.140002d18
nop
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r15
mov word [rsp + 0x48], r15w
lea r8d, [r12 + 0x1f]
lea rdx, str.base_stor_vss_tools_vshadowwriter.cpp
lea rcx, [rsp + 0x48]
call fcn.140002d18
nop
lea rbx, str._pFileDesc__GetAlternateLocation_bstrAlternate__
mov qword [rsp + 0x28], rbx
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x50]
mov r8d, 0x315
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x30]
call fcn.140001cb4
mov rax, qword [rsi]
lea rdx, [rbp - 0x80]
mov rcx, rsi
mov rax, qword [rax + 0x30]
call qword [0x1400375e8]
mov esi, eax
lea rcx, [rbp - 0x70]
test eax, eax
js 0x140020a79
mov rdx, qword [rsp + 0x68]
call fcn.14000d8c0
mov rbx, rax
lea r14d, [r12 + 1]
cmp rdi, rax
je 0x140020453
cmp qword [rdi + 0x18], r14
jb 0x14002043c
mov rcx, qword [rdi]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rdi + 0x18], r12
mov qword [rdi + 0x10], r15
mov word [rdi], r15w
mov rdx, rbx
mov rcx, rdi
call fcn.140002ac8
cmp qword [rbp - 0x58], r14
jb 0x140020469
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x70]
call fcn.14000d8c0
mov rsi, rax
lea rbx, [rdi + 0x20]
cmp rbx, rax
je 0x1400204af
cmp qword [rbx + 0x18], r14
jb 0x140020498
mov rcx, qword [rbx]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rbx + 0x18], r12
mov qword [rbx + 0x10], r15
mov word [rbx], r15w
mov rdx, rsi
mov rcx, rbx
call fcn.140002ac8
cmp qword [rbp - 0x58], r14
jb 0x1400204c5
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
movzx esi, byte [rsp + 0x38]
lea rbx, [rdi + 0x68]
mov rax, qword [rbx + 0x18]
mov r13d, 1
cmp rax, r13
jae 0x1400204f0
mov r8, qword [rbx + 0x10]
mov edx, r13d
mov rcx, rbx
call fcn.140003718
mov rax, qword [rbx + 0x18]
cmp rax, r14
jb 0x1400204fa
mov rax, qword [rbx]
jmp 0x1400204fd
mov rax, rbx
mov word [rax], si
mov qword [rbx + 0x10], r13
cmp qword [rbx + 0x18], r14
jb 0x14002050f
mov rax, qword [rbx]
jmp 0x140020512
mov rax, rbx
mov word [rax + 2], r15w
mov rdx, qword [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.14000d8c0
mov rsi, rax
cmp rdi, rax
je 0x140020559
cmp qword [rdi + 0x18], r14
jb 0x140020542
mov rcx, qword [rdi]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rdi + 0x18], r12
mov qword [rdi + 0x10], r15
mov word [rdi], r15w
mov rdx, rsi
mov rcx, rdi
call fcn.140002ac8
cmp qword [rbp - 0x58], r14
jb 0x14002056f
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov edx, 0x104
cmp qword [rbx + 0x10], rdx
jb 0x140020596
mov qword [rbx + 0x10], rdx
cmp qword [rbx + 0x18], r14
jb 0x140020589
mov rax, qword [rbx]
jmp 0x14002058c
mov rax, rbx
mov word [rax + 0x208], r15w
jmp 0x1400205a5
xor r8d, r8d
sub rdx, qword [rbx + 0x10]
mov rcx, rbx
call fcn.140003920
cmp qword [rbx + 0x18], r14
jb 0x1400205b0
mov rdx, qword [rbx]
jmp 0x1400205b3
mov rdx, rbx
mov r8d, dword [rdi + 0x78]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x1400206a2
lea rax, [rbp - 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x60], r15
mov word [rbp - 0x70], r15w
mov r8d, AtlComPtrAssign
lea rdx, str.Executing_Win32_call__s
lea rcx, [rbp - 0x70]
call fcn.140002d18
nop
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x40], r15
mov word [rbp - 0x50], r15w
mov r8d, AtlComPtrAssign
lea rdx, str.VssFileDescriptor::Initialize
lea rcx, [rbp - 0x50]
call fcn.140002d18
nop
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r15
mov word [rsp + 0x48], r15w
mov r8d, 0x26
lea rdx, str.base_stor_vss_tools_vshadowwriter.cpp
lea rcx, [rsp + 0x48]
call fcn.140002d18
nop
lea rax, str._ExpandEnvironmentStringsW_bstrPath___PWCHAR_expandedPath.c_str_____DWORD_expandedPath.length____
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x50]
mov r8d, 0x320
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x30]
call fcn.140001cb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jne 0x14002079f
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x60], r15
mov word [rbp - 0x70], r15w
or rsi, 0xffffffffffffffff
mov r9, rsi
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.140002c28
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.140012880
mov rdx, rax
mov rcx, rbx
call fcn.140012a08
xor r8d, r8d
mov dl, r13b
lea rcx, [rbp - 0x50]
call fcn.140003a0c
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x60], r15
mov word [rbp - 0x70], r15w
mov r9, rsi
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.140002c28
add rdi, 0x88
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.1400239c0
test al, al
jne 0x140020739
cmp rdi, rbx
je 0x140020739
mov r9, rsi
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.140002c28
nop
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rbp - 0x30]
call fcn.1400021d4
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140032b80
mov rbx, qword [rsp + 0x180]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str._nERROR:_Win32_call__s_failed.
lea rcx, [rbp - 0x70]
call fcn.140002e00
lea r8, str._ExpandEnvironmentStringsW_bstrPath___PWCHAR_expandedPath.c_str_____DWORD_expandedPath.length____
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140001a50
lea rdx, str.__GetLastError_____ld
lea rcx, [rbp - 0x70]
call fcn.140002e00
mov r8d, r14d
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140001a50
mov edx, esi
lea rcx, [rbp - 0x50]
call fcn.14000231c
mov rdi, rax
lea rdx, str.__Error_text:__s
lea rcx, [rbp - 0x70]
call fcn.140002e00
mov rbx, rax
mov rcx, rdi
call fcn.140003700
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140001a50
nop
lea rcx, [rbp - 0x50]
call fcn.140003a84
lea rdx, str.__Please_re_run_VSHADOW.EXE_with_the__tracing_option_to_get_more_details
lea rcx, [rbp - 0x70]
call fcn.140002e00
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140001a50
mov dword [rsp + 0x40], esi
lea rdx, [0x140052a88]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str._nERROR:_COM_call__s_failed.
lea rcx, [rbp - 0x70]
call fcn.140002e00
lea r8, str._pFileDesc__GetPath_bstrPath__
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140001a50
lea rdx, str.__Returned_HRESULT__0x_08lx
lea rcx, [rbp - 0x70]
call fcn.140002e00
mov r8d, r14d
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140001a50
mov edx, r14d
lea rcx, [rbp - 0x50]
call fcn.14000231c
mov rdi, rax
lea rdx, str.__Error_text:__s
lea rcx, [rbp - 0x70]
call fcn.140002e00
mov rbx, rax
mov rcx, rdi
call fcn.140003700
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140001a50
nop
lea rcx, [rbp - 0x50]
call fcn.140003a84
lea rdx, str.__Please_re_run_VSHADOW.EXE_with_the__tracing_option_to_get_more_details
lea rcx, [rbp - 0x70]
call fcn.140002e00
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140001a50
mov dword [rsp + 0x40], r14d
lea rdx, [0x140052a88]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str._nERROR:_COM_call__s_failed.
call fcn.140002e00
lea r8, str._pFileDesc__GetFilespec__bstrFilespec__
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140001a50
lea rdx, str.__Returned_HRESULT__0x_08lx
lea rcx, [rbp - 0x70]
call fcn.140002e00
mov r8d, r14d
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140001a50
mov edx, r14d
lea rcx, [rbp - 0x50]
call fcn.14000231c
mov rdi, rax
lea rdx, str.__Error_text:__s
lea rcx, [rbp - 0x70]
call fcn.140002e00
mov rbx, rax
mov rcx, rdi
call fcn.140003700
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140001a50
nop
lea rcx, [rbp - 0x50]
call fcn.140003a84
lea rdx, str.__Please_re_run_VSHADOW.EXE_with_the__tracing_option_to_get_more_details
lea rcx, [rbp - 0x70]
call fcn.140002e00
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140001a50
mov dword [rsp + 0x40], r14d
lea rdx, [0x140052a88]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll__CxxThrowException
int3
lea rdx, str._nERROR:_COM_call__s_failed.
lea rcx, [rbp - 0x70]
call fcn.140002e00
lea r8, str._pFileDesc__GetRecursive_bRecursive__
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140001a50
lea rdx, str.__Returned_HRESULT__0x_08lx
lea rcx, [rbp - 0x70]
call fcn.140002e00
mov r8d, r14d
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140001a50
mov edx, r14d
lea rcx, [rbp - 0x50]
call fcn.14000231c
mov rdi, rax
lea rdx, str.__Error_text:__s
lea rcx, [rbp - 0x70]
call fcn.140002e00
mov rbx, rax
mov rcx, rdi
call fcn.140003700
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140001a50
nop
lea rcx, [rbp - 0x50]
call fcn.140003a84
lea rdx, str.__Please_re_run_VSHADOW.EXE_with_the__tracing_option_to_get_more_details
lea rcx, [rbp - 0x70]
call fcn.140002e00
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140001a50
mov dword [rsp + 0x40], r14d
lea rdx, [0x140052a88]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str._nERROR:_COM_call__s_failed.
call fcn.140002e00
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140001a50
lea rdx, str.__Returned_HRESULT__0x_08lx
lea rcx, [rbp - 0x70]
call fcn.140002e00
mov r8d, esi
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140001a50
mov edx, esi
lea rcx, [rbp - 0x50]
call fcn.14000231c
mov rdi, rax
lea rdx, str.__Error_text:__s
lea rcx, [rbp - 0x70]
call fcn.140002e00
mov rbx, rax
mov rcx, rdi
call fcn.140003700
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140001a50
nop
lea rcx, [rbp - 0x50]
call fcn.140003a84
lea rdx, str.__Please_re_run_VSHADOW.EXE_with_the__tracing_option_to_get_more_details
lea rcx, [rbp - 0x70]
call fcn.140002e00
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140001a50
mov dword [rsp + 0x40], esi
lea rdx, [0x140052a88]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll__CxxThrowException
int3