Function at 0x1400bb560
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [0x1402a83b0]
xor rax, rsp
mov qword [rbp - 8], rax
mov r9, qword [rcx]
mov rbx, rcx
mov r14, rdx
mov r12d, 4
lea rcx, [rbp - 0x10]
mov r8d, 1
mov edx, r12d
xor r15b, r15b
call fcn.1401c1e14
test rax, rax
jne 0x1400bb5b1
mov eax, 2
jmp 0x1400bb878
cmp byte [rbp - 0x10], 0x52
jne 0x1400bb5a7
cmp byte [rbp - 0xf], 0x49
jne 0x1400bb5a7
cmp byte [rbp - 0xe], 0x46
jne 0x1400bb5a7
cmp byte [rbp - 0xd], 0x46
jne 0x1400bb5a7
mov rcx, rbx
call fcn.140066b20
mov r9, qword [rbx]
lea rcx, [rbp - 0x10]
mov r8d, 1
mov rdx, r12
call fcn.1401c1e14
test rax, rax
je 0x1400bb5a7
cmp byte [rbp - 0x10], 0x43
jne 0x1400bb5a7
movzx eax, byte [rbp - 0xf]
cmp al, 0x4d
jne 0x1400bb609
cmp byte [rbp - 0xe], 0x58
je 0x1400bb613
mov eax, 2
jmp 0x1400bb878
cmp al, 0x44
jne 0x1400bb5a7
cmp byte [rbp - 0xe], 0x52
jne 0x1400bb5a7
xor eax, eax
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov qword [r14 + 8], rax
mov rcx, qword [rbx]
call fcn.1401c1a94
test eax, eax
jne 0x1400bb774
nop dword [rax]
nop word [rax + rax]
mov r9, qword [rbx]
lea rcx, [rbp - 0x10]
mov r8d, 1
mov rdx, r12
call fcn.1401c1e14
test rax, rax
je 0x1400bb78f
mov rcx, rbx
call fcn.140066b20
cmp byte [rbp - 0x10], 0x44
mov edi, eax
jne 0x1400bb684
cmp byte [rbp - 0xf], 0x49
jne 0x1400bb684
cmp byte [rbp - 0xe], 0x53
jne 0x1400bb684
cmp byte [rbp - 0xd], 0x50
je 0x1400bb774
mov r9, qword [rbx]
mov edx, 8
lea rcx, [rbp - 0x10]
lea r8d, [rdx - 7]
call fcn.1401c1e14
test rax, rax
je 0x1400bb78f
cmp byte [rbp - 0x10], 0x70
jne 0x1400bb74a
cmp byte [rbp - 0xf], 0x61
jne 0x1400bb74a
cmp byte [rbp - 0xe], 0x67
jne 0x1400bb74a
cmp byte [rbp - 0xd], 0x65
jne 0x1400bb74a
cmp byte [rbp - 0xc], 0x69
jne 0x1400bb74a
cmp byte [rbp - 0xb], 0x64
jne 0x1400bb74a
cmp byte [rbp - 0xa], 0x20
jne 0x1400bb74a
cmp byte [rbp - 9], 0x20
jne 0x1400bb74a
mov rcx, qword [rbx]
call fcn.1401c2310
mov rcx, rbx
mov esi, eax
call fcn.140066b20
mov rcx, rbx
movsxd rdx, eax
call fcn.140066ff0
mov r9, qword [rbx]
lea rcx, [rbp - 0x10]
mov r8d, 1
mov rdx, r12
call fcn.1401c1e14
test rax, rax
je 0x1400bb78f
mov rcx, rbx
call fcn.140066b20
cmp byte [rbp - 0x10], 0x69
mov edi, eax
jne 0x1400bb73b
cmp byte [rbp - 0xf], 0x6d
jne 0x1400bb73b
cmp byte [rbp - 0xe], 0x68
jne 0x1400bb73b
cmp byte [rbp - 0xd], 0x64
je 0x1400bb78a
mov rcx, qword [rbx]
call fcn.1401c2310
sub eax, esi
movsxd rdx, eax
jmp 0x1400bb751
mov rdx, 0xfffffffffffffff8
mov rcx, rbx
call fcn.140066ff0
movsxd rdx, edi
mov rcx, rbx
call fcn.140066ff0
mov rcx, qword [rbx]
call fcn.1401c1a94
test eax, eax
je 0x1400bb640
mov rcx, qword [rbx]
call fcn.1401c1a94
test eax, eax
je 0x1400bb798
mov eax, 2
jmp 0x1400bb86e
mov r15b, 1
jmp 0x1400bb774
movzx eax, r12w
jmp 0x1400bb86e
mov rcx, rbx
test r15b, r15b
je 0x1400bb7ce
call fcn.140066da0
mov rcx, rbx
call fcn.140066b20
mov rcx, rbx
call fcn.140066da0
mov rcx, rbx
call fcn.140066da0
mov rcx, rbx
call fcn.140066b20
mov dword [r14], 8
jmp 0x1400bb7d6
call fcn.140066b20
mov dword [r14], eax
mov rcx, rbx
call fcn.140066b20
mov rcx, rbx
mov dword [r14 + 4], eax
call fcn.140066b20
mov rcx, rbx
mov dword [r14 + 8], eax
call fcn.140066b20
mov rcx, rbx
mov dword [r14 + 0xc], eax
call fcn.140066da0
mov rcx, rbx
mov word [r14 + 0x10], ax
call fcn.140066da0
mov rcx, rbx
mov word [r14 + 0x12], ax
call fcn.140066b20
mov rcx, rbx
mov dword [r14 + 0x14], eax
call fcn.140066b20
mov rcx, rbx
mov dword [r14 + 0x18], eax
call fcn.140066b20
mov rcx, rbx
mov dword [r14 + 0x1c], eax
call fcn.140066b20
mov rcx, rbx
mov dword [r14 + 0x20], eax
call fcn.140066b20
mov rcx, rbx
mov dword [r14 + 0x24], eax
call fcn.140066b20
mov dword [r14 + 0x28], eax
mov rcx, qword [rbx]
call fcn.1401c1a94
neg eax
sbb ecx, ecx
and ecx, r12d
movzx eax, cx
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401bd600
add rsp, 0x30
pop r15
pop r14
pop r12
pop rbx
pop rbp
ret