Function at 0x180003ac0
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
mov eax, 0x1060
call fcn.180004a90
sub rsp, rax
mov rax, qword [0x18002e018]
xor rax, rsp
mov qword [rsp + 0x1050], rax
xor edi, edi
mov r14, r8
mov r15, rdx
mov qword [rsp + 0x30], rdi
xor eax, eax
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea r8d, [rdi + 1]
mov dword [rsp + 0x40], edi
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x180003ba4
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x1000
call fcn.1800067d0
lea edx, [rdi + 0x5c]
lea rcx, [0x1800294f0]
call fcn.1800063dc
mov rbx, rax
test rax, rax
jne 0x180003b5c
lea rbx, [0x180029550]
jmp 0x180003b60
add rbx, 2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea r9, [0x1800295a8]
mov dword [rsp + 0x28], 0x15
mov edx, 0x7ff
lea r8, str._s__s:_d__Error_During_CreateFile_Error__d_n
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x50]
call fcn.180002d00
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x180003dde
lea rdx, [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x180003c25
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x1000
call fcn.1800067d0
mov edx, 0x5c
lea rcx, [0x180029620]
call fcn.1800063dc
test rax, rax
jne 0x180003be7
lea rax, [0x180029680]
jmp 0x180003beb
add rax, 2
mov dword [rsp + 0x28], 0x1b
lea r9, [0x1800296d8]
lea r8, str._s__s:_d__Error_During_GetFileSizeEx_n
mov qword [rsp + 0x20], rax
mov edx, 0x7ff
lea rcx, [rsp + 0x50]
call fcn.180002d00
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x180003dd5
mov rax, qword [rsp + 0x48]
xor ecx, ecx
mov edx, eax
mov r8d, 0x3000
mov dword [r14], eax
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180003cc3
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x1000
call fcn.1800067d0
lea edx, [rbx + 0x5c]
lea rcx, [0x180029740]
call fcn.1800063dc
mov rbx, rax
test rax, rax
jne 0x180003c7b
lea rbx, [0x1800297a0]
jmp 0x180003c7f
add rbx, 2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea r9, [0x1800297f8]
mov dword [rsp + 0x28], 0x23
lea r8, str._s__s:_d__Error_During_VirtualAlloc_Error__d_n
mov edx, 0x7ff
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x50]
call fcn.180002d00
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x180003dd5
mov r8d, dword [r14]
lea r9, [rsp + 0x40]
mov rdx, rbx
mov qword [rsp + 0x20], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180003dcd
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
jne 0x180003d70
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x1000
call fcn.1800067d0
mov edx, 0x5c
lea rcx, [0x180029870]
call fcn.1800063dc
mov rbx, rax
test rax, rax
jne 0x180003d2d
lea rbx, [0x1800298d0]
jmp 0x180003d31
add rbx, 2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea r9, [0x180029928]
mov dword [rsp + 0x28], 0x2b
mov edx, 0x7ff
lea r8, str._s__s:_d__Error_During_VirtualFree__d_n
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x50]
call fcn.180002d00
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x1000
call fcn.1800067d0
mov edx, 0x5c
lea rcx, [0x1800299a0]
call fcn.1800063dc
mov rbx, rax
test rax, rax
jne 0x180003da4
lea rbx, [0x180029a00]
jmp 0x180003da8
add rbx, 2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea r9, [0x180029a58]
mov dword [rsp + 0x28], 0x2d
lea r8, str._s__s:_d__Error_During_ReadFile_Error__d_n
jmp 0x180003c9f
mov qword [r15], rbx
mov edi, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.180004600
add rsp, 0x1060
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret