Function at 0x40ad40
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 0x491ce5
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4c21d0]
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 [0x4c3f48]
cmp eax, 0xffffffff
jne 0x40b100
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpFunshionIni___serialization_boost__CAAAVCFpFunshionIni__XZ_51], 1
jne 0x40adb1
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpFunshionIni___serialization_boost__CAAAVCFpFunshionIni__XZ_51], 1
mov dword [ebp - 4], 0
call fcn.00416790
push 0x49a270
call fcn.0046c718
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4c3f48]
add esp, 4
xor ecx, ecx
cmp ecx, 0x4cd07c
je 0x40b100
push str.IDC_CHECK_NORMAL_START_WITH_WINDOWS
lea ecx, [ebp - 0x224]
call fcn.00401bb0
push str.OPTION_SETTING_NORMAL
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 1
call fcn.00401bb0
mov edx, dword [0x4cd07c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edx
xor edi, edi
call esi
test eax, eax
je 0x40ae18
mov eax, dword [0x4cd07c]
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 0x40ae40
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 0x40ae69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40b000
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, 0x4a19e4
mov edi, str.SoftwareMicroSoftwindowsCurrentVersionRun
mov ecx, 0x80000001
mov dword [ebp - 4], 2
call fcn.004166d0
mov esi, dword [ebp - 0x228]
add esp, 4
cmp dword [esi - 0xc], 0
jne 0x40afca
xor edx, edx
push 0x208
push edx
lea eax, [ebp - 0x21a]
push eax
mov word [ebp - 0x21c], dx
call fcn.0046ff60
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.00401bb0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
call fcn.00401bb0
mov byte [ebp - 4], 4
call fcn.00408df0
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [ebp - 0x220]
call fcn.0040d300
mov edx, str.Funshion.lnk
lea eax, [ebp - 0x224]
call fcn.0040cc50
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40af59
test al, 0x10
je 0x40af72
mov eax, dword [ebp - 0x224]
call fcn.0040e990
mov dword [0x4c3f48], 1
test eax, eax
je 0x40af7c
mov dword [0x4c3f48], 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 0x40afa2
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 0x40afd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40afd4
mov dword [0x4c3f48], 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 0x40b0b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40b0b5
push 0x4a3838
lea ecx, [ebp - 0x22c]
call fcn.00401bb0
push str.Fun_Install
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 5
call fcn.00401bb0
mov ecx, dword [0x4cd07c]
push ecx
xor edi, edi
call esi
test eax, eax
je 0x40b054
mov edx, dword [0x4cd07c]
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 0x40b07c
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 0x40b0a5
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 [0x4c3f48], ecx
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallAppMgr___serialization_boost__CAAAVCFpInstallAppMgr__XZ_51], 1
jne 0x40b0de
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallAppMgr___serialization_boost__CAAAVCFpInstallAppMgr__XZ_51], 1
xor eax, eax
push 0x499990
mov dword [sym.Install.exe__t__1__get_instance___singleton_VCFpInstallAppMgr___serialization_boost__CAAAVCFpInstallAppMgr__XZ_4V__singleton_w], eax
mov dword [0x4cd008], eax
call fcn.0046c718
add esp, 4
mov edx, dword [0x4cd008]
mov eax, dword [edx + 0x14]
cmp eax, 1
je 0x40b0f1
cmp eax, 4
jne 0x40b0fb
mov dword [0x4c3f48], 4
mov eax, dword [0x4c3f48]
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.0046c455
mov esp, ebp
pop ebp
ret