Function at 0x1400151e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 8]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 2
jae 0x1400152c7
cmp dword [rsp + 0x28], 0
je 0x14001521d
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x68]
movzx eax, byte [rax]
mov byte [rcx], al
call fcn.1400292f4
mov dword [rax], 0
mov ecx, dword [rsp + 0x28]
mov eax, 0x4000
sar eax, cl
movsxd r8, eax
mov ecx, dword [rsp + 0x28]
mov rax, qword [rsp + 0x50]
add rcx, qword [rax + 0x68]
mov r9, qword [rsp + 0x50]
mov r9, qword [r9 + 0x60]
mov edx, 1
call fcn.1400288e0
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x14001527f
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x60]
call fcn.1400294bc
test eax, eax
je 0x14001527f
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x58], 0xffffffff
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax + 8]
add ecx, dword [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov dword [rax + 8], ecx
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x68]
mov qword [rcx], rax
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 2
jae 0x1400152c7
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 8]
mov dword [rcx + 0x90], eax
jmp 0x140015496
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
movzx eax, byte [rax]
cmp eax, dword [0x140055188]
jne 0x1400152ee
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
movzx eax, byte [rax + 1]
cmp eax, dword [0x14005518c]
je 0x140015302
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x90], 1
jmp 0x140015496
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax + 8]
sub ecx, 2
mov rax, qword [rsp + 0x50]
mov dword [rax + 8], ecx
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
add rcx, 2
mov rax, qword [rsp + 0x50]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x50]
call fcn.1400154a0
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x50]
call fcn.1400154a0
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x20], 8
jne 0x140015359
mov eax, dword [rsp + 0x24]
and eax, 0xe0
test eax, eax
je 0x14001536a
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x58], 0xfffffffd
jmp 0x140015496
mov dword [rsp + 0x28], 0
jmp 0x14001537f
mov eax, dword [rsp + 0x28]
add eax, 1
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 6
jae 0x140015392
mov rcx, qword [rsp + 0x50]
call fcn.1400154a0
jmp 0x140015374
mov eax, dword [rsp + 0x24]
and eax, 4
test eax, eax
je 0x1400153e8
mov rcx, qword [rsp + 0x50]
call fcn.1400154a0
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x50]
call fcn.1400154a0
mov ecx, eax
shl ecx, 8
mov eax, dword [rsp + 0x28]
add eax, ecx
mov dword [rsp + 0x28], eax
mov ecx, dword [rsp + 0x28]
mov eax, dword [rsp + 0x28]
sub eax, 1
mov dword [rsp + 0x28], eax
test ecx, ecx
je 0x1400153e8
mov rcx, qword [rsp + 0x50]
call fcn.1400154a0
cmp eax, 0xffffffff
je 0x1400153e8
jmp 0x1400153c4
mov eax, dword [rsp + 0x24]
and eax, 8
test eax, eax
je 0x140015411
mov rcx, qword [rsp + 0x50]
call fcn.1400154a0
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
je 0x140015411
cmp dword [rsp + 0x2c], 0xffffffff
je 0x140015411
jmp 0x1400153f3
mov eax, dword [rsp + 0x24]
and eax, 0x10
test eax, eax
je 0x14001543a
mov rcx, qword [rsp + 0x50]
call fcn.1400154a0
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
je 0x14001543a
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14001543a
jmp 0x14001541c
mov eax, dword [rsp + 0x24]
and eax, 2
test eax, eax
je 0x14001546d
mov dword [rsp + 0x28], 0
jmp 0x14001545a
mov eax, dword [rsp + 0x28]
add eax, 1
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 2
jae 0x14001546d
mov rcx, qword [rsp + 0x50]
call fcn.1400154a0
jmp 0x14001544f
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x5c], 0
je 0x140015482
mov dword [rsp + 0x30], 0xfffffffd
jmp 0x14001548a
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x50]
mov eax, dword [rsp + 0x30]
mov dword [rcx + 0x58], eax
add rsp, 0x48
ret