Function at 0x14001c560
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x78], 0
je 0x14001c5dc
mov rsi, rcx
mov eax, dword [rcx + 0x9c]
test al, 8
jne 0x14001c5e6
xorps xmm0, xmm0
movups xmmword [rsi + 0x28], xmm0
mov qword [rsi + 0x38], 0
lea rcx, [rsi + 0x40]
xor edx, edx
cmp byte [rsi + 0xa2], 0
lea rdi, [rsi + 0x68]
sete dl
cmove rcx, rdi
shl rdx, 4
mov rcx, qword [rcx]
mov rdx, qword [rdx + rsi + 0x60]
add rdx, rcx
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x20], rdx
mov dword [rsi + 0x9c], 8
jmp 0x14001c5ea
mov edi, 0xffffffff
jmp 0x14001c7ee
mov rdx, qword [rsi + 0x18]
mov byte [rsp + 0x57], 0xaa
test rdx, rdx
jne 0x14001c60a
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x57]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x20], rdx
mov rdi, qword [rsi + 0x20]
test al, 8
jne 0x14001c616
xor ebx, ebx
jmp 0x14001c637
mov rcx, rdi
sub rcx, qword [rsi + 0x10]
mov rax, rcx
shr rax, 0x3f
add rax, rcx
sar rax, 1
cmp rax, 4
mov ebx, 4
cmovb rbx, rax
cmp rdx, rdi
je 0x14001c644
movzx edi, byte [rdx]
jmp 0x14001c7d1
mov rcx, qword [rsi + 0x10]
sub rdx, rbx
mov r8, rbx
call fcn.140258c70
cmp byte [rsi + 0xa2], 0
je 0x14001c69d
mov rcx, qword [rsi + 0x10]
add rcx, rbx
mov r8, qword [rsi + 0x20]
mov r9, qword [rsi + 0x78]
sub r8, rcx
mov edx, 1
call fcn.140275dcc
test rax, rax
je 0x14001c7cc
mov rcx, qword [rsi + 0x10]
lea rdx, [rcx + rbx]
add rax, rdx
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x20], rax
movzx edi, byte [rcx + rbx]
jmp 0x14001c7d1
mov rdx, qword [rsi + 0x48]
mov r8, qword [rsi + 0x50]
test rdx, rdx
jne 0x14001c6b6
test r8, r8
jne 0x14001c809
xor r8d, r8d
sub r8, rdx
je 0x14001c6ce
mov rcx, qword [rsi + 0x40]
call fcn.140258c70
mov rdx, qword [rsi + 0x48]
mov rcx, qword [rsi + 0x50]
jmp 0x14001c6d1
mov rcx, rdx
sub rcx, rdx
mov rax, qword [rsi + 0x40]
add rcx, rax
mov qword [rsi + 0x48], rcx
lea rdx, [rsi + 0x58]
cmp rax, rdx
je 0x14001c6ee
mov rdx, qword [rsi + 0x60]
jmp 0x14001c6f3
mov edx, 8
add rax, rdx
mov qword [rsi + 0x50], rax
sub rax, rcx
mov r8, qword [rsi + 0x70]
mov r9, qword [rsi + 0x78]
sub r8, rbx
cmp rax, r8
cmovb r8, rax
mov rax, qword [rsi + 0x88]
mov qword [rsi + 0x90], rax
mov edx, 1
call fcn.140275dcc
test rax, rax
je 0x14001c7cc
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x14001c835
lea r11, [rsi + 0x48]
add rax, qword [rsi + 0x48]
lea rdx, [rsi + 0x88]
mov qword [rsi + 0x50], rax
movabs r8, 0xaaaaaaaaaaaaaaaa
lea r9, [rsp + 0x48]
mov qword [r9], r8
mov r15, qword [rsi + 0x10]
mov r8, qword [rsi + 0x40]
mov r14, qword [rsi + 0x70]
add r14, r15
add r15, rbx
mov rdi, qword [rcx]
mov r10, qword [rdi + 0x18]
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r11
mov r9, rax
mov rax, r10
call qword [case.0x140112150.0]
cmp eax, 3
jne 0x14001c7b1
mov rbx, qword [rsi + 0x40]
mov rax, qword [rsi + 0x50]
mov qword [rsi + 0x10], rbx
jmp 0x14001c7bf
mov rax, qword [rsp + 0x48]
add rbx, qword [rsi + 0x10]
cmp rax, rbx
je 0x14001c7cc
mov qword [rsi + 0x18], rbx
mov qword [rsi + 0x20], rax
movzx edi, byte [rbx]
jmp 0x14001c7d1
mov edi, 0xffffffff
lea rax, [rsp + 0x57]
cmp qword [rsi + 0x10], rax
jne 0x14001c7ee
add rsi, 0x10
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140257200
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rax, str.underflow_moving_from_NULL
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_fstream
lea r9, str.____extbufnext___NULL_____extbufend______extbufnext___
mov r8d, 0x2f2
call fcn.14004f520
call fcn.14001caf4
int3