Function at 0x4b8934
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x36
push 0
push 0
dec ecx
jne 0x4b893c
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4b8e48
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.004053e8
mov byte [ebp - 0x15], 0
xor edx, edx
mov eax, 2
call fcn.0049208c
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x13d], 0x128
lea edx, [ebp - 0x13d]
mov eax, dword [ebp - 0x14]
call fcn.004920ac
test eax, eax
je 0x4b8d84
lea edx, [ebp - 0x144]
mov eax, dword [0x4c74d0]
mov eax, dword [eax]
call fcn.00409944
mov eax, dword [ebp - 0x144]
push eax
lea eax, [ebp - 0x14c]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.00405658
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x148]
call fcn.00409944
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00405810
jne 0x4b89e4
mov byte [ebp - 0x15], 1
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.00405658
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x150]
call fcn.00409944
mov eax, dword [ebp - 0x150]
mov edx, 0x4b8e60
call fcn.00405810
jne 0x4b8a21
mov byte [ebp - 0x15], 1
lea eax, [ebp - 8]
call fcn.004053e8
lea eax, [ebp - 0xc]
call fcn.004053e8
mov eax, dword [0x4c6f68]
mov eax, dword [eax]
mov edx, 0x4b8e74
call fcn.00405810
jne 0x4b8b64
lea eax, [ebp - 0x15c]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.00405658
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x158]
call fcn.00409944
mov edx, dword [ebp - 0x158]
mov eax, 0x4b8e80
call fcn.004059c4
test eax, eax
jg 0x4b8b4a
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.00405658
mov eax, dword [ebp - 0x164]
lea edx, [ebp - 0x160]
call fcn.00409944
mov edx, dword [ebp - 0x160]
mov eax, 0x4b8e8c
call fcn.004059c4
test eax, eax
jg 0x4b8b4a
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.00405658
mov eax, dword [ebp - 0x16c]
lea edx, [ebp - 0x168]
call fcn.00409944
mov edx, dword [ebp - 0x168]
mov eax, 0x4b8e98
call fcn.004059c4
test eax, eax
jg 0x4b8b4a
lea eax, [ebp - 0x174]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.00405658
mov eax, dword [ebp - 0x174]
lea edx, [ebp - 0x170]
call fcn.00409944
mov edx, dword [ebp - 0x170]
mov eax, 0x4b8ea8
call fcn.004059c4
test eax, eax
jg 0x4b8b4a
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x135]
call fcn.004b9118
lea eax, [ebp - 0xc]
mov edx, 0x4b8eb4
call fcn.00405480
lea eax, [ebp - 0xc]
mov edx, 0x4b8f48
call fcn.004056b4
lea eax, [ebp - 4]
call fcn.004053e8
mov eax, dword [0x4c6f20]
mov eax, dword [eax]
mov edx, 0x4b8e74
call fcn.00405810
jne 0x4b8b99
lea eax, [ebp - 4]
mov edx, 0x4b8fb8
call fcn.00405480
lea eax, [ebp - 4]
mov edx, 0x4b90a4
call fcn.004056b4
mov eax, dword [0x4c72b4]
cmp dword [eax], 0
je 0x4b8bbf
push dword [ebp - 4]
push 0x4b9114
mov eax, dword [0x4c72b4]
push dword [eax]
lea eax, [ebp - 4]
mov edx, 3
call fcn.0040577c
lea edx, [ebp - 0x180]
mov eax, dword [0x4c73bc]
mov eax, dword [eax]
call fcn.004730d8
mov eax, dword [ebp - 0x180]
lea edx, [ebp - 0x17c]
call fcn.0040ad40
mov eax, dword [ebp - 0x17c]
lea edx, [ebp - 0x178]
call fcn.00409944
mov eax, dword [ebp - 0x178]
push eax
lea eax, [ebp - 0x188]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.00405658
mov eax, dword [ebp - 0x188]
lea edx, [ebp - 0x184]
call fcn.00409944
mov edx, dword [ebp - 0x184]
pop eax
call fcn.00405810
je 0x4b8d6e
cmp dword [ebp - 4], 0
je 0x4b8d6e
lea edx, [ebp - 0x18c]
mov eax, dword [0x4c74d0]
mov eax, dword [eax]
call fcn.00409944
mov eax, dword [ebp - 0x18c]
push eax
lea eax, [ebp - 0x194]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.00405658
mov eax, dword [ebp - 0x194]
lea edx, [ebp - 0x190]
call fcn.00409944
mov edx, dword [ebp - 0x190]
pop eax
call fcn.00405810
je 0x4b8d6e
lea eax, [ebp - 0x19c]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.00405658
mov edx, dword [ebp - 0x19c]
lea ecx, [ebp - 0x198]
mov eax, dword [ebp - 4]
call fcn.004b91f0
cmp dword [ebp - 0x198], 0
je 0x4b8d05
xor eax, eax
push ebp
push 0x4b8cfb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1a0]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.00405658
mov eax, dword [ebp - 0x1a0]
call fcn.004b940c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b8d05
lea ecx, [ebp - 0x1a4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004b91f0
cmp dword [ebp - 0x1a4], 0
je 0x4b8d6e
cmp dword [ebp - 0xc], 0
je 0x4b8d6e
cmp dword [ebp - 8], 0
je 0x4b8d6e
xor eax, eax
push ebp
push 0x4b8d64
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1a8]
lea edx, [ebp - 0x119]
mov ecx, 0x104
call fcn.00405658
mov eax, dword [ebp - 0x1a8]
call fcn.004b940c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b8d6e
lea edx, [ebp - 0x13d]
mov eax, dword [ebp - 0x14]
call fcn.004920cc
test eax, eax
jne 0x4b8992
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp byte [ebp - 0x15], 0
jne 0x4b8e0a
mov eax, dword [0x4c7434]
mov eax, dword [eax]
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp - 0x1ac]
test eax, eax
je 0x4b8daf
sub eax, 4
mov eax, dword [eax]
cmp eax, 5
jle 0x4b8dc0
mov eax, dword [0x4c7434]
mov eax, dword [eax]
call fcn.004bc060
mov ecx, dword [0x4c74d0]
mov ecx, dword [ecx]
mov edx, dword [0x4c7434]
mov edx, dword [edx]
lea eax, [ebp - 0x1b0]
call fcn.00405700
mov ebx, dword [ebp - 0x1b0]
mov dword [ebp - 0x1ac], ebx
mov eax, dword [ebp - 0x1ac]
call fcn.00405878
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [0x4c73bc]
mov eax, dword [eax]
call fcn.00472a70
mov eax, dword [ebp - 0x10]
call fcn.004053e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8e4f
lea eax, [ebp - 0x1b0]
call fcn.004053e8
lea eax, [ebp - 0x1a8]
mov edx, 0x1a
call fcn.0040540c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040540c
ret