Function at 0x140154550
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x14029a048]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x78], 0
je 0x140154692
mov rsi, rcx
mov eax, dword [rcx + 0x9c]
test al, 8
jne 0x1401545c7
xorps xmm0, xmm0
movups xmmword [rsi + 0x28], xmm0
mov qword [rsi + 0x38], 0
cmp byte [rsi + 0xa2], 0
je 0x1401547e6
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 0x1401545cb
mov rdx, qword [rsi + 0x18]
mov byte [rsp + 0x57], 0xaa
test rdx, rdx
je 0x140154699
mov rbx, qword [rsi + 0x20]
test al, 8
jne 0x1401545e5
xor edi, edi
jmp 0x140154606
mov rcx, rbx
sub rcx, qword [rsi + 0x10]
mov rax, rcx
shr rax, 0x3f
add rax, rcx
sar rax, 1
cmp rax, 4
mov edi, 4
cmovb rdi, rax
cmp rdx, rbx
jne 0x1401546b4
mov rcx, qword [rsi + 0x10]
sub rdx, rdi
mov r8, rdi
call fcn.140117f80
cmp byte [rsi + 0xa2], 0
je 0x1401546b9
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.140137d10
mov ebx, 0xffffffff
test rax, rax
je 0x140154668
mov rcx, qword [rsi + 0x10]
lea rdx, [rcx + rdi]
add rax, rdx
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x20], rax
movzx ebx, byte [rcx + rdi]
lea rax, [rsp + 0x57]
cmp qword [rsi + 0x10], rax
je 0x1401547cf
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140116250
mov eax, ebx
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ebx, 0xffffffff
jmp 0x140154677
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x57]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x20], rdx
jmp 0x1401545d9
movzx ebx, byte [rdx]
jmp 0x140154668
mov rdx, qword [rsi + 0x48]
mov r8, qword [rsi + 0x50]
test rdx, rdx
je 0x1401547f3
sub r8, rdx
je 0x140154800
mov rcx, qword [rsi + 0x40]
call fcn.140117f80
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 0x140154808
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.140137d10
test rax, rax
je 0x140154820
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x140154856
lea r9, [rsi + 0x48]
add rax, qword [rsi + 0x48]
lea rdx, [rsi + 0x88]
mov qword [rsi + 0x50], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
lea r10, [rsp + 0x48]
mov qword [r10], rbx
mov r15, qword [rsi + 0x10]
mov r8, qword [rsi + 0x40]
mov r14, qword [rsi + 0x70]
add r14, r15
add r15, rdi
mov rbx, qword [rcx]
mov r11, qword [rbx + 0x18]
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r9
mov r9, rax
mov rax, r11
call qword [0x1402ce008]
cmp eax, 3
jne 0x140154812
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 ebx, byte [rdi]
jmp 0x140154668
add rsi, 0x10
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x140154677
lea rcx, [rsi + 0x68]
lea rdx, [rsi + 0x70]
jmp 0x1401545a6
test r8, r8
jne 0x14015482a
xor r8d, r8d
jmp 0x1401546ca
mov rcx, rdx
jmp 0x1401546e4
mov edx, 8
jmp 0x140154703
mov rax, qword [rsp + 0x48]
add rdi, qword [rsi + 0x10]
cmp rax, rdi
jne 0x1401547bf
mov ebx, 0xffffffff
jmp 0x140154668
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.14019e24d
call fcn.14019c783
int3