Function at 0x1400ec474
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 [0x140178010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15b, r9b
mov rsi, r8
mov r14, rcx
test rcx, rcx
jne 0x1400ec4c0
lea r8, str.0___lpstrFilePath
mov edx, 0xd6e
lea rcx, [0x14015c8e8]
call fcn.14008624c
test rsi, rsi
jne 0x1400ec4dd
lea r8, str.0___pFileAttributes
mov edx, 0xd6f
lea rcx, [0x14015c8e8]
call fcn.14008624c
xor edi, edi
lea rcx, [rbp + 3]
mov eax, 0x3200000
test r15b, r15b
mov ebx, 0x2200000
cmovne ebx, eax
and dword [rbp - 1], edi
xor edx, edx
lea r8d, [rdi + 0x24]
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 0x1400ec585
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, r15d
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x1400ec585
and qword [rbp - 9], 0
lea rax, [0x14017a488]
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], 0xd88
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const____ptr64____ptr64
jmp 0x1400ec6af
mov r9d, 0x28
lea r8, [rbp - 1]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
jne 0x1400ec5f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.GetFileInformationByHandleEx_hFile__FileBasicInfo__fileInfo__sizeof_FILE_BASIC_INFO__
mov dword [rbp - 0x11], 0xd8b
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, [0x14017a488]
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 0x1400ec678
lea rdx, [rsi + 0x1c]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsi + 0x20], eax
cmp eax, 0xffffffff
jne 0x1400ec65b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, r15d
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x1400ec65b
and qword [rbp - 9], 0
lea rax, [0x14017a488]
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], 0xd95
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const____ptr64____ptr64
jmp 0x1400ec678
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 0x1400ec6af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400ec6af
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.1401474d0
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret