Function at 0x4014d0
Capabilities:
Get installed programs
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481550
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4a06b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
xor edi, edi
mov dword [ebp - 0x6c], esi
cmp eax, edi
je 0x401511
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], edi
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallFC35EB43_F4A0_43B4_BEB1_66A470045416_is1
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x401537
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallFC35EB43_F4A0_43B4_BEB1_66A470045416_is1
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebx, 0x4a60d4
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], 6
jmp 0x40154a
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [ebx + 8]
xor eax, eax
push ecx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], ax
call fcn.00401990
mov dword [ebp - 4], edi
mov esi, dword [ebp - 0x3c]
mov edx, esi
cmp esi, 0xc
jb 0x40157b
mov edx, 0xc
mov ecx, dword [ebp - 0x4c]
mov edi, 8
cmp dword [ebp - 0x38], edi
jae 0x40158b
lea ecx, [ebp - 0x4c]
mov eax, 0x491e38
test edx, edx
je 0x4015aa
mov di, word [ecx]
cmp di, word [eax]
jne 0x4015b4
add ecx, 2
add eax, 2
dec edx
jne 0x401594
mov edi, 8
cmp esi, 0xc
jae 0x4015c3
or eax, 0xffffffff
jmp 0x4015cb
sbb eax, eax
and eax, 0xfffffffe
inc eax
je 0x4015a5
mov edi, 8
jmp 0x4015cb
xor eax, eax
cmp esi, 0xc
setne al
test eax, eax
sete al
test al, al
je 0x401667
push 0x7e
lea esi, [ebp - 0x2c]
call fcn.00410f30
add esp, 4
mov esi, eax
lea eax, [ebp - 0x4c]
cmp eax, esi
je 0x401658
cmp dword [ebp - 0x38], edi
jb 0x4015ff
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0041cbd1
add esp, 4
xor edx, edx
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], dx
cmp dword [esi + 0x14], edi
jae 0x40162e
mov eax, dword [esi + 0x10]
inc eax
add eax, eax
push eax
lea ecx, [ebp - 0x4c]
push esi
push ecx
call fcn.0041c640
add esp, 0xc
jmp 0x401639
mov edx, dword [esi]
mov dword [ebp - 0x4c], edx
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x3c], eax
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x38], ecx
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], dx
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], edi
jb 0x4016ac
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x4016a4
push 3
push 0x491e54
push esi
push 0
lea ecx, [ebp - 0x4c]
call fcn.004023a0
test eax, eax
jne 0x4016ac
push 0x7f
lea esi, [ebp - 0x2c]
call fcn.00410f30
add esp, 4
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.00401910
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], edi
jb 0x4016ac
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0041cbd1
add esp, 4
lea ecx, [ebp - 0x68]
call fcn.0041c030
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.00412a40
mov esi, dword [ebx - 4]
mov edx, esi
cmp esi, 0xb
jb 0x4016cf
mov edx, 0xb
cmp dword [ebx], edi
lea edi, [ebx - 0x14]
jb 0x4016da
mov ecx, dword [edi]
jmp 0x4016dc
mov ecx, edi
mov eax, str.InstallDate
test edx, edx
je 0x4016f9
mov bx, word [ecx]
cmp bx, word [eax]
jne 0x401703
add ecx, 2
add eax, 2
dec edx
jne 0x4016e5
mov ebx, dword [ebp - 0x60]
cmp esi, 0xb
jae 0x401710
or eax, 0xffffffff
jmp 0x401718
sbb eax, eax
and eax, 0xfffffffe
inc eax
je 0x4016f6
mov ebx, dword [ebp - 0x60]
jmp 0x401718
xor eax, eax
cmp esi, 0xb
setne al
test eax, eax
sete al
test al, al
je 0x40179c
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x56]
movzx edx, word [ebp - 0x5a]
xor eax, eax
push ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
movzx eax, word [ebp - 0x5c]
push edx
push eax
lea ecx, [ebp - 0x30]
push str._d_.2d_.2d
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x30]
add esp, 0x14
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401780
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x4c]
call fcn.00401af0
cmp dword [ebp - 0x38], 8
mov ecx, dword [ebp - 0x4c]
jae 0x4017a8
lea ecx, [ebp - 0x4c]
cmp dword [ebx], 8
jb 0x4017b1
mov eax, dword [edi]
jmp 0x4017b3
mov eax, edi
mov edx, dword [ebp - 0x3c]
add edx, edx
push edx
push ecx
push 1
push 0
push eax
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4017e3
cmp dword [ebx], 8
jb 0x4017d6
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00404b20
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.0041c040
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x38], 8
jb 0x401808
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0041cbd1
add esp, 4
add ebx, 0x38
dec dword [ebp - 0x64]
mov dword [ebp - 0x60], ebx
jne 0x401548
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c4a1
mov esp, ebp
pop ebp
ret