Function at 0x4b8fbc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x34
push 0
push 0
dec ecx
jne 0x4b8fc4
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4b94c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0040545c
mov byte [ebp - 0x15], 0
xor eax, eax
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x144]
mov eax, dword [0x4c9564]
mov eax, dword [eax]
call fcn.004741ec
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 8]
call fcn.0040b018
xor edx, edx
mov eax, 2
call fcn.004931a0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x13d], 0x128
lea edx, [ebp - 0x13d]
mov eax, dword [ebp - 0x10]
call fcn.004931c0
test eax, eax
je 0x4b9247
lea edx, [ebp - 0x148]
mov eax, dword [0x4c967c]
mov eax, dword [eax]
call fcn.00409bcc
mov eax, dword [ebp - 0x148]
push eax
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.004056cc
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
call fcn.00409bcc
mov edx, dword [ebp - 0x14c]
pop eax
call fcn.00405884
jne 0x4b9094
mov byte [ebp - 0x15], 1
inc dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.0040545c
mov eax, dword [0x4c90cc]
mov eax, dword [eax]
mov edx, 0x4b94d8
call fcn.00405884
jne 0x4b90c9
lea eax, [ebp - 4]
mov edx, 0x4b94e4
call fcn.004054f4
lea eax, [ebp - 4]
mov edx, 0x4b95d0
call fcn.00405728
mov eax, dword [0x4c945c]
cmp dword [eax], 0
je 0x4b90ef
push dword [ebp - 4]
push 0x4b9640
mov eax, dword [0x4c945c]
push dword [eax]
lea eax, [ebp - 4]
mov edx, 3
call fcn.004057f0
lea edx, [ebp - 0x15c]
mov eax, dword [0x4c9564]
mov eax, dword [eax]
call fcn.004741ec
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x158]
call fcn.0040b018
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x154]
call fcn.00409bcc
mov eax, dword [ebp - 0x154]
push eax
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.004056cc
mov eax, dword [ebp - 0x164]
lea edx, [ebp - 0x160]
call fcn.00409bcc
mov edx, dword [ebp - 0x160]
pop eax
call fcn.00405884
je 0x4b9231
cmp dword [ebp - 4], 0
je 0x4b9231
lea edx, [ebp - 0x168]
mov eax, dword [0x4c967c]
mov eax, dword [eax]
call fcn.00409bcc
mov eax, dword [ebp - 0x168]
push eax
lea eax, [ebp - 0x170]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.004056cc
mov eax, dword [ebp - 0x170]
lea edx, [ebp - 0x16c]
call fcn.00409bcc
mov edx, dword [ebp - 0x16c]
pop eax
call fcn.00405884
je 0x4b9231
lea eax, [ebp - 0x178]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.004056cc
mov edx, dword [ebp - 0x178]
lea ecx, [ebp - 0x174]
mov eax, dword [ebp - 4]
call fcn.004b9644
cmp dword [ebp - 0x174], 0
je 0x4b9231
xor eax, eax
push ebp
push 0x4b9227
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x17c]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.004056cc
mov eax, dword [ebp - 0x17c]
call fcn.004b9860
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b9231
lea edx, [ebp - 0x13d]
mov eax, dword [ebp - 0x10]
call fcn.004931e0
test eax, eax
jne 0x4b903f
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
lea edx, [ebp - 0x180]
mov eax, dword [ebp - 8]
call fcn.00409bcc
mov eax, dword [ebp - 0x180]
push eax
lea edx, [ebp - 0x184]
mov eax, dword [0x4c967c]
mov eax, dword [eax]
call fcn.00409bcc
mov edx, dword [ebp - 0x184]
pop eax
call fcn.00405884
jne 0x4b9384
cmp dword [ebp - 0x14], 2
jge 0x4b9384
mov eax, dword [0x4c95e0]
mov eax, dword [eax]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x188]
test eax, eax
je 0x4b92af
sub eax, 4
mov eax, dword [eax]
cmp eax, 5
jle 0x4b934e
mov ecx, dword [0x4c95dc]
mov ecx, dword [ecx]
mov edx, dword [0x4c95e0]
mov edx, dword [edx]
lea eax, [ebp - 0x18c]
call fcn.00405774
mov ebx, dword [ebp - 0x18c]
mov dword [ebp - 0x188], ebx
mov eax, dword [ebp - 0x188]
call fcn.004058ec
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [0x4c95e0]
mov eax, dword [eax]
call fcn.004bdfb4
jmp 0x4b934e
mov ecx, dword [0x4c95dc]
mov ecx, dword [ecx]
mov edx, dword [0x4c95e0]
mov edx, dword [edx]
lea eax, [ebp - 0x190]
call fcn.00405774
mov esi, dword [ebp - 0x190]
mov dword [ebp - 0x188], esi
mov eax, dword [ebp - 0x188]
call fcn.004058ec
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [0x4c9564]
mov eax, dword [eax]
call fcn.004738b4
mov ecx, dword [0x4c95dc]
mov ecx, dword [ecx]
mov edx, dword [0x4c95e0]
mov edx, dword [edx]
lea eax, [ebp - 0x194]
call fcn.00405774
mov eax, dword [ebp - 0x194]
call fcn.0040aa84
test al, al
jne 0x4b9304
mov eax, dword [0x4c9564]
mov eax, dword [eax]
call fcn.00473b84
cmp byte [ebp - 0x15], 0
jne 0x4b947f
mov eax, dword [0x4c95e0]
mov eax, dword [eax]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x188]
test eax, eax
je 0x4b93aa
sub eax, 4
mov eax, dword [eax]
cmp eax, 5
jle 0x4b9449
mov ecx, dword [0x4c95dc]
mov ecx, dword [ecx]
mov edx, dword [0x4c95e0]
mov edx, dword [edx]
lea eax, [ebp - 0x198]
call fcn.00405774
mov ebx, dword [ebp - 0x198]
mov dword [ebp - 0x188], ebx
mov eax, dword [ebp - 0x188]
call fcn.004058ec
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [0x4c95e0]
mov eax, dword [eax]
call fcn.004bdfb4
jmp 0x4b9449
mov ecx, dword [0x4c95dc]
mov ecx, dword [ecx]
mov edx, dword [0x4c95e0]
mov edx, dword [edx]
lea eax, [ebp - 0x19c]
call fcn.00405774
mov esi, dword [ebp - 0x19c]
mov dword [ebp - 0x188], esi
mov eax, dword [ebp - 0x188]
call fcn.004058ec
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [0x4c9564]
mov eax, dword [eax]
call fcn.004738b4
mov ecx, dword [0x4c95dc]
mov ecx, dword [ecx]
mov edx, dword [0x4c95e0]
mov edx, dword [edx]
lea eax, [ebp - 0x1a0]
call fcn.00405774
mov eax, dword [ebp - 0x1a0]
call fcn.0040aa84
test al, al
jne 0x4b93ff
mov eax, dword [0x4c9564]
mov eax, dword [eax]
call fcn.00473b84
mov eax, dword [ebp - 0xc]
call fcn.0040545c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b94c9
lea eax, [ebp - 0x1a0]
mov edx, 6
call fcn.00405480
lea eax, [ebp - 0x184]
mov edx, 0x11
call fcn.00405480
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405480
ret