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

Disassembly:
push ebp
lea ebp, [esp - 0xfd0]
mov eax, 0x1050
call fcn.0043ed40
mov eax, dword [0x581de4]
xor eax, ebp
mov dword [ebp + 0xfcc], eax
push ebx
push esi
push edi
mov esi, 0x206
xor ebx, ebx
push esi
lea eax, [ebp + 0x7ae]
push ebx
push eax
mov dword [ebp - 0x78], ecx
mov word [ebp + 0x7ac], bx
call fcn.0043d050
push esi
lea eax, [ebp + 0x39e]
push ebx
push eax
mov word [ebp + 0x39c], bx
call fcn.0043d050
push esi
lea eax, [ebp + 0x5a6]
push ebx
push eax
mov word [ebp + 0x5a4], bx
call fcn.0043d050
push esi
lea eax, [ebp + 0xbbe]
push ebx
push eax
mov word [ebp + 0xbbc], bx
call fcn.0043d050
push esi
lea eax, [ebp + 0xdc6]
push ebx
push eax
mov word [ebp + 0xdc4], bx
call fcn.0043d050
push esi
lea eax, [ebp - 0x72]
push ebx
push eax
mov word [ebp - 0x74], bx
call fcn.0043d050
add esp, 0x48
push ebx
push 0x2b
lea eax, [ebp + 0x7ac]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, 0x5741ac
lea eax, [ebp + 0x7ac]
push edi
push eax
call fcn.0043d0ca
lea eax, [ebp + 0x7ac]
push str.SmartCloudWBInput
push eax
call fcn.0043d0ca
lea eax, [ebp + 0x7ac]
push edi
push eax
call fcn.0043d0ca
lea eax, [ebp + 0x7ac]
push str.SmartCloudWB
push eax
call fcn.0043d0ca
lea eax, [ebp + 0x7ac]
push str..ini
push eax
call fcn.0043d0ca
add esp, 0x28
lea eax, [ebp + 0x7ac]
push eax
push 0x104
lea eax, [ebp + 0x39c]
push eax
push 0x5741b8
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0x39c]
push eax
lea eax, [ebp + 0xbbc]
push eax
call fcn.0043d0f4
lea eax, [ebp + 0xbbc]
push eax
call fcn.0043d03a
add esp, 0xc
test eax, eax
jle 0x40aa2f
lea eax, [ebp + 0xbbc]
push eax
lea eax, [ebp + 0xdc4]
push eax
call fcn.0043d0f4
pop ecx
pop ecx
lea eax, [ebp + 0xdc4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40aa2f
lea eax, [ebp + 0xdc4]
push 0x52e1b0
push eax
call fcn.0043d0ca
lea eax, [ebp + 0xdc4]
push edi
push eax
call fcn.0043d0ca
push esi
lea eax, [ebp + 0x9b6]
push ebx
push eax
mov word [ebp + 0x9b4], bx
call fcn.0043d050
lea eax, [ebp + 0xdc4]
push eax
lea eax, [ebp + 0x9b4]
push eax
call fcn.0043d0f4
lea eax, [ebp + 0x9b4]
push str.SCWBConfig.exe
push eax
call fcn.0043d0ca
add esp, 0x2c
lea eax, [ebp + 0x9b4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40acbf
push esi
lea eax, [ebp + 0x196]
push ebx
push eax
mov word [ebp + 0x194], bx
call fcn.0043d050
lea eax, [ebp + 0x194]
push str.SOFTWARE_
push eax
call fcn.0043d0f4
lea eax, [ebp + 0x194]
push str.SmartCloudWBInput
push eax
call fcn.0043d0ca
add esp, 0x1c
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push ebx
lea eax, [ebp + 0x194]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ab64
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push str.InstallPath
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ab64
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0xbbc]
push eax
call fcn.0043d0f4
lea eax, [ebp + 0xbbc]
push eax
lea eax, [ebp + 0xdc4]
push eax
call fcn.0043d0f4
add esp, 0x10
lea eax, [ebp + 0xdc4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ab64
lea eax, [ebp + 0xdc4]
push 0x52e1b0
push eax
call fcn.0043d0ca
lea eax, [ebp + 0xdc4]
push edi
push eax
call fcn.0043d0ca
push esi
lea eax, [ebp + 0x9b6]
push ebx
push eax
mov word [ebp + 0x9b4], bx
call fcn.0043d050
lea eax, [ebp + 0xdc4]
push eax
lea eax, [ebp + 0x9b4]
push eax
call fcn.0043d0f4
lea eax, [ebp + 0x9b4]
push str.SCWBConfig.exe
push eax
call fcn.0043d0ca
add esp, 0x2c
lea eax, [ebp + 0x9b4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ab64
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40acbf
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x78]
push ebx
push 0x26
lea eax, [ebp + 0x5a4]
push eax
push ebx
call fcn.004093fd
lea eax, [ebp + 0x5a4]
push edi
push eax
call fcn.0043d0ca
lea eax, [ebp + 0x5a4]
push str.SmartCloudWBInput
push eax
call fcn.0043d0ca
lea eax, [ebp + 0x5a4]
push edi
push eax
call fcn.0043d0ca
lea eax, [ebp + 0x5a4]
push eax
lea eax, [ebp + 0xbbc]
push eax
call fcn.0043d0f4
lea eax, [ebp + 0xbbc]
push eax
lea eax, [ebp + 0xdc4]
push eax
call fcn.0043d0f4
add esp, 0x28
lea eax, [ebp + 0xdc4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ac50
lea eax, [ebp + 0xdc4]
push 0x52e1b0
push eax
call fcn.0043d0ca
lea eax, [ebp + 0xdc4]
push edi
push eax
call fcn.0043d0ca
push esi
lea eax, [ebp + 0x9b6]
push ebx
push eax
mov word [ebp + 0x9b4], bx
call fcn.0043d050
lea eax, [ebp + 0xdc4]
push eax
lea eax, [ebp + 0x9b4]
push eax
call fcn.0043d0f4
lea eax, [ebp + 0x9b4]
push str.SCWBConfig.exe
push eax
call fcn.0043d0ca
add esp, 0x2c
lea eax, [ebp + 0x9b4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40acbf
lea eax, [ebp + 0x39c]
push eax
call fcn.0043d03a
test eax, eax
pop ecx
jle 0x40ac78
lea eax, [ebp + 0x39c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea eax, [ebp + 0x39c]
jne 0x40ac7e
lea eax, [ebp + 0x5a4]
push eax
lea eax, [ebp + 0xbbc]
push eax
call fcn.0043d0f4
lea eax, [ebp + 0xbbc]
push eax
lea eax, [ebp + 0xdc4]
push eax
call fcn.0043d0f4
lea eax, [ebp + 0xdc4]
push 0x52e1b0
push eax
call fcn.0043d0ca
lea eax, [ebp + 0xdc4]
push edi
push eax
call fcn.0043d0ca
add esp, 0x20
mov esi, dword [ebp - 0x78]
lea eax, [ebp + 0xbbc]
push eax
lea ecx, [esi + 0x7c]
call fcn.00401300
lea eax, [ebp + 0xdc4]
push eax
lea ecx, [esi + 0xb4]
call fcn.00401300
mov ecx, dword [ebp + 0xfcc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043ca22
add ebp, 0xfd0
leave
ret