Function at 0x10019e3e
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
sub esp, 0x890
lea ebp, [esp - 4]
mov eax, dword [0x10207390]
xor eax, ebp
mov dword [ebp + 0x890], eax
push 0x1c
mov eax, 0x1017c705
call fcn.1008546d
mov esi, 0x206
xor ebx, ebx
push esi
lea eax, [ebp + 0x482]
push ebx
push eax
mov edi, ecx
mov word [ebp + 0x480], bx
call fcn.10085bc0
push esi
lea eax, [ebp + 0x68a]
push ebx
push eax
mov word [ebp + 0x688], bx
call fcn.10085bc0
add esp, 0x18
mov esi, 0x101ebf0c
push esi
lea ecx, [ebp + 0x38]
call fcn.100015f0
push esi
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], ebx
call fcn.100015f0
push esi
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.100015f0
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.100015f0
push ebx
push 0x2b
lea eax, [ebp + 0x480]
push eax
push ebx
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.100195c4
lea eax, [ebp + 0x480]
push 0x101ebeec
push eax
call fcn.100860a3
lea eax, [ebp + 0x480]
push str.SmartCloudWBInput
push eax
call fcn.100860a3
lea eax, [ebp + 0x480]
push 0x101ebeec
push eax
call fcn.100860a3
lea eax, [ebp + 0x480]
push str.SmartCloudWB
push eax
call fcn.100860a3
lea eax, [ebp + 0x480]
push str..ini
push eax
call fcn.100860a3
add esp, 0x28
lea eax, [ebp + 0x480]
push eax
push 0x104
lea eax, [ebp + 0x688]
push eax
push esi
push str.CfgRootPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0x688]
push eax
call fcn.10085b54
test eax, eax
pop ecx
jle 0x10019faf
lea eax, [ebp + 0x688]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10019faf
lea eax, [ebp + 0x688]
push eax
lea ecx, [ebp + 0x38]
call fcn.10003610
lea eax, [ebp + 0x688]
push eax
lea ecx, [edi + 0x28]
call fcn.10003610
cmp byte [edi + 4], bl
mov byte [edi + 2], 1
jne 0x10019faf
xor esi, esi
inc esi
jmp 0x1001a1f1
push 0x104
lea eax, [ebp + 0x70]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x70]
push eax
call fcn.10085b54
test eax, eax
pop ecx
jne 0x10019fdf
push 0x104
lea eax, [ebp + 0x70]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x70]
push 0x5c
push eax
call fcn.10088966
mov word [eax + 2], bx
push 0x206
lea eax, [ebp + 0x27a]
push ebx
push eax
mov word [ebp + 0x278], bx
call fcn.10085bc0
push str.SmartCloudInfo.ini
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x278]
push 0x1018725c
push eax
call fcn.10004df5
add esp, 0x24
lea eax, [ebp + 0x278]
push eax
push 0x104
lea eax, [ebp + 0x688]
push eax
push esi
push str.CfgRootPath
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0x688]
push eax
call fcn.10085b54
test eax, eax
pop ecx
jle 0x1001a095
lea eax, [ebp + 0x688]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001a095
lea eax, [ebp + 0x688]
push eax
lea ecx, [ebp + 0x1c]
call fcn.10003610
lea eax, [ebp + 0x688]
push eax
lea ecx, [edi + 0x28]
call fcn.10003610
cmp byte [edi + 4], bl
mov byte [edi + 2], 1
je 0x10019fa7
lea eax, [edi + 0xb4]
cmp dword [eax + 0x18], 8
jb 0x1001a0a6
mov eax, dword [eax + 4]
jmp 0x1001a0a9
add eax, 4
push str.SmartCloudInfo.ini
push eax
lea eax, [ebp + 0x278]
push 0x1018725c
push eax
call fcn.10004df5
add esp, 0x10
lea eax, [ebp + 0x278]
push eax
push 0x104
lea eax, [ebp + 0x688]
push eax
push esi
push str.CfgRootPath
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0x688]
push eax
call fcn.10085b54
cmp eax, ebx
pop ecx
jle 0x1001a134
lea eax, [ebp + 0x688]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001a134
lea eax, [ebp + 0x688]
push eax
lea ecx, [ebp]
call fcn.10003610
lea eax, [ebp + 0x688]
push eax
lea ecx, [edi + 0x28]
call fcn.10003610
cmp byte [edi + 4], bl
mov byte [edi + 2], 1
je 0x10019fa7
push esi
push str.CfgRootPath
push str.AppInfo
lea eax, [ebp + 0x54]
push eax
mov ecx, edi
call fcn.10019c41
cmp dword [ebp + 0x6c], 8
mov eax, dword [ebp + 0x58]
mov byte [ebp - 4], 4
jae 0x1001a15a
lea eax, [ebp + 0x58]
push eax
call fcn.10085b54
test eax, eax
pop ecx
jle 0x1001a19e
cmp dword [ebp + 0x6c], 8
mov eax, dword [ebp + 0x58]
jae 0x1001a171
lea eax, [ebp + 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001a19e
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x54]
push eax
lea ecx, [ebp - 0x28]
call fcn.10001d30
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x54]
push eax
lea ecx, [edi + 0x28]
call fcn.10001d30
mov byte [edi + 2], 1
cmp byte [edi + 4], bl
je 0x1001a1e4
cmp byte [edi + 2], bl
je 0x1001a1e4
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x38]
call fcn.100075ec
test eax, eax
je 0x1001a1bc
mov byte [edi + 5], 1
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x38]
call fcn.100075ec
test eax, eax
je 0x1001a1d0
mov byte [edi + 5], 1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 0x38]
call fcn.100075ec
test eax, eax
je 0x1001a1e4
mov byte [edi + 5], 1
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp + 0x54]
call fcn.100017c0
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.100017c0
push ebx
push esi
lea ecx, [ebp]
call fcn.100017c0
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.100017c0
push ebx
push esi
lea ecx, [ebp + 0x38]
call fcn.100017c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x890]
xor ecx, ebp
call fcn.1008545e
add ebp, 0x894
leave
ret