Function at 0x100015f0
Capabilities:
Check if file exists
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10018e36
mov eax, dword fs:[0]
push eax
sub esp, 0xa64
mov eax, dword [0x10023260]
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 ebx, ecx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xa38], ax
lea eax, [ebp - 0xa36]
push eax
call fcn.10006d40
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call fcn.10006d40
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.10006d40
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.10006d40
add esp, 0x30
xor ecx, ecx
movzx eax, word [ecx + str.SOFTWARE_]
mov word [ebp + ecx - 0x628], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10001691
lea edi, [ebp - 0x628]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x100016b1
lea eax, [ebp - 0xa6c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x628]
push eax
mov ecx, 9
mov esi, str.SmartCloudWBInput
push 0x80000002
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10001758
lea eax, [ebp - 0xa70]
push eax
lea eax, [ebp - 0xa38]
push eax
push 0
push 0
push str.InstallPath
push dword [ebp - 0xa6c]
mov dword [ebp - 0xa70], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10001758
xor ecx, ecx
movzx eax, word [ebp + ecx - 0xa38]
mov word [ebp + ecx - 0x830], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10001720
xor ecx, ecx
lea ebx, [ebx]
movzx eax, word [ebp + ecx - 0x830]
mov word [ebp + ecx - 0x420], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10001740
cmp word [ebp - 0x420], 0
jne 0x10001766
xor ecx, ecx
jmp 0x1000177f
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001770
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
mov ecx, ebx
call fcn.10002150
push dword [ebp - 0xa6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x420]
push eax
call edi
test eax, eax
je 0x10001807
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xa68]
push eax
mov ecx, ebx
call fcn.10001340
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xa68]
push eax
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.10001df0
push 1
push 0x1001a258
mov ecx, ebx
call fcn.10001f00
cmp dword [ebp - 0xa54], 8
mov dword [ebp - 4], 0xffffffff
jb 0x10001807
push dword [ebp - 0xa68]
call fcn.100050fe
add esp, 4
cmp dword [ebx + 0x14], 8
jb 0x10001811
mov eax, dword [ebx]
jmp 0x10001813
mov eax, ebx
push eax
call edi
test eax, eax
je 0x100019da
lea esi, [ebx + 0x18]
cmp esi, ebx
je 0x10001831
push 0xffffffffffffffff
push 0
push ebx
mov ecx, esi
call fcn.10002030
push 0xe
push 0x1001a25c
mov ecx, esi
call fcn.10001f00
lea esi, [ebx + 0x30]
cmp esi, ebx
je 0x10001852
push 0xffffffffffffffff
push 0
push ebx
mov ecx, esi
call fcn.10002030
push 0xe
push str.SCWBConfig.exe
mov ecx, esi
call fcn.10001f00
lea esi, [ebx + 0x48]
cmp esi, ebx
je 0x10001873
push 0xffffffffffffffff
push 0
push ebx
mov ecx, esi
call fcn.10002030
push 0xd
push str.SCWBCloud.exe
mov ecx, esi
call fcn.10001f00
xor eax, eax
push 0xffffffffffffffff
push eax
push ebx
lea ecx, [ebp - 0xa50]
mov dword [ebp - 0xa3c], 7
mov dword [ebp - 0xa40], 0
mov word [ebp - 0xa50], ax
call fcn.10002030
push 0x12
push str.SmartCloudInfo.ini
lea ecx, [ebp - 0xa50]
mov dword [ebp - 4], 1
call fcn.10001f00
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.10006d40
add esp, 0xc
cmp dword [ebp - 0xa3c], 8
lea eax, [ebp - 0xa50]
cmovae eax, dword [ebp - 0xa50]
push eax
call edi
test eax, eax
je 0x10001935
cmp dword [ebp - 0xa3c], 8
lea eax, [ebp - 0xa50]
cmovae eax, dword [ebp - 0xa50]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x1001a2e0
push str.CfgRootPath
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x10001943
xor ecx, ecx
jmp 0x1000195f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001950
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebx + 0x60]
call fcn.10002150
push 0x15
push str.ConfigUseVestige.ini
lea ecx, [ebx + 0x60]
call fcn.10001f00
cmp word [ebp - 0x218], 0
jne 0x1000198c
xor ecx, ecx
jmp 0x100019a4
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001995
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebx + 0x78]
call fcn.10002150
push 0x11
push str.ConfigConfig.ini
lea ecx, [ebx + 0x78]
call fcn.10001f00
cmp dword [ebp - 0xa3c], 8
jb 0x100019da
push dword [ebp - 0xa50]
call fcn.100050fe
add esp, 4
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.1000629a
mov esp, ebp
pop ebp
ret