Function at 0x4cc24c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x31
push 0
push 0
dec ecx
jne 0x4cc254
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4cc609
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.004052dc
xor eax, eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x15], 0
xor edx, edx
mov eax, 2
call fcn.004729cc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x13d], 0x128
lea edx, [ebp - 0x13d]
mov eax, dword [ebp - 0x10]
call fcn.004729ec
test eax, eax
je 0x4cc4ea
lea edx, [ebp - 0x144]
mov eax, dword [0x4d8e50]
mov eax, dword [eax]
call fcn.0040994c
mov eax, dword [ebp - 0x144]
push eax
lea eax, [ebp - 0x14c]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.0040554c
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x148]
call fcn.0040994c
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00405704
jne 0x4cc301
mov byte [ebp - 0x15], 1
lea edx, [ebp - 0x158]
mov eax, dword [0x4d90d4]
mov eax, dword [eax]
call fcn.004702c0
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x154]
call fcn.0040a838
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x150]
call fcn.0040994c
mov eax, dword [ebp - 0x150]
push eax
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.0040554c
mov eax, dword [ebp - 0x160]
lea edx, [ebp - 0x15c]
call fcn.0040994c
mov edx, dword [ebp - 0x15c]
pop eax
call fcn.00405704
jne 0x4cc374
inc dword [ebp - 0x14]
lea eax, [ebp - 8]
call fcn.004052dc
lea eax, [ebp - 4]
call fcn.004052dc
mov eax, dword [0x4d8d68]
mov eax, dword [eax]
mov edx, 0x4cc620
call fcn.00405704
jne 0x4cc3b1
lea eax, [ebp - 4]
mov edx, 0x4cc62c
call fcn.00405374
lea eax, [ebp - 4]
mov edx, 0x4cc714
call fcn.004055a8
lea edx, [ebp - 0x164]
mov eax, dword [0x4d8fc4]
mov eax, dword [eax]
call fcn.00409c64
cmp dword [ebp - 0x164], 0
je 0x4cc3e8
push dword [ebp - 4]
push 0x4cc798
mov eax, dword [0x4d8fc4]
push dword [eax]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00405670
lea edx, [ebp - 0x170]
mov eax, dword [0x4d90d4]
mov eax, dword [eax]
call fcn.004702c0
mov eax, dword [ebp - 0x170]
lea edx, [ebp - 0x16c]
call fcn.0040a838
mov eax, dword [ebp - 0x16c]
lea edx, [ebp - 0x168]
call fcn.0040994c
mov eax, dword [ebp - 0x168]
push eax
lea eax, [ebp - 0x178]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.0040554c
mov eax, dword [ebp - 0x178]
lea edx, [ebp - 0x174]
call fcn.0040994c
mov edx, dword [ebp - 0x174]
pop eax
call fcn.00405704
je 0x4cc4d4
cmp dword [ebp - 4], 0
je 0x4cc4d4
lea eax, [ebp - 0x180]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.0040554c
mov edx, dword [ebp - 0x180]
lea ecx, [ebp - 0x17c]
mov eax, dword [ebp - 4]
call fcn.004cc7ac
cmp dword [ebp - 0x17c], 0
je 0x4cc4d4
xor eax, eax
push ebp
push 0x4cc4ca
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x184]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.0040554c
mov eax, dword [ebp - 0x184]
call fcn.004cc9c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cc4d4
lea edx, [ebp - 0x13d]
mov eax, dword [ebp - 0x10]
call fcn.00472a0c
test eax, eax
jne 0x4cc2af
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp - 0x14], 2
je 0x4cc5c4
mov eax, 0x4cc7a4
call fcn.004cc9c8
mov eax, dword [0x4d90d4]
mov eax, dword [eax]
call fcn.0046f988
mov eax, dword [0x4d92dc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x4d90d4]
mov eax, dword [eax]
call fcn.0046f988
mov ebx, dword [0x4d923c]
mov ebx, dword [ebx]
mov dword [ebp - 0x188], ebx
mov eax, dword [ebp - 0x188]
call fcn.0040576c
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [0x4d90d4]
mov eax, dword [eax]
call fcn.0046f988
jmp 0x4cc5a8
mov eax, 0x4cc7a4
call fcn.004cc9c8
mov edi, dword [0x4d92dc]
mov edi, dword [edi]
push edi
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x4d90d4]
mov eax, dword [eax]
call fcn.0046f988
mov esi, dword [0x4d923c]
mov esi, dword [esi]
mov dword [ebp - 0x188], esi
mov eax, dword [ebp - 0x188]
call fcn.0040576c
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [0x4d923c]
mov eax, dword [eax]
call fcn.0040a5c0
test al, al
jne 0x4cc55f
mov eax, dword [0x4d90d4]
mov eax, dword [eax]
call fcn.0046fc58
cmp byte [ebp - 0x15], 0
jne 0x4cc5d6
mov eax, dword [0x4d92e0]
mov eax, dword [eax]
call fcn.0046bd54
mov eax, dword [ebp - 0xc]
call fcn.004052dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc610
lea eax, [ebp - 0x184]
mov edx, 0x11
call fcn.00405300
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405300
ret