Function at 0x4515d0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x632706
mov eax, dword fs:[0]
push eax
sub esp, 0xcdc
mov eax, dword [0x6ce8d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x320
mov dword [ebp - 0xce8], eax
lea eax, [ebp - 0xcb0]
push 0
push eax
call fcn.005d7990
push 0x320
lea eax, [ebp - 0x990]
push 0
push eax
call fcn.005d7990
xorps xmm0, xmm0
mov byte [ebp - 0x38], 0
push 0x208
lea eax, [ebp - 0x468]
mov byte [ebp - 0x14], 0
push 0
push eax
movups xmmword [ebp - 0x58], xmm0
movups xmmword [ebp - 0x48], xmm0
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call fcn.005d7990
push 0x208
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.005d7990
push 0x208
lea eax, [ebp - 0x670]
push 0
push eax
call fcn.005d7990
add esp, 0x3c
lea eax, [ebp - 0x260]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x468]
push str._s.tmp
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00450410
add esp, 0x14
lea eax, [ebp - 0xcb0]
mov ecx, edi
push eax
lea eax, [ebp - 0x990]
push eax
push 0
push esi
call fcn.00451980
mov esi, eax
test esi, esi
je 0x45195a
mov esi, dword [ebp - 0xce8]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 3
push 0
push 0x779
push esi
call edi
lea ecx, [ebp - 0x990]
lea eax, [ebp - 0x34]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x451730
test dl, dl
je 0x45172c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x451730
add eax, 2
add ecx, 2
test dl, dl
jne 0x451710
xor eax, eax
jmp 0x451735
sbb eax, eax
or eax, 1
test eax, eax
je 0x45195c
push 8
push 0
push 0x779
push esi
call edi
lea eax, [ebp - 0xcb0]
push eax
lea eax, [ebp - 0xce0]
push eax
call fcn.004502b0
cmp dword [ebp - 0xccc], 8
lea eax, [ebp - 0xce0]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0xce0]
push eax
lea eax, [ebp - 0xcc8]
push eax
call fcn.004505a0
add esp, 0x10
cmp dword [ebp - 0xcb4], 0x10
lea ecx, [ebp - 0x468]
push esi
lea eax, [ebp - 0xcc8]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0xcc8]
push ecx
push eax
lea ecx, [ebp - 0xce1]
call fcn.0045a480
test eax, eax
je 0x4517fc
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.00450410
add esp, 8
lea ecx, [ebp - 0x990]
lea eax, [ebp - 0x58]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4517f3
test dl, dl
je 0x4517ef
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4517f3
add eax, 2
add ecx, 2
test dl, dl
jne 0x4517d3
xor eax, eax
jmp 0x4517f8
sbb eax, eax
or eax, 1
test eax, eax
je 0x451826
lea ecx, [ebp - 0xcc8]
xor esi, esi
call fcn.00450230
lea ecx, [ebp - 0xce0]
call fcn.00450270
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x45193d
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x670]
push str._s.bak
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x670]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.005e3e41
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.005e3e41
mov eax, dword [ebp - 0xcb4]
add esp, 0x10
mov byte [ebp - 4], 0
mov esi, 1
cmp eax, 0x10
jb 0x4518d1
mov ecx, dword [ebp - 0xcc8]
inc eax
cmp eax, 0x1000
jb 0x4518c8
test cl, 0x1f
je 0x4518a4
call fcn.005e0271
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4518b0
call fcn.005e0271
sub ecx, eax
cmp ecx, 4
jae 0x4518bc
call fcn.005e0271
cmp ecx, 0x23
jbe 0x4518c6
call fcn.005e0271
mov ecx, eax
push ecx
call fcn.005bca10
add esp, 4
mov eax, dword [ebp - 0xccc]
mov dword [ebp - 0xcb4], 0xf
mov dword [ebp - 0xcb8], 0
mov byte [ebp - 0xcc8], 0
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x451911
inc eax
lea ecx, [ebp - 0xce0]
push eax
push dword [ebp - 0xce0]
call fcn.004513e0
xor eax, eax
mov dword [ebp - 0xccc], 7
mov word [ebp - 0xce0], ax
lea eax, [ebp - 0x260]
push eax
mov dword [ebp - 0xcd0], 0
call fcn.00450560
add esp, 4
mov eax, dword [ebp - 0xce8]
push 0x64
push 0
push 0x779
push eax
call edi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bcf27
mov esp, ebp
pop ebp
ret 8