Function at 0x498010
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x87
push 0
push 0
dec ecx
jne 0x498019
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x498561
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
call fcn.0040406c
lea eax, [ebp - 0x24]
mov edx, dword [ebp + 8]
call fcn.0040406c
lea ecx, [ebp - 0xa0]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x11c]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
call fcn.0048e710
mov eax, dword [ebp - 0x7a]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x110]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x11c]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
call fcn.0048e710
mov eax, dword [ebp - 0xda]
push eax
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
mov edx, dword [ebp - 0x28]
mov eax, 0x49857c
call fcn.004045d8
test eax, eax
jg 0x4980c4
mov edx, dword [ebp - 0x28]
mov eax, 0x498588
call fcn.004045d8
test eax, eax
jle 0x4980cc
lea eax, [ebp - 0x24]
call fcn.00403fd4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x58]
cmp byte [eax + 8], 0
jne 0x4980f9
lea edx, [ebp - 0x114]
mov eax, dword [ebp - 0x28]
call fcn.00408e54
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 0x28]
call fcn.0040406c
jmp 0x4981c7
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x58]
cmp byte [eax + 8], 0
je 0x4981c7
xor eax, eax
push ebp
push 0x498165
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x28]
call fcn.00408d8c
mov ecx, dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
mov edx, dword [ebp - 0x24]
call fcn.004042e0
mov eax, dword [ebp - 0x118]
call fcn.0048ce10
test al, al
jne 0x49815b
xor ecx, ecx
mov dl, 1
mov eax, dword [0x407444]
call fcn.0040c340
call fcn.00403a10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4981c7
lea ecx, [ebp - 0x19c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x11c]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
call fcn.0048e710
test byte [ebp - 0x176], 0x10
jne 0x4984fa
lea ecx, [ebp - 0x20c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x11c]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
call fcn.0048e710
mov eax, dword [ebp - 0x1de]
call fcn.00404294
mov ebx, eax
lea ecx, [ebp - 0x27c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x11c]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
call fcn.0048e710
mov eax, dword [ebp - 0x24e]
cmp byte [eax + ebx - 1], 0x2f
je 0x4984fa
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.004042e0
mov eax, dword [ebp - 0x2c]
call fcn.00408b20
test al, al
je 0x498344
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x58]
cmp byte [eax + 9], 0
jne 0x49827f
mov eax, dword [ebp - 0x2c]
call fcn.00408c94
mov dword [ebp - 0x18], eax
test byte [ebp - 0x18], 1
jne 0x4984fa
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x58]
mov al, byte [eax + 7]
sub al, 1
jb 0x49829e
dec al
je 0x4984fa
dec eax
sub al, 2
jb 0x4982bf
jmp 0x498344
lea eax, [ebp - 0x2d]
push eax
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x40]
cmp byte [ebp - 0x2d], 0
je 0x4984fa
jmp 0x498344
mov eax, dword [ebp - 0x2c]
call fcn.00408ab8
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x2ec]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x11c]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
call fcn.0048e710
mov ax, word [ebp - 0x2de]
mov word [ebp - 2], ax
lea ecx, [ebp - 0x35c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x11c]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
call fcn.0048e710
mov ax, word [ebp - 0x350]
mov word [ebp - 4], ax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 4]
jl 0x49832c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x58]
cmp byte [eax + 7], 3
je 0x4984fa
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 4]
jg 0x498344
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x58]
cmp byte [eax + 7], 4
je 0x4984fa
xor eax, eax
push ebp
push 0x498397
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x2c]
call fcn.00408b20
test al, al
je 0x498376
xor edx, edx
mov eax, dword [ebp - 0x2c]
call fcn.00408ca8
mov eax, dword [ebp - 0x2c]
call fcn.00404494
push eax
call sub.kernel32.dll_DeleteFileA
push 0xffff
mov ecx, dword [ebp - 0x2c]
mov dl, 1
mov eax, dword [0x415fd0]
call fcn.00419f0c
mov dword [ebp - 0x20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4983d4
xor eax, eax
push ebp
push 0x4984f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x2e], 0
xor eax, eax
push ebp
push 0x49840c
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00496b28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49841f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4984fa
lea ecx, [ebp - 0x3cc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x11c]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
call fcn.0048e710
mov ax, word [ebp - 0x3be]
mov word [ebp - 2], ax
lea ecx, [ebp - 0x43c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x11c]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
call fcn.0048e710
mov ax, word [ebp - 0x430]
mov word [ebp - 4], ax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 4]
call fcn.00408c3c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x58]
cmp byte [eax + 0x10], 0
je 0x4984a8
mov eax, dword [ebp - 0x2c]
call fcn.0048cf00
test al, al
je 0x4984a8
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_FlushFileBuffers
mov eax, dword [ebp - 0x20]
call fcn.00403284
mov eax, dword [ebp - 8]
cmp byte [eax + 0x76], 0
jne 0x4984c8
mov eax, dword [ebp - 8]
cmp byte [eax + 0x74], 0
jne 0x4984c8
cmp byte [ebp - 0x2e], 0
je 0x4984d8
mov eax, dword [ebp - 0x2c]
call fcn.00404494
push eax
call sub.kernel32.dll_DeleteFileA
jmp 0x4984ef
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x58]
cmp byte [eax + 0xa], 0
je 0x4984ef
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
call fcn.00408ca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498568
lea eax, [ebp - 0x43c]
mov edx, dword [0x48c540]
mov ecx, 7
call fcn.00404a88
lea eax, [ebp - 0x12c]
mov edx, 2
call fcn.00403ff8
lea eax, [ebp - 0x11c]
mov edx, 3
call fcn.00403ff8
lea eax, [ebp - 0x110]
mov edx, dword [0x48c540]
mov ecx, 2
call fcn.00404a88
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00403ff8
ret