Function at 0x1400e5674
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov sil, r9b
mov rdi, r8
mov r14, rcx
test rcx, rcx
jne 0x1400e56c2
lea r8, str.0___lpstrFilePath
mov edx, 0xd33
lea rcx, [0x140152b18]
call fcn.140082070
test rdi, rdi
jne 0x1400e56df
lea r8, str.0___pFileAttributes
mov edx, 0xd34
lea rcx, [0x140152b18]
call fcn.140082070
xor ebx, ebx
lea rcx, [rbp + 0xf]
xor edx, edx
lea r8d, [rbx + 0x28]
call sub.msvcrt.dll_memset
and qword [rsp + 0x30], rbx
lea r8d, [rbx + 7]
movzx eax, sil
xor r9d, r9d
shl eax, 0x18
xor edx, edx
add eax, 0x2200000
mov rcx, r14
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400e577d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400e577d
and qword [rbp + 7], 0
lea rax, [0x140171590]
mov qword [rbp - 0x19], rax
lea rdx, str.CreateFile_unsuccessful_for__ws
lea rax, str.base_stor_blbdsmdsmutilsdll_fsutils.cpp
mov dword [rbp - 0x11], ebx
mov r8, r14
mov qword [rbp - 9], rax
lea rcx, [rbp - 0x19]
mov dword [rbp - 1], 0xd4d
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const____ptr64____ptr64
jmp 0x1400e58ad
mov r9d, 0x28
lea r8, [rbp + 0xf]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
jne 0x1400e57f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.GetFileInformationByHandleEx_hFile__FileBasicInfo__fileInfo__sizeof_FILE_BASIC_INFO__
mov dword [rbp - 1], 0xd50
movzx ebx, ax
lea r8, str.Failed:
or ebx, 0x80070000
lea rdx, str._ws:_lVal_:__S
test eax, eax
lea rcx, [rbp - 0x19]
cmovle ebx, eax
and qword [rbp + 7], 0
lea rax, [0x140171590]
mov dword [rbp - 0x11], ebx
mov qword [rbp - 0x19], rax
lea rax, str.base_stor_blbdsmdsmutilsdll_fsutils.cpp
mov qword [rbp - 9], rax
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const____ptr64____ptr64
jmp 0x1400e5876
lea rdx, [rdi + 0x1c]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rdi + 0x20], eax
cmp eax, 0xffffffff
jne 0x1400e5859
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400e5859
and qword [rbp + 7], 0
lea rax, [0x140171590]
mov qword [rbp - 0x19], rax
lea rdx, str.GetFileSize_failed_for__ws
lea rax, str.base_stor_blbdsmdsmutilsdll_fsutils.cpp
mov dword [rbp - 0x11], ebx
mov r8, r14
mov qword [rbp - 9], rax
lea rcx, [rbp - 0x19]
mov dword [rbp - 1], 0xd5a
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const____ptr64____ptr64
jmp 0x1400e5876
mov eax, dword [rbp + 0x2f]
mov dword [rdi], eax
mov rax, qword [rbp + 0xf]
mov qword [rdi + 4], rax
mov rax, qword [rbp + 0x17]
mov qword [rdi + 0xc], rax
mov rax, qword [rbp + 0x1f]
mov qword [rdi + 0x14], rax
cmp rsi, 0xffffffffffffffff
je 0x1400e58ad
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400e58ad
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, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14013e2a0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret