Function at 0x140042360
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 0x1400423ed
mov rsi, rcx
mov eax, dword [rcx + 0x9c]
test al, 8
jne 0x1400423f7
xorps xmm0, xmm0
movups xmmword [rsi + 0x28], xmm0
mov qword [rsi + 0x38], 0
lea rcx, [rsi + 0x68]
lea rdx, [rsi + 0x70]
lea r8, [rsi + 0x40]
cmp byte [rsi + 0xa2], 0
lea r9, [rsi + 0x60]
cmove r8, rcx
mov rcx, qword [r8]
cmove r9, rdx
mov rdx, qword [r9]
add rdx, rcx
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x20], rdx
mov dword [rsi + 0x9c], 8
lea rbx, [rsp + 0x47]
test rdx, rdx
je 0x140042405
mov rcx, qword [rsi + 0x20]
test al, 8
jne 0x14004241e
xor edi, edi
cmp rdx, rcx
je 0x140042444
movzx eax, byte [rdx]
jmp 0x1400425b0
mov eax, 0xffffffff
jmp 0x1400425c8
mov rdx, qword [rsi + 0x18]
lea rbx, [rsp + 0x47]
test rdx, rdx
jne 0x1400423d6
lea rdx, [rsp + 0x48]
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x20], rdx
mov rcx, qword [rsi + 0x20]
test al, 8
je 0x1400423de
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
jne 0x1400423e5
mov rcx, qword [rsi + 0x10]
sub rdx, rdi
mov r8, rdi
call sym.memmove
cmp byte [rsi + 0xa2], 0
je 0x14004249d
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 0x1400425ab
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]
jmp 0x1400425b0
mov rdx, qword [rsi + 0x48]
mov rax, qword [rsi + 0x50]
mov r8, rax
mov rcx, rax
sub r8, rdx
je 0x1400424c1
mov rcx, qword [rsi + 0x40]
call sym.memmove
mov rax, qword [rsi + 0x48]
mov rcx, qword [rsi + 0x50]
sub rcx, rax
mov r8, qword [rsi + 0x40]
mov rax, qword [rsi + 0x70]
add rcx, r8
mov qword [rsi + 0x48], rcx
lea r9, [rsi + 0x58]
mov edx, 8
cmp r8, r9
je 0x1400424e5
mov rdx, qword [rsi + 0x60]
add r8, rdx
mov qword [rsi + 0x50], r8
sub rax, rdi
sub r8, rcx
cmp r8, rax
cmovae r8, rax
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 0x1400425ab
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x1400425d4
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 [0x1400b91b0]
cmp eax, 3
jne 0x140042590
mov rdi, qword [rsi + 0x40]
mov rax, qword [rsi + 0x50]
mov qword [rsi + 0x10], rdi
jmp 0x14004259e
mov rax, qword [rsp + 0x48]
add rdi, qword [rsi + 0x10]
cmp rax, rdi
je 0x1400425ab
mov qword [rsi + 0x18], rdi
mov qword [rsi + 0x20], rax
movzx eax, byte [rdi]
jmp 0x1400425b0
mov eax, 0xffffffff
cmp qword [rsi + 0x10], rbx
jne 0x1400425c8
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 sym.unk_2530
int3