Function at 0x14008d750
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rsi
push r13
push r14
push r15
sub rsp, 0x40
mov rbx, rcx
mov rcx, qword [rcx]
mov r15, r9
mov r14, r8
call fcn.1401c2310
cmp dword [rsp + 0x98], 2
jne 0x14008d784
mov rcx, rbx
call fcn.140066b70
mov rcx, rbx
call fcn.140066b70
mov rcx, rbx
call fcn.140066de0
mov rsi, qword [rsp + 0x90]
mov r13d, 1
cwde
cdq
xor eax, edx
sub eax, edx
mov dword [r15], eax
mov dword [rsi], r13d
movsxd rax, dword [r15]
test eax, eax
jg 0x14008d7c7
xor eax, eax
mov qword [r14], rax
add rsp, 0x40
pop r15
pop r14
pop r13
pop rsi
pop rbx
ret
mov rcx, rax
mov edx, 0x94
call fcn.1401be1f8
mov qword [r14], rax
test rax, rax
jne 0x14008d7ed
movzx eax, r13w
add rsp, 0x40
pop r15
pop r14
pop r13
pop rsi
pop rbx
ret
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x38], rdi
xor edi, edi
mov qword [rsp + 0x30], r12
mov ebp, edi
mov dword [rsp + 0x70], edi
cmp dword [r15], edi
jle 0x14008d9e5
mov r12d, edi
mov rcx, rbx
call fcn.140066b70
mov rcx, qword [r14]
mov dword [r12 + rcx], eax
mov rcx, rbx
call fcn.140066b70
mov rcx, qword [r14]
mov dword [r12 + rcx + 4], eax
mov rcx, rbx
call fcn.140066b70
mov rcx, qword [r14]
mov dword [r12 + rcx + 8], eax
mov rcx, rbx
call fcn.140066b70
mov rcx, qword [r14]
mov dword [r12 + rcx + 0xc], eax
mov rcx, qword [r14]
add rcx, r12
mov eax, dword [rcx + 8]
sub eax, dword [rcx]
test eax, eax
jle 0x14008d86a
mov eax, dword [rcx + 0xc]
sub eax, dword [rcx + 4]
test eax, eax
jle 0x14008d86a
inc dword [rsi]
mov rcx, rbx
call fcn.140066de0
movzx r13d, ax
test r13d, r13d
jle 0x14008d8ca
mov rsi, r12
nop
mov rcx, rbx
call fcn.140066de0
cmp dword [rsp + 0x98], 2
movzx ebp, ax
jne 0x14008d89d
mov rcx, rbx
call fcn.140066b70
mov rcx, rbx
call fcn.140066b70
cmp rdi, 8
jge 0x14008d8ba
mov rcx, qword [r14]
mov word [rcx + rsi + 0x14], bp
mov rcx, qword [r14]
mov dword [rcx + rsi + 0x18], eax
inc rdi
add rsi, 8
cmp rdi, r13
jl 0x14008d880
mov ebp, dword [rsp + 0x70]
mov rax, qword [r14]
cmp r13d, 8
mov r15d, 8
cmovg r13d, r15d
lea edx, [r15 - 4]
lea rcx, [rsp + 0x20]
mov dword [r12 + rax + 0x10], r13d
mov r9, qword [rbx]
mov r13d, 1
mov r8d, r13d
call fcn.1401c1e14
cmp rax, r13
jne 0x14008da04
mov edx, r15d
mov rcx, rbx
call fcn.140066ff0
mov rcx, rbx
call fcn.140066b70
mov rcx, rbx
mov edi, eax
call fcn.140066b70
movsxd rsi, eax
test eax, eax
je 0x14008d932
mov rdx, rsi
mov rcx, rbx
call fcn.140066ff0
mov ecx, 0xfffffffc
sub ecx, esi
add edi, ecx
mov rcx, rbx
call fcn.140066b70
movsxd rsi, eax
mov dword [rsp + 0x70], esi
test eax, eax
je 0x14008d959
mov rdx, rsi
mov rcx, rbx
call fcn.140066ff0
mov ecx, 0xfffffffc
lea rdx, [rsp + 0x70]
sub ecx, esi
add edi, ecx
mov rcx, rbx
call fcn.14008dad0
sub edi, dword [rsp + 0x70]
mov rsi, rax
test rax, rax
je 0x14008d9a7
movsxd rcx, ebp
mov r8d, 0x40
imul rdx, rcx, 0x94
mov rcx, qword [r14]
add rcx, 0x54
add rcx, rdx
mov rdx, rax
call fcn.1401beb90
mov rcx, rsi
call fcn.1401be23c
jmp 0x14008d9b0
mov rax, qword [r14]
mov byte [r12 + rax + 0x54], 0
movsxd rdx, edi
mov rcx, rbx
call fcn.140066ff0
mov rax, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x90]
inc ebp
add r12, 0x94
mov edi, 0
mov dword [rsp + 0x70], ebp
cmp ebp, dword [rax]
jl 0x14008d810
movzx eax, di
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x78]
mov r12, qword [rsp + 0x30]
add rsp, 0x40
pop r15
pop r14
pop r13
pop rsi
pop rbx
ret
movzx eax, r13w
jmp 0x14008d9e8