Function at 0x1400f6134
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 [0x140183808]
xor rax, rsp
mov qword [rbp + 0x37], rax
movzx esi, r9b
mov rdi, r8
mov r14, rcx
test rcx, rcx
jne 0x1400f6183
lea r8, str.0___lpstrFilePath
mov edx, 0xd33
lea rcx, [0x140168478]
call fcn.14008f4c8
test rdi, rdi
jne 0x1400f61a0
lea r8, str.0___pFileAttributes
mov edx, 0xd34
lea rcx, [0x140168478]
call fcn.14008f4c8
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp + 0x2f], 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 + 0xf], xmm0
movups xmmword [rbp + 0x1f], xmm0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400f624a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400f624a
and qword [rbp + 7], 0
lea rax, [0x1401859c0]
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 0x1400f63a4
mov r9d, 0x28
lea r8, [rbp + 0xf]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
nop dword [rax + rax]
test eax, eax
jne 0x1400f62cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
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, [0x1401859c0]
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 0x1400f635b
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 0x1400f633e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400f633e
and qword [rbp + 7], 0
lea rax, [0x1401859c0]
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 0x1400f635b
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 0x1400f63a4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
jne 0x1400f63a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
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.1401534b0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret