Function at 0x4064f8
Capabilities:
Delete file

Disassembly:
mov eax, 0x4527b8
call fcn.004324bc
sub esp, 0x50
push ebx
push esi
push edi
mov esi, ecx
call fcn.00450558
mov eax, dword [eax + 4]
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x90]
lea ecx, [ebp - 0x5c]
call fcn.00445734
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], edi
call fcn.004457c7
mov ecx, dword [esi + 0x1d0]
lea eax, [ebp - 0x5c]
push eax
call fcn.0041a554
cmp dword [ebp - 0x54], edi
jle 0x406579
push edi
lea ecx, [ebp - 0x5c]
call fcn.00414b6a
push ecx
mov ebx, esp
mov dword [ebp - 0x40], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
call fcn.00447ffc
push ebx
call fcn.0040b60c
pop ecx
pop ecx
call fcn.0040c18a
inc edi
pop ecx
cmp edi, dword [ebp - 0x54]
jl 0x40654a
mov edi, 0x4747d0
lea ecx, [ebp - 0x20]
push edi
call fcn.004482f5
push edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004482f5
mov eax, dword [esi + 0x1d0]
xor ebx, ebx
mov byte [ebp - 4], 2
mov edi, 0x46f230
mov eax, dword [eax + 0xc]
test eax, eax
mov dword [ebp - 0x1c], eax
jle 0x406657
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [esi + 0x1d0]
mov eax, dword [eax + 8]
mov ecx, dword [eax + ebx*4]
call fcn.004032f3
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00448374
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00448287
lea eax, [ebp - 0x28]
push eax
mov eax, dword [esi + 0x1d0]
mov eax, dword [eax + 8]
mov ecx, dword [eax + ebx*4]
call fcn.004032d8
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00448374
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00448287
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004484d0
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00448374
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00448287
lea eax, [ebp - 0x10]
mov ecx, dword [esi + 0x1d0]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00419138
inc ebx
cmp ebx, dword [ebp - 0x1c]
jl 0x4065b3
mov eax, dword [esi + 0x1d0]
cmp dword [eax + 0xdd0], 0
je 0x406919
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push str.Corel.bld
call fcn.004482f5
push ecx
xor ebx, ebx
mov eax, esp
mov dword [ebp - 0x3c], esp
push ebx
push eax
mov ecx, 0x474930
mov byte [ebp - 4], 6
call fcn.00403457
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
call fcn.0040bffd
add esp, 0x10
mov eax, dword [0x470b50]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x1d0]
mov byte [ebp - 4], 8
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [eax + 0xdd0]
cmp eax, ebx
mov dword [ebp - 0x40], eax
jle 0x406837
push edi
lea ecx, [ebp - 0x28]
call fcn.004482f5
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 9
mov ebx, eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [esi + 0x1d0]
shl ebx, 2
mov eax, dword [eax + 0xdcc]
add eax, ebx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040f33c
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.00448374
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 9
call fcn.00448287
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.00448287
push edi
lea ecx, [ebp - 0x2c]
call fcn.004482f5
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
push eax
mov eax, dword [esi + 0x1d0]
mov eax, dword [eax + 0xdcc]
add eax, ebx
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0040f4b7
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xc
call fcn.00448374
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
call fcn.00448287
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.00448287
lea eax, [ebp - 0x10]
push str.::7:
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004484d0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xd
push ecx
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0044846a
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xe
call fcn.00448374
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xd
call fcn.00448287
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 8
call fcn.00448287
lea eax, [ebp - 0x18]
mov ecx, dword [esi + 0x1d0]
push eax
call fcn.00414a29
test eax, eax
je 0x40681f
mov ecx, eax
call fcn.00413b3d
test eax, eax
jne 0x40681f
mov ecx, dword [esi + 0x1d0]
push dword [ebp - 0x14]
add ecx, 0xdc8
call fcn.00414b6a
push ecx
mov ecx, esp
mov dword [ebp - 0x44], esp
push eax
call fcn.00447ffc
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x48], esp
push eax
mov byte [ebp - 4], 0xf
call fcn.00447ffc
mov byte [ebp - 4], 8
call fcn.0040d459
inc dword [ebp - 0x24]
pop ecx
pop ecx
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x40]
jl 0x4066cd
cmp dword [ebp - 0x24], eax
jne 0x406901
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call edi
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x48], esp
push eax
call fcn.00447ffc
lea eax, [ebp - 0x14]
push eax
call fcn.0040b60c
pop ecx
pop ecx
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
mov byte [ebp - 4], 0x10
call fcn.0040634d
test eax, eax
jne 0x4068f5
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x48], esp
push str.Corel2.bld
call fcn.004482f5
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x44], esp
push eax
mov byte [ebp - 4], 0x11
call fcn.00447ffc
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x10
push eax
call fcn.0040bffd
add esp, 0x10
push dword [eax]
call edi
lea ecx, [ebp - 0x40]
call fcn.00448287
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x48], esp
push str.Uninstal.dll
call fcn.004482f5
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x44], esp
push eax
mov byte [ebp - 4], 0x12
call fcn.00447ffc
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x10
push eax
call fcn.0040bffd
add esp, 0x10
push dword [eax]
call edi
lea ecx, [ebp - 0x40]
call fcn.00448287
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00448287
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.00448287
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00448287
call fcn.00450558
mov eax, dword [eax + 4]
push 0xffffffffffffffff
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x90]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00448287
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00448287
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00445767
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret