Function at 0x14005f890
Capabilities:
Clear file content

Disassembly:
push rbp
push r15
lea rbp, [rsp - 0x4f]
sub rsp, 0xd8
mov rax, qword [0x1400fe4a8]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rcx
xor r8d, r8d
mov rcx, qword [rcx]
xor edx, edx
call fcn.14003de40
test rax, rax
jne 0x14005fb87
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14005fb87
mov rcx, qword [r15 + 0x38]
movabs rax, 0x6bca1af286bca1b
sub rcx, qword [r15 + 0x30]
imul rcx
mov qword [rsp + 0xf8], rbx
xor ebx, ebx
mov qword [rsp + 0x100], rsi
mov rsi, rdx
sar rsi, 2
mov rax, rsi
mov dword [rbp - 0x45], ebx
shr rax, 0x3f
add rsi, rax
mov dword [rbp - 0x51], 0x43504144
mov eax, 0xffffffff
mov dword [rbp - 0x4d], 1
cmp rsi, rax
ja 0x14005f930
mov dword [rbp - 0x49], esi
jmp 0x14005f934
int3
mov rcx, qword [r15]
lea rdx, [rbp - 0x51]
mov r8d, 0x10
call fcn.14003d3d0
test al, al
je 0x14005fb77
test rsi, rsi
je 0x14005fb77
movabs rax, 0x3ffffffffffffff
mov qword [rbp - 0x41], rbx
mov qword [rbp - 0x31], rbx
xorps xmm0, xmm0
mov qword [rbp - 0x29], 0xf
mov qword [rbp - 0x59], rbx
movdqu xmmword [rbp - 0x69], xmm0
cmp rsi, rax
ja 0x14005fba4
shl rsi, 6
mov qword [rsp + 0xc0], r14
cmp rsi, 0x1000
jb 0x14005f9c4
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x14005fb9e
call fcn.1400ceac0
test rax, rax
je 0x14005fb5a
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14005f9d4
test rsi, rsi
je 0x14005f9d4
mov rcx, rsi
call fcn.1400ceac0
mov rbx, rax
mov qword [rsp + 0x108], rdi
lea r14, [rsi + rbx]
mov rsi, qword [r15 + 0x30]
mov rdi, rbx
mov qword [rsp + 0xd0], r12
mov r12, qword [r15 + 0x38]
mov qword [rsp + 0xc8], r13
mov qword [rbp - 0x69], rbx
mov qword [rbp - 0x61], rbx
mov qword [rbp - 0x59], r14
cmp rsi, r12
je 0x14005faa5
lea rcx, [rsi + 0x18]
lea rdx, [rbp - 0x19]
call fcn.140029a20
mov rcx, rax
lea rdx, [r15 + 8]
call fcn.1400295d0
lea rcx, [rbp - 0x19]
movzx ebx, al
call fcn.140029580
test bl, bl
jne 0x14005fb61
lea r8, [rbp - 0x41]
mov rdx, rsi
lea rcx, [rbp - 0x19]
call fcn.140057cf0
cmp rdi, r14
je 0x14005fa7a
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdi + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdi + 0x30], xmm1
add rdi, 0x40
mov qword [rbp - 0x61], rdi
jmp 0x14005fa91
mov r8, rax
lea rcx, [rbp - 0x69]
mov rdx, rdi
call fcn.1400571c0
mov r14, qword [rbp - 0x59]
mov rdi, qword [rbp - 0x61]
add rsi, 0x98
cmp rsi, r12
jne 0x14005fa10
mov rbx, qword [rbp - 0x69]
mov rcx, qword [r15]
sub rdi, rbx
and rdi, 0xffffffffffffffc0
mov rdx, rbx
mov r8, rdi
call fcn.14003d3d0
test al, al
je 0x14005fad8
cmp qword [rbp - 0x29], 0x10
lea rdx, [rbp - 0x41]
mov r8, qword [rbp - 0x31]
cmovae rdx, qword [rbp - 0x41]
mov rcx, qword [r15]
call fcn.14003d3d0
mov r13, qword [rsp + 0xc8]
mov r12, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0x108]
test rbx, rbx
je 0x14005fb28
sub r14, rbx
mov rax, rbx
and r14, 0xffffffffffffffc0
cmp r14, 0x1000
jb 0x14005fb1d
mov rbx, qword [rbx - 8]
add r14, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005fb5a
mov rdx, r14
mov rcx, rbx
call fcn.1400ceafc
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x14005fb6f
mov rcx, qword [rbp - 0x41]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005fb6a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005fb6a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rbx, qword [rbp - 0x69]
jmp 0x14005fad8
call fcn.1400ceafc
mov r14, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xf8]
mov rsi, qword [rsp + 0x100]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400cebd0
add rsp, 0xd8
pop r15
pop rbp
ret
call fcn.140008170
int3
call fcn.140060320
int3