Function at 0x14001f804
Capabilities:
Get file size
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
xor edi, edi
mov r14, r8
and qword [r11 - 0x38], rdi
mov r15, rdx
mov dword [rsp + 0x28], 0x80
mov rbp, rcx
lea eax, [rdi + 3]
mov esi, eax
mov dword [rsp + 0x20], eax
jmp 0x14001f882
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x20
jne 0x14001f8dd
mov ecx, 0x1f4
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
nop dword [rax + rax]
test esi, esi
je 0x14001f8a2
dec esi
mov rcx, rbp
and qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14001f83e
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
jne 0x14001f8ed
mov edx, 0x65b
mov rcx, qword [rsp + 0x68]
lea r8, str.onecore_amcoreoctagon_broker_sourcelib_assists.cpp
call fcn.140005198
mov esi, eax
jmp 0x14001f9f9
mov rdi, rbx
cmp rbx, 0xffffffffffffffff
jne 0x14001f8a2
mov edx, 0x656
jmp 0x14001f8c5
cmp dword [rsp + 0x44], 0
je 0x14001f917
mov rcx, qword [rsp + 0x68]
lea r8, str.onecore_amcoreoctagon_broker_sourcelib_assists.cpp
mov esi, 0x80070057
mov edx, 0x65c
mov r9d, esi
call fcn.140005160
jmp 0x14001f9f9
mov ebx, dword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14001f94f
mov esi, 0x8007000e
mov edx, 0x660
jmp 0x14001f9b1
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x88]
and dword [rsp + 0x88], 0
mov rdx, rbx
and qword [rsp + 0x20], 0
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x14001f99a
mov rcx, qword [rsp + 0x68]
lea r8, str.onecore_amcoreoctagon_broker_sourcelib_assists.cpp
mov edx, 0x669
call fcn.140005198
mov esi, eax
jmp 0x14001f9d4
mov ecx, dword [rsp + 0x88]
cmp ecx, dword [rsp + 0x40]
je 0x14001f9c7
mov esi, 0x8000ffff
mov edx, 0x66a
mov rcx, qword [rsp + 0x68]
lea r8, str.onecore_amcoreoctagon_broker_sourcelib_assists.cpp
mov r9d, esi
call fcn.140005160
jmp 0x14001f9d4
mov rax, rbx
xor ebx, ebx
mov qword [r14], rax
xor esi, esi
mov dword [r15], ecx
test rbx, rbx
je 0x14001f9f9
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
lea rcx, [rdi - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14001fa12
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
lea r11, [rsp + 0x50]
mov eax, esi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret