Function at 0x40add0
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 0x48c655
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4b91d0]
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 [0x4baf48]
cmp eax, 0xffffffff
jne 0x40b190
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpFunshionIni___serialization_boost__CAAAVCFpFunshionIni__XZ_51], 1
jne 0x40ae41
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpFunshionIni___serialization_boost__CAAAVCFpFunshionIni__XZ_51], 1
mov dword [ebp - 4], 0
call fcn.00412f80
push 0x4923b0
call fcn.00465698
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4baf48]
add esp, 4
xor ecx, ecx
cmp ecx, 0x4c391c
je 0x40b190
push str.IDC_CHECK_NORMAL_START_WITH_WINDOWS
lea ecx, [ebp - 0x224]
call fcn.00401c20
push str.OPTION_SETTING_NORMAL
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 1
call fcn.00401c20
mov edx, dword [0x4c391c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edx
xor edi, edi
call esi
test eax, eax
je 0x40aea8
mov eax, dword [0x4c391c]
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 0x40aed0
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 0x40aef9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40b090
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, 0x4995c8
mov edi, str.SoftwareMicroSoftwindowsCurrentVersionRun
mov ecx, 0x80000001
mov dword [ebp - 4], 2
call fcn.00412ec0
mov esi, dword [ebp - 0x228]
add esp, 4
cmp dword [esi - 0xc], 0
jne 0x40b05a
xor edx, edx
push 0x208
push edx
lea eax, [ebp - 0x21a]
push eax
mov word [ebp - 0x21c], dx
call fcn.00468ee0
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.00401c20
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
call fcn.00401c20
mov byte [ebp - 4], 4
call fcn.00408e50
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [ebp - 0x220]
call fcn.0040c4a0
mov edx, 0x49b424
lea eax, [ebp - 0x224]
call fcn.0040bdb0
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40afe9
test al, 0x10
je 0x40b002
mov eax, dword [ebp - 0x224]
call fcn.0040dad0
mov dword [0x4baf48], 1
test eax, eax
je 0x40b00c
mov dword [0x4baf48], 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 0x40b032
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 0x40b064
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40b064
mov dword [0x4baf48], 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 0x40b145
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40b145
push 0x49b440
lea ecx, [ebp - 0x22c]
call fcn.00401c20
push str.Fun_Install
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 5
call fcn.00401c20
mov ecx, dword [0x4c391c]
push ecx
xor edi, edi
call esi
test eax, eax
je 0x40b0e4
mov edx, dword [0x4c391c]
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 0x40b10c
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 0x40b135
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 [0x4baf48], ecx
test byte [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallAppMgr___serialization_boost__CAAAVCFpInstallAppMgr__XZ_51], 1
jne 0x40b16e
or dword [sym.Install.exe____B_1__get_instance___singleton_VCFpInstallAppMgr___serialization_boost__CAAAVCFpInstallAppMgr__XZ_51], 1
xor eax, eax
push 0x491b30
mov dword [sym.Install.exe__t__1__get_instance___singleton_VCFpInstallAppMgr___serialization_boost__CAAAVCFpInstallAppMgr__XZ_4V__singleton_w], eax
mov dword [0x4c38b0], eax
call fcn.00465698
add esp, 4
mov edx, dword [0x4c38b0]
mov eax, dword [edx + 0x14]
cmp eax, 1
je 0x40b181
cmp eax, 4
jne 0x40b18b
mov dword [0x4baf48], 4
mov eax, dword [0x4baf48]
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.004653d5
mov esp, ebp
pop ebp
ret