Function at 0x14001f8e4
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 0x14001f962
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x20
jne 0x14001f9bd
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 0x14001f982
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 0x14001f91e
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 0x14001f9cd
mov edx, 0x65b
mov rcx, qword [rsp + 0x68]
lea r8, str.onecore_amcoreoctagon_broker_sourcelib_assists.cpp
call fcn.1400051b8
mov esi, eax
jmp 0x14001fad9
mov rdi, rbx
cmp rbx, 0xffffffffffffffff
jne 0x14001f982
mov edx, 0x656
jmp 0x14001f9a5
cmp dword [rsp + 0x44], 0
je 0x14001f9f7
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.140005180
jmp 0x14001fad9
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 0x14001fa2f
mov esi, 0x8007000e
mov edx, 0x660
jmp 0x14001fa91
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 0x14001fa7a
mov rcx, qword [rsp + 0x68]
lea r8, str.onecore_amcoreoctagon_broker_sourcelib_assists.cpp
mov edx, 0x669
call fcn.1400051b8
mov esi, eax
jmp 0x14001fab4
mov ecx, dword [rsp + 0x88]
cmp ecx, dword [rsp + 0x40]
je 0x14001faa7
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.140005180
jmp 0x14001fab4
mov rax, rbx
xor ebx, ebx
mov qword [r14], rax
xor esi, esi
mov dword [r15], ecx
test rbx, rbx
je 0x14001fad9
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 0x14001faf2
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