Function at 0x506f4d
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x5ac2de
call fcn.00591b5c
sub esp, 0x4c
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x50]
add ecx, 8
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
call dword [eax + 0x1c]
push 1
push str.AddEmbedded
mov ecx, dword [ebp - 0x50]
add ecx, 8
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
call dword [eax + 0x20]
push str.Feb_25_2008
push str.DllDate
mov ecx, dword [ebp - 0x50]
add ecx, 8
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
call dword [eax + 0x28]
mov eax, dword [ebp - 0x50]
push dword [eax + 0x24c]
mov ecx, dword [ebp - 0x50]
call fcn.004d9920
and byte [ebp - 0x11], 0
mov ecx, dword [ebp - 0x50]
call fcn.00502605
movzx eax, al
test eax, eax
jne 0x506fd5
mov ecx, dword [ebp - 0x50]
add ecx, 8
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
call dword [eax + 0x24]
xor al, al
jmp 0x5071f3
mov eax, dword [ebp - 0x50]
add eax, 8
push eax
mov ecx, dword [ebp + 8]
call fcn.004d1049
push eax
call fcn.0052faa8
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5071e1
mov eax, dword [ebp - 0x50]
add eax, 8
push eax
mov ecx, dword [ebp + 0x10]
call fcn.004d1049
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004d0c2d
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00530ad0
lea ecx, [ebp - 0x30]
call fcn.004cde9c
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x50]
add eax, 8
push eax
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x50]
add ecx, 0x190
call fcn.0055420c
push eax
push str.ckZ.dat
call fcn.004d74e0
add esp, 0x10
mov byte [ebp - 0x35], al
movzx eax, byte [ebp - 0x35]
test eax, eax
jne 0x5070ba
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x50707b
push 1
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x54], eax
jmp 0x50707f
and dword [ebp - 0x54], 0
push str.Failed_to_get_temp_filename.
mov ecx, dword [ebp - 0x50]
add ecx, 8
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x50]
add ecx, 8
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
call dword [eax + 0x24]
and byte [ebp - 0x41], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004ce1b7
mov al, byte [ebp - 0x41]
jmp 0x5071f3
mov eax, dword [ebp - 0x50]
add eax, 8
push eax
push 0
lea ecx, [ebp - 0x30]
call fcn.0055420c
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00530149
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x5070f7
push 1
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], eax
jmp 0x5070fb
and dword [ebp - 0x58], 0
and dword [ebp - 0x10], 0
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
call fcn.004d1049
push eax
call fcn.004d6973
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x5071d5
mov eax, dword [ebp - 0x50]
add eax, 8
push eax
mov ecx, dword [ebp + 8]
call fcn.004d1049
push eax
call fcn.004d712d
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x507156
push str.Failed_to_delete_existing_EXE_file
mov ecx, dword [ebp - 0x50]
add ecx, 8
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
call dword [eax + 0x10]
jmp 0x5071d5
mov ecx, dword [ebp + 8]
call fcn.004d1049
push eax
lea ecx, [ebp - 0x30]
call fcn.0055420c
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x5071d1
lea ecx, [ebp - 0x30]
call fcn.0055420c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x30]
call fcn.0055420c
push eax
push str.fromFilename
mov ecx, dword [ebp - 0x50]
add ecx, 8
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
call dword [eax + 0x28]
mov ecx, dword [ebp + 8]
call fcn.004d1049
push eax
push str.toFilename
mov ecx, dword [ebp - 0x50]
add ecx, 8
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
call dword [eax + 0x28]
push str.Failed_to_move_EXE_file
mov ecx, dword [ebp - 0x50]
add ecx, 8
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
call dword [eax + 0x10]
jmp 0x5071d5
mov byte [ebp - 0x11], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004ce1b7
mov ecx, dword [ebp - 0x50]
add ecx, 8
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
call dword [eax + 0x24]
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0xc