Function at 0x1000fb3f8
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x90
mov r12b, r9b
mov rsi, r8
mov rbp, rcx
test rcx, rcx
jne 0x1000fb43a
lea r8, [0x100011238]
lea rcx, [0x100010d68]
mov edx, 0xd3d
call fcn.100099ad8
test rsi, rsi
jne 0x1000fb457
lea r8, [0x1000112c8]
lea rcx, [0x100010d68]
mov edx, 0xd3e
call fcn.100099ad8
xor edi, edi
mov eax, 0x3200000
mov ebx, 0x2200000
test r12b, r12b
lea rcx, [rsp + 0x44]
lea r8d, [rdi + 0x24]
cmovne ebx, eax
and dword [rsp + 0x40], edi
xor edx, edx
call sub.msvcrt.dll_memset
and qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
xor r9d, r9d
xor edx, edx
mov rcx, rbp
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov r12d, 0x80070000
cmp rax, 0xffffffffffffffff
jne 0x1000fb50d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, r12d
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x1000fb50d
and qword [rsp + 0x88], 0
lea rax, [0x100167d30]
lea rdx, [0x100011250]
mov qword [rsp + 0x68], rax
lea rax, [0x100010e30]
lea rcx, [rsp + 0x68]
mov r8, rbp
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x80], 0xd57
mov qword [rsp + 0x78], rax
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const____ptr64____ptr64
jmp 0x1000fb654
lea r8, [rsp + 0x40]
mov r9d, 0x28
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
jne 0x1000fb58c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [0x1000112e0]
lea r8, [0x10000f2d0]
movzx edi, ax
lea rdx, [0x10000fa60]
lea rcx, [rsp + 0x68]
or edi, r12d
test eax, eax
mov dword [rsp + 0x80], 0xd5a
cmovle edi, eax
and qword [rsp + 0x88], 0
lea rax, [0x100167d30]
mov qword [rsp + 0x68], rax
lea rax, [0x100010e30]
mov dword [rsp + 0x70], edi
mov qword [rsp + 0x78], rax
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const____ptr64____ptr64
jmp 0x1000fb61d
lea rdx, [rsi + 0x1c]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsi + 0x20], eax
cmp eax, 0xffffffff
jne 0x1000fb5fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, r12d
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x1000fb5fc
and qword [rsp + 0x88], 0
lea rax, [0x100167d30]
lea rdx, [0x100011338]
mov qword [rsp + 0x68], rax
lea rax, [0x100010e30]
lea rcx, [rsp + 0x68]
mov r8, rbp
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x80], 0xd64
mov qword [rsp + 0x78], rax
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const____ptr64____ptr64
jmp 0x1000fb61d
mov eax, dword [rsp + 0x60]
mov dword [rsi], eax
mov rax, qword [rsp + 0x40]
mov qword [rsi + 4], rax
mov rax, qword [rsp + 0x48]
mov qword [rsi + 0xc], rax
mov rax, qword [rsp + 0x50]
mov qword [rsi + 0x14], rax
cmp rbx, 0xffffffffffffffff
je 0x1000fb654
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1000fb654
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]
lea r11, [rsp + 0x90]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret