Function at 0x1800646f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rax, qword [rcx + 0x258]
movsxd rdi, r8d
mov r12, rdx
mov edx, dword [rcx + 0xda0c]
lea r13, [rdi + rdi*2]
mov rbx, rcx
mov esi, dword [rax + r13*8 + 0x10]
test edx, edx
jne 0x1800647a3
mov rax, qword [rax + r13*8 + 8]
mov rcx, qword [rcx + 0x208]
lea r8, [rsp + 0x54]
mov edx, eax
xor r9d, r9d
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x18006475a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180064956
mov rcx, qword [rbx + 0x208]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov rdx, r12
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x60], esi
jne 0x180064956
cmp byte [rbx + 0x220], 0
je 0x18006479c
mov r8d, esi
mov rdx, r12
mov rcx, rbx
call fcn.180064590
xor eax, eax
jmp 0x180064959
movsxd rax, dword [rcx + 0xda08]
imul rax, rax, 0x228
cmp edi, dword [rax + rcx + 0x470]
jl 0x1800647c3
cmp edi, dword [rax + rcx + 0x474]
jle 0x180064803
xor ecx, ecx
test edx, edx
jle 0x1800647e5
lea rax, [rbx + 0x474]
cmp edi, dword [rax - 4]
jl 0x1800647d9
cmp edi, dword [rax]
jle 0x1800647e5
inc ecx
add rax, 0x228
cmp ecx, edx
jl 0x1800647d0
cmp ecx, edx
jge 0x180064956
mov dword [rbx + 0xda08], ecx
mov rcx, rbx
call fcn.180064660
test eax, eax
jne 0x180064956
mov rdx, qword [rbx + 0x258]
movsxd r8, dword [rbx + 0xda08]
xor r9d, r9d
imul r8, r8, 0x228
movsxd rax, dword [r8 + rbx + 0x470]
lea rcx, [rax + rax*2]
mov rax, qword [rdx + r13*8 + 8]
sub rax, qword [rdx + rcx*8 + 8]
movsxd rcx, dword [r8 + rbx + 0x47c]
lea r8, [rsp + 0x54]
add rax, rcx
mov rcx, qword [rbx + 0x208]
mov edx, eax
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x180064868
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180064956
movsxd rax, dword [rbx + 0xda08]
mov rcx, qword [rbx + 0x208]
mov qword [rsp + 0x20], 0
imul rax, rax, 0x228
lea r9, [rsp + 0x60]
mov rdx, r12
cmp edi, dword [rax + rbx + 0x474]
jne 0x180064772
mov edi, dword [rax + rbx + 0x480]
mov r13d, esi
sub r13d, edi
mov r8d, r13d
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x60], r13d
jne 0x180064956
test edi, edi
je 0x180064785
inc dword [rbx + 0xda08]
mov eax, dword [rbx + 0xda08]
cmp eax, dword [rbx + 0xda0c]
jge 0x180064956
mov rcx, rbx
call fcn.180064660
test eax, eax
jne 0x180064956
movsxd rax, dword [rbx + 0xda08]
lea r8, [rsp + 0x54]
xor r9d, r9d
imul rax, rax, 0x228
mov ecx, dword [rax + rbx + 0x47c]
sub ecx, edi
mov eax, ecx
mov edx, ecx
mov rcx, qword [rbx + 0x208]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x180064928
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180064956
mov rcx, qword [rbx + 0x208]
mov edx, r13d
lea r9, [rsp + 0x60]
add rdx, r12
mov r8d, edi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x60], edi
je 0x180064785
or eax, 0xffffffff
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret