Function at 0x14002e908
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xc8]
sub rsp, 0x190
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400541a0]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rbp - 8], rcx
mov qword [rbp], rdx
xor r12d, r12d
mov dword [rbp - 0x68], r12d
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
lea r13d, [r12 + 7]
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x40], r12
mov word [rbp - 0x50], r12w
lea r15d, [r12 + 0x10]
mov r8d, r15d
lea rdx, str.ReadFileContents
lea rcx, [rbp - 0x50]
call fcn.140002d18
nop
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x20], r12
mov word [rbp - 0x30], r12w
lea ebx, [r12 + 0x22]
mov r8d, ebx
lea rdx, str.base_stor_vss_tools_vshadowutil.h
lea rcx, [rbp - 0x30]
call fcn.140002d18
nop
lea r9, [rbp - 0x50]
mov r8d, 0x23c
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x30]
call fcn.140002028
nop
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x78], r12
mov word [rsp + 0x78], r12w
lea r8d, [r12 + 0x19]
lea rdx, str.Reading_the_file__s_...
lea rcx, [rsp + 0x78]
call fcn.140002d18
cmp qword [rdi + 0x18], 8
jb 0x14002e9f8
mov r8, qword [rdi]
jmp 0x14002e9fb
mov r8, rdi
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x30]
call fcn.140001a50
cmp qword [rdi + 0x18], 8
jb 0x14002ea15
mov rcx, qword [rdi]
jmp 0x14002ea18
mov rcx, rdi
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14002eb22
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 8]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x78], r12
mov word [rsp + 0x78], r12w
lea r8d, [r14 + 0x1a]
lea rdx, str.Executing_Win32_call__s
lea rcx, [rsp + 0x78]
call fcn.140002d18
nop
mov qword [rbp + 0x20], r13
mov qword [rbp + 0x18], r12
mov word [rbp + 8], r12w
mov r8, r15
lea rdx, str.ReadFileContents
lea rcx, [rbp + 8]
call fcn.140002d18
nop
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r12
mov word [rsp + 0x48], r12w
mov r8, rbx
lea rdx, str.base_stor_vss_tools_vshadowutil.h
lea rcx, [rsp + 0x48]
call fcn.140002d18
nop
lea rax, str.L_CreateFile_
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 8]
mov r8d, 0x249
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x30]
call fcn.140001cb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
movzx r15d, ax
or r15d, 0x80070000
test eax, eax
cmovle r15d, eax
jne 0x14002ed8f
lea r15d, [r14 + 0x11]
mov qword [rsp + 0x68], r14
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov ebx, eax
mov qword [rsi + 0x18], r13
mov qword [rsi + 0x10], r12
mov word [rsi], r12w
xor r8d, r8d
mov edx, eax
shr rdx, 1
mov rcx, rsi
call fcn.14000df38
mov dword [rbp - 0x68], 1
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140003678
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x60]
mov r8d, ebx
mov rdx, qword [rax + 8]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.140003414
test ebx, ebx
jne 0x14002ec69
lea rax, [rsp + 0x48]
mov qword [rbp - 0x58], rax
lea rax, [rbp + 8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r12
mov word [rsp + 0x48], r12w
lea r8d, [rbx + 0x19]
lea rdx, str.Executing_Win32_call__s
lea rcx, [rsp + 0x48]
call fcn.140002d18
nop
mov qword [rbp + 0x20], r13
mov qword [rbp + 0x18], r12
mov word [rbp + 8], r12w
mov r8, r15
lea rdx, str.ReadFileContents
lea rcx, [rbp + 8]
call fcn.140002d18
nop
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x78], r12
mov word [rsp + 0x78], r12w
lea r8d, [rbx + 0x22]
lea rdx, str.base_stor_vss_tools_vshadowutil.h
lea rcx, [rsp + 0x78]
call fcn.140002d18
nop
lea rax, str._ReadFile_hFile__WString2Buffer_contents___dwFileSize__dwRead__NULL__
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 8]
mov r8d, 0x255
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x30]
call fcn.140001cb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
movzx r15d, ax
or r15d, 0x80070000
test eax, eax
cmovle r15d, eax
jne 0x14002ecd3
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
nop
lea rcx, [rbp + 0x30]
call fcn.1400021d4
nop
cmp qword [rdi + 0x18], 8
jb 0x14002ec99
mov rcx, qword [rdi]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rdi + 0x18], r13
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
mov rax, rsi
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140032b80
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x190
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, [rsp + 0x48]
call fcn.140002e00
lea r8, str._ReadFile_hFile__WString2Buffer_contents___dwFileSize__dwRead__NULL__
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.140001a50
lea rdx, str.__GetLastError_____ld
lea rcx, [rsp + 0x48]
call fcn.140002e00
mov r8d, ebx
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.140001a50
mov edx, r15d
lea rcx, [rbp + 8]
call fcn.14000231c
mov rdi, rax
lea rdx, str.__Error_text:__s
lea rcx, [rsp + 0x48]
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 + 8]
call fcn.140003a84
lea rdx, str.__Please_re_run_VSHADOW.EXE_with_the__tracing_option_to_get_more_details
lea rcx, [rsp + 0x48]
call fcn.140002e00
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.140001a50
mov dword [rsp + 0x40], r15d
lea rdx, [0x140052a88]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str._nERROR:_Win32_call__s_failed.
lea rcx, [rsp + 0x48]
call fcn.140002e00
lea r8, str.L_CreateFile_
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.140001a50
lea rdx, str.__GetLastError_____ld
lea rcx, [rsp + 0x48]
call fcn.140002e00
mov r8d, ebx
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.140001a50
mov edx, r15d
lea rcx, [rbp + 8]
call fcn.14000231c
mov rdi, rax
lea rdx, str.__Error_text:__s
lea rcx, [rsp + 0x48]
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 + 8]
call fcn.140003a84
lea rdx, str.__Please_re_run_VSHADOW.EXE_with_the__tracing_option_to_get_more_details
lea rcx, [rsp + 0x48]
call fcn.140002e00
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.140001a50
mov dword [rsp + 0x40], r15d
lea rdx, [0x140052a88]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll__CxxThrowException
int3