Function at 0x403f06
Capabilities:
Get common file path
Get installed programs
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x411058]
cmp eax, 0xffffffff
je 0x403f20
push eax
call fcn.00401229
pop ecx
push ebx
xor ebx, ebx
cmp dword [0x411b24], ebx
push esi
push edi
jne 0x404309
mov eax, dword [0x411a90]
cmp byte [eax], bl
je 0x4041cc
push 2
push eax
call section..text
mov esi, eax
push ebx
push esi
call fcn.0040113a
push esi
call fcn.00401103
push dword [0x411aa0]
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], 0x1235
mov word [ebp - 0x12], bx
mov dword [ebp - 0x10], ebx
call fcn.0040832c
lea eax, [ebp - 0xc]
push 4
push eax
push esi
mov dword [ebp - 0xc], ebx
call fcn.004010cd
mov edi, dword [0x411b14]
add esp, 0x24
cmp dword [0x411b18], ebx
mov dword [ebp - 8], ebx
jbe 0x404075
push edi
call fcn.00404327
mov al, byte [edi + 0x1a]
pop ecx
cmp al, 3
jne 0x403fa8
push ebx
jmp 0x403fe5
mov cx, word [edi + 2]
cmp cx, 0x17
je 0x403fb8
cmp cx, 0x19
jne 0x403ff0
cmp al, 1
jne 0x403ff0
mov al, byte [edi + 0x17]
mov byte [ebp - 4], bl
cmp al, bl
je 0x403fd0
cmp byte [edi + 0x19], 1
jne 0x403fd0
mov byte [ebp - 4], 1
cmp al, 3
jne 0x403fd8
or byte [ebp - 4], 2
cmp byte [edi + 0x1b], 2
jne 0x403fe2
or byte [ebp - 4], 4
push dword [ebp - 4]
push esi
call fcn.0040335c
inc dword [ebp - 0xc]
pop ecx
pop ecx
push 4
push edi
call fcn.00403753
cmp byte [eax], bl
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
je 0x40405a
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40405a
push dword [0x411a9c]
push dword [ebp - 0x1c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40405a
push dword [0x411a9c]
call fcn.0040832c
push dword [ebp - 0x20]
push dword [0x411a9c]
call fcn.0040a160
push str..lnk
push dword [0x411a9c]
call fcn.0040a160
push ebx
push esi
call fcn.0040335c
add esp, 0x1c
inc dword [ebp - 0xc]
inc dword [ebp - 8]
push edi
call fcn.004027f1
mov edi, eax
mov eax, dword [ebp - 8]
cmp eax, dword [0x411b18]
pop ecx
jb 0x403f97
push esi
call fcn.00401103
mov ecx, eax
mov eax, dword [ebp - 0x18]
sub ecx, eax
add eax, 0xfffffff8
push eax
push esi
mov dword [ebp - 0x10], ecx
call fcn.00401114
lea eax, [ebp - 0x14]
push 8
push eax
push esi
call fcn.004010cd
lea eax, [ebp - 0xc]
push 4
push eax
push esi
call fcn.004010cd
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffc
push eax
push esi
call fcn.00401127
push esi
call fcn.004035d4
mov eax, dword [0x411bc8]
add esp, 0x30
mov edi, dword [eax + 4]
cmp edi, ebx
mov dword [ebp - 8], edi
je 0x4041a2
cmp byte [edi], bl
je 0x4041a2
lea eax, [ebp - 0x188]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push eax
call fcn.0040a150
lea eax, [ebp - 0x188]
push edi
push eax
call fcn.0040a160
add esp, 0x10
lea eax, [ebp - 4]
mov edi, 0x80000002
push eax
lea eax, [ebp - 0x188]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push dword [ebp - 8]
call fcn.0040a0d0
pop ecx
push eax
push dword [ebp - 8]
push 1
push ebx
push str.DisplayName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [0x411a90]
call fcn.0040a0d0
pop ecx
push eax
push dword [0x411a90]
push 1
push ebx
push str.UninstallString
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x188]
mov word [ebp - 0x14], 0x1238
push eax
mov word [ebp - 0x12], bx
call fcn.0040a0d0
add eax, 6
push 8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.004010cd
lea eax, [ebp - 0x18]
push 4
push eax
push esi
mov dword [ebp - 0x18], edi
call fcn.004010cd
lea eax, [ebp - 0x188]
push eax
push esi
call fcn.00403443
add esp, 0x24
push esi
call fcn.00401103
lea eax, [ebp - 0x14]
push 8
push eax
push esi
mov word [ebp - 0x14], 0x7f7f
mov word [ebp - 0x12], bx
mov dword [ebp - 0x10], ebx
call fcn.004010cd
push esi
call fcn.00401229
add esp, 0x14
jmp 0x4041d4
push 0xffffffffffffffff
call fcn.004035d4
pop ecx
push dword [0x411aa0]
call fcn.00408353
mov eax, dword [0x411bc8]
pop ecx
test byte [eax], 4
je 0x404255
cmp dword [eax + 0x14], ebx
je 0x404255
push dword [0x411aa0]
call fcn.0040a0d0
mov esi, eax
mov eax, dword [0x411bc8]
pop ecx
inc esi
mov ecx, dword [eax + 0x10]
cmp ecx, 0x10
jb 0x404213
mov ecx, dword [0x411060]
jmp 0x40421a
mov ecx, dword [ecx*4 + 0x41105c]
lea edx, [ebp - 4]
push edx
push dword [eax + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x404250
mov eax, dword [0x411bc8]
push esi
push dword [0x411aa0]
push 1
push ebx
push dword [eax + 0x18]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x411bc8]
test byte [eax], 8
je 0x40428d
mov edx, dword [eax + 0x1c]
cmp edx, ebx
je 0x40428d
mov ecx, dword [eax + 0x20]
cmp ecx, ebx
je 0x40428d
mov eax, dword [eax + 0x24]
cmp eax, ebx
je 0x40428d
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push edx
push dword [0x411aa0]
push eax
push ecx
call esi
mov eax, dword [0x411bc8]
push dword [eax + 0x1c]
push ebx
push ebx
push ebx
call esi
call fcn.00403ad2
call fcn.00403bd5
call fcn.00403d16
push dword [0x411aa0]
call fcn.0040832c
cmp dword [0x411b18], ebx
mov esi, dword [0x411b14]
pop ecx
mov dword [ebp - 8], ebx
jbe 0x404309
cmp byte [esi + 0x1b], 2
jne 0x4042f2
push esi
call fcn.00404327
pop ecx
push dword [0x411a9c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, 0x20
jb 0x4042f2
push str.DllRegisterServer
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4042eb
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
inc dword [ebp - 8]
push esi
call fcn.004027f1
mov esi, eax
mov eax, dword [ebp - 8]
cmp eax, dword [0x411b18]
pop ecx
jb 0x4042b9
cmp word [0x411042], 0xffff
jne 0x40431c
push 7
call fcn.00401cdd
pop ecx
pop edi
mov dword [0x411ab4], ebx
pop esi
pop ebx
leave
ret