Function at 0x40a8b0
Capabilities:
Get common file path
Get program files directory
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4437af
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x467060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
call fcn.00408df0
test al, al
je 0x40a9b4
lea ecx, [ebp - 0x2d8]
call fcn.00405bb0
lea eax, [ebp - 0x2d8]
push eax
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
call fcn.0040d300
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x218]
push ecx
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push ecx
push eax
push ecx
call fcn.00435ea0
test al, al
je 0x40a96f
push ecx
lea eax, [ebp - 0x218]
push eax
push ecx
mov edx, 0x104
mov ecx, esi
call fcn.00405d10
cmp dword [ebp - 0x21c], 8
jb 0x40a987
push dword [ebp - 0x230]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x2d8]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00408480
jmp 0x40aba7
push 0
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x40a9f1
xor ecx, ecx
jmp 0x40aa0f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40aa00
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00405570
push 0x449fac
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x2f8]
mov dword [ebp - 4], 1
call fcn.0041fa60
mov edi, eax
add esp, 4
mov dword [ebp - 0x2dc], edi
mov byte [ebp - 4], 2
mov eax, dword [0x469f34]
test eax, eax
jne 0x40aa83
push 0xe4
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x2e0], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x40aa7c
mov ecx, eax
call fcn.0040dc50
jmp 0x40aa7e
xor eax, eax
mov dword [0x469f34], eax
lea esi, [eax + 0x78]
cmp esi, edi
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
je 0x40aac2
cmp dword [esi + 0x14], 8
jb 0x40aa9d
push dword [esi]
call edi
add esp, 4
push dword [ebp - 0x2dc]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
call fcn.004053a0
mov eax, dword [0x469f34]
cmp dword [ebp - 0x2e4], 8
jb 0x40aadb
push dword [ebp - 0x2f8]
call edi
mov eax, dword [0x469f34]
add esp, 4
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x2e4], 7
mov dword [ebp - 0x2e8], 0
mov word [ebp - 0x2f8], cx
jb 0x40ab18
push dword [ebp - 0x230]
call edi
mov eax, dword [0x469f34]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], cx
test eax, eax
jne 0x40ab6f
push 0xe4
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x2e0], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x40ab61
mov ecx, eax
call fcn.0040dc50
jmp 0x40ab63
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x469f34], eax
cmp byte [eax + 0xb3], 0
je 0x40aba7
call fcn.0040dde0
cmp dword [eax + 0xa0], 0
je 0x40aba7
call fcn.0040dde0
lea esi, [eax + 0x90]
call fcn.0040dde0
lea ecx, [eax + 0x78]
cmp ecx, esi
je 0x40aba7
push 0xffffffffffffffff
push 0
push esi
call fcn.00405a00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004413e6
mov esp, ebp
pop ebp
ret