Function at 0x140005910
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, 0xa8
mov rax, qword [0x1400b80e0]
xor rax, rsp
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0xd0], 0
jg 0x14000594c
xor eax, eax
jmp 0x140005bd7
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x68], 0
je 0x14000597d
mov r8, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xc0]
call fcn.140006cd0
jmp 0x140005bd7
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x38]
cmp qword [rax], 0
je 0x1400059c0
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x50]
mov eax, dword [rax]
mov dword [rsp + 0x80], eax
jmp 0x1400059cb
mov dword [rsp + 0x80], 0
movsxd rax, dword [rsp + 0x80]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jbe 0x140005ad4
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x30], rax
jae 0x1400059ff
lea rax, [rsp + 0x30]
mov qword [rsp + 0x88], rax
jmp 0x140005a0c
lea rax, [rsp + 0x20]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rdi, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xc8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x38]
call fcn.140098164
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x50]
mov ecx, dword [rsp + 0x70]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx + 0x50]
mov dword [rcx], eax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x38]
movsxd rcx, dword [rsp + 0x70]
add rcx, qword [rax]
mov rax, rcx
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx + 0x38]
mov qword [rcx], rax
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x80], 0
je 0x140005bc7
mov rcx, qword [rsp + 0xc0]
call fcn.1400086d0
mov qword [rsp + 0x40], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x140005b89
mov rax, qword [rsp + 0xc0]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0xc8]
call fcn.1400633a4
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x48], 0xfff
je 0x140005b84
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
jmp 0x140005bd7
jmp 0x140005b00
cmp qword [rsp + 0x20], 0
jbe 0x140005bc7
mov rax, qword [rsp + 0xc0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0xc8]
call fcn.1400633a4
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14003ee70
add rsp, 0xa8
pop rdi
pop rsi
ret