Function at 0x487040
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 0x5196b1
mov eax, dword fs:[0]
push eax
mov eax, 0x7ec8
call fcn.004d9760
mov eax, dword [0x55b2f8]
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.00432ad0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x7ebc]
call fcn.00432ad0
mov byte [ebp - 4], 1
mov edx, dword [ebx]
push esi
push ecx
lea ecx, [ebp - 0xc44]
call fcn.004acf60
mov edi, 1
add esp, 8
mov dword [ebp - 0x7e98], edi
lea ecx, [ebp - 0x7e8c]
call fcn.00486200
mov ebx, eax
xor esi, esi
test ebx, ebx
jle 0x48718f
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.004acf60
lea eax, [ebp - 0x62c]
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x487123
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.004ac350
add esp, 8
lea ecx, [ebp - 0x62c]
call fcn.00478e40
test eax, eax
je 0x48717a
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x487231
inc esi
add edi, 0x30c
cmp esi, ebx
jl 0x487100
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.0046bba0
add esp, 8
cmp eax, 1
je 0x4871db
mov ecx, str.AREYOUSUREYOUWANTTOQUIT
call fcn.004b0e70
mov ecx, dword [ebx + 0x10]
mov edx, eax
push 0x124
push 0
call fcn.0046bba0
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 0x4870e1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7ebc]
call fcn.00432b20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7ec8]
call fcn.00432b20
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.004d8af7
mov esp, ebp
pop ebp
ret
shr eax, 4
not eax
and eax, 1
je 0x487189
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x7ebc]
call fcn.00432d10
lea ecx, [ebp - 0x7ebc]
call fcn.00432ec0
mov edi, eax
push edi
call fcn.004d8b4b
add esp, 4
lea ecx, [ebp - 0x7ebc]
mov ebx, eax
push edi
push ebx
call fcn.00432e30
lea ecx, [ebp - 0x7ebc]
call fcn.00432e10
push 0
lea eax, [ebp - 0xc44]
push eax
lea ecx, [ebp - 0x7ec8]
call fcn.00432dc0
test eax, eax
je 0x4874bb
push edi
push ebx
lea ecx, [ebp - 0x7ec8]
call fcn.00432e60
lea ecx, [ebp - 0x7ec8]
mov esi, eax
call fcn.00432e10
cmp esi, edi
jne 0x4874ae
mov dword [ebp - 0x7e9c], 0
mov byte [ebp - 4], 2
push dword [ebp - 0x7ea8]
push 0
call fcn.004ac350
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.00451240
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 0x487330
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.004ac350
add esp, 8
mov edi, eax
mov dword [ebp - 0x7e9c], edi
test esi, esi
je 0x487382
push esi
call fcn.004d8b08
add esp, 4
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487387
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 0x4873c0
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.004d8b4b
add esp, 4
mov esi, eax
mov dword [ebp - 0x7e9c], esi
test edi, edi
je 0x487400
push edi
call fcn.004d8b08
add esp, 4
lea eax, [ebp - 0xc44]
push eax
push 0x540300
push esi
call fcn.00451240
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 0x487420
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 0x487454
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 0x4874e4
push esi
call fcn.004d8b08
add esp, 4
push ebx
call fcn.004d8b08
add esp, 4
xor edi, edi
mov dword [ebp - 0x7e98], edi
jmp 0x4871e6
lea eax, [ebp - 0xc44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004859d0
test eax, eax
mov edx, 0x54029c
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.0046bba0
add esp, 8
push ebx
call fcn.004d8b08
add esp, 4
xor edi, edi
mov dword [ebp - 0x7e98], edi
jmp 0x4871e6