Function at 0x466cf0
Capabilities:
Delete file
Move file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ebd0b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf8
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0xe4], esi
mov edx, esi
lea ecx, [ebp - 0x38]
call fcn.004667f0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
cmp eax, 4
jb 0x467211
lea ecx, [eax - 4]
cmp eax, ecx
jb 0x467237
sub eax, ecx
mov edx, 4
cmp eax, edx
push 4
cmovb edx, eax
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x24], 7
push str..log
cmova eax, dword [ebp - 0x38]
lea ecx, [eax + ecx*2]
call fcn.0042d860
add esp, 8
test eax, eax
jne 0x467211
call fcn.00496800
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x98]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], edx
push eax
push 0x14
push str..to_rotate.:016x
lea edx, [ebp - 0x38]
call fcn.00469950
add esp, 0xc
mov byte [ebp - 4], 1
mov eax, edi
cmp dword [edi + 0x14], 7
jbe 0x466dc9
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0xc8]
push eax
call fcn.0048fda0
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x68]
call fcn.00458b20
add esp, 0xc
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 4
call fcn.0040a900
cmp dword [ebp - 0x84], 7
lea eax, [ebp - 0x98]
push dword [ebp - 0x88]
cmova eax, dword [ebp - 0x98]
mov ecx, esi
push eax
call fcn.00466a30
add esp, 8
test al, al
je 0x4671fe
mov ecx, dword [ebp - 0x28]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 4
jb 0x46723c
cmp dword [ebp - 0x24], 7
lea eax, [ebp - 0x38]
push 4
cmova eax, dword [ebp - 0x38]
push str..old
push ecx
push eax
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x50]
call fcn.0040a490
mov byte [ebp - 4], 5
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 7
mov ecx, esi
push dword [ebp - 0x40]
cmova eax, dword [ebp - 0x50]
push eax
call fcn.00466a30
add esp, 8
test al, al
jne 0x4671f6
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x466e8e
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0xb0]
push eax
call fcn.0048fda0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 6
push ecx
mov edx, eax
lea ecx, [ebp - 0xc8]
call fcn.00458b20
add esp, 0xc
lea ecx, [ebp - 0xb0]
call fcn.0040a900
cmp dword [ebp - 0xb4], 7
lea eax, [ebp - 0xc8]
push 0
cmova eax, dword [ebp - 0xc8]
push 0
push 3
push 0
push 7
push 0x10000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 9
cmp esi, 0xffffffff
jne 0x466f94
mov ecx, dword [ebp - 0xe4]
call fcn.00466c10
test al, al
jne 0x4671eb
cmp dword [ebp - 0x54], 7
lea edx, [ebp - 0x68]
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
cmova edx, dword [ebp - 0x68]
mov ecx, edx
mov dword [ebp - 0xcc], 0
movups xmmword [ebp - 0xe0], xmm0
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466f40
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xe0]
call fcn.0040ab20
cmp dword [ebp - 0xd0], 0
je 0x466f84
cmp dword [ebp - 0xcc], 7
lea eax, [ebp - 0xe0]
push 4
cmova eax, dword [ebp - 0xe0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0xe0]
call fcn.0040a900
jmp 0x4671eb
call fcn.00496800
mov dword [ebp - 0xf0], eax
lea ecx, [ebp - 0x80]
lea eax, [ebp - 0xf0]
mov dword [ebp - 0xec], edx
push eax
push 0x14
push str..to_delete.:016x
lea edx, [ebp - 0x38]
call fcn.00469950
add esp, 0xc
mov byte [ebp - 4], 0xe
mov eax, edi
cmp dword [edi + 0x14], 7
jbe 0x466fcf
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x108]
push eax
call fcn.0048fda0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xf
push ecx
mov edx, eax
lea ecx, [ebp - 0xb0]
call fcn.00458b20
add esp, 0xc
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0x11
call fcn.0040a900
cmp dword [ebp - 0x6c], 7
lea eax, [ebp - 0x80]
push dword [ebp - 0x70]
cmova eax, dword [ebp - 0x80]
mov ecx, esi
push eax
call fcn.00466a30
add esp, 8
test al, al
je 0x467145
mov ecx, esi
call fcn.00466c10
test al, al
jne 0x4670c3
cmp dword [ebp - 0x9c], 7
lea edx, [ebp - 0xb0]
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
cmova edx, dword [ebp - 0xb0]
mov ecx, edx
mov dword [ebp - 0xcc], 0
movups xmmword [ebp - 0xe0], xmm0
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x467070
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xe0]
call fcn.0040ab20
cmp dword [ebp - 0xd0], 0
je 0x4670b4
cmp dword [ebp - 0xcc], 7
lea eax, [ebp - 0xe0]
push 4
cmova eax, dword [ebp - 0xe0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0x11
call fcn.0040a900
cmp dword [ebp - 0x3c], 7
lea eax, [ebp - 0x50]
push dword [ebp - 0x40]
cmova eax, dword [ebp - 0x50]
mov edi, dword [ebp - 0xe4]
mov ecx, edi
push eax
call fcn.00466a30
add esp, 8
test al, al
jne 0x4671d1
mov ecx, edi
call fcn.00466c10
test al, al
jne 0x4671d1
cmp dword [ebp - 0x54], 7
lea edx, [ebp - 0x68]
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
cmova edx, dword [ebp - 0x68]
mov ecx, edx
mov dword [ebp - 0xcc], 0
movups xmmword [ebp - 0xe0], xmm0
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x467127
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xe0]
call fcn.0040ab20
jmp 0x46719e
mov ecx, dword [ebp - 0xe4]
call fcn.00466c10
test al, al
jne 0x4671d1
cmp dword [ebp - 0x54], 7
lea edx, [ebp - 0x68]
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
cmova edx, dword [ebp - 0x68]
mov ecx, edx
mov dword [ebp - 0xcc], 0
movups xmmword [ebp - 0xe0], xmm0
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x467182
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xe0]
call fcn.0040ab20
cmp dword [ebp - 0xd0], 0
je 0x4671c6
cmp dword [ebp - 0xcc], 7
lea eax, [ebp - 0xe0]
push 4
cmova eax, dword [ebp - 0xe0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0xe0]
call fcn.0040a900
lea ecx, [ebp - 0xb0]
call fcn.0040a900
lea ecx, [ebp - 0x80]
call fcn.0040a900
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xc8]
call fcn.0040a900
lea ecx, [ebp - 0x50]
call fcn.0040a900
lea ecx, [ebp - 0x68]
call fcn.0040a900
lea ecx, [ebp - 0x98]
call fcn.0040a900
lea ecx, [ebp - 0x38]
call fcn.0040a900
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a5e3b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040bfd0
call fcn.0040a970
int3