Function at 0x140008390
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rbp
push r12
mov rbp, rsp
sub rsp, 0x78
mov rax, qword [0x1404b0028]
xor rax, rsp
mov qword [rbp - 0x20], rax
mov qword [r11 + 0x10], rbx
lea r8, [rbp - 0x48]
mov qword [r11 + 0x18], rsi
xor r9d, r9d
mov qword [r11 - 0x18], rdi
mov rsi, rcx
mov rcx, qword [rcx + 0x20]
xor edi, edi
mov edx, edi
mov qword [r11 - 0x28], r15
mov qword [rbp - 0x48], rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, qword [rsi + 0x20]
lea r9, [rbp - 0x48]
lea r8d, [rdi + 0x20]
mov dword [rbp - 0x48], edi
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rsi + 0x20]
lea r8, [rbp - 0x48]
xor r9d, r9d
mov qword [rbp - 0x48], rdi
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov r15d, 1
lea ecx, [rdi + 9]
mov edx, r15d
call fcn.1402deebc
add rax, 8
mov rdx, 0xffffffffffffffff
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x40]
inc rdx
cmp byte [rax + rdx], dil
jne 0x140008430
lea rcx, [rbp - 0x48]
mov qword [rsp + 0x68], r14
call fcn.14001ef30
mov rbx, qword [rbp - 0x48]
lea rdx, [rbp - 0x40]
mov eax, dword [rbx - 8]
lea r12, [rbx - 8]
inc eax
mov rcx, rbx
movsxd r8, eax
call fcn.1402d15b0
lea rdx, str.UnityWeb
mov rcx, rbx
call fcn.1402ec350
test eax, eax
je 0x1400084c3
lea rdx, str.UnityRaw
mov rcx, rbx
call fcn.1402ec350
test eax, eax
je 0x1400084c3
lea rdx, str.UnityArchive
mov rcx, rbx
call fcn.1402ec350
test eax, eax
je 0x1400084c3
mov rcx, rdi
lea rdx, str.UnityFS
nop word [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x14000850c
cmp rcx, 8
jne 0x1400084b0
mov edi, r15d
mov r14d, edi
mov r15, qword [rsp + 0x60]
test rbx, rbx
mov rbx, qword [rsp + 0x98]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0xa0]
je 0x1400084f0
mov rcx, r12
call fcn.1402d83b4
mov eax, r14d
mov r14, qword [rsp + 0x68]
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.140048b40
add rsp, 0x78
pop r12
pop rbp
ret
lea rdx, str.UnityWebData1.0
mov rcx, rbx
call fcn.1402ec350
test eax, eax
jne 0x140008525
lea r15d, [rax + 2]
jmp 0x1400084c3
cmp word [rbp - 0x40], si
jne 0x140008533
mov r15d, 4
jmp 0x1400084c3
mov rcx, qword [rsi + 0x20]
lea r8, [rbp - 0x48]
xor r9d, r9d
mov qword [rbp - 0x48], 0x20
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, qword [rsi + 0x20]
lea r9, [rbp - 0x48]
mov r14d, 6
mov dword [rbp - 0x48], edi
mov r8d, r14d
mov qword [rsp + 0x20], rdi
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rsi + 0x20]
lea r8, [rbp - 0x48]
xor r9d, r9d
mov qword [rbp - 0x48], rdi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [rbp - 0x40]
cmp eax, dword [rsi + 2]
jne 0x1400085a6
movzx eax, word [rbp - 0x3c]
cmp ax, word [rsi + 6]
jne 0x1400085a6
lea r15d, [r14 - 1]
jmp 0x1400084c3
mov rcx, rsi
call fcn.140008610
test eax, eax
jne 0x1400084c6
mov rcx, qword [rsi + 0x20]
lea r9, [rbp - 0x48]
lea r8d, [rax + 4]
mov dword [rbp - 0x48], edi
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rsi + 0x20]
lea r8, [rbp - 0x48]
xor r9d, r9d
mov qword [rbp - 0x48], rdi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [rbp - 0x40]
cmp eax, dword [rsi + 8]
je 0x1400084c9
cmp eax, dword [rsi + 0xc]
je 0x1400084c9
mov r14d, 3
jmp 0x1400084c9