Function at 0x406e90
Capabilities:
Check if file exists
Get file attributes
Set registry value

Disassembly:
sub esp, 0x428
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
mov byte [esp + 0x12c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x12d]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [ebp + 0xc95]
mov dword [esp + 0x10], esi
test al, al
mov dword [esp + 0x14], esi
je 0x406eff
lea eax, [esp + 0x12c]
push 0x104
push eax
lea ecx, [ebp + 0x23c]
push esi
push ecx
call fcn.004073f0
add esp, 0x10
jmp 0x406f14
lea edx, [ebp + 0x4b6]
lea eax, [esp + 0x12c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ebx, [ebp + 0x23c]
lea ecx, [esp + 0x12c]
push ebx
push ecx
push str._s_s.ini
push 0x43d594
call fcn.00429590
add esp, 0x10
lea edx, [esp + 0x14]
push edx
push 0x20006
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40705f
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x407054
lea ebx, [ebp + 0x2ae]
push ebx
call edi
mov edx, dword [esp + 0x10]
push eax
push ebx
push 1
push 0
push str.DisplayName
push edx
call esi
lea eax, [ebp + 0x23c]
lea ebx, [ebp + 0x4b6]
push eax
push str.Update
push ebx
lea eax, [esp + 0x34]
push str._s_s_s.exe
push eax
call fcn.00429590
add esp, 0x14
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406ff0
lea edx, [ebp + 0xbd2]
lea eax, [esp + 0x28]
push edx
push str.Update
push ebx
push str._s_s_s
push eax
call fcn.00429590
add esp, 0x14
lea ecx, [esp + 0x28]
push ecx
call edi
lea edx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x14]
push edx
push 1
push 0
push str.DisplayIcon
push eax
call esi
lea ecx, [ebp + 0xbd2]
lea edx, [esp + 0x28]
push ecx
push str.Update
push ebx
push str._s_s_s__UNINSTALL
push edx
call fcn.00429590
add esp, 0x14
lea eax, [esp + 0x28]
push eax
call edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
push 1
push 0
push str.UninstallString
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x14]
lea ebx, [ebp + 0xca0]
push edx
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x407085
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x14]
push eax
push 0x20006
push 0
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4071ac
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea eax, [ebp + 0x23c]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4071a1
lea ebx, [ebp + 0x2ae]
push ebx
call edi
push eax
mov eax, dword [esp + 0x14]
push ebx
push 1
push 0
push 0x43babc
push eax
call esi
lea ebx, [ebp + 0x3b2]
push ebx
call edi
mov ecx, dword [esp + 0x10]
push eax
push ebx
push 1
push 0
push str.group
push ecx
call esi
mov edx, dword [ebp + 0x1134]
add edx, 0x28
push edx
call edi
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [ebp + 0x1134]
add eax, 0x28
push eax
push 1
push 0
push str.name
push ecx
call esi
lea ebx, [ebp + 0x4b6]
push ebx
call edi
mov edx, dword [esp + 0x10]
push eax
push ebx
push 1
push 0
push str.installpath
push edx
call esi
lea eax, [esp + 0x12c]
push eax
call edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x12c]
push eax
push ecx
push 1
push 0
push str.datapath
push edx
call esi
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x28]
push eax
push 0x43733c
push ecx
call fcn.00429590
add esp, 0xc
lea edx, [esp + 0x28]
push edx
call edi
mov ecx, dword [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
push 1
push 0
push str.type
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
push ecx
push 0x20006
push 0
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4071fc
lea edx, [esp + 0x12c]
push edx
call edi
mov ecx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x130]
push eax
push 1
lea eax, [ebp + 0x23c]
push 0
push eax
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x43d848], 4
je 0x4073d7
mov al, byte [ebp + 0x228]
test al, al
mov eax, 0x437678
jne 0x40721d
mov eax, 0x437674
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x43bc58
push eax
push 0x43766c
push str.Setup
call ebx
mov al, byte [ebp + 0x229]
test al, al
mov eax, 0x437678
jne 0x407249
mov eax, 0x437674
push 0x43bc58
push eax
push str.QuickLaunch
push str.Setup
call ebx
mov ecx, dword [0x43d844]
test ecx, ecx
je 0x4073d7
xor eax, eax
mov byte [esp + 0x18], 0
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov word [esp + 0x25], ax
mov byte [esp + 0x27], al
mov edx, dword [ecx]
call dword [edx + 0x14]
push eax
lea eax, [esp + 0x1c]
push 0x43733c
push eax
call fcn.00429590
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x23d]
mov byte [esp + 0x23c], 0
rep stosd dword es:[edi], eax
add esp, 0xc
lea ecx, [esp + 0x12c]
stosw word es:[edi], ax
lea edx, [esp + 0x230]
push ecx
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, 0x437448
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x230]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x230]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x437648
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x230]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
push str.CodePage
push str.LANGUAGE
call ebx
lea edx, [esp + 0x18]
push 0x43d594
push edx
push str.CodePage
push str.LANGUAGE
call ebx
lea eax, [ebp + 0x23c]
push eax
push 0x43762c
call fcn.0042a9c0
add esp, 8
test eax, eax
jne 0x4073d7
mov ecx, 0x40
lea edi, [esp + 0x335]
mov byte [esp + 0x334], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x334]
mov ecx, ebp
push eax
call fcn.00409610
lea ecx, [esp + 0x334]
push 0x437648
push ecx
lea edx, [esp + 0x238]
push str._s_s
push edx
call fcn.00429590
add esp, 0x10
lea eax, [esp + 0x230]
lea ecx, [esp + 0x18]
push eax
push ecx
push str.CodePage
push str.LANGUAGE
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x428
ret