Function at 0x14010e5c4
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15b, r8b
mov rsi, rdx
mov r14, rcx
test rcx, rcx
jne 0x14010e610
lea r8, [0x140011288]
lea rcx, [0x140010dc8]
mov edx, 0xd6e
call fcn.1400a8be8
test rsi, rsi
jne 0x14010e62d
lea r8, [0x140011318]
lea rcx, [0x140010dc8]
mov edx, 0xd6f
call fcn.1400a8be8
xor edi, edi
mov eax, 0x3200000
mov ebx, 0x2200000
test r15b, r15b
lea rcx, [rbp + 3]
lea r8d, [rdi + 0x24]
cmovne ebx, eax
and dword [rbp - 1], edi
xor edx, edx
call sub.msvcrt.dll_memset
and qword [rsp + 0x30], rdi
lea r8d, [rdi + 7]
xor r9d, r9d
xor edx, edx
mov rcx, r14
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov r15d, 0x80070000
cmp rax, 0xffffffffffffffff
jne 0x14010e6d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, r15d
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x14010e6d5
and qword [rbp - 9], 0
lea rax, [0x14017f718]
lea rdx, [0x1400112a0]
mov qword [rbp - 0x29], rax
lea rax, [0x140010e90]
lea rcx, [rbp - 0x29]
mov r8, r14
mov dword [rbp - 0x21], edi
mov dword [rbp - 0x11], reloc.ADVAPI32.dll_TraceEvent
mov qword [rbp - 0x19], rax
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const____ptr64____ptr64
jmp 0x14010e7ff
lea r8, [rbp - 1]
mov r9d, 0x28
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
jne 0x14010e747
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [0x140011330]
lea r8, [0x14000f360]
movzx edi, ax
lea rdx, [0x14000fa50]
lea rcx, [rbp - 0x29]
or edi, r15d
test eax, eax
mov dword [rbp - 0x11], reloc.ADVAPI32.dll_TraceEvent
cmovle edi, eax
and qword [rbp - 9], 0
lea rax, [0x14017f718]
mov qword [rbp - 0x29], rax
lea rax, [0x140010e90]
mov dword [rbp - 0x21], edi
mov qword [rbp - 0x19], rax
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const____ptr64____ptr64
jmp 0x14010e7c8
lea rdx, [rsi + 0x1c]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsi + 0x20], eax
cmp eax, reloc.ADVAPI32.dll_TraceEvent
jne 0x14010e7ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, r15d
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x14010e7ab
and qword [rbp - 9], 0
lea rax, [0x14017f718]
lea rdx, [0x140011388]
mov qword [rbp - 0x29], rax
lea rax, [0x140010e90]
lea rcx, [rbp - 0x29]
mov r8, r14
mov dword [rbp - 0x21], edi
mov dword [rbp - 0x11], reloc.ADVAPI32.dll_TraceEvent
mov qword [rbp - 0x19], rax
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const____ptr64____ptr64
jmp 0x14010e7c8
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 0x14010e7ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14010e7ff
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.140168920
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret