Function at 0x408ca0
Capabilities:
Get common file path
Get startup folder
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f536a
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x12b8
call fcn.0055dba0
mov eax, dword [0x6807dc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x4e8]
mov dword [ebp - 0x12bc], 0
push 0xc
push 0x6641c8
mov ecx, eax
mov dword [ebp - 0x12c0], eax
call fcn.00405d50
add esi, 0x4b8
mov dword [ebp - 0x12c4], esi
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x12b8], ax
mov eax, dword [esi + 0x10]
inc eax
mov dword [ebp - 0x12a8], 0
mov dword [ebp - 0x12a4], 7
mov dword [ebp - 0x12bc], 1
cmp eax, 7
jbe 0x408d71
mov byte [ebp - 0x1298], 0
lea ecx, [ebp - 0x12b8]
push dword [ebp - 0x1298]
push eax
call fcn.0040d100
mov dword [ebp - 0x12a8], 0
push esi
lea ecx, [ebp - 0x12b8]
call fcn.0040cc50
mov edx, dword [ebp - 0x12a4]
mov eax, edx
mov ecx, dword [ebp - 0x12a8]
sub eax, ecx
cmp eax, 1
jb 0x408dc6
cmp edx, 8
lea esi, [ebp - 0x12b8]
push 2
cmovae esi, dword [ebp - 0x12b8]
lea edi, [ecx + 1]
push 0x663eac
mov dword [ebp - 0x12a8], edi
lea eax, [esi + ecx*2]
push eax
call fcn.005c85a0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x408de7
push 1
push 0x663eac
mov byte [ebp - 0x1298], 0
lea ecx, [ebp - 0x12b8]
push dword [ebp - 0x1298]
push 1
call fcn.0040c890
push dword [ebp - 0x12c0]
lea ecx, [ebp - 0x12b8]
call fcn.0040cc50
mov dword [ebp - 0x1280], 0
xor ecx, ecx
mov dword [ebp - 0x127c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1290], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1280], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x12a4]
cmp edx, 8
jb 0x408e7a
mov ecx, dword [ebp - 0x12b8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408e70
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4094ef
push edx
push ecx
call fcn.0055cf9a
add esp, 8
xor eax, eax
mov dword [ebp - 0x12a8], 0
mov word [ebp - 0x12b8], ax
lea eax, [ebp - 0x1278]
push eax
mov dword [ebp - 0x12a4], 7
call fcn.00405ae0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1264]
mov eax, edx
mov ecx, dword [ebp - 0x1268]
sub eax, ecx
cmp eax, 1
jb 0x408ef0
cmp edx, 8
lea esi, [ebp - 0x1278]
push 2
cmovae esi, dword [ebp - 0x1278]
lea edi, [ecx + 1]
push 0x663eac
mov dword [ebp - 0x1268], edi
lea eax, [esi + ecx*2]
push eax
call fcn.005c85a0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x408f11
push 1
push 0x663eac
mov byte [ebp - 0x1298], 0
lea ecx, [ebp - 0x1278]
push dword [ebp - 0x1298]
push 1
call fcn.0040c890
mov edx, dword [ebp - 0x1264]
mov eax, edx
mov ecx, dword [ebp - 0x1268]
sub eax, ecx
cmp eax, 3
jb 0x408f5a
cmp edx, 8
lea esi, [ebp - 0x1278]
push 6
cmovae esi, dword [ebp - 0x1278]
lea edi, [ecx + 3]
push 0x6641e4
mov dword [ebp - 0x1268], edi
lea eax, [esi + ecx*2]
push eax
call fcn.005c85a0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x408f7b
push 3
push 0x6641e4
mov byte [ebp - 0x1298], 0
lea ecx, [ebp - 0x1278]
push dword [ebp - 0x1298]
push 3
call fcn.0040c890
mov edx, dword [ebp - 0x1264]
mov eax, edx
mov ecx, dword [ebp - 0x1268]
sub eax, ecx
cmp eax, 4
jb 0x408fc4
cmp edx, 8
lea esi, [ebp - 0x1278]
push 8
cmovae esi, dword [ebp - 0x1278]
lea edi, [ecx + 4]
push str..lnk
mov dword [ebp - 0x1268], edi
lea eax, [esi + ecx*2]
push eax
call fcn.005c85a0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x408fe5
push 4
push str..lnk
mov byte [ebp - 0x1298], 0
lea ecx, [ebp - 0x1278]
push dword [ebp - 0x1298]
push 4
call fcn.0040c890
cmp dword [ebp - 0x1264], 8
lea ecx, [ebp - 0x1278]
lea eax, [ebp - 0x1290]
cmovae ecx, dword [ebp - 0x1278]
cmp dword [ebp - 0x127c], 8
push ecx
cmovae eax, dword [ebp - 0x1290]
push ecx
push eax
call fcn.00405820
mov byte [ebp - 4], 4
xor eax, eax
mov word [ebp - 0x12b8], ax
xor edi, edi
lea eax, [ebp - 0x1298]
mov dword [ebp - 0x12a8], edi
push eax
push 0xb
mov esi, 7
mov dword [ebp - 0x12bc], 0xa
push edi
mov dword [ebp - 0x12a4], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4090be
push 0x410
push eax
lea eax, [ebp - 0x630]
push eax
call fcn.005c81c0
add esp, 0xc
lea eax, [ebp - 0x630]
push eax
push dword [ebp - 0x1298]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x1298]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0x630]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409090
sub ecx, edx
lea eax, [ebp - 0x630]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x12b8]
call fcn.00405d50
mov esi, dword [ebp - 0x12a4]
mov edi, dword [ebp - 0x12a8]
lea ecx, [ebp - 0x1278]
call fcn.00405c20
movups xmm0, xmmword [ebp - 0x12b8]
sub esi, edi
movups xmmword [ebp - 0x1278], xmm0
movq xmm0, qword [ebp - 0x12a8]
movq qword [ebp - 0x1268], xmm0
mov byte [ebp - 4], 3
cmp esi, 0xa
jb 0x409130
mov eax, dword [ebp - 0x12a8]
lea esi, [ebp - 0x1278]
add edi, 0xa
cmp dword [ebp - 0x1264], 8
push 0x14
cmovae esi, dword [ebp - 0x1278]
push str.Programs_
mov dword [ebp - 0x1268], edi
lea eax, [esi + eax*2]
push eax
call fcn.005c85a0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x409151
push 0xa
push str.Programs_
mov byte [ebp - 0x1298], 0
lea ecx, [ebp - 0x1278]
push dword [ebp - 0x1298]
push 0xa
call fcn.0040c890
mov edx, dword [ebp - 0x1264]
mov eax, edx
mov ecx, dword [ebp - 0x1268]
sub eax, ecx
cmp eax, 3
jb 0x40919a
cmp edx, 8
lea esi, [ebp - 0x1278]
push 6
cmovae esi, dword [ebp - 0x1278]
lea edi, [ecx + 3]
push 0x6641e4
mov dword [ebp - 0x1268], edi
lea eax, [esi + ecx*2]
push eax
call fcn.005c85a0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x4091bb
push 3
push 0x6641e4
mov byte [ebp - 0x1298], 0
lea ecx, [ebp - 0x1278]
push dword [ebp - 0x1298]
push 3
call fcn.0040c890
mov edx, dword [ebp - 0x1264]
mov eax, edx
mov ecx, dword [ebp - 0x1268]
sub eax, ecx
cmp eax, 4
jb 0x409204
cmp edx, 8
lea esi, [ebp - 0x1278]
push 8
cmovae esi, dword [ebp - 0x1278]
lea edi, [ecx + 4]
push str..lnk
mov dword [ebp - 0x1268], edi
lea eax, [esi + ecx*2]
push eax
call fcn.005c85a0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x409225
push 4
push str..lnk
mov byte [ebp - 0x1298], 0
lea ecx, [ebp - 0x1278]
push dword [ebp - 0x1298]
push 4
call fcn.0040c890
cmp dword [ebp - 0x1264], 8
lea ecx, [ebp - 0x1278]
lea eax, [ebp - 0x1290]
cmovae ecx, dword [ebp - 0x1278]
cmp dword [ebp - 0x127c], 8
push ecx
cmovae eax, dword [ebp - 0x1290]
push ecx
push eax
call fcn.00405820
mov eax, dword [ebp - 0x12c0]
cmp dword [eax + 0x14], 8
jb 0x409263
mov eax, dword [eax]
mov esi, dword [ebp - 0x12c4]
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x409273
mov ecx, dword [esi]
push eax
push ecx
lea eax, [ebp - 0xa40]
push 0x663ed8
push eax
call fcn.00406620
add esp, 0x10
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x409293
mov eax, dword [esi]
push eax
lea eax, [ebp - 0xe50]
push 0x66421c
push eax
call fcn.00406620
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4092b0
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x1260]
push str._sUninstall.exe
push eax
call fcn.00406620
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x208
push 0
push eax
call fcn.005c81c0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x664050
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
push eax
call fcn.00406620
add esp, 0xc
lea eax, [ebp - 0x1294]
push eax
lea eax, [ebp - 0x129c]
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x220]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40942b
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0xa40]
push eax
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0xa40]
push eax
push 1
push 0
push str.DisplayIcon
push dword [ebp - 0x129c]
call edi
test eax, eax
jne 0x40942b
push 0x6641e4
call esi
lea eax, [eax*2 + 2]
push eax
push 0x6641e4
push 1
push 0
push str.DisplayName
push dword [ebp - 0x129c]
call edi
test eax, eax
jne 0x40942b
lea eax, [ebp - 0xe50]
push eax
call esi
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0xe50]
push eax
push 1
push 0
push str.InstallLocation
push dword [ebp - 0x129c]
call edi
test eax, eax
jne 0x40942b
push 0x6641ec
call esi
lea eax, [eax*2 + 2]
push eax
push 0x6641ec
push 1
push 0
push str.Publisher
push dword [ebp - 0x129c]
call edi
test eax, eax
jne 0x40942b
lea eax, [ebp - 0x1260]
push eax
call esi
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x1260]
push eax
push 1
push 0
push str.UninstallString
push dword [ebp - 0x129c]
call edi
test eax, eax
jne 0x40942b
push dword [ebp - 0x129c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x129d], 1
jmp 0x409432
mov byte [ebp - 0x129d], 0
mov edx, dword [ebp - 0x1264]
cmp edx, 8
jb 0x409472
mov ecx, dword [ebp - 0x1278]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409468
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4094f4
push edx
push ecx
call fcn.0055cf9a
add esp, 8
mov edx, dword [ebp - 0x127c]
xor eax, eax
mov dword [ebp - 0x1268], 0
mov dword [ebp - 0x1264], 7
mov word [ebp - 0x1278], ax
cmp edx, 8
jb 0x4094cb
mov ecx, dword [ebp - 0x1290]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4094c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4094f9
push edx
push ecx
call fcn.0055cf9a
add esp, 8
mov al, byte [ebp - 0x129d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055cf54
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.005cd033
call fcn.005cd033
call fcn.005cd033
int3