Function at 0x4c9b28
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x32
push 0
push 0
dec ecx
jne 0x4c9b30
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4c9f2e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.004053e0
mov byte [ebp - 0x15], 0
xor eax, eax
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x144]
mov eax, dword [0x4d9dac]
mov eax, dword [eax]
call fcn.00473234
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 8]
call fcn.0040af94
xor edx, edx
mov eax, 2
call fcn.004909a0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x13d], 0x128
lea edx, [ebp - 0x13d]
mov eax, dword [ebp - 0x10]
call fcn.004909c0
test eax, eax
je 0x4c9db3
lea edx, [ebp - 0x148]
mov eax, dword [0x4d9ec8]
mov eax, dword [eax]
call fcn.00409b48
mov eax, dword [ebp - 0x148]
push eax
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.00405650
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
call fcn.00409b48
mov edx, dword [ebp - 0x14c]
pop eax
call fcn.00405808
jne 0x4c9c00
mov byte [ebp - 0x15], 1
inc dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.004053e0
mov eax, dword [0x4d9904]
mov eax, dword [eax]
mov edx, 0x4c9f44
call fcn.00405808
jne 0x4c9c35
lea eax, [ebp - 4]
mov edx, 0x4c9f50
call fcn.00405478
lea eax, [ebp - 4]
mov edx, 0x4ca03c
call fcn.004056ac
mov eax, dword [0x4d9ca4]
cmp dword [eax], 0
je 0x4c9c5b
push dword [ebp - 4]
push 0x4ca0ac
mov eax, dword [0x4d9ca4]
push dword [eax]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00405774
lea edx, [ebp - 0x15c]
mov eax, dword [0x4d9dac]
mov eax, dword [eax]
call fcn.00473234
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x158]
call fcn.0040af94
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x154]
call fcn.00409b48
mov eax, dword [ebp - 0x154]
push eax
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.00405650
mov eax, dword [ebp - 0x164]
lea edx, [ebp - 0x160]
call fcn.00409b48
mov edx, dword [ebp - 0x160]
pop eax
call fcn.00405808
je 0x4c9d9d
cmp dword [ebp - 4], 0
je 0x4c9d9d
lea edx, [ebp - 0x168]
mov eax, dword [0x4d9ec8]
mov eax, dword [eax]
call fcn.00409b48
mov eax, dword [ebp - 0x168]
push eax
lea eax, [ebp - 0x170]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.00405650
mov eax, dword [ebp - 0x170]
lea edx, [ebp - 0x16c]
call fcn.00409b48
mov edx, dword [ebp - 0x16c]
pop eax
call fcn.00405808
je 0x4c9d9d
lea eax, [ebp - 0x178]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.00405650
mov edx, dword [ebp - 0x178]
lea ecx, [ebp - 0x174]
mov eax, dword [ebp - 4]
call fcn.004ca0b0
cmp dword [ebp - 0x174], 0
je 0x4c9d9d
xor eax, eax
push ebp
push 0x4c9d93
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x17c]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.00405650
mov eax, dword [ebp - 0x17c]
call fcn.004ca2cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c9d9d
lea edx, [ebp - 0x13d]
mov eax, dword [ebp - 0x10]
call fcn.004909e0
test eax, eax
jne 0x4c9bab
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
lea edx, [ebp - 0x180]
mov eax, dword [ebp - 8]
call fcn.00409b48
mov eax, dword [ebp - 0x180]
push eax
lea edx, [ebp - 0x184]
mov eax, dword [0x4d9ec8]
mov eax, dword [eax]
call fcn.00409b48
mov edx, dword [ebp - 0x184]
pop eax
call fcn.00405808
jne 0x4c9e6e
cmp dword [ebp - 0x14], 2
jge 0x4c9e6e
mov eax, dword [0x4d9e28]
mov eax, dword [eax]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x188]
test eax, eax
je 0x4c9e13
sub eax, 4
mov eax, dword [eax]
cmp eax, 5
jle 0x4c9e62
mov ecx, dword [0x4d9e24]
mov ecx, dword [ecx]
mov edx, dword [0x4d9e28]
mov edx, dword [edx]
lea eax, [ebp - 0x18c]
call fcn.004056f8
mov ebx, dword [ebp - 0x18c]
mov dword [ebp - 0x188], ebx
mov eax, dword [ebp - 0x188]
call fcn.00405870
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [0x4d9bbc]
mov eax, dword [eax]
call fcn.004ce638
mov eax, dword [0x4d9dac]
mov eax, dword [eax]
call fcn.00472bcc
cmp byte [ebp - 0x15], 0
jne 0x4c9eeb
mov eax, dword [0x4d9e28]
mov eax, dword [eax]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x188]
test eax, eax
je 0x4c9e90
sub eax, 4
mov eax, dword [eax]
cmp eax, 5
jle 0x4c9edf
mov ecx, dword [0x4d9e24]
mov ecx, dword [ecx]
mov edx, dword [0x4d9e28]
mov edx, dword [edx]
lea eax, [ebp - 0x190]
call fcn.004056f8
mov ebx, dword [ebp - 0x190]
mov dword [ebp - 0x188], ebx
mov eax, dword [ebp - 0x188]
call fcn.00405870
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [0x4d9bbc]
mov eax, dword [eax]
call fcn.004ce638
mov eax, dword [0x4d9dac]
mov eax, dword [eax]
call fcn.00472bcc
mov eax, dword [ebp - 0xc]
call fcn.004053e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9f35
lea eax, [ebp - 0x190]
mov edx, 2
call fcn.00405404
lea eax, [ebp - 0x184]
mov edx, 0x11
call fcn.00405404
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405404
ret