Function at 0x1400e9370
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rbp + 0x27], rax
movzx esi, r9b
mov rdi, r8
mov r14, rcx
test rcx, rcx
jne 0x1400e93bd
lea r8, str.0___lpstrFilePath
mov edx, 0xd33
lea rcx, [0x1401550d0]
call fcn.140088f60
test rdi, rdi
jne 0x1400e93da
lea r8, str.0___pFileAttributes
mov edx, 0xd34
lea rcx, [0x1401550d0]
call fcn.140088f60
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp + 0x1f], rax
xor ebx, ebx
and qword [rsp + 0x30], rbx
mov eax, esi
shl eax, 0x18
xor r9d, r9d
add eax, 0x2200000
xor edx, edx
mov dword [rsp + 0x28], eax
lea r8d, [rbx + 7]
mov rcx, r14
mov dword [rsp + 0x20], 3
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rsi, rax
mov r12d, 0x80070000
cmp rax, 0xffffffffffffffff
jne 0x1400e9488
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400e9447
movzx ebx, ax
or ebx, r12d
test ebx, ebx
jns 0x1400e9488
and qword [rbp - 9], 0
lea rax, [0x14016c440]
mov qword [rbp - 0x29], rax
lea rdx, str.CreateFile_unsuccessful_for__ws
lea rax, str.base_stor_blbdsmdsmutilsdll_fsutils.cpp
mov dword [rbp - 0x21], ebx
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 0x1400e95dc
mov r9d, 0x28
lea r8, [rbp - 1]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
nop dword [rax + rax]
test eax, eax
jne 0x1400e9507
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400e94bf
movzx ebx, ax
or ebx, r12d
and qword [rbp - 9], 0
lea rax, [0x14016c440]
mov qword [rbp - 0x29], rax
lea r9, str.GetFileInformationByHandleEx_hFile__FileBasicInfo__fileInfo__sizeof_FILE_BASIC_INFO__
lea rax, str.base_stor_blbdsmdsmutilsdll_fsutils.cpp
mov dword [rbp - 0x21], ebx
lea r8, str.Failed:
mov qword [rbp - 0x19], rax
lea rdx, str._ws:_lVal_:__S
mov dword [rbp - 0x11], 0xd50
lea rcx, [rbp - 0x29]
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const____ptr64____ptr64
jmp 0x1400e9595
lea rdx, [rdi + 0x1c]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov dword [rdi + 0x20], eax
cmp eax, 0xffffffff
jne 0x1400e9578
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400e953a
movzx ebx, ax
or ebx, r12d
test ebx, ebx
jns 0x1400e9578
and qword [rbp - 9], 0
lea rax, [0x14016c440]
mov qword [rbp - 0x29], rax
lea rdx, str.GetFileSize_failed_for__ws
lea rax, str.base_stor_blbdsmdsmutilsdll_fsutils.cpp
mov dword [rbp - 0x21], ebx
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 0x1400e9595
mov eax, dword [rbp + 0x1f]
mov dword [rdi], eax
mov rax, qword [rbp - 1]
mov qword [rdi + 4], rax
mov rax, qword [rbp + 7]
mov qword [rdi + 0xc], rax
mov rax, qword [rbp + 0xf]
mov qword [rdi + 0x14], rax
cmp rsi, 0xffffffffffffffff
je 0x1400e95dc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
jne 0x1400e95dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x1400e95c4
movzx eax, ax
or eax, r12d
xor r9d, r9d
xor r8d, r8d
mov ecx, eax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400071e0
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret