Function at 0x4cf228
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4cf230
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004054dc
xor eax, eax
push ebp
push 0x4cf4ea
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004050c0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4cb5fc]
call fcn.004cc144
mov ebx, eax
mov eax, ebx
call fcn.004cc3e8
test al, al
jne 0x4cf478
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004ccacc
mov eax, ebx
call fcn.004cc3f0
test eax, eax
jle 0x4cf478
mov edx, 0x4cf500
mov eax, ebx
call fcn.004ccf54
mov edx, 0x4cf514
mov eax, ebx
call fcn.004cc348
mov edi, eax
test edi, edi
jne 0x4cf2fd
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.0040ad8c
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x4cf528
call fcn.00405338
mov eax, dword [ebp - 0x18]
push eax
push 1
push 0x51
mov eax, dword [0x4e2b58]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov ecx, 0x4cf538
mov edx, 0x4cf56c
call fcn.004cd5e8
mov eax, ebx
call fcn.004041a0
jmp 0x4cf478
push 0
push 0
mov eax, edi
call fcn.0041e64c
mov dl, 1
mov eax, dword [0x419acc]
call fcn.00404170
mov esi, eax
mov edx, edi
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x6c]
lea eax, [ebp - 0x24]
call fcn.0049e810
lea eax, [ebp - 0x24]
mov edx, 0x4cf590
call fcn.00405a2c
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
call fcn.004052b0
mov edx, dword [ebp - 0x20]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, esi
call fcn.004041a0
lea eax, [ebp - 0x28]
call fcn.0049e810
lea eax, [ebp - 0x28]
mov edx, 0x4cf590
call fcn.00405a2c
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, dword [0x4a00b0]
call fcn.004a0ba4
mov esi, eax
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x4cf5bc
mov edx, 0x4cf5cc
mov eax, esi
mov edi, dword [eax]
call dword [edi]
push 0x4cf5e0
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x4cf5e8
mov edx, 0x4cf5cc
mov eax, esi
mov edi, dword [eax]
call dword [edi]
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4cf5f4
mov edx, 0x4cf5cc
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov eax, esi
call fcn.004041a0
lea eax, [ebp - 0x30]
call fcn.0049e810
lea eax, [ebp - 0x30]
mov edx, 0x4cf590
call fcn.00405a2c
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
call fcn.004052b0
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x34], esi
mov eax, dword [ebp - 0x34]
call fcn.004054ec
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov edx, 0x4cf60c
call fcn.00405a8c
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
call fcn.004052b0
mov eax, dword [ebp - 0x38]
push eax
push 6
push 0x51
push 0x4cf630
push dword [ebp - 0x14]
push 0x4cf658
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00405afc
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
call fcn.004052b0
mov ecx, dword [ebp - 0x40]
mov eax, dword [0x4e2b58]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov edx, 0x4cf668
call fcn.004cd5e8
cmp eax, 7
jne 0x4cf469
mov eax, ebx
call fcn.004041a0
jmp 0x4cf478
mov eax, ebx
call fcn.004041a0
mov eax, dword [ebp - 8]
call fcn.004cec78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cf4f1
lea eax, [ebp - 0x44]
call fcn.00405834
lea eax, [ebp - 0x40]
call fcn.00405028
lea eax, [ebp - 0x3c]
call fcn.00405834
lea eax, [ebp - 0x38]
call fcn.00405028
lea eax, [ebp - 0x30]
call fcn.00405834
lea eax, [ebp - 0x2c]
call fcn.00405028
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0040584c
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.0040504c
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0040584c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040504c
ret