Function at 0x409b70
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get startup folder
Persist via run registry key
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494cb5
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4c81d0]
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 eax, dword [0x4c9c28]
cmp eax, 0xffffffff
jne 0x409f30
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpFunshionIni___serialization_boost__CAAAVCFpFunshionIni__XZ_51], 1
jne 0x409be1
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpFunshionIni___serialization_boost__CAAAVCFpFunshionIni__XZ_51], 1
mov dword [ebp - 4], 0
call fcn.00411830
push 0x49b240
call fcn.0046dc2e
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4c9c28]
add esp, 4
xor ecx, ecx
cmp ecx, 0x4d3a54
je 0x409f30
push str.IDC_CHECK_NORMAL_START_WITH_WINDOWS
lea ecx, [ebp - 0x224]
call fcn.00401e90
push str.OPTION_SETTING_NORMAL
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 1
call fcn.00401e90
mov edx, dword [0x4d3a54]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edx
xor edi, edi
call esi
test eax, eax
je 0x409c48
mov eax, dword [0x4d3a54]
mov ecx, dword [ebp - 0x224]
mov edx, dword [ebp - 0x220]
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
mov eax, dword [ebp - 0x220]
cmp edi, 1
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409c70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409c99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x409e30
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x228]
push ecx
mov ebx, 0x4a2528
mov edi, str.SoftwareMicroSoftwindowsCurrentVersionRun
mov ecx, 0x80000001
mov dword [ebp - 4], 2
call fcn.0040fe80
mov esi, dword [ebp - 0x228]
add esp, 4
cmp dword [esi - 0xc], 0
jne 0x409dfa
xor edx, edx
push 0x208
push edx
lea eax, [ebp - 0x21a]
push eax
mov word [ebp - 0x21c], dx
call fcn.00471430
add esp, 0xc
push 0
push 7
lea ecx, [ebp - 0x21c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x220]
call fcn.00401e90
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
call fcn.00401e90
mov byte [ebp - 4], 4
call fcn.00407c50
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [ebp - 0x220]
call fcn.00407ad0
mov edx, 0x4a3cec
lea eax, [ebp - 0x224]
call fcn.00407910
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409d89
test al, 0x10
je 0x409da2
mov eax, dword [ebp - 0x224]
call fcn.004102c0
mov dword [0x4c9c28], 1
test eax, eax
je 0x409dac
mov dword [0x4c9c28], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409dd2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409e04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x409e04
mov dword [0x4c9c28], 0
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409ee5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x409ee5
push 0x4a3d08
lea ecx, [ebp - 0x22c]
call fcn.00401e90
push str.Fun_Install
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 5
call fcn.00401e90
mov ecx, dword [0x4d3a54]
push ecx
xor edi, edi
call esi
test eax, eax
je 0x409e84
mov edx, dword [0x4d3a54]
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x228]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
mov eax, dword [ebp - 0x228]
cmp edi, 1
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409eac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409ed5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
test bl, bl
setne cl
add ecx, 2
mov dword [0x4c9c28], ecx
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallAppMgr___serialization_boost__CAAAVCFpInstallAppMgr__XZ_51], 1
jne 0x409f0e
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallAppMgr___serialization_boost__CAAAVCFpInstallAppMgr__XZ_51], 1
xor eax, eax
push 0x49b120
mov dword [sym.Install.exe__t__1__get_instance___singleton_VCFpInstallAppMgr___serialization_boost__CAAAVCFpInstallAppMgr__XZ_4V__singleton_w], eax
mov dword [0x4d3a2c], eax
call fcn.0046dc2e
add esp, 4
mov edx, dword [0x4d3a2c]
mov eax, dword [edx + 0x14]
cmp eax, 1
je 0x409f21
cmp eax, 4
jne 0x409f2b
mov dword [0x4c9c28], 4
mov eax, dword [0x4c9c28]
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.0046d96b
mov esp, ebp
pop ebp
ret