Function at 0x14027d820
Capabilities:
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rcx + 0x78], 0
je 0x14027d891
mov rsi, rcx
mov eax, dword [rcx + 0x9c]
test al, 8
jne 0x14027d898
xorps xmm0, xmm0
movups xmmword [rsi + 0x28], xmm0
mov qword [rsi + 0x38], 0
cmp byte [rsi + 0xa2], 0
je 0x14027d980
lea rcx, [rsi + 0x40]
lea rdx, [rsi + 0x60]
mov rcx, qword [rcx]
mov rdx, qword [rdx]
add rdx, rcx
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x20], rdx
mov dword [rsi + 0x9c], 8
jmp 0x14027d89c
mov edi, 0xffffffff
jmp 0x14027d90e
mov rdx, qword [rsi + 0x18]
mov byte [rsp + 0x4f], 0xaa
test rdx, rdx
jne 0x14027d8bc
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x4f]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x20], rdx
mov rcx, qword [rsi + 0x20]
test al, 8
jne 0x14027d8c8
xor edi, edi
jmp 0x14027d8e9
mov rax, rcx
sub rax, qword [rsi + 0x10]
mov r8, rax
shr r8, 0x3f
add r8, rax
sar r8, 1
cmp r8, 4
mov edi, 4
cmovb rdi, r8
cmp rdx, rcx
je 0x14027d927
movzx edi, byte [rdx]
lea rax, [rsp + 0x4f]
cmp qword [rsi + 0x10], rax
jne 0x14027d90e
add rsi, 0x10
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140242430
mov eax, edi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsi + 0x10]
sub rdx, rdi
mov r8, rdi
call fcn.140243eb0
cmp byte [rsi + 0xa2], 0
je 0x14027d98d
mov rcx, qword [rsi + 0x10]
add rcx, rdi
mov r8, qword [rsi + 0x20]
mov r9, qword [rsi + 0x78]
sub r8, rcx
mov edx, 1
call fcn.140262544
test rax, rax
je 0x14027dad0
mov rcx, qword [rsi + 0x10]
lea rdx, [rcx + rdi]
add rax, rdx
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x20], rax
movzx edi, byte [rcx + rdi]
jmp 0x14027d8f1
lea rcx, [rsi + 0x68]
lea rdx, [rsi + 0x70]
jmp 0x14027d870
mov rdx, qword [rsi + 0x48]
mov r8, qword [rsi + 0x50]
test rdx, rdx
je 0x14027daa3
sub r8, rdx
je 0x14027dab0
mov rcx, qword [rsi + 0x40]
call fcn.140243eb0
mov rdx, qword [rsi + 0x48]
mov rcx, qword [rsi + 0x50]
sub rcx, rdx
mov rax, qword [rsi + 0x40]
add rcx, rax
mov qword [rsi + 0x48], rcx
lea rdx, [rsi + 0x58]
cmp rax, rdx
je 0x14027dab8
mov rdx, qword [rsi + 0x60]
add rax, rdx
mov qword [rsi + 0x50], rax
sub rax, rcx
mov r8, qword [rsi + 0x70]
mov r9, qword [rsi + 0x78]
sub r8, rdi
cmp rax, r8
cmovb r8, rax
mov rax, qword [rsi + 0x88]
mov qword [rsi + 0x90], rax
mov edx, 1
call fcn.140262544
test rax, rax
je 0x14027dad0
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x14027db06
lea r9, [rsi + 0x48]
add rax, qword [rsi + 0x48]
lea rdx, [rsi + 0x88]
mov qword [rsi + 0x50], rax
movabs r8, 0xaaaaaaaaaaaaaaaa
lea r11, [rsp + 0x40]
mov qword [r11], r8
mov rbx, qword [rsi + 0x10]
mov r8, qword [rsi + 0x40]
mov r14, qword [rsi + 0x70]
add r14, rbx
add rbx, rdi
mov r10, qword [rcx]
mov r10, qword [r10 + 0x18]
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r9
mov r9, rax
mov rax, r10
call qword [case.0x1402bbc90.0]
cmp eax, 3
jne 0x14027dac2
mov rdi, qword [rsi + 0x40]
mov rax, qword [rsi + 0x50]
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], rdi
mov qword [rsi + 0x20], rax
movzx edi, byte [rdi]
jmp 0x14027d8f1
test r8, r8
jne 0x14027dada
xor r8d, r8d
jmp 0x14027d99e
mov rcx, rdx
jmp 0x14027d9b8
mov edx, 8
jmp 0x14027d9d7
mov rax, qword [rsp + 0x40]
add rdi, qword [rsi + 0x10]
cmp rax, rdi
jne 0x14027da93
mov edi, 0xffffffff
jmp 0x14027d8f1
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.140280b90
call fcn.14027ddd0
int3