Function at 0x404b20
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454f05
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x478584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x47839c]
mov edx, dword [eax + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, 0x47839c
call edx
add eax, 0x10
mov dword [ebp - 0x818], eax
mov dword [ebp - 4], 1
mov eax, dword [0x47839c]
mov edx, dword [eax + 0xc]
mov ecx, 0x47839c
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x820], esi
mov byte [ebp - 4], 3
mov eax, dword [ebx]
push 2
push 0
push eax
mov byte [ebp - 0x811], 0
call fcn.0043c730
mov edi, eax
add esp, 0xc
test edi, edi
je 0x404cdb
mov edx, dword [0x47a024]
push 0x800
lea ecx, [ebp - 0x810]
push ecx
xor eax, eax
push edx
mov word [ebp - 0x810], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404bd7
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x818]
call fcn.004019a0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [ebp - 0x810]
push 0x45e788
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
push str..new
lea edx, [ebp - 0x818]
push edx
lea eax, [ebp - 0x828]
push eax
call fcn.004022d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x810]
push ecx
push eax
lea edx, [ebp - 0x81c]
push edx
call fcn.004022d0
add esp, 0x24
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x820]
call fcn.00401f40
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x81c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404c7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x828]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ca1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x820]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push 0
push esi
push 0
push edi
call fcn.0043c7f0
add esp, 0x14
test eax, eax
jne 0x404ccb
mov byte [ebp - 0x811], 1
jmp 0x404cd2
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call fcn.0043c840
add esp, 4
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp - 0x811], 0
jne 0x404d3d
mov byte [ebp - 4], 1
add esi, 0xfffffff0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404d0d
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x818]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404d36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x404ede
lea ecx, [ebp - 0x824]
push ecx
push esi
mov byte [ebp - 0x811], 0
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeW]
test eax, eax
je 0x404e88
mov eax, dword [ebp - 0x824]
test eax, eax
je 0x404d6d
cmp eax, 6
jne 0x404e88
cmp byte [ebp + 0xc], 0
je 0x404e4f
mov ebx, dword [ebp - 0x818]
lea eax, [ebx - 0x10]
push eax
call fcn.004013f0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x81c], eax
mov byte [ebp - 4], 0xb
push str..old
lea ecx, [ebp - 0x81c]
call fcn.004023b0
mov edi, dword [ebp - 0x81c]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x404e24
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x404e24
mov byte [ebp - 0x811], 1
call fcn.00408640
mov byte [eax + 0x40], 1
call fcn.00408640
mov ecx, eax
call fcn.0040f4b0
push 0
push 0xe141
push 0x111
call fcn.00417350
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [0x479a14]
test eax, eax
je 0x404e19
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x479a14], 0
push 1
push ebx
call fcn.00435410
add esp, 8
mov byte [ebp - 4], 3
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404e44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x811], 0
je 0x404e8e
jmp 0x404e95
mov eax, dword [esi - 0xc]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
mov byte [ebp - 0x811], 1
neg ecx
or ecx, eax
push ecx
call fcn.0043ce78
add esp, 4
push esi
push eax
mov dword [0x479a18], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [ebp - 0x818]
jmp 0x404e95
mov ebx, dword [ebp - 0x818]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404eb5
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ed8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x811]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043dfbe
mov esp, ebp
pop ebp
ret