Function at 0x474788
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104c
call fcn.004b9090
mov eax, dword [0x6554f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x208
lea eax, [ebp - 0x824]
push ebx
xor esi, esi
mov edi, ecx
push esi
push eax
call fcn.005991a0
push ebx
lea eax, [ebp - 0xc34]
push esi
push eax
call fcn.005991a0
push ebx
lea eax, [ebp - 0xa2c]
push esi
push eax
call fcn.005991a0
push ebx
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.005991a0
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.005991a0
push ebx
lea eax, [ebp - 0x1044]
push esi
push eax
call fcn.005991a0
add esp, 0x48
lea eax, [ebp - 0x824]
push esi
push 0x2b
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, 0x626e18
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.0059c389
lea eax, [ebp - 0x824]
push str.SmartCloudInput
push eax
call fcn.0059c389
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.0059c389
lea eax, [ebp - 0x824]
push str.SmartCloud
push eax
call fcn.0059c389
lea eax, [ebp - 0x824]
push str..ini
push eax
call fcn.0059c389
add esp, 0x28
lea eax, [ebp - 0x824]
push eax
push 0x104
lea eax, [ebp - 0xc34]
push eax
push 0x625cd8
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0059c3fa
lea eax, [ebp - 0x414]
push eax
call fcn.0059c41c
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
test eax, eax
jle 0x47494e
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0059c3fa
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x47494e
lea eax, [ebp - 0x20c]
push str.1.4.8.10806
push eax
call fcn.0059c389
lea eax, [ebp - 0x20c]
push 0x626e18
push eax
call fcn.0059c389
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.005991a0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.0059c3fa
lea eax, [ebp - 0x61c]
push str.SCConfig.exe
push eax
call fcn.0059c389
add esp, 0x2c
lea eax, [ebp - 0x61c]
push eax
call ebx
test eax, eax
jne 0x474bec
push 0x208
lea eax, [ebp - 0xe3c]
push esi
push eax
call fcn.005991a0
lea eax, [ebp - 0xe3c]
push 0x5ca18c
push eax
call fcn.0059c3fa
lea eax, [ebp - 0xe3c]
push str.SmartCloudInput
push eax
call fcn.0059c389
add esp, 0x1c
lea eax, [ebp - 0x1048]
push eax
push 0x20019
push esi
lea eax, [ebp - 0xe3c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x474a8e
lea eax, [ebp - 0x104c]
mov dword [ebp - 0x104c], 0x104
push eax
lea eax, [ebp - 0x1044]
push eax
push esi
push esi
push str.InstallPath
push dword [ebp - 0x1048]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x474a8e
lea eax, [ebp - 0x1044]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0059c3fa
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0059c3fa
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x474a8e
lea eax, [ebp - 0x20c]
push str.1.4.8.10806
push eax
call fcn.0059c389
lea eax, [ebp - 0x20c]
push 0x626e18
push eax
call fcn.0059c389
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.005991a0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.0059c3fa
lea eax, [ebp - 0x61c]
push str.SCConfig.exe
push eax
call fcn.0059c389
add esp, 0x2c
lea eax, [ebp - 0x61c]
push eax
call ebx
test eax, eax
je 0x474a8e
push dword [ebp - 0x1048]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x474bec
push dword [ebp - 0x1048]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x26
lea eax, [ebp - 0xa2c]
mov ecx, edi
push eax
push esi
call fcn.00474d54
lea eax, [ebp - 0xa2c]
push 0x626e18
push eax
call fcn.0059c389
lea eax, [ebp - 0xa2c]
push str.SmartCloudInput
push eax
call fcn.0059c389
lea eax, [ebp - 0xa2c]
push 0x626e18
push eax
call fcn.0059c389
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0059c3fa
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0059c3fa
add esp, 0x28
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x474b7d
lea eax, [ebp - 0x20c]
push str.1.4.8.10806
push eax
call fcn.0059c389
lea eax, [ebp - 0x20c]
push 0x626e18
push eax
call fcn.0059c389
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.005991a0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.0059c3fa
lea eax, [ebp - 0x61c]
push str.SCConfig.exe
push eax
call fcn.0059c389
add esp, 0x2c
lea eax, [ebp - 0x61c]
push eax
call ebx
test eax, eax
jne 0x474bec
lea eax, [ebp - 0xc34]
push eax
call fcn.0059c41c
pop ecx
test eax, eax
jle 0x474ba1
lea eax, [ebp - 0xc34]
push eax
call ebx
test eax, eax
lea eax, [ebp - 0xc34]
jne 0x474ba7
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0059c3fa
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0059c3fa
lea eax, [ebp - 0x20c]
push str.1.4.8.10806
push eax
call fcn.0059c389
lea eax, [ebp - 0x20c]
push 0x626e18
push eax
call fcn.0059c389
add esp, 0x20
cmp word [ebp - 0x414], si
jne 0x474bf9
mov eax, esi
jmp 0x474c06
lea eax, [ebp - 0x414]
push eax
call fcn.0059c41c
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
lea ecx, [edi + 0x70]
call fcn.00420960
cmp word [ebp - 0x20c], si
je 0x474c2e
lea eax, [ebp - 0x20c]
push eax
call fcn.0059c41c
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi + 0xa0]
call fcn.00420960
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b8f5e
mov esp, ebp
pop ebp
ret