Function at 0x4161e0
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, 0x147c
call fcn.004a04d0
mov eax, dword [0x5f44b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x147c], ecx
mov word [ebp - 0x838], 0
push 0x206
push 0
lea eax, [ebp - 0x836]
push eax
call fcn.0049e690
add esp, 0xc
mov word [ebp - 0x420], 0
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.0049e690
add esp, 0xc
mov word [ebp - 0x630], 0
push 0x206
push 0
lea edx, [ebp - 0x62e]
push edx
call fcn.0049e690
add esp, 0xc
mov word [ebp - 0xe58], 0
push 0x206
push 0
lea eax, [ebp - 0xe56]
push eax
call fcn.0049e690
add esp, 0xc
mov word [ebp - 0x210], 0
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.0049e690
add esp, 0xc
mov word [ebp - 0xa48], 0
push 0x206
push 0
lea edx, [ebp - 0xa46]
push edx
call fcn.0049e690
add esp, 0xc
mov dword [ebp - 4], 0
push 0
push 0x2b
lea eax, [ebp - 0x838]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x594454
lea ecx, [ebp - 0x838]
push ecx
call fcn.0049eb28
add esp, 8
push 0x594458
lea edx, [ebp - 0x838]
push edx
call fcn.0049eb28
add esp, 8
push 0x59447c
lea eax, [ebp - 0x838]
push eax
call fcn.0049eb28
add esp, 8
push 0x594480
lea ecx, [ebp - 0x838]
push ecx
call fcn.0049eb28
add esp, 8
push 0x59449c
lea edx, [ebp - 0x838]
push edx
call fcn.0049eb28
add esp, 8
lea eax, [ebp - 0x838]
push eax
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push 0x5944a8
push 0x5944ac
push 0x5944c4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0xe58]
push eax
call fcn.0049eb52
add esp, 8
lea ecx, [ebp - 0xe58]
push ecx
call fcn.0049e752
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x41646e
lea edx, [ebp - 0xe58]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.0049eb52
add esp, 8
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41646e
push 0x5944d4
lea edx, [ebp - 0x210]
push edx
call fcn.0049eb28
add esp, 8
push 0x5944ec
lea eax, [ebp - 0x210]
push eax
call fcn.0049eb28
add esp, 8
mov word [ebp - 0x1060], 0
push 0x206
push 0
lea ecx, [ebp - 0x105e]
push ecx
call fcn.0049e690
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x1060]
push eax
call fcn.0049eb52
add esp, 8
push 0x5944f0
lea ecx, [ebp - 0x1060]
push ecx
call fcn.0049eb28
add esp, 8
lea edx, [ebp - 0x1060]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41646e
lea eax, [ebp - 0xe58]
push eax
mov ecx, dword [ebp - 0x147c]
add ecx, 0x7c
call fcn.004036d0
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x147c]
add ecx, 0xb4
call fcn.004036d0
jmp 0x4168bf
mov word [ebp - 0xc50], 0
push 0x206
push 0
lea edx, [ebp - 0xc4e]
push edx
call fcn.0049e690
add esp, 0xc
push 0x594510
lea eax, [ebp - 0xc50]
push eax
call fcn.0049eb52
add esp, 8
push str.SmartCloudWBInput
lea ecx, [ebp - 0xc50]
push ecx
call fcn.0049eb28
add esp, 8
lea edx, [ebp - 0x214]
push edx
push 0x20019
push 0
lea eax, [ebp - 0xc50]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x83c], eax
cmp dword [ebp - 0x83c], 0
jne 0x41662b
mov dword [ebp - 0x1064], 0x104
lea ecx, [ebp - 0x1064]
push ecx
lea edx, [ebp - 0xa48]
push edx
push 0
push 0
push 0x594548
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x83c], eax
cmp dword [ebp - 0x83c], 0
jne 0x41662b
lea ecx, [ebp - 0xa48]
push ecx
lea edx, [ebp - 0xe58]
push edx
call fcn.0049eb52
add esp, 8
lea eax, [ebp - 0xe58]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.0049eb52
add esp, 8
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41662b
push 0x594560
lea eax, [ebp - 0x210]
push eax
call fcn.0049eb28
add esp, 8
push 0x594578
lea ecx, [ebp - 0x210]
push ecx
call fcn.0049eb28
add esp, 8
mov word [ebp - 0x1270], 0
push 0x206
push 0
lea edx, [ebp - 0x126e]
push edx
call fcn.0049e690
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x1270]
push ecx
call fcn.0049eb52
add esp, 8
push 0x59457c
lea edx, [ebp - 0x1270]
push edx
call fcn.0049eb28
add esp, 8
lea eax, [ebp - 0x1270]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41662b
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0xe58]
push edx
mov ecx, dword [ebp - 0x147c]
add ecx, 0x7c
call fcn.004036d0
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x147c]
add ecx, 0xb4
call fcn.004036d0
jmp 0x4168bf
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x26
lea edx, [ebp - 0x630]
push edx
push 0
mov ecx, dword [ebp - 0x147c]
call fcn.00415ac0
push 0x59459c
lea eax, [ebp - 0x630]
push eax
call fcn.0049eb28
add esp, 8
push 0x5945a0
lea ecx, [ebp - 0x630]
push ecx
call fcn.0049eb28
add esp, 8
push 0x5945c4
lea edx, [ebp - 0x630]
push edx
call fcn.0049eb28
add esp, 8
lea eax, [ebp - 0x630]
push eax
lea ecx, [ebp - 0xe58]
push ecx
call fcn.0049eb52
add esp, 8
lea edx, [ebp - 0xe58]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.0049eb52
add esp, 8
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416781
push 0x5945c8
lea edx, [ebp - 0x210]
push edx
call fcn.0049eb28
add esp, 8
push 0x5945e0
lea eax, [ebp - 0x210]
push eax
call fcn.0049eb28
add esp, 8
mov word [ebp - 0x1478], 0
push 0x206
push 0
lea ecx, [ebp - 0x1476]
push ecx
call fcn.0049e690
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x1478]
push eax
call fcn.0049eb52
add esp, 8
push 0x5945e4
lea ecx, [ebp - 0x1478]
push ecx
call fcn.0049eb28
add esp, 8
lea edx, [ebp - 0x1478]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416781
lea eax, [ebp - 0xe58]
push eax
mov ecx, dword [ebp - 0x147c]
add ecx, 0x7c
call fcn.004036d0
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x147c]
add ecx, 0xb4
call fcn.004036d0
jmp 0x4168bf
lea edx, [ebp - 0x420]
push edx
call fcn.0049e752
add esp, 4
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jle 0x41683e
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41683e
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0xe58]
push edx
call fcn.0049eb52
add esp, 8
lea eax, [ebp - 0xe58]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.0049eb52
add esp, 8
push 0x594604
lea edx, [ebp - 0x210]
push edx
call fcn.0049eb28
add esp, 8
push 0x59461c
lea eax, [ebp - 0x210]
push eax
call fcn.0049eb28
add esp, 8
lea ecx, [ebp - 0xe58]
push ecx
mov ecx, dword [ebp - 0x147c]
add ecx, 0x7c
call fcn.004036d0
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp - 0x147c]
add ecx, 0xb4
call fcn.004036d0
jmp 0x4168bf
lea eax, [ebp - 0x630]
push eax
lea ecx, [ebp - 0xe58]
push ecx
call fcn.0049eb52
add esp, 8
lea edx, [ebp - 0xe58]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.0049eb52
add esp, 8
push 0x594620
lea ecx, [ebp - 0x210]
push ecx
call fcn.0049eb28
add esp, 8
push 0x594638
lea edx, [ebp - 0x210]
push edx
call fcn.0049eb28
add esp, 8
lea eax, [ebp - 0xe58]
push eax
mov ecx, dword [ebp - 0x147c]
add ecx, 0x7c
call fcn.004036d0
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x147c]
add ecx, 0xb4
call fcn.004036d0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0049e381
mov esp, ebp
pop ebp
ret