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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa34
mov eax, dword [0x101bd92c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
mov ebx, ecx
call fcn.10098090
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.10098090
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.10098090
lea eax, [ebx + 0x9c]
add esp, 0x24
cmp dword [eax + 0x14], 8
jb 0x10002478
mov eax, dword [eax]
push str.SmartCloudInfo.ini
push eax
lea eax, [ebp - 0x61c]
push 0x101917a4
push eax
call fcn.10091da4
add esp, 0x10
lea eax, [ebp - 0x61c]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x10199228
push str.CfgUserPath
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10002514
cmp word [ebp - 0x20c], 0
jne 0x100024d9
xor ecx, ecx
jmp 0x100024f1
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100024e2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebx + 0x24]
call fcn.100048b0
mov byte [ebx + 0x21], 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009174c
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0x2b
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x414]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10002531
mov eax, dword [0x101917d8]
mov dword [edi], eax
lea edi, [ebp - 0x414]
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10002550
push esi
mov ecx, 8
mov esi, 0x101917dc
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x414]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x10002572
lea ecx, [ebp - 0x414]
mov dword [edi], eax
add ecx, 0xfffffffe
lea esp, [esp]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10002590
mov eax, dword [0x101917fc]
mov dword [ecx], eax
mov eax, dword [0x10191800]
mov dword [ecx + 4], eax
mov eax, dword [0x10191804]
mov dword [ecx + 8], eax
mov eax, dword [0x10191808]
mov dword [ecx + 0xc], eax
mov eax, dword [0x1019180c]
mov dword [ecx + 0x10], eax
mov ax, word [0x10191810]
mov word [ecx + 0x14], ax
lea ecx, [ebp - 0x414]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x100025d6
mov eax, dword [str..ini]
mov dword [ecx], eax
mov eax, dword [0x10191818]
mov dword [ecx + 4], eax
mov ax, word [0x1019181c]
mov word [ecx + 8], ax
lea eax, [ebp - 0x414]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x10199228
push str.CfgUserPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10002684
cmp word [ebp - 0x20c], 0
jne 0x10002642
xor ecx, ecx
jmp 0x1000265f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
jmp 0x10002650
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002650
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebx + 0x24]
call fcn.100048b0
pop esi
pop edi
mov byte [ebx + 0x21], 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009174c
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.10098090
add esp, 0xc
xor ecx, ecx
jmp 0x100026b0
movzx eax, word [ecx + str.SOFTWARE_]
mov word [ebp + ecx - 0x824], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x100026b0
lea edi, [ebp - 0x824]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x100026d0
lea eax, [ebp - 0xa30]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x824]
push eax
mov ecx, 8
mov esi, 0x101917dc
push reloc.OLEAUT32.dll_SysReAllocString
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000277e
lea eax, [ebp - 0xa34]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push str.CfgUserPath
push dword [ebp - 0xa30]
mov dword [ebp - 0xa34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000277e
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000277e
push dword [ebp - 0xa30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebx + 0x24]
call fcn.100044a0
pop esi
pop edi
mov byte [ebx + 0x21], 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009174c
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xa30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0xa2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0xa2c]
push 0x5c
push eax
call fcn.10092237
xor ecx, ecx
mov word [eax + 2], cx
push str.SmartCloudInfo.ini
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x61c]
push 0x101917a4
push eax
call fcn.10091da4
add esp, 0x18
lea eax, [ebp - 0x61c]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x10199228
push str.CfgUserPath
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000275a
mov ecx, dword [ebp - 4]
pop esi
pop edi
mov byte [ebx + 0x21], al
xor ecx, ebp
pop ebx
call fcn.1009174c
mov esp, ebp
pop ebp
ret