Function at 0x1400e89c4
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x140172608]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15b, r9b
mov rsi, r8
mov r14, rcx
test rcx, rcx
jne 0x1400e8a10
lea r8, str.0___lpstrFilePath
mov edx, 0xd33
lea rcx, [0x140156858]
call fcn.14008410c
test rsi, rsi
jne 0x1400e8a2d
lea r8, str.0___pFileAttributes
mov edx, 0xd34
lea rcx, [0x140156858]
call fcn.14008410c
xor edi, edi
lea rcx, [rbp - 1]
mov eax, 0x3200000
test r15b, r15b
mov ebx, 0x2200000
cmovne ebx, eax
xor edx, edx
lea r8d, [rdi + 0x28]
call sub.msvcrt.dll_memset
and qword [rsp + 0x30], rdi
lea r8d, [rdi + 7]
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], 3
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov r15d, 0x80070000
cmp rax, 0xffffffffffffffff
jne 0x1400e8ad2
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, r15d
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x1400e8ad2
and qword [rbp - 9], 0
lea rax, [0x1401745d8]
mov qword [rbp - 0x29], rax
lea rdx, str.CreateFile_unsuccessful_for__ws
lea rax, str.base_stor_blbdsmdsmutilsdll_fsutils.cpp
mov dword [rbp - 0x21], edi
mov r8, r14
mov qword [rbp - 0x19], rax
lea rcx, [rbp - 0x29]
mov dword [rbp - 0x11], 0xd4d
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const____ptr64____ptr64
jmp 0x1400e8bfc
mov r9d, 0x28
lea r8, [rbp - 1]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
jne 0x1400e8b44
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.GetFileInformationByHandleEx_hFile__FileBasicInfo__fileInfo__sizeof_FILE_BASIC_INFO__
mov dword [rbp - 0x11], 0xd50
movzx edi, ax
lea r8, str.Failed:
or edi, r15d
lea rdx, str._ws:_lVal_:__S
test eax, eax
lea rcx, [rbp - 0x29]
cmovle edi, eax
and qword [rbp - 9], 0
lea rax, [0x1401745d8]
mov dword [rbp - 0x21], edi
mov qword [rbp - 0x29], rax
lea rax, str.base_stor_blbdsmdsmutilsdll_fsutils.cpp
mov qword [rbp - 0x19], rax
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const____ptr64____ptr64
jmp 0x1400e8bc5
lea rdx, [rsi + 0x1c]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsi + 0x20], eax
cmp eax, 0xffffffff
jne 0x1400e8ba8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, r15d
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x1400e8ba8
and qword [rbp - 9], 0
lea rax, [0x1401745d8]
mov qword [rbp - 0x29], rax
lea rdx, str.GetFileSize_failed_for__ws
lea rax, str.base_stor_blbdsmdsmutilsdll_fsutils.cpp
mov dword [rbp - 0x21], edi
mov r8, r14
mov qword [rbp - 0x19], rax
lea rcx, [rbp - 0x29]
mov dword [rbp - 0x11], 0xd5a
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const____ptr64____ptr64
jmp 0x1400e8bc5
mov eax, dword [rbp + 0x1f]
mov dword [rsi], eax
mov rax, qword [rbp - 1]
mov qword [rsi + 4], rax
mov rax, qword [rbp + 7]
mov qword [rsi + 0xc], rax
mov rax, qword [rbp + 0xf]
mov qword [rsi + 0x14], rax
cmp rbx, 0xffffffffffffffff
je 0x1400e8bfc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400e8bfc
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140141cf0
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret