Function at 0x457870
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 0x4f2adb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x100
mov eax, dword [0x54d104]
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 - 0xe8], esi
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.00457370
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
cmp eax, 4
jb 0x457dcf
lea ecx, [eax - 4]
cmp eax, ecx
jb 0x457df5
sub eax, ecx
mov edx, 4
cmp eax, edx
push 4
cmovb edx, eax
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push str..log
cmovae eax, dword [ebp - 0x2c]
lea ecx, [eax + ecx*2]
call fcn.004162b0
add esp, 8
test eax, eax
jne 0x457dcf
call fcn.00492c80
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xe4]
mov dword [ebp - 0x34], edx
push eax
mov edx, str._s.to_rotate._016llx
call fcn.00415a90
add esp, 8
mov byte [ebp - 4], 1
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x45795c
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [edi + 0x10]
mov dword [ebp - 0xe4], ecx
lea ecx, [ebp - 0xc8]
push eax
call fcn.0048b220
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x68]
call fcn.00448990
add esp, 0xc
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 4
call fcn.0040aa40
cmp dword [ebp - 0x84], 8
lea eax, [ebp - 0x98]
push dword [ebp - 0x88]
cmovae eax, dword [ebp - 0x98]
mov ecx, esi
push eax
call fcn.004575b0
add esp, 8
test al, al
je 0x457dbc
mov ecx, dword [ebp - 0x1c]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 4
jb 0x457dfa
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 4
cmovae eax, dword [ebp - 0x2c]
push str..old
push ecx
push eax
push ecx
push dword [ebp - 0xec]
lea ecx, [ebp - 0x50]
call fcn.0040a3d0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 8
mov ecx, esi
push dword [ebp - 0x40]
cmovae eax, dword [ebp - 0x50]
push eax
call fcn.004575b0
add esp, 8
test al, al
jne 0x457db4
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x457a2d
mov eax, dword [edi]
mov ecx, dword [ebp - 0xe4]
push dword [ecx]
lea ecx, [ebp - 0xb0]
push eax
call fcn.0048b220
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 6
push ecx
mov edx, eax
lea ecx, [ebp - 0xc8]
call fcn.00448990
add esp, 0xc
lea ecx, [ebp - 0xb0]
call fcn.0040aa40
cmp dword [ebp - 0xb4], 8
lea eax, [ebp - 0xc8]
push 0
cmovae 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 - 0x34], esi
mov byte [ebp - 4], 9
cmp esi, 0xffffffff
jne 0x457b35
mov ecx, dword [ebp - 0xe8]
call fcn.00457790
test al, al
jne 0x457da9
cmp dword [ebp - 0x54], 8
lea edx, [ebp - 0x68]
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
cmovae edx, dword [ebp - 0x68]
mov ecx, edx
mov dword [ebp - 0xcc], 0
movups xmmword [ebp - 0xe0], xmm0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457ae1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xe0]
call fcn.0040a960
cmp dword [ebp - 0xd0], 0
je 0x457b25
cmp dword [ebp - 0xcc], 8
lea eax, [ebp - 0xe0]
push 4
cmovae eax, dword [ebp - 0xe0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0xe0]
call fcn.0040aa40
jmp 0x457da9
call fcn.00492c80
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x80]
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0xec]
mov dword [ebp - 0xf4], edx
push eax
mov edx, str._s.to_delete._016llx
call fcn.00415a90
add esp, 8
mov byte [ebp - 4], 0xe
cmp dword [edi + 0x14], 8
jb 0x457b81
mov edi, dword [edi]
mov eax, dword [ebp - 0xe4]
lea ecx, [ebp - 0x110]
push dword [eax]
push edi
call fcn.0048b220
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xf
push ecx
mov edx, eax
lea ecx, [ebp - 0xb0]
call fcn.00448990
add esp, 0xc
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 0x11
call fcn.0040aa40
cmp dword [ebp - 0x6c], 8
lea eax, [ebp - 0x80]
push dword [ebp - 0x70]
cmovae eax, dword [ebp - 0x80]
mov ecx, esi
push eax
call fcn.004575b0
add esp, 8
test al, al
je 0x457cfe
mov ecx, esi
call fcn.00457790
test al, al
jne 0x457c76
cmp dword [ebp - 0x9c], 8
lea edx, [ebp - 0xb0]
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
cmovae edx, dword [ebp - 0xb0]
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 0x457c23
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xe0]
call fcn.0040a960
cmp dword [ebp - 0xd0], 0
je 0x457c67
cmp dword [ebp - 0xcc], 8
lea eax, [ebp - 0xe0]
push 4
cmovae 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.0040aa40
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
push dword [ebp - 0x40]
cmovae eax, dword [ebp - 0x50]
mov edi, dword [ebp - 0xe8]
mov ecx, edi
push eax
call fcn.004575b0
add esp, 8
test al, al
jne 0x457d8f
mov ecx, edi
call fcn.00457790
test al, al
jne 0x457d8f
cmp dword [ebp - 0x54], 8
lea edx, [ebp - 0x68]
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
cmovae edx, dword [ebp - 0x68]
mov ecx, edx
mov dword [ebp - 0xcc], 0
movups xmmword [ebp - 0xe0], xmm0
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457ce0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xe0]
call fcn.0040a960
jmp 0x457d5c
mov ecx, dword [ebp - 0xe8]
call fcn.00457790
test al, al
jne 0x457d8f
cmp dword [ebp - 0x54], 8
lea edx, [ebp - 0x68]
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
cmovae edx, dword [ebp - 0x68]
mov ecx, edx
mov dword [ebp - 0xcc], 0
movups xmmword [ebp - 0xe0], xmm0
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457d40
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xe0]
call fcn.0040a960
cmp dword [ebp - 0xd0], 0
je 0x457d84
cmp dword [ebp - 0xcc], 8
lea eax, [ebp - 0xe0]
push 4
cmovae eax, dword [ebp - 0xe0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0xe0]
call fcn.0040aa40
lea ecx, [ebp - 0xb0]
call fcn.0040aa40
lea ecx, [ebp - 0x80]
call fcn.0040aa40
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xc8]
call fcn.0040aa40
lea ecx, [ebp - 0x50]
call fcn.0040aa40
lea ecx, [ebp - 0x68]
call fcn.0040aa40
lea ecx, [ebp - 0x98]
call fcn.0040aa40
lea ecx, [ebp - 0x2c]
call fcn.0040aa40
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.004af3ab
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040bb60
call fcn.0040a7e0
int3