Function at 0x4cb350
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 0x509e69
mov eax, dword fs:[0]
push eax
mov eax, 0x7ec8
call fcn.004256f0
mov eax, dword [0x5462f8]
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.0047ac00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x7ebc]
call fcn.0047ac00
mov byte [ebp - 4], 1
mov edx, dword [ebx]
push esi
push ecx
lea ecx, [ebp - 0xc44]
call fcn.004f06b0
mov edi, 1
add esp, 8
mov dword [ebp - 0x7e98], edi
lea ecx, [ebp - 0x7e8c]
call fcn.004cad50
mov ebx, eax
xor esi, esi
test ebx, ebx
jle 0x4cb49f
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.004f06b0
lea eax, [ebp - 0x62c]
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4cb433
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.004f1180
add esp, 8
lea ecx, [ebp - 0x62c]
call fcn.004bf670
test eax, eax
je 0x4cb48a
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4cb541
inc esi
add edi, 0x30c
cmp esi, ebx
jl 0x4cb410
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.004b55d0
add esp, 8
cmp eax, 1
je 0x4cb4eb
mov ecx, str.AREYOUSUREYOUWANTTOQUIT
call fcn.004f4980
mov ecx, dword [ebx + 0x10]
mov edx, eax
push 0x124
push 0
call fcn.004b55d0
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 0x4cb3f1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7ebc]
call fcn.0047aa60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7ec8]
call fcn.0047aa60
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.00424a87
mov esp, ebp
pop ebp
ret
shr eax, 4
not eax
and eax, 1
je 0x4cb499
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x7ebc]
call fcn.0047a8a0
lea ecx, [ebp - 0x7ebc]
call fcn.0047aaa0
mov edi, eax
push edi
call fcn.00424adb
add esp, 4
lea ecx, [ebp - 0x7ebc]
mov ebx, eax
push edi
push ebx
call fcn.0047ab10
lea ecx, [ebp - 0x7ebc]
call fcn.0047ab40
push 0
lea eax, [ebp - 0xc44]
push eax
lea ecx, [ebp - 0x7ec8]
call fcn.0047a850
test eax, eax
je 0x4cb7cb
push edi
push ebx
lea ecx, [ebp - 0x7ec8]
call fcn.0047aae0
lea ecx, [ebp - 0x7ec8]
mov esi, eax
call fcn.0047ab40
cmp esi, edi
jne 0x4cb7be
mov dword [ebp - 0x7e9c], 0
mov byte [ebp - 4], 2
push dword [ebp - 0x7ea8]
push 0
call fcn.004f1180
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.00404110
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 0x4cb640
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.004f1180
add esp, 8
mov edi, eax
mov dword [ebp - 0x7e9c], edi
test esi, esi
je 0x4cb692
push esi
call fcn.00424a98
add esp, 4
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cb697
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 0x4cb6d0
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.00424adb
add esp, 4
mov esi, eax
mov dword [ebp - 0x7e9c], esi
test edi, edi
je 0x4cb710
push edi
call fcn.00424a98
add esp, 4
lea eax, [ebp - 0xc44]
push eax
push 0x52c0f4
push esi
call fcn.00404110
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 0x4cb730
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 0x4cb764
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 0x4cb7f4
push esi
call fcn.00424a98
add esp, 4
push ebx
call fcn.00424a98
add esp, 4
xor edi, edi
mov dword [ebp - 0x7e98], edi
jmp 0x4cb4f6
lea eax, [ebp - 0xc44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004c84f0
test eax, eax
mov edx, 0x52c15c
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.004b55d0
add esp, 8
push ebx
call fcn.00424a98
add esp, 4
xor edi, edi
mov dword [ebp - 0x7e98], edi
jmp 0x4cb4f6