Function at 0x140293130
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x78], 0
je 0x1402931a3
mov rsi, rcx
mov eax, dword [rcx + 0x9c]
test al, 8
jne 0x1402931aa
xorps xmm0, xmm0
movups xmmword [rsi + 0x28], xmm0
mov qword [rsi + 0x38], 0
cmp byte [rsi + 0xa2], 0
je 0x14029328d
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 0x1402931ae
mov edi, 0xffffffff
jmp 0x140293219
mov rdx, qword [rsi + 0x18]
lea rbx, [rsp + 0x57]
mov byte [rbx], 0xaa
test rdx, rdx
jne 0x1402931cc
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 0x1402931d8
xor edi, edi
jmp 0x1402931f9
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 0x140293234
movzx edi, byte [rdx]
cmp qword [rsi + 0x10], rbx
jne 0x140293219
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.140253b80
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rsi + 0x10]
sub rdx, rdi
mov r8, rdi
call fcn.140255620
cmp byte [rsi + 0xa2], 0
je 0x14029329a
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.140274dc0
test rax, rax
je 0x1402933d3
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 0x140293201
lea rcx, [rsi + 0x68]
lea rdx, [rsi + 0x70]
jmp 0x140293182
mov rdx, qword [rsi + 0x48]
mov rax, qword [rsi + 0x50]
mov r8, rax
mov rcx, rax
sub r8, rdx
je 0x1402932d0
test rdx, rdx
je 0x1402933dd
mov rcx, qword [rsi + 0x40]
test rcx, rcx
je 0x140293409
call fcn.140255620
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 0x1402933bb
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.140274dc0
test rax, rax
je 0x1402933d3
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x140293435
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 [case.0x1402ceef0.0]
cmp eax, 3
jne 0x1402933c5
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 0x140293201
mov edx, 8
jmp 0x1402932ef
mov rax, qword [rsp + 0x48]
add rdi, qword [rsi + 0x10]
cmp rax, rdi
jne 0x1402933ab
mov edi, 0xffffffff
jmp 0x140293201
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.1402984b0
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.1402984b0
call fcn.140293700
int3