Function at 0x49ea44
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x49ea4c
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49eecd
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x49ee33
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x49eeec
mov eax, ebx
call fcn.0049f058
lea edx, [ebp - 0x2c]
call fcn.00409d7c
push dword [ebp - 0x2c]
push 0x49ef28
lea edx, [ebp - 0x30]
mov eax, esi
call fcn.00409d7c
push dword [ebp - 0x30]
push 0x49ef38
lea edx, [ebp - 0x34]
mov eax, 0xbb9
call fcn.00409d7c
push dword [ebp - 0x34]
lea eax, [ebp - 4]
mov edx, 6
call fcn.004056d0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0049cb70
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 8]
call fcn.00405c9c
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x10]
call fcn.004941bc
cmp dword [ebp - 0x10], 0
je 0x49ee29
cmp esi, 1
je 0x49eaf6
cmp esi, 3
jne 0x49eb34
mov cl, 6
mov dl, 1
mov eax, dword [0x493a64]
call fcn.00494be4
mov edx, eax
test edx, edx
je 0x49eb0d
sub edx, 0xffffffe4
lea eax, [ebp - 0x18]
call fcn.00407098
mov cl, 6
mov dl, 1
mov eax, dword [0x493a64]
call fcn.00494be4
mov edx, eax
test edx, edx
je 0x49eb2c
sub edx, 0xffffffe4
lea eax, [ebp - 0x1c]
call fcn.00407098
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x90]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x49ed56
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x90]
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x24]
call fcn.0049b94c
cmp esi, 1
je 0x49eb7a
cmp esi, 3
jne 0x49ec89
lea ecx, [ebp - 0x40]
mov edx, 0x49ef44
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
call fcn.004055c4
mov edx, dword [ebp - 0x3c]
mov eax, ebx
call fcn.0049d0d4
test al, al
je 0x49ed4a
lea ecx, [ebp - 0x48]
mov edx, 0x49ef58
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
call fcn.004055c4
mov edx, dword [ebp - 0x44]
mov eax, ebx
call fcn.0049d0d4
test al, al
je 0x49ed4a
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.0049d400
test al, al
je 0x49ed4a
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.0049d318
test al, al
je 0x49ed4a
mov edx, 0x49ef68
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp edx, 0
jne 0x49ec3d
cmp eax, 1
jne 0x49ec3d
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x90]
mov eax, dword [eax + 8]
cmp eax, dword [ebx + 0x438]
jge 0x49ec3d
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x90]
mov edx, dword [ebp - 0x14]
call fcn.0049b6f4
jmp 0x49ed4a
mov edx, 0x49ef68
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp edx, 0
jne 0x49ed4a
cmp eax, 2
jne 0x49ed4a
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x90]
cmp dword [eax + 8], 4
jge 0x49ed4a
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x90]
mov edx, dword [ebp - 0x14]
call fcn.0049b6f4
jmp 0x49ed4a
cmp esi, 2
jne 0x49ed4a
lea ecx, [ebp - 0x50]
mov edx, 0x49ef44
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
call fcn.004055c4
mov edx, dword [ebp - 0x4c]
mov eax, ebx
call fcn.0049d0d4
test al, al
je 0x49ed4a
lea ecx, [ebp - 0x58]
mov edx, 0x49ef58
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
call fcn.004055c4
mov edx, dword [ebp - 0x54]
mov eax, ebx
call fcn.0049d0d4
test al, al
je 0x49ed4a
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.0049d400
test al, al
je 0x49ed4a
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.0049d318
test al, al
je 0x49ed4a
lea eax, [ebp - 0x5c]
call fcn.00470758
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0xc]
mov ecx, 0x49ef84
call fcn.00405654
mov eax, dword [ebp - 0xc]
call fcn.004057cc
push eax
call sub.kernel32.dll_DeleteFileA
push 1
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x70]
mov byte [ebp - 0x1d], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49ee3d
inc dword [ebp - 0x24]
dec dword [ebp - 0x28]
jne 0x49eb56
cmp esi, 1
jne 0x49edda
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x90]
cmp dword [eax + 8], 0
jle 0x49edda
mov byte [ebp - 0x1d], 1
lea eax, [ebp - 0x60]
call fcn.00470758
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0xc]
mov ecx, 0x49ef94
call fcn.00405654
mov eax, dword [ebp - 0xc]
call fcn.004057cc
push eax
call sub.kernel32.dll_DeleteFileA
push 1
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x70]
lea eax, [ebp - 0x64]
call fcn.00470758
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0xc]
mov ecx, 0x49efa4
call fcn.00405654
mov eax, dword [ebp - 0xc]
call fcn.004057cc
push eax
call sub.kernel32.dll_DeleteFileA
push 1
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x70]
cmp esi, 3
jne 0x49ee29
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x90]
cmp dword [eax + 8], 0
jle 0x49ee29
mov byte [ebp - 0x1d], 1
lea eax, [ebp - 0x68]
call fcn.00470758
mov edx, dword [ebp - 0x68]
lea eax, [ebp - 0xc]
mov ecx, 0x49efa4
call fcn.00405654
mov eax, dword [ebp - 0xc]
call fcn.004057cc
push eax
call sub.kernel32.dll_DeleteFileA
push 1
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x70]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49ee3d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49eed7
lea eax, [ebp - 0x68]
mov edx, 4
call fcn.00405360
lea eax, [ebp - 0x58]
call fcn.00405af0
lea eax, [ebp - 0x54]
call fcn.0040533c
lea eax, [ebp - 0x50]
call fcn.00405af0
lea eax, [ebp - 0x4c]
call fcn.0040533c
lea eax, [ebp - 0x48]
call fcn.00405af0
lea eax, [ebp - 0x44]
call fcn.0040533c
lea eax, [ebp - 0x40]
call fcn.00405af0
lea eax, [ebp - 0x3c]
call fcn.0040533c
lea eax, [ebp - 0x38]
call fcn.00405af0
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00405360
lea eax, [ebp - 0x1c]
mov edx, dword [0x49371c]
mov ecx, 4
call fcn.00406030
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405360
ret