Function at 0x180066820
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [0x1801060b8]
xor rax, rsp
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0xc0], 0
jg 0x18006685c
xor eax, eax
jmp 0x180066aee
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x18006688d
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.18002fb00
jmp 0x180066aee
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x38]
cmp qword [rax], 0
je 0x1800668cd
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x50]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
jmp 0x1800668d5
mov dword [rsp + 0x20], 0
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jbe 0x1800669d7
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x80], rax
jae 0x18006690f
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
jmp 0x180066919
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rdi, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x50]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x50]
mov dword [rcx], eax
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x38]
add rax, qword [rcx]
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x38]
mov qword [rcx], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x80], 0
je 0x180066ade
mov rcx, qword [rsp + 0xb0]
call fcn.180063ff0
mov qword [rsp + 0x70], 0xfff
cmp qword [rsp + 0x78], 0xfff
jbe 0x180066a8c
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0xb8]
call fcn.1800a7160
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x30], 0xfff
je 0x180066a87
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x180066aee
jmp 0x180066a03
cmp qword [rsp + 0x78], 0
jbe 0x180066ade
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x78]
mov edx, 1
mov rcx, qword [rsp + 0xb8]
call fcn.1800a7160
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.180099a00
add rsp, 0x98
pop rdi
pop rsi
ret