Function at 0x140027730
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x78], 0
je 0x1400277ac
mov rsi, rcx
mov eax, dword [rcx + 0x9c]
test al, 8
jne 0x1400277b6
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 r8, [rsi + 0x68]
sete dl
cmove rcx, r8
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 0x1400277ba
mov edi, 0xffffffff
jmp 0x1400279b9
mov rdx, qword [rsi + 0x18]
lea rbx, [rsp + 0x57]
mov byte [rbx], 0xaa
test rdx, rdx
jne 0x1400277d8
lea rdx, [rsp + 0x58]
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x20], rdx
mov rcx, qword [rsi + 0x20]
test al, 8
jne 0x1400277e4
xor edi, edi
jmp 0x140027805
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 0x140027812
movzx edi, byte [rdx]
jmp 0x1400279a1
mov rcx, qword [rsi + 0x10]
sub rdx, rdi
mov r8, rdi
call fcn.1401a0610
cmp byte [rsi + 0xa2], 0
je 0x14002786b
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.1401be55c
test rax, rax
je 0x14002799c
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 0x1400279a1
mov rdx, qword [rsi + 0x48]
mov rax, qword [rsi + 0x50]
mov r8, rax
mov rcx, rax
sub r8, rdx
je 0x1400278a1
test rdx, rdx
je 0x1400279d4
mov rcx, qword [rsi + 0x40]
test rcx, rcx
je 0x140027a00
call fcn.1401a0610
mov rax, qword [rsi + 0x48]
mov rcx, qword [rsi + 0x50]
sub rcx, rax
mov rax, qword [rsi + 0x40]
add rcx, rax
mov qword [rsi + 0x48], rcx
lea rdx, [rsi + 0x58]
cmp rax, rdx
je 0x1400278be
mov rdx, qword [rsi + 0x60]
jmp 0x1400278c3
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, rdi
cmp rax, r8
cmovb r8, rax
mov rax, qword [rsi + 0x88]
mov qword [rsi + 0x90], rax
mov edx, 1
call fcn.1401be55c
test rax, rax
je 0x14002799c
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x140027a2c
lea r9, [rsi + 0x48]
add rax, qword [rsi + 0x48]
lea rdx, [rsi + 0x88]
mov qword [rsi + 0x50], rax
movabs r8, 0xaaaaaaaaaaaaaaaa
lea r11, [rsp + 0x48]
mov qword [r11], r8
mov r14, qword [rsi + 0x10]
mov r8, qword [rsi + 0x40]
mov r15, qword [rsi + 0x70]
add r15, r14
add r14, rdi
mov r10, qword [rcx]
mov r10, qword [r10 + 0x18]
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r9
mov r9, rax
mov rax, r10
call qword [0x140251008]
cmp eax, 3
jne 0x140027981
mov rdi, qword [rsi + 0x40]
mov rax, qword [rsi + 0x50]
mov qword [rsi + 0x10], rdi
jmp 0x14002798f
mov rax, qword [rsp + 0x48]
add rdi, qword [rsi + 0x10]
cmp rax, rdi
je 0x14002799c
mov qword [rsi + 0x18], rdi
mov qword [rsi + 0x20], rax
movzx edi, byte [rdi]
jmp 0x1400279a1
mov edi, 0xffffffff
cmp qword [rsi + 0x10], rbx
jne 0x1400279b9
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.14019eb90
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rax, str.underflow_moving_from_nullptr
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____nullptr
mov r8d, 0x2f4
call fcn.14003a2a8
lea rax, str.underflow_moving_into_nullptr
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.__extbuf____nullptr
mov r8d, 0x2f5
call fcn.14003a2a8
call fcn.140027cf4
int3