Function at 0x4fd858
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4fd861
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040569c
mov eax, dword [ebp - 0xc]
call fcn.0040569c
xor eax, eax
push ebp
push 0x4fdb0a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.0040a714
mov eax, dword [ebp - 0x30]
call fcn.0040a2f0
xor eax, eax
push ebp
push 0x4fda97
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 8]
call fcn.004b4008
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0xc]
call fcn.0040a714
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.004b4058
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.004b3e68
dec eax
test eax, eax
jl 0x4fd94d
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x58]
add eax, 0x14
push eax
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0040a800
mov edx, dword [ebp - 0x38]
pop eax
call fcn.0040523c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x58]
push eax
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0040a800
mov edx, dword [ebp - 0x3c]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
inc dword [ebp - 0x14]
dec dword [ebp - 0x24]
jne 0x4fd8fc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, 0x4fdb24
call fcn.004b9bcc
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + 0x40]
call fcn.00405280
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4fd985
mov eax, dword [ebp - 0x28]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jle 0x4fd9bc
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4fd9a2
mov eax, dword [ebp - 0x2c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp byte [eax + edx - 1], 0x5c
je 0x4fd9bc
lea eax, [ebp - 0x18]
mov edx, 0x4fdb30
call fcn.004054b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.004b3e68
dec eax
test eax, eax
jl 0x4fda67
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0xc]
call fcn.0040a800
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.004054f8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x58]
lea edx, [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x18]
call fcn.004054f8
mov eax, dword [ebp - 0x20]
call fcn.0040a2a8
test al, al
je 0x4fda49
mov eax, dword [ebp - 0x1c]
call fcn.0040a2a8
test al, al
jne 0x4fda49
push 3
mov eax, dword [ebp - 0x1c]
call fcn.004056ac
push eax
mov eax, dword [ebp - 0x20]
call fcn.004056ac
push eax
call sub.kernel32.dll_MoveFileExA
mov eax, dword [ebp - 8]
call fcn.0047b848
mov edx, eax
mov eax, dword [ebp - 0x1c]
call fcn.0047b7a0
inc dword [ebp - 0x14]
dec dword [ebp - 0x24]
jne 0x4fd9db
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.004b3c5c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x50], 0
je 0x4fda89
mov eax, dword [ebp - 8]
call fcn.004056ac
push eax
call sub.kernel32.dll_DeleteFileA
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fdad5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fdb11
lea eax, [ebp - 0x44]
mov edx, 6
call fcn.0040520c
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.0040520c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040520c
ret