Function at 0x4cf1c0
Capabilities:
Check if file exists
Delete file
Get file attributes
Get installed programs
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513f39
mov eax, dword fs:[0]
push eax
mov eax, 0x7ec8
call fcn.004282c0
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7eac], edx
mov ebx, ecx
mov dword [ebp - 0x7e94], ebx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x7ec8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x7ea8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x7eb0], eax
xor eax, eax
mov dword [ebp - 0x7ea4], esi
mov dword [ebp - 0x7ea0], eax
call fcn.0047db40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x7ebc]
call fcn.0047db40
mov byte [ebp - 4], 1
mov edx, dword [ebx]
push esi
push ecx
lea ecx, [ebp - 0xc44]
call fcn.004f5250
mov edi, 1
add esp, 8
mov dword [ebp - 0x7e98], edi
lea ecx, [ebp - 0x7e8c]
call fcn.004cebc0
mov ebx, eax
xor esi, esi
test ebx, ebx
jle 0x4cf30f
lea edi, [ebp - 0x7e8c]
nop
mov eax, dword [ebp - 0x7e94]
mov edx, edi
push dword [eax + 4]
push ecx
lea ecx, [ebp - 0x62c]
call fcn.004f5250
lea eax, [ebp - 0x62c]
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4cf2a3
push dword [ebp - 0x7ea4]
sub eax, edx
lea ecx, [ebp - 0x62c]
sar eax, 1
lea eax, [ecx + eax*2]
mov ecx, 0x5c
mov word [eax], cx
add eax, 2
push eax
call fcn.004f5d20
add esp, 8
lea ecx, [ebp - 0x62c]
call fcn.004c3500
test eax, eax
je 0x4cf2fa
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4cf3b1
inc esi
add edi, 0x30c
cmp esi, ebx
jl 0x4cf280
mov edi, dword [ebp - 0x7e98]
mov ebx, dword [ebp - 0x7e94]
mov edx, dword [ebp - 0x7eb0]
push 0x41
push 0
mov ecx, dword [ebx + 0x10]
call fcn.004b9330
add esp, 8
cmp eax, 1
je 0x4cf35b
mov ecx, str.AREYOUSUREYOUWANTTOQUIT
call fcn.004f9a90
mov ecx, dword [ebx + 0x10]
mov edx, eax
push 0x124
push 0
call fcn.004b9330
xor ecx, ecx
add esp, 8
cmp eax, 6
cmove edi, ecx
mov dword [ebp - 0x7e98], edi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
jne 0x4cf261
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7ebc]
call fcn.0047d9a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7ec8]
call fcn.0047d9a0
mov eax, dword [ebp - 0x7ea0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret
shr eax, 4
not eax
and eax, 1
je 0x4cf309
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x7ebc]
call fcn.0047d7e0
lea ecx, [ebp - 0x7ebc]
call fcn.0047d9e0
mov edi, eax
push edi
call fcn.004276a9
add esp, 4
lea ecx, [ebp - 0x7ebc]
mov ebx, eax
push edi
push ebx
call fcn.0047da50
lea ecx, [ebp - 0x7ebc]
call fcn.0047da80
push 0
lea eax, [ebp - 0xc44]
push eax
lea ecx, [ebp - 0x7ec8]
call fcn.0047d790
test eax, eax
je 0x4cf63b
push edi
push ebx
lea ecx, [ebp - 0x7ec8]
call fcn.0047da20
lea ecx, [ebp - 0x7ec8]
mov esi, eax
call fcn.0047da80
cmp esi, edi
jne 0x4cf62e
mov dword [ebp - 0x7e9c], 0
mov byte [ebp - 4], 2
push dword [ebp - 0x7ea8]
push 0
call fcn.004f5d20
mov esi, eax
lea eax, [ebp - 0x2c44]
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push str._s_s
push eax
mov dword [ebp - 0x7e9c], esi
call fcn.004041f0
add esp, 0x18
lea eax, [ebp - 0x7ed0]
push eax
lea eax, [ebp - 0x7e90]
push eax
push 0
push 0x20006
push 0
push esi
push 0
lea eax, [ebp - 0x2c44]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cf4b0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.DisplayName
push dword [ebp - 0x7e90]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x7eac]
push 0
call fcn.004f5d20
add esp, 8
mov edi, eax
mov dword [ebp - 0x7e9c], edi
test esi, esi
je 0x4cf502
push esi
call fcn.00427666
add esp, 4
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cf507
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push 0
push str.Publisher
push dword [ebp - 0x7e90]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0xc44]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cf540
sub ecx, edx
mov edx, 2
sar ecx, 1
lea eax, [ecx + 3]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004276a9
add esp, 4
mov esi, eax
mov dword [ebp - 0x7e9c], esi
test edi, edi
je 0x4cf580
push edi
call fcn.00427666
add esp, 4
lea eax, [ebp - 0xc44]
push eax
push 0x536334
push esi
call fcn.004041f0
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cf5a0
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.UninstallString
push dword [ebp - 0x7e90]
call edi
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cf5d4
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.DisplayIcon
push dword [ebp - 0x7e90]
call edi
mov dword [ebp - 0x7ea0], 1
mov byte [ebp - 4], 1
test esi, esi
je 0x4cf664
push esi
call fcn.00427666
add esp, 4
push ebx
call fcn.00427666
add esp, 4
xor edi, edi
mov dword [ebp - 0x7e98], edi
jmp 0x4cf366
lea eax, [ebp - 0xc44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004cc370
test eax, eax
mov edx, 0x53639c
mov eax, str.Uninstaller_could_not_be_installed.
cmove edx, eax
mov eax, dword [ebp - 0x7e94]
push 0x10
push 0
mov ecx, dword [eax + 0x10]
call fcn.004b9330
add esp, 8
push ebx
call fcn.00427666
add esp, 4
xor edi, edi
mov dword [ebp - 0x7e98], edi
jmp 0x4cf366