Function at 0x140017d90
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rbp
push r12
lea rbp, [r11 - 0xf8]
sub rsp, 0x1e8
mov rax, qword [0x1400b1008]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov qword [r11 + 0x18], rsi
lea rdx, [rcx + 1]
mov qword [r11 - 0x18], r13
lea r8, [0x1400a62d0]
mov rsi, rcx
xor r13d, r13d
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], r13
xor r12b, r12b
call fcn.14006aa10
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400181dd
mov qword [rsp + 0x208], rbx
lea r8d, [r13 + 2]
mov qword [rsp + 0x218], rdi
xor edx, edx
mov qword [rsp + 0x1d8], r14
mov qword [rsp + 0x1d0], r15
call fcn.14006bdb8
mov rcx, qword [rsp + 0x30]
call fcn.14006b114
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
xor edx, edx
movsxd rbx, eax
call fcn.14006bdb8
mov rcx, qword [rsi + 0x130]
test rcx, rcx
jne 0x140017e5b
mov rcx, rbx
call fcn.14006bdc0
mov qword [rsi + 0x130], rax
test rax, rax
je 0x1400181b8
jmp 0x140017e73
mov rdx, rbx
call fcn.14006a1d0
test rax, rax
je 0x1400181b8
mov qword [rsi + 0x130], rax
mov r9, qword [rsp + 0x30]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.14006b3ac
cmp rax, rbx
jne 0x1400181b8
xor edx, edx
movaps xmmword [rsp + 0x1c0], xmm6
mov r8d, 0x170
lea rcx, [rsp + 0x40]
call fcn.140068930
mov rax, qword [rsi + 0x130]
mov qword [rbp - 0x68], rax
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x70], r13d
mov qword [rbp - 0x48], 0xffffffffffffffff
mov qword [rbp - 0x40], 0xffffffffffffffff
mov qword [rbp - 0x60], rbx
mov qword [rbp + 0x98], r13
mov qword [rbp + 0xa0], r13
mov qword [rbp + 0xa8], r13
cmp dword [rbp - 0x80], r13d
jne 0x140017f8a
cmp dword [rbp - 0x38], 1
je 0x140017f33
lea rcx, [rsp + 0x40]
call fcn.14000f100
test al, al
jne 0x140017f33
mov rax, qword [rsp + 0x48]
neg rax
sbb edx, edx
add edx, 3
cmp dword [rbp - 0x80], r13d
jne 0x140017f8a
mov rax, qword [rsp + 0x40]
mov dword [rbp - 0x80], edx
test rax, rax
je 0x140017f62
lea rcx, [rsp + 0x40]
call rax
jmp 0x140017f5d
lea rcx, [rsp + 0x40]
call fcn.14000f000
test al, al
jne 0x140017f56
cmp dword [rbp - 0x80], r13d
jne 0x140017f8a
mov rax, qword [rsp + 0x48]
neg rax
sbb edx, edx
add edx, 3
jmp 0x140017f1d
mov dword [rbp - 0x38], 2
mov rax, qword [rsp + 0x40]
cmp dword [rbp - 0x80], r13d
jne 0x140017f8a
cmp dword [rbp - 0x38], 2
je 0x140017ff6
mov dword [rbp - 0x80], 8
test rax, rax
je 0x140017f8a
mov edx, 8
lea rcx, [rsp + 0x40]
call rax
lea rax, [rsp + 0x60]
lea rbx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbx
movaps xmm6, xmmword [rsp + 0x20]
mov edx, 1
movdqa xmmword [rsp + 0x20], xmm6
lea rcx, [rsp + 0x20]
call fcn.14000f2f0
test rax, rax
jne 0x140017fe1
cmp dword [rbx + 0x40], r13d
jne 0x140017fdc
mov rax, qword [rbx]
mov dword [rbx + 0x40], 9
test rax, rax
je 0x140017fdc
mov edx, 9
mov rcx, rbx
call rax
lea rax, [rsp + 0x60]
cmp dword [rbx + 0x40], r13d
jne 0x140018036
cmp dword [rax], 8
jne 0x14001801d
mov r15, qword [rbx + 0x58]
add r15, qword [rax + 8]
jmp 0x140018039
mov rax, qword [rbp + 0x90]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
movaps xmm6, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm6
mov rbx, qword [rsp + 0x28]
jmp 0x140017fa3
mov dword [rbx + 0x40], 5
mov rax, qword [rbx]
test rax, rax
je 0x140018036
mov edx, 5
mov rcx, rbx
call rax
mov r15, r13
mov edx, 1
movdqa xmmword [rsp + 0x20], xmm6
lea rcx, [rsp + 0x20]
call fcn.14000f2f0
test rax, rax
jne 0x140018076
cmp dword [rbx + 0x40], r13d
jne 0x140018072
mov rax, qword [rbx]
mov dword [rbx + 0x40], 9
test rax, rax
je 0x140018072
mov edx, 9
mov rcx, rbx
call rax
lea rax, [rbx + 0x20]
cmp dword [rbx + 0x40], r13d
jne 0x1400180a0
cmp dword [rax], 8
jne 0x140018087
mov r14d, dword [rax + 4]
jmp 0x1400180a3
mov dword [rbx + 0x40], 5
mov rax, qword [rbx]
test rax, rax
je 0x1400180a0
mov edx, 5
mov rcx, rbx
call rax
mov r14, r13
mov edx, 2
movdqa xmmword [rsp + 0x20], xmm6
lea rcx, [rsp + 0x20]
call fcn.14000f2f0
movaps xmm6, xmmword [rsp + 0x1c0]
test rax, rax
jne 0x1400180e8
cmp dword [rbx + 0x40], r13d
jne 0x1400180e4
mov rax, qword [rbx]
mov dword [rbx + 0x40], 9
test rax, rax
je 0x1400180e4
mov edx, 9
mov rcx, rbx
call rax
lea rax, [rbx + 0x20]
cmp dword [rbx + 0x40], r13d
jne 0x140018131
mov ecx, dword [rax]
cmp ecx, 4
jne 0x140018105
mov rdi, qword [rax + 8]
mov eax, 0xffffffff
cmp rdi, rax
ja 0x140018118
jmp 0x140018134
cmp ecx, 3
jne 0x140018118
mov rdi, qword [rax + 8]
mov eax, 0xffffffff
cmp rdi, rax
jbe 0x140018134
mov dword [rbx + 0x40], 5
mov rax, qword [rbx]
test rax, rax
je 0x140018131
mov edx, 5
mov rcx, rbx
call rax
mov edi, r13d
cmp byte [rbp + 8], r12b
je 0x14001814b
mov rcx, qword [rbp - 8]
call fcn.14006ac0c
mov qword [rbp - 8], r13
mov byte [rbp + 8], r12b
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x140018167
mov rbx, qword [rcx]
call fcn.14006ac0c
mov rcx, rbx
test rbx, rbx
jne 0x140018157
mov rcx, qword [rbp - 0x78]
mov qword [rbp + 0xa8], r13
test rcx, rcx
je 0x14001817c
call fcn.14006ac0c
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x14001818d
lea rcx, [rsp + 0x40]
call rax
mov qword [rsp + 0x50], r13
cmp dword [rbp - 0x80], r13d
jne 0x1400181b8
mov r8, r14
mov rdx, r15
call fcn.14001a120
cmp edi, eax
jne 0x1400181b8
mov qword [rsi + 0x138], r15
mov r12b, 1
mov qword [rsi + 0x140], r14
mov rcx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x1d8]
mov rdi, qword [rsp + 0x218]
mov rbx, qword [rsp + 0x208]
mov r15, qword [rsp + 0x1d0]
mov rdx, qword [rsi + 0x130]
test rdx, rdx
je 0x140018209
test r12b, r12b
jne 0x140018209
mov rcx, rdx
call fcn.14006ac0c
mov rcx, qword [rsp + 0x30]
mov qword [rsi + 0x130], r13
mov qword [rsi + 0x138], r13
mov r13, qword [rsp + 0x1e0]
mov rsi, qword [rsp + 0x210]
test rcx, rcx
je 0x140018223
call fcn.140069e78
movzx eax, r12b
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14001a6d0
add rsp, 0x1e8
pop r12
pop rbp
ret