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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x860
mov rax, qword [0x180065480]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rbx, rcx
xor r13d, r13d
mov r12, rdx
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0x7ff
mov qword [rsp + 0x40], r13
lea edi, [r13 + 0xa]
call fcn.18002de40
lea r11, [rsp + 0x50]
lea r14, [0x180000000]
lea rcx, [rsp + 0x50]
mov rax, qword [r14 + 0x54410]
mov qword [r11], rax
mov rax, qword [r14 + 0x54418]
mov qword [r11 + 8], rax
mov rax, qword [r14 + 0x54420]
mov qword [r11 + 0x10], rax
mov rax, qword [r14 + 0x54428]
mov qword [r11 + 0x18], rax
movzx eax, byte [r14 + 0x54430]
mov byte [r11 + 0x20], al
call fcn.1800044f0
mov qword [rsp + 0x30], r13
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x180006733
mov rax, qword [r14 + 0x543c8]
lea rcx, [rsp + 0x50]
mov qword [rcx], rax
mov rax, qword [r14 + 0x543d0]
mov qword [rcx + 8], rax
mov rax, qword [r14 + 0x543d8]
mov qword [rcx + 0x10], rax
mov rax, qword [r14 + 0x543e0]
mov qword [rcx + 0x18], rax
movzx eax, byte [r14 + 0x543e8]
mov byte [rcx + 0x20], al
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x50]
mov r8d, eax
mov edx, 0x558
call fcn.1800044f0
xor eax, eax
jmp 0x18000691f
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x8a0], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov esi, eax
call fcn.18002d044
mov rbx, rax
test rax, rax
jne 0x1800067a6
mov rax, qword [r14 + 0x54438]
lea rcx, [rsp + 0x50]
mov qword [rcx], rax
mov rax, qword [r14 + 0x54440]
mov qword [rcx + 8], rax
mov rax, qword [r14 + 0x54448]
mov qword [rcx + 0x10], rax
movzx eax, byte [r14 + 0x54450]
mov byte [rcx + 0x18], al
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x50]
mov r8d, eax
mov edx, 0x562
call fcn.1800044f0
xor eax, eax
jmp 0x180006917
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.18002de40
lea r9, [rsp + 0x40]
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180006831
mov rax, qword [r14 + 0x54458]
lea rcx, [rsp + 0x50]
mov qword [rcx], rax
mov rax, qword [r14 + 0x54460]
mov qword [rcx + 8], rax
mov rax, qword [r14 + 0x54468]
mov qword [rcx + 0x10], rax
mov eax, dword [r14 + 0x54470]
mov dword [rcx + 0x18], eax
movzx eax, byte [r14 + 0x54474]
mov byte [rcx + 0x1c], al
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x50]
mov r8d, eax
mov edx, 0x56b
call fcn.1800044f0
mov rcx, rbx
call fcn.18002d004
xor eax, eax
jmp 0x180006917
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rbx], 0xa2
mov byte [rbx + 1], 0xb5
mov r9d, 1
mov r8, r12
mov edx, esi
mov rcx, rbx
mov dword [rsp + 0x28], 1
dec edi
mov dword [rsp + 0x20], 1
call fcn.180006460
test eax, eax
jne 0x1800068c2
mov rax, qword [r14 + 0x54478]
lea rcx, [rsp + 0x50]
mov qword [rcx], rax
mov rax, qword [r14 + 0x54480]
mov qword [rcx + 8], rax
mov rax, qword [r14 + 0x54488]
mov qword [rcx + 0x10], rax
mov eax, dword [r14 + 0x54490]
mov dword [rcx + 0x18], eax
movzx eax, byte [r14 + 0x54494]
mov byte [rcx + 0x1c], al
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x50]
mov r8d, eax
mov edx, 0x57d
call fcn.1800044f0
test edi, edi
jne 0x180006841
jmp 0x1800068c8
mov r13d, 1
mov rcx, qword [r14 + 0x54498]
lea rax, [rsp + 0x50]
mov qword [rax], rcx
mov rcx, qword [r14 + 0x544a0]
mov qword [rax + 8], rcx
mov rcx, qword [r14 + 0x544a8]
mov qword [rax + 0x10], rcx
mov ecx, dword [r14 + 0x544b0]
mov dword [rax + 0x18], ecx
movzx ecx, byte [r14 + 0x544b4]
mov byte [rax + 0x1c], cl
lea rcx, [rsp + 0x50]
call fcn.1800044f0
mov rcx, rbx
call fcn.18002d004
mov eax, r13d
mov rsi, qword [rsp + 0x8a0]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.18002bd00
mov rbx, qword [rsp + 0x8a8]
add rsp, 0x860
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret