Function at 0x14005f5b0
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.14003db60
test rax, rax
jne 0x14005f8a7
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14005f8a7
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 0x14005f650
mov dword [rbp - 0x49], esi
jmp 0x14005f654
int3
mov rcx, qword [r15]
lea rdx, [rbp - 0x51]
mov r8d, 0x10
call fcn.14003d0f0
test al, al
je 0x14005f897
test rsi, rsi
je 0x14005f897
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 0x14005f8c4
shl rsi, 6
mov qword [rsp + 0xc0], r14
cmp rsi, 0x1000
jb 0x14005f6e4
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x14005f8be
call fcn.1400ce7d0
test rax, rax
je 0x14005f87a
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14005f6f4
test rsi, rsi
je 0x14005f6f4
mov rcx, rsi
call fcn.1400ce7d0
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 0x14005f7c5
lea rcx, [rsi + 0x18]
lea rdx, [rbp - 0x19]
call fcn.140029760
mov rcx, rax
lea rdx, [r15 + 8]
call fcn.140029310
lea rcx, [rbp - 0x19]
movzx ebx, al
call fcn.1400292c0
test bl, bl
jne 0x14005f881
lea r8, [rbp - 0x41]
mov rdx, rsi
lea rcx, [rbp - 0x19]
call fcn.140057a10
cmp rdi, r14
je 0x14005f79a
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 0x14005f7b1
mov r8, rax
lea rcx, [rbp - 0x69]
mov rdx, rdi
call fcn.140056ee0
mov r14, qword [rbp - 0x59]
mov rdi, qword [rbp - 0x61]
add rsi, 0x98
cmp rsi, r12
jne 0x14005f730
mov rbx, qword [rbp - 0x69]
mov rcx, qword [r15]
sub rdi, rbx
and rdi, 0xffffffffffffffc0
mov rdx, rbx
mov r8, rdi
call fcn.14003d0f0
test al, al
je 0x14005f7f8
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.14003d0f0
mov r13, qword [rsp + 0xc8]
mov r12, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0x108]
test rbx, rbx
je 0x14005f848
sub r14, rbx
mov rax, rbx
and r14, 0xffffffffffffffc0
cmp r14, 0x1000
jb 0x14005f83d
mov rbx, qword [rbx - 8]
add r14, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005f87a
mov rdx, r14
mov rcx, rbx
call fcn.1400ce80c
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x14005f88f
mov rcx, qword [rbp - 0x41]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005f88a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005f88a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rbx, qword [rbp - 0x69]
jmp 0x14005f7f8
call fcn.1400ce80c
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.1400ce8e0
add rsp, 0xd8
pop r15
pop rbp
ret
call fcn.140008170
int3
call fcn.140060040
int3