Function at 0x4b94f8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x36
push 0
push 0
dec ecx
jne 0x4b9500
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4b9acb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00405408
mov byte [ebp - 0x19], 0
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x150]
mov eax, dword [0x4ddf7c]
mov eax, dword [eax]
call fcn.004741cc
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 8]
call fcn.0040afbc
xor edx, edx
mov eax, 2
call fcn.00493180
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x149], 0x128
lea edx, [ebp - 0x149]
mov eax, dword [ebp - 0x10]
call fcn.004931a0
test eax, eax
je 0x4b97ff
lea edx, [ebp - 0x154]
mov eax, dword [0x4de0a4]
mov eax, dword [eax]
call fcn.00409b70
mov eax, dword [ebp - 0x154]
push eax
lea eax, [ebp - 0x15c]
lea edx, [ebp - 0x125]
mov ecx, 0x104
call fcn.00405678
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x158]
call fcn.00409b70
mov edx, dword [ebp - 0x158]
pop eax
call fcn.00405830
jne 0x4b95d5
mov byte [ebp - 0x19], 1
inc dword [ebp - 0x14]
lea edx, [ebp - 0x168]
mov eax, dword [0x4ddf7c]
mov eax, dword [eax]
call fcn.004741cc
mov eax, dword [ebp - 0x168]
lea edx, [ebp - 0x164]
call fcn.0040afbc
mov eax, dword [ebp - 0x164]
lea edx, [ebp - 0x160]
call fcn.00409b70
mov eax, dword [ebp - 0x160]
push eax
lea eax, [ebp - 0x170]
lea edx, [ebp - 0x125]
mov ecx, 0x104
call fcn.00405678
mov eax, dword [ebp - 0x170]
lea edx, [ebp - 0x16c]
call fcn.00409b70
mov edx, dword [ebp - 0x16c]
pop eax
call fcn.00405830
jne 0x4b9648
inc dword [ebp - 0x18]
lea eax, [ebp - 0x178]
lea edx, [ebp - 0x125]
mov ecx, 0x104
call fcn.00405678
mov eax, dword [ebp - 0x178]
lea edx, [ebp - 0x174]
call fcn.00409b70
mov eax, dword [ebp - 0x174]
mov edx, 0x4b9ae4
call fcn.00405830
jne 0x4b9685
mov byte [ebp - 0x19], 1
lea eax, [ebp - 4]
call fcn.00405408
mov eax, dword [0x4dde5c]
cmp dword [eax], 0
je 0x4b96a7
lea eax, [ebp - 4]
mov edx, dword [0x4dde5c]
mov edx, dword [edx]
call fcn.004054a0
lea edx, [ebp - 0x184]
mov eax, dword [0x4ddf7c]
mov eax, dword [eax]
call fcn.004741cc
mov eax, dword [ebp - 0x184]
lea edx, [ebp - 0x180]
call fcn.0040afbc
mov eax, dword [ebp - 0x180]
lea edx, [ebp - 0x17c]
call fcn.00409b70
mov eax, dword [ebp - 0x17c]
push eax
lea eax, [ebp - 0x18c]
lea edx, [ebp - 0x125]
mov ecx, 0x104
call fcn.00405678
mov eax, dword [ebp - 0x18c]
lea edx, [ebp - 0x188]
call fcn.00409b70
mov edx, dword [ebp - 0x188]
pop eax
call fcn.00405830
je 0x4b97e9
cmp dword [ebp - 4], 0
je 0x4b97e9
lea edx, [ebp - 0x190]
mov eax, dword [0x4de0a4]
mov eax, dword [eax]
call fcn.00409b70
mov eax, dword [ebp - 0x190]
push eax
lea eax, [ebp - 0x198]
lea edx, [ebp - 0x125]
mov ecx, 0x104
call fcn.00405678
mov eax, dword [ebp - 0x198]
lea edx, [ebp - 0x194]
call fcn.00409b70
mov edx, dword [ebp - 0x194]
pop eax
call fcn.00405830
je 0x4b97e9
lea eax, [ebp - 0x1a0]
lea edx, [ebp - 0x125]
mov ecx, 0x104
call fcn.00405678
mov edx, dword [ebp - 0x1a0]
lea ecx, [ebp - 0x19c]
mov eax, dword [ebp - 4]
call fcn.004b9af0
cmp dword [ebp - 0x19c], 0
je 0x4b97e9
xor eax, eax
push ebp
push 0x4b97df
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1a4]
lea edx, [ebp - 0x125]
mov ecx, 0x104
call fcn.00405678
mov eax, dword [ebp - 0x1a4]
call fcn.004b9d0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b97e9
lea edx, [ebp - 0x149]
mov eax, dword [ebp - 0x10]
call fcn.004931c0
test eax, eax
jne 0x4b9580
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp - 0x18], 2
je 0x4b990f
mov eax, dword [0x4de0a4]
mov eax, dword [eax]
call fcn.004b9d0c
mov eax, dword [0x4de1a0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x4ddf7c]
mov eax, dword [eax]
call fcn.00473894
mov ebx, dword [0x4ddb00]
mov ebx, dword [ebx]
mov dword [ebp - 0x1a8], ebx
mov eax, dword [ebp - 0x1a8]
call fcn.00405898
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4b98a9
mov eax, dword [0x4de0a4]
mov eax, dword [eax]
call fcn.004b9d0c
mov edi, dword [0x4de1a0]
mov edi, dword [edi]
push edi
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x4ddf7c]
mov eax, dword [eax]
call fcn.00473894
mov esi, dword [0x4ddb00]
mov esi, dword [esi]
mov dword [ebp - 0x1a8], esi
mov eax, dword [ebp - 0x1a8]
call fcn.00405898
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [0x4ddb00]
mov eax, dword [eax]
call fcn.0040aa28
test al, al
jne 0x4b985e
mov ebx, dword [0x4ddb8c]
mov ebx, dword [ebx]
mov dword [ebp - 0x1a8], ebx
mov eax, dword [ebp - 0x1a8]
call fcn.00405898
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, dword [0x4ddbcc]
mov ebx, dword [ebx]
mov dword [ebp - 0x1a8], ebx
mov eax, dword [ebp - 0x1a8]
call fcn.00405898
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [0x4ddf7c]
mov eax, dword [eax]
call fcn.00473b64
lea edx, [ebp - 0x1ac]
mov eax, dword [ebp - 8]
call fcn.00409b70
mov eax, dword [ebp - 0x1ac]
push eax
lea edx, [ebp - 0x1b0]
mov eax, dword [0x4de0a4]
mov eax, dword [eax]
call fcn.00409b70
mov edx, dword [ebp - 0x1b0]
pop eax
call fcn.00405830
jne 0x4b99ea
cmp dword [ebp - 0x14], 2
jge 0x4b99ea
mov eax, dword [0x4ddffc]
mov eax, dword [eax]
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp - 0x1a8]
test eax, eax
je 0x4b996e
sub eax, 4
mov eax, dword [eax]
cmp eax, 5
jle 0x4b9994
mov eax, dword [0x4ddb00]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
call fcn.00405898
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x21], al
mov ebx, dword [0x4ddb8c]
mov ebx, dword [ebx]
mov dword [ebp - 0x1a8], ebx
mov eax, dword [ebp - 0x1a8]
call fcn.00405898
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, dword [0x4ddbcc]
mov ebx, dword [ebx]
mov dword [ebp - 0x1a8], ebx
mov eax, dword [ebp - 0x1a8]
call fcn.00405898
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [0x4ddf7c]
mov eax, dword [eax]
call fcn.00473b64
cmp byte [ebp - 0x19], 0
jne 0x4b9a88
mov eax, dword [0x4de1a0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x4ddf7c]
mov eax, dword [eax]
call fcn.00473894
mov ebx, dword [0x4ddb00]
mov ebx, dword [ebx]
mov dword [ebp - 0x1a8], ebx
mov eax, dword [ebp - 0x1a8]
call fcn.00405898
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, dword [0x4ddb8c]
mov ebx, dword [ebx]
mov dword [ebp - 0x1a8], ebx
mov eax, dword [ebp - 0x1a8]
call fcn.00405898
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, dword [0x4ddbcc]
mov ebx, dword [ebx]
mov dword [ebp - 0x1a8], ebx
mov eax, dword [ebp - 0x1a8]
call fcn.00405898
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [0x4de1a4]
mov eax, dword [eax]
call fcn.0046fc60
mov eax, dword [ebp - 0xc]
call fcn.00405408
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9ad2
lea eax, [ebp - 0x1b0]
mov edx, 2
call fcn.0040542c
lea eax, [ebp - 0x1a4]
mov edx, 0x16
call fcn.0040542c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040542c
ret