Function at 0x4e0730
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4e0739
push ecx
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 - 4]
call fcn.0040569c
mov eax, dword [ebp - 8]
call fcn.0040569c
mov eax, dword [ebp - 0xc]
call fcn.0040569c
xor eax, eax
push ebp
push 0x4e09a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, dword [ebp - 4]
call fcn.0040a730
test al, al
je 0x4e07e5
lea eax, [ebp - 0x14]
mov ecx, 0x4e09b8
mov edx, dword [ebp - 4]
call fcn.00405534
mov eax, dword [ebp - 0x14]
call fcn.0040a730
test al, al
je 0x4e07be
lea eax, [ebp - 0x18]
mov ecx, 0x4e09b8
mov edx, dword [ebp - 4]
call fcn.00405534
mov eax, dword [ebp - 0x18]
call fcn.004056ac
push eax
call sub.kernel32.dll_DeleteFileA_1
lea eax, [ebp - 0x1c]
mov ecx, 0x4e09b8
mov edx, dword [ebp - 4]
call fcn.00405534
mov eax, dword [ebp - 0x1c]
call fcn.004056ac
push eax
mov eax, dword [ebp - 4]
call fcn.004056ac
push eax
call sub.kernel32.dll_MoveFileA_1
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4a75b8]
call fcn.004a7e3c
mov dword [ebp - 0x10], eax
mov dl, 1
mov eax, dword [ebp - 0x10]
call fcn.004a8260
mov dl, 1
mov eax, dword [ebp - 0x10]
call fcn.004a8284
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0049df24
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x20]
mov ecx, 0x4e09c8
mov edx, dword [ebp - 8]
call fcn.00405534
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp dword [ebp - 0xc], 0
je 0x4e0852
mov eax, dword [ebp - 0x10]
add eax, 0x44
mov edx, dword [ebp - 0xc]
call fcn.00405270
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x30]
xor eax, eax
push ebp
push 0x4e0921
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.004a82fc
test eax, eax
jne 0x4e08c6
lea eax, [ebp - 0x24]
mov ecx, 0x4e09b8
mov edx, dword [ebp - 4]
call fcn.00405534
mov eax, dword [ebp - 0x24]
call fcn.0040a730
test al, al
je 0x4e08c2
mov eax, dword [ebp - 4]
call fcn.004056ac
mov ebx, eax
push ebx
call sub.kernel32.dll_DeleteFileA_1
push ebx
lea eax, [ebp - 0x28]
mov ecx, 0x4e09b8
mov edx, dword [ebp - 4]
call fcn.00405534
mov eax, dword [ebp - 0x28]
call fcn.004056ac
push eax
call sub.kernel32.dll_MoveFileA_1
xor ebx, ebx
jmp 0x4e0917
mov eax, dword [ebp - 4]
call fcn.0040a730
test al, al
jne 0x4e0917
lea eax, [ebp - 0x2c]
mov ecx, 0x4e09b8
mov edx, dword [ebp - 4]
call fcn.00405534
mov eax, dword [ebp - 0x2c]
call fcn.0040a730
test al, al
je 0x4e0915
mov eax, dword [ebp - 4]
call fcn.004056ac
push eax
lea eax, [ebp - 0x30]
mov ecx, 0x4e09b8
mov edx, dword [ebp - 4]
call fcn.00405534
mov eax, dword [ebp - 0x30]
call fcn.004056ac
push eax
call sub.kernel32.dll_MoveFileA_1
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e0970
mov eax, dword [ebp - 0x10]
call fcn.004042fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e09a7
lea eax, [ebp - 0x38]
mov edx, 0xa
call fcn.00405240
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405240
ret