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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xd8]
sub rsp, 0x1b0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180036178]
xor rax, rsp
mov qword [rbp + 0xa8], rax
mov r12, rcx
mov qword [rbp - 0x80], rcx
xor r13d, r13d
mov dword [rsp + 0x48], r13d
lea rcx, [rbp - 0x38]
call fcn.180009f50
nop
lea rcx, [rbp + 0x88]
call fcn.18000be24
nop
lea r8, [rbp - 0x38]
mov rdx, rax
lea rcx, [rbp + 0x48]
call fcn.180009e54
nop
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.180007ea4
nop
lea r8, [rbp - 0x38]
mov rdx, rax
lea rcx, [rbp + 0x68]
call fcn.180009e54
nop
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.180007ea4
nop
lea r8, [0x18002e500]
mov rdx, rax
lea rcx, [rbp + 0x28]
call fcn.18000a1c4
nop
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.180007ea4
nop
lea r8, [0x18002e4d8]
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.18000a1c4
nop
cmp qword [rbp - 0x60], 8
jb 0x18000c6fb
mov rcx, qword [rbp - 0x78]
call fcn.180012c94
mov ebx, 7
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x68], r13
mov word [rbp - 0x78], r13w
cmp qword [rbp + 0x40], 8
jb 0x18000c71d
mov rcx, qword [rbp + 0x28]
call fcn.180012c94
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x38], r13
mov word [rbp + 0x28], r13w
cmp qword [rbp], 8
jb 0x18000c73a
mov rcx, qword [rbp - 0x18]
call fcn.180012c94
mov qword [rbp], rbx
mov qword [rbp - 8], r13
mov word [rbp - 0x18], r13w
cmp qword [rbp + 0x80], 8
jb 0x18000c75a
mov rcx, qword [rbp + 0x68]
call fcn.180012c94
mov qword [rbp + 0x80], rbx
mov qword [rbp + 0x78], r13
mov word [rbp + 0x68], r13w
cmp qword [rbp + 0x20], 8
jb 0x18000c77a
mov rcx, qword [rbp + 8]
call fcn.180012c94
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x18], r13
mov word [rbp + 8], r13w
cmp qword [rbp + 0x60], 8
jb 0x18000c797
mov rcx, qword [rbp + 0x48]
call fcn.180012c94
mov qword [rbp + 0x60], rbx
mov qword [rbp + 0x58], r13
mov word [rbp + 0x48], r13w
cmp qword [rbp + 0xa0], 8
jb 0x18000c7ba
mov rcx, qword [rbp + 0x88]
call fcn.180012c94
mov qword [rbp + 0xa0], rbx
mov qword [rbp + 0x98], r13
mov word [rbp + 0x88], r13w
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rcx, qword [rbp - 0x58]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 5]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
or rsi, 0xffffffffffffffff
cmp rax, rsi
jne 0x18000c83b
lea rax, str.Could_not_open_compatibility_file
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.1800137d4
lea rdx, [0x180035320]
lea rcx, [rsp + 0x58]
call fcn.180014998
int3
mov qword [rsp + 0x58], rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], rax
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
cmp eax, 0xffffffff
jne 0x18000c88a
lea rax, str.Invalid_file_size
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x78]
call fcn.1800137d4
lea rdx, [0x180035320]
lea rcx, [rbp - 0x78]
call fcn.180014998
int3
lea rcx, [r15 + 2]
call fcn.18001249c
mov rdi, rax
mov qword [rsp + 0x78], rax
lea r8, [r15 + 2]
xor edx, edx
mov rcx, rax
call fcn.180017be0
mov ebx, r15d
test r15d, r15d
je 0x18000c90b
mov dword [rsp + 0x40], r13d
mov edx, r15d
sub edx, ebx
add rdx, rdi
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000c8e0
sub ebx, dword [rsp + 0x40]
jne 0x18000c8b1
jmp 0x18000c90b
lea rax, str.Could_not_read_file
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x78]
call fcn.1800137d4
lea rdx, [0x180035320]
lea rcx, [rbp - 0x78]
call fcn.180014998
int3
mov ebx, 7
mov qword [r12 + 0x18], rbx
mov qword [r12 + 0x10], r13
mov word [r12], r13w
cmp word [rdi], r13w
jne 0x18000c92a
mov rsi, r13
jmp 0x18000c934
inc rsi
cmp word [rdi + rsi*2], r13w
jne 0x18000c92a
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call fcn.1800030e4
mov dword [rsp + 0x48], 1
mov rcx, rdi
call fcn.180013cc0
nop
test r14, r14
je 0x18000c962
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp - 0x40], 8
jb 0x18000c972
mov rcx, qword [rbp - 0x58]
call fcn.180012c94
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x48], r13
mov word [rbp - 0x58], r13w
cmp qword [rbp - 0x20], 8
jb 0x18000c98f
mov rcx, qword [rbp - 0x38]
call fcn.180012c94
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x28], r13
mov word [rbp - 0x38], r13w
mov rax, r12
mov rcx, qword [rbp + 0xa8]
xor rcx, rsp
call fcn.1800124c0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret