Function at 0x140002fc0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x20
mov rax, qword [0x14004c138]
xor r12d, r12d
mov ecx, dword [rax + 0x28]
mov rsi, r12
mov qword [0x14004c198], r12
test ecx, ecx
je 0x1400030d2
cmp ecx, dword [rax + 0x2c]
je 0x1400030d2
lea rcx, [rax + 0x58]
lea rdx, [0x140038f5c]
call fcn.14001dc10
test rax, rax
mov rcx, rax
mov qword [0x14004c198], rax
jne 0x140003024
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
mov rax, qword [0x14004c138]
mov edi, r12d
cmp dword [rax + 0x2c], esi
lea rbx, [rax + 0x160]
jbe 0x1400030a5
nop
nop
movzx eax, word [rbx]
mov r9, rcx
mov edx, 1
lea rax, [rax + rax + 3]
mov rcx, rbx
shr rax, 2
lea r8d, [rax*4 + 0x70]
call fcn.14001d9e0
movzx r11d, word [rbx]
lea r11, [r11 + r11 + 3]
shr r11, 2
lea eax, [r11*4 + 0x70]
mov ecx, eax
lea rax, [rax + rax*2]
prefetcht1 byte [rbx + rax*2]
mov rax, qword [0x14004c138]
add edi, 1
add rbx, rcx
cmp edi, dword [rax + 0x2c]
jae 0x14000309e
mov rcx, qword [0x14004c198]
jmp 0x140003040
mov rcx, qword [0x14004c198]
call fcn.14001d780
mov rcx, qword [0x14004c138]
mov qword [0x14004c198], r12
mov eax, dword [rcx + 0x28]
add dword [rcx + 0x2c], eax
mov rcx, qword [0x14004c138]
mov eax, dword [rcx + 0x2c]
mov dword [rcx + 0x28], eax
mov rax, qword [0x14004c138]
cmp word [rax + 0x3c], r12w
je 0x1400030e5
cmp word [rax + 0x3e], 0xffff
je 0x140003014
mov eax, dword [rax + 0x2c]
lea rcx, [rax + rax*4]
shl rcx, 2
call fcn.14001af10
test rax, rax
mov r11, rax
mov qword [0x14004c1a0], rax
je 0x140003014
mov rcx, qword [0x14004c138]
mov qword [rsp + 0x40], rbp
cmp dword [rcx + 0x28], r12d
je 0x140003142
lea rdx, [0x140038f58]
add rcx, 0x58
call fcn.14001dc10
mov rcx, qword [0x14004c138]
mov r11, qword [0x14004c1a0]
mov rsi, rax
mov qword [0x14004c198], rax
cmp dword [rcx + 0x2c], r12d
lea rbx, [rcx + 0x160]
mov ebp, r12d
jbe 0x140003249
mov rdi, r12
nop
nop
test rsi, rsi
je 0x1400031da
mov rcx, rsi
call fcn.14001d650
mov rcx, qword [0x14004c1a0]
mov r9, qword [0x14004c198]
mov edx, 0x70
mov dword [rdi + rcx], eax
mov rcx, rbx
lea r8d, [rdx - 0x6f]
call fcn.14001cf00
cmp eax, 1
jne 0x1400031c1
movzx eax, word [rbx]
mov r9, qword [0x14004c198]
lea rcx, [rbx + 0x70]
lea rax, [rax + rax + 3]
mov r8d, 1
shr rax, 2
lea edx, [rax*4 + 0x70]
add rdx, 0xffffffffffffff90
call fcn.14001cf00
cmp eax, 1
jb 0x1400032b7
mov rsi, qword [0x14004c198]
mov r11, qword [0x14004c1a0]
jmp 0x1400031e7
mov eax, ebx
sub eax, ecx
sub eax, 0x160
mov dword [rdi + r11], eax
test rsi, rsi
mov rax, qword [rbx + 4]
mov qword [rdi + r11 + 4], rax
movzx eax, word [rbx + 0xc]
mov word [rdi + r11 + 0xc], ax
movzx eax, word [rbx]
mov word [rdi + r11 + 0xe], ax
movzx eax, word [rbx + 0x68]
mov word [rdi + r11 + 0x10], ax
movzx eax, word [rbx + 2]
mov word [rdi + r11 + 0x12], ax
jne 0x140003232
movzx eax, word [rbx]
lea rax, [rax + rax + 3]
shr rax, 2
lea ecx, [rax*4 + 0x70]
add rbx, rcx
mov rcx, qword [0x14004c138]
add ebp, 1
add rdi, 0x14
cmp ebp, dword [rcx + 0x2c]
jb 0x140003160
mov edx, dword [rcx + 0x2c]
lea r9, [0x140002f40]
mov r8d, 0x14
mov rcx, r11
mov qword [rsp + 0x48], r13
call fcn.14001d0c0
mov r13, qword [0x14004c1a0]
mov rax, qword [0x14004c138]
mov esi, dword [rax + 0x2c]
mov ecx, dword [r13 + 4]
lea rdx, [r13 + 4]
test esi, esi
mov dword [0x14004c188], ecx
mov dword [0x14004c18c], esi
mov r8d, r12d
je 0x1400032ff
cmp dword [rdx + 4], 0x7fffffff
je 0x1400032f5
mov eax, dword [rdx]
cmp eax, ecx
cmovl ecx, eax
add r8d, 1
add rdx, 0x14
cmp r8d, esi
mov dword [0x14004c188], ecx
jb 0x140003292
jmp 0x1400032ff
mov rcx, qword [0x14004c198]
call fcn.14001d780
mov rcx, qword [0x14004c138]
mov qword [0x14004c198], r12
add rcx, 0x58
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [0x14004c1a0]
call fcn.14001afe0
mov qword [0x14004c1a0], r12
xor eax, eax
jmp 0x1400034f9
mov esi, r8d
mov dword [0x14004c18c], r8d
mov ecx, esi
shl rcx, 2
call fcn.14001af10
mov r9d, 1
lea ecx, [rsi - 1]
movsd xmm1, qword [0x140038f50]
movsd xmm2, qword [0x140038f48]
cmp ecx, 4
mov dword [rax], r12d
mov dword [0x14004c190], r9d
mov r12, r9
mov r11, rax
mov qword [0x14004c1a8], rax
mov r10d, r9d
jl 0x140003490
lea ebp, [rsi - 3]
lea ebx, [r9 + 2]
lea rdi, [r13 + 0x20]
lea eax, [rbp - 2]
shr eax, 2
add eax, r9d
lea r12, [rax*4 + 1]
nop
nop
nop
nop
movzx ecx, word [rdi - 0x14]
movzx r8d, word [rdi]
mov eax, dword [rdi - 0x18]
sub eax, dword [rdi - 4]
cdq
xor eax, edx
sub eax, edx
cmp ecx, r8d
cmovl r8d, ecx
cvtsi2sd xmm0, r8d
mulsd xmm0, xmm1
addsd xmm0, xmm2
cvttsd2si ecx, xmm0
cmp eax, ecx
jle 0x1400033b1
movsxd rax, r9d
add r9d, 1
mov dword [r11 + rax*4], r10d
mov dword [0x14004c190], r9d
movzx ecx, word [rdi]
movzx r8d, word [rdi + 0x14]
mov eax, dword [rdi - 4]
sub eax, dword [rdi + 0x10]
cdq
xor eax, edx
sub eax, edx
cmp ecx, r8d
cmovl r8d, ecx
cvtsi2sd xmm0, r8d
mulsd xmm0, xmm1
addsd xmm0, xmm2
cvttsd2si ecx, xmm0
cmp eax, ecx
jle 0x1400033f5
movsxd rax, r9d
lea ecx, [rbx - 1]
add r9d, 1
mov dword [r11 + rax*4], ecx
mov dword [0x14004c190], r9d
movzx ecx, word [rdi + 0x14]
movzx r8d, word [rdi + 0x28]
mov eax, dword [rdi + 0x10]
sub eax, dword [rdi + 0x24]
cdq
xor eax, edx
sub eax, edx
cmp ecx, r8d
cmovl r8d, ecx
cvtsi2sd xmm0, r8d
mulsd xmm0, xmm1
addsd xmm0, xmm2
cvttsd2si ecx, xmm0
cmp eax, ecx
jle 0x140003437
movsxd rax, r9d
add r9d, 1
mov dword [r11 + rax*4], ebx
mov dword [0x14004c190], r9d
movzx ecx, word [rdi + 0x28]
movzx r8d, word [rdi + 0x3c]
mov eax, dword [rdi + 0x24]
sub eax, dword [rdi + 0x38]
cdq
xor eax, edx
sub eax, edx
cmp ecx, r8d
cmovl r8d, ecx
cvtsi2sd xmm0, r8d
mulsd xmm0, xmm1
addsd xmm0, xmm2
cvttsd2si ecx, xmm0
cmp eax, ecx
jle 0x14000347c
movsxd rax, r9d
lea ecx, [rbx + 1]
add r9d, 1
mov dword [r11 + rax*4], ecx
mov dword [0x14004c190], r9d
add r10d, 4
add rdi, 0x50
add ebx, 4
cmp r10d, ebp
jb 0x140003370
cmp r10d, esi
jae 0x1400034ef
lea rax, [r12 + r12*4]
lea rdx, [r13 + rax*4 - 8]
movzx ecx, word [rdx]
mov eax, dword [rdx - 4]
movzx r8d, word [rdx + 0x14]
sub eax, dword [rdx + 0x10]
lea rbx, [rdx + 0x14]
cdq
xor eax, edx
sub eax, edx
cmp ecx, r8d
cmovl r8d, ecx
cvtsi2sd xmm0, r8d
mulsd xmm0, xmm1
addsd xmm0, xmm2
cvttsd2si ecx, xmm0
cmp eax, ecx
jle 0x1400034dc
movsxd rcx, r9d
add r9d, 1
mov dword [r11 + rcx*4], r10d
add r10d, 1
mov rdx, rbx
cmp r10d, esi
jb 0x14000349e
mov dword [0x14004c190], r9d
mov r13, qword [rsp + 0x48]
mov eax, 1
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret