Function at 0x14004ac00
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x78], 0
je 0x14004aca1
mov rsi, rcx
mov ecx, dword [rcx + 0x9c]
test cl, 8
jne 0x14004acab
xorps xmm0, xmm0
movups xmmword [rsi + 0x28], xmm0
mov qword [rsi + 0x38], 0
movzx eax, byte [rsi + 0xa2]
mov edx, eax
xor edx, 1
shl edx, 4
lea r8, [rsi + 0x68]
lea r9, [rsi + 0x40]
test eax, eax
cmovne r8, r9
mov r8, qword [r8]
mov rax, qword [rsi + rdx + 0x60]
add rax, r8
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x20], rax
mov dword [rsi + 0x9c], 8
lea rbx, [rsp + 0x47]
test rax, rax
je 0x14004acb9
mov rdx, qword [rsi + 0x20]
test cl, 8
jne 0x14004acd3
xor edi, edi
cmp rax, rdx
je 0x14004acf9
movzx eax, byte [rax]
cmp qword [rsi + 0x10], rbx
jne 0x14004ae8f
jmp 0x14004ae7d
mov eax, 0xffffffff
jmp 0x14004ae8f
mov rax, qword [rsi + 0x18]
lea rbx, [rsp + 0x47]
test rax, rax
jne 0x14004ac7f
lea rax, [rsp + 0x48]
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x20], rax
mov rdx, qword [rsi + 0x20]
test cl, 8
je 0x14004ac88
mov rcx, rdx
sub rcx, qword [rsi + 0x10]
mov r8, rcx
shr r8, 0x3f
add r8, rcx
sar r8, 1
cmp r8, 4
mov edi, 4
cmovb rdi, r8
cmp rax, rdx
jne 0x14004ac8f
mov rcx, qword [rsi + 0x10]
sub rdx, rdi
mov r8, rdi
call sym.memmove
cmp byte [rsi + 0xa2], 1
jne 0x14004ad5c
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 sym.fread
test rax, rax
je 0x14004ae72
mov rcx, qword [rsi + 0x10]
lea rdx, [rcx + rdi]
add rax, rdx
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x20], rax
movzx eax, byte [rcx + rdi]
cmp qword [rsi + 0x10], rbx
jne 0x14004ae8f
jmp 0x14004ae7d
mov rdx, qword [rsi + 0x48]
mov rcx, qword [rsi + 0x50]
mov r8, rcx
mov rax, rcx
sub r8, rdx
je 0x14004ad80
mov rcx, qword [rsi + 0x40]
call sym.memmove
mov rcx, qword [rsi + 0x48]
mov rax, qword [rsi + 0x50]
sub rax, rcx
mov rdx, qword [rsi + 0x40]
mov r9, qword [rsi + 0x70]
lea rcx, [rdx + rax]
mov qword [rsi + 0x48], rcx
lea r10, [rsi + 0x58]
mov r8d, 8
cmp rdx, r10
je 0x14004ada6
mov r8, qword [rsi + 0x60]
add rdx, r8
sub r9, rdi
sub r8, rax
cmp r8, r9
cmovae r8, r9
mov qword [rsi + 0x50], rdx
mov rax, qword [rsi + 0x88]
mov qword [rsi + 0x90], rax
mov r9, qword [rsi + 0x78]
mov edx, 1
call sym.fread
test rax, rax
je 0x14004ae72
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x14004ae9b
lea r9, [rsi + 0x48]
lea rdx, [rsi + 0x88]
add rax, qword [rsi + 0x48]
mov qword [rsi + 0x50], rax
mov r11, qword [rsi + 0x10]
mov r8, qword [rsi + 0x40]
lea r14, [r11 + rdi]
add r11, qword [rsi + 0x70]
mov r10, qword [rcx]
mov r10, qword [r10 + 0x20]
lea r15, [rsp + 0x48]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r9
mov r9, rax
mov rax, r10
call qword [0x140092eb0]
cmp eax, 3
jne 0x14004ae51
mov rdi, qword [rsi + 0x40]
mov rax, qword [rsi + 0x50]
mov qword [rsi + 0x10], rdi
jmp 0x14004ae5f
mov rax, qword [rsp + 0x48]
add rdi, qword [rsi + 0x10]
cmp rax, rdi
je 0x14004ae72
mov qword [rsi + 0x18], rdi
mov qword [rsi + 0x20], rax
movzx eax, byte [rdi]
cmp qword [rsi + 0x10], rbx
jne 0x14004ae8f
jmp 0x14004ae7d
mov eax, 0xffffffff
cmp qword [rsi + 0x10], rbx
jne 0x14004ae8f
add rsi, 0x10
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call method.std::__1.__throw_bad_cast_abi:ne190103___
int3