Function at 0x1400a17c0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x1402a83b0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r9, qword [rcx]
mov rbx, rdx
mov edx, 8
mov rdi, rcx
lea rcx, [rbp - 0x49]
lea r8d, [rdx - 7]
call fcn.1401c1e14
test rax, rax
jne 0x1400a1808
mov eax, 2
jmp 0x1400a1af3
lea rcx, [rbp - 0x49]
mov byte [rbp - 0x41], 0
call fcn.1401bee6c
mov dword [rbx], eax
cmp eax, 3
jne 0x1400a17fe
mov r9, qword [rdi]
lea edx, [rax + 5]
lea r8d, [rax - 2]
lea rcx, [rbp - 0x49]
call fcn.1401c1e14
test rax, rax
je 0x1400a17fe
lea rcx, [rbp - 0x49]
mov byte [rbp - 0x41], 0
call fcn.1401bee6c
mov dword [rbx + 4], eax
cmp eax, 0x400
jne 0x1400a17fe
mov r9, qword [rdi]
mov edx, 8
lea rcx, [rbp - 0x49]
lea r8d, [rdx - 7]
call fcn.1401c1e14
test rax, rax
je 0x1400a17fe
lea rcx, [rbp - 0x49]
mov byte [rbp - 0x41], 0
call fcn.1401bee6c
mov edx, 8
lea rcx, [rbp - 0x49]
mov dword [rbx + 8], eax
mov r9, qword [rdi]
lea r8d, [rdx - 7]
call fcn.1401c1e14
test rax, rax
je 0x1400a17fe
lea rcx, [rbp - 0x49]
mov byte [rbp - 0x41], 0
call fcn.1401bee6c
cmp dword [rbx + 8], 0x3e80
mov dword [rbx + 0xc], eax
ja 0x1400a17fe
cmp eax, 0x3e80
ja 0x1400a17fe
mov r9, qword [rdi]
mov edx, 8
lea rcx, [rbp - 0x49]
lea r8d, [rdx - 7]
call fcn.1401c1e14
test rax, rax
je 0x1400a17fe
lea rcx, [rbp - 0x49]
mov byte [rbp - 0x41], 0
call fcn.1401bee6c
mov edx, 3
lea rcx, [rbp - 0x49]
mov dword [rbx + 0x10], eax
mov r9, qword [rdi]
lea r8d, [rdx - 2]
call fcn.1401c1e14
test rax, rax
je 0x1400a17fe
lea rcx, [rbp - 0x49]
mov byte [rbp - 0x46], 0
call fcn.1401bee6c
mov dword [rbx + 0x14], eax
dec eax
test eax, 0xfffffffd
jne 0x1400a17fe
mov r9, qword [rdi]
mov edx, 5
lea rcx, [rbp - 0x49]
lea r8d, [rdx - 4]
call fcn.1401c1e14
test rax, rax
je 0x1400a17fe
lea rcx, [rbp - 0x49]
mov qword [rsp + 0xe0], rsi
mov byte [rbp - 0x44], 0
call fcn.1401bee6c
mov dword [rbx + 0x18], eax
test eax, eax
jne 0x1400a1981
cmp dword [rbx + 0x20], 1
jne 0x1400a197b
cmp dword [rbx + 0x14], 1
jne 0x1400a197b
mov eax, dword [rbx + 8]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
jmp 0x1400a197e
mov eax, dword [rbx + 8]
mov dword [rbx + 0x18], eax
mov r9, qword [rdi]
mov esi, 4
lea rcx, [rbp - 0x49]
lea r8d, [rsi - 3]
mov edx, esi
call fcn.1401c1e14
test rax, rax
je 0x1400a1a40
lea rcx, [rbp - 0x49]
mov byte [rbp - 0x45], 0
call fcn.1401bee6c
lea r8d, [rsi - 3]
lea rcx, [rbp - 0x49]
mov dword [rbx + 0x1c], eax
mov r9, qword [rdi]
mov edx, esi
call fcn.1401c1e14
test rax, rax
je 0x1400a1a40
lea rcx, [rbp - 0x49]
mov byte [rbp - 0x45], 0
call fcn.1401bee6c
mov dword [rbx + 0x20], eax
test eax, eax
je 0x1400a19e8
cmp eax, 0x18
jne 0x1400a19ef
mov dword [rbx + 0x14], 3
mov dword [rbx + 0x20], 8
mov eax, dword [rbx + 0x20]
cmp eax, 1
je 0x1400a19fc
cmp eax, 8
jne 0x1400a1a40
mov r9, qword [rdi]
lea rcx, [rbp - 0x49]
mov r8d, 1
mov rdx, rsi
call fcn.1401c1e14
test rax, rax
je 0x1400a1a40
lea rcx, [rbp - 0x49]
mov byte [rbp - 0x45], 0
call fcn.1401bee6c
lea rcx, [rbp - 0x49]
mov r8d, 1
mov dword [rbx + 0x24], eax
mov r9, qword [rdi]
mov rdx, rsi
call fcn.1401c1e14
test rax, rax
jne 0x1400a1a4a
mov eax, 2
jmp 0x1400a1aeb
lea rcx, [rbp - 0x49]
mov byte [rbp - 0x45], 0
call fcn.1401bee6c
mov edx, 0x30
lea rcx, [rbx + 0x2c]
mov dword [rbx + 0x28], eax
mov r9, qword [rdi]
lea r8d, [rdx - 0x2f]
call fcn.1401c1e14
test rax, rax
je 0x1400a1ae4
mov r9, qword [rdi]
mov edx, 0x20
lea rcx, [rbx + 0x5c]
lea r8d, [rdx - 0x1f]
call fcn.1401c1e14
test rax, rax
je 0x1400a1ae4
mov r9, qword [rdi]
mov edx, 0x10
lea rcx, [rbx + 0x7c]
lea r8d, [rdx - 0xf]
call fcn.1401c1e14
test rax, rax
je 0x1400a1ae4
mov r9, qword [rdi]
mov edx, 0x60
lea rcx, [rbx + 0x8c]
lea r8d, [rdx - 0x5f]
call fcn.1401c1e14
test rax, rax
je 0x1400a1ae4
mov r9, qword [rdi]
lea rcx, [rbx + 0xec]
mov edx, 0x300
mov r8d, 1
call fcn.1401c1e14
test rax, rax
jne 0x1400a1ae9
movzx eax, si
jmp 0x1400a1aeb
xor eax, eax
mov rsi, qword [rsp + 0xe0]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1401bd600
add rsp, 0xb0
pop rdi
pop rbx
pop rbp
ret