Function at 0x40aa70
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 0x49bea5
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4cf500]
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 [0x4d12a8]
cmp eax, 0xffffffff
jne 0x40ae20
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpFunshionIni___serialization_boost__CAAAVCFpFunshionIni__XZ_51], 1
jne 0x40aae1
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpFunshionIni___serialization_boost__CAAAVCFpFunshionIni__XZ_51], 1
mov dword [ebp - 4], 0
call fcn.00414190
push 0x4a25c0
call fcn.00472e64
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4d12a8]
add esp, 4
xor ecx, ecx
cmp ecx, 0x4da6c0
je 0x40ae20
push str.IDC_CHECK_NORMAL_START_WITH_WINDOWS
lea ecx, [ebp - 0x224]
call fcn.00401c90
push str.OPTION_SETTING_NORMAL
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 1
call fcn.00401c90
mov edx, dword [0x4da6c0]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edx
xor edi, edi
call esi
test eax, eax
je 0x40ab48
mov eax, dword [0x4da6c0]
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 0x40ab70
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 0x40ab99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40ad20
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, 0x4a9340
mov edi, str.SoftwareMicroSoftwindowsCurrentVersionRun
mov ecx, 0x80000001
mov dword [ebp - 4], 2
call fcn.00417fd0
mov esi, dword [ebp - 0x228]
xor edi, edi
add esp, 4
cmp dword [esi - 0xc], edi
jne 0x40acee
push 0x208
lea eax, [ebp - 0x21a]
xor edx, edx
push edi
push eax
mov word [ebp - 0x21c], dx
call fcn.00477f60
add esp, 0xc
push edi
push 7
lea ecx, [ebp - 0x21c]
push ecx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x220]
call fcn.00401c90
lea eax, [ebp - 0x21c]
mov bl, 3
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], bl
call fcn.00401c90
mov edx, 0x4ab0ac
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 4
call fcn.0040aff0
mov edx, str.Funshion.lnk
lea eax, [ebp - 0x224]
call fcn.0040aff0
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ac82
test al, 0x10
je 0x40ac9b
mov eax, dword [ebp - 0x224]
call fcn.0040cff0
mov dword [0x4d12a8], 1
test eax, eax
je 0x40aca1
mov dword [0x4d12a8], edi
mov byte [ebp - 4], bl
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 0x40acc6
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 0x40acf4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40acf4
mov dword [0x4d12a8], edi
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 0x40add5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40add5
push 0x4ab0d8
lea ecx, [ebp - 0x22c]
call fcn.00401c90
push str.Fun_Install
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 5
call fcn.00401c90
mov ecx, dword [0x4da6c0]
push ecx
xor edi, edi
call esi
test eax, eax
je 0x40ad74
mov edx, dword [0x4da6c0]
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 0x40ad9c
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 0x40adc5
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 [0x4d12a8], ecx
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallAppMgr___serialization_boost__CAAAVCFpInstallAppMgr__XZ_51], 1
jne 0x40adfe
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallAppMgr___serialization_boost__CAAAVCFpInstallAppMgr__XZ_51], 1
xor eax, eax
push 0x4a2430
mov dword [sym.Install.exe__t__1__get_instance___singleton_VCFpInstallAppMgr___serialization_boost__CAAAVCFpInstallAppMgr__XZ_4V__singleton_w], eax
mov dword [0x4da6a4], eax
call fcn.00472e64
add esp, 4
mov edx, dword [0x4da6a4]
mov eax, dword [edx + 0x14]
cmp eax, 1
je 0x40ae11
cmp eax, 4
jne 0x40ae1b
mov dword [0x4d12a8], 4
mov eax, dword [0x4d12a8]
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.00472ba1
mov esp, ebp
pop ebp
ret