Function at 0x1400aa410
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push r12
push r13
push r14
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x1402a83b0]
xor rax, rsp
mov qword [rbp - 0x18], rax
mov r9, qword [rcx]
mov rbx, rcx
mov r14, rdx
mov r13d, 4
lea rcx, [rbp - 0x20]
mov r8d, 1
mov edx, r13d
xor r12b, r12b
call fcn.1401c1e14
test rax, rax
jne 0x1400aa461
mov eax, 2
jmp 0x1400aa724
cmp byte [rbp - 0x20], 0x52
jne 0x1400aa457
cmp byte [rbp - 0x1f], 0x49
jne 0x1400aa457
cmp byte [rbp - 0x1e], 0x46
jne 0x1400aa457
cmp byte [rbp - 0x1d], 0x46
jne 0x1400aa457
mov rcx, rbx
call fcn.140066b20
mov r9, qword [rbx]
lea rcx, [rbp - 0x20]
mov r8d, 1
mov rdx, r13
call fcn.1401c1e14
test rax, rax
je 0x1400aa457
cmp byte [rbp - 0x20], 0x43
jne 0x1400aa457
cmp byte [rbp - 0x1f], 0x44
jne 0x1400aa457
cmp byte [rbp - 0x1e], 0x52
jne 0x1400aa457
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r15
xor r15d, r15d
mov qword [r14 + 8], r15
mov rcx, qword [rbx]
call fcn.1401c1a94
test eax, eax
jne 0x1400aa618
nop word [rax + rax]
mov r9, qword [rbx]
lea rcx, [rbp - 0x20]
mov r8d, 1
mov rdx, r13
call fcn.1401c1e14
test rax, rax
je 0x1400aa633
mov rcx, rbx
call fcn.140066b20
cmp byte [rbp - 0x20], 0x44
mov edi, eax
jne 0x1400aa524
cmp byte [rbp - 0x1f], 0x49
jne 0x1400aa524
cmp byte [rbp - 0x1e], 0x53
jne 0x1400aa524
cmp byte [rbp - 0x1d], 0x50
je 0x1400aa618
mov r9, qword [rbx]
mov edx, 8
lea rcx, [rbp - 0x20]
lea r8d, [rdx - 7]
call fcn.1401c1e14
test rax, rax
je 0x1400aa633
cmp byte [rbp - 0x20], 0x70
jne 0x1400aa5ea
cmp byte [rbp - 0x1f], 0x61
jne 0x1400aa5ea
cmp byte [rbp - 0x1e], 0x67
jne 0x1400aa5ea
cmp byte [rbp - 0x1d], 0x65
jne 0x1400aa5ea
cmp byte [rbp - 0x1c], 0x69
jne 0x1400aa5ea
cmp byte [rbp - 0x1b], 0x64
jne 0x1400aa5ea
cmp byte [rbp - 0x1a], 0x20
jne 0x1400aa5ea
cmp byte [rbp - 0x19], 0x20
jne 0x1400aa5ea
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 - 0x20]
mov r8d, 1
mov rdx, r13
call fcn.1401c1e14
test rax, rax
je 0x1400aa633
mov rcx, rbx
call fcn.140066b20
cmp byte [rbp - 0x20], 0x69
mov edi, eax
jne 0x1400aa5db
cmp byte [rbp - 0x1f], 0x6d
jne 0x1400aa5db
cmp byte [rbp - 0x1e], 0x68
jne 0x1400aa5db
cmp byte [rbp - 0x1d], 0x64
je 0x1400aa62e
mov rcx, qword [rbx]
call fcn.1401c2310
sub eax, esi
movsxd rdx, eax
jmp 0x1400aa5f1
mov rdx, 0xfffffffffffffff8
mov rcx, rbx
call fcn.140066ff0
movsxd rdx, edi
mov rcx, rbx
call fcn.140066ff0
test eax, eax
jne 0x1400aa618
mov rcx, qword [rbx]
call fcn.1401c1a94
test eax, eax
je 0x1400aa4e0
mov rcx, qword [rbx]
call fcn.1401c1a94
test eax, eax
je 0x1400aa63c
mov eax, 2
jmp 0x1400aa712
mov r12b, 1
jmp 0x1400aa618
movzx eax, r13w
jmp 0x1400aa712
mov rcx, rbx
test r12b, r12b
je 0x1400aa672
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 0x1400aa67a
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
test eax, eax
setne r15b
movzx eax, r15w
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x80]
mov r15, qword [rsp + 0x30]
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.1401bd600
add rsp, 0x40
pop r14
pop r13
pop r12
pop rbx
pop rbp
ret