Function at 0x498a60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x498a68
push ecx
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x498cfe
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 0
je 0x498c80
mov eax, dword [ebp - 4]
call fcn.0049a590
test al, al
je 0x498abf
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, 3
call fcn.00498518
mov ebx, eax
jmp 0x498c80
mov eax, dword [ebp - 4]
call fcn.00411c10
test al, al
je 0x498afd
mov eax, dword [ebp - 4]
call fcn.004070ec
push eax
call sub.KERNEL32.DLL_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x498c80
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, 3
call fcn.00498518
mov ebx, eax
jmp 0x498c80
mov eax, dword [ebp - 4]
call fcn.00411c58
test al, al
je 0x498c7e
mov dl, 1
mov eax, dword [0x4294d0]
call fcn.00435e64
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x498c56
push dword fs:[edx]
mov dword fs:[edx], esp
push 1
mov cl, 1
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00499c90
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x498bf8
inc eax
mov dword [ebp - 0x14], eax
xor esi, esi
lea ecx, [ebp - 0x18]
mov edx, esi
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x1c]
call fcn.004070ec
push eax
call sub.KERNEL32.DLL_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
jne 0x498b9b
lea ecx, [ebp - 0x20]
mov edx, esi
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x20]
xor ecx, ecx
mov eax, 3
call fcn.00498518
mov ebx, eax
test bl, bl
jne 0x498bee
lea ecx, [ebp - 0x28]
mov edx, esi
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x498d18
call fcn.00407528
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea ecx, [ebp - 0x30]
mov edx, esi
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x498d18
call fcn.00407528
mov edx, dword [ebp - 0x2c]
mov al, 8
call fcn.00496f24
inc esi
dec dword [ebp - 0x14]
jne 0x498b50
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x44]
push 1
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00499c90
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x498c40
inc eax
mov dword [ebp - 0x14], eax
xor esi, esi
lea ecx, [ebp - 0x34]
mov edx, esi
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 8]
call fcn.00498a60
inc esi
dec dword [ebp - 0x14]
jne 0x498c22
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498c5d
mov eax, dword [ebp - 0xc]
call fcn.00404f48
ret
mov bl, 1
test bl, bl
jne 0x498cce
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 4]
mov edx, 0x498d18
call fcn.00407528
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 4]
mov edx, 0x498d18
call fcn.00407528
mov edx, dword [ebp - 0x3c]
mov al, 8
call fcn.00496f24
jmp 0x498cdb
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
dec edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 0x10]
jg 0x498cbb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498d05
lea eax, [ebp - 0x3c]
mov edx, 8
call fcn.00407058
lea eax, [ebp - 0x18]
call fcn.00407050
ret