Function at 0x1001a23c
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.CfgUserPath
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 0x1001a3ad
lea eax, [ebp + 0x688]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001a3ad
lea eax, [ebp + 0x688]
push eax
lea ecx, [ebp + 0x38]
call fcn.10003610
lea eax, [ebp + 0x688]
push eax
lea ecx, [edi + 0xc]
call fcn.10003610
cmp byte [edi + 4], bl
mov byte [edi + 3], 1
jne 0x1001a3ad
xor esi, esi
inc esi
jmp 0x1001a613
push 0x206
lea eax, [ebp + 0x27a]
push ebx
push eax
mov word [ebp + 0x278], bx
call fcn.10085bc0
push 0x206
lea eax, [ebp + 0x72]
push ebx
push eax
mov word [ebp + 0x70], bx
call fcn.10085bc0
add esp, 0x18
push 0x104
lea eax, [ebp + 0x278]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x278]
push eax
call fcn.10085b54
test eax, eax
pop ecx
jne 0x1001a415
push 0x104
lea eax, [ebp + 0x278]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x278]
push 0x5c
push eax
call fcn.10088966
mov word [eax + 2], bx
push str.SmartCloudInfo.ini
lea eax, [ebp + 0x278]
push eax
lea eax, [ebp + 0x70]
push 0x1018725c
push eax
call fcn.10004df5
add esp, 0x18
lea eax, [ebp + 0x70]
push eax
push 0x104
lea eax, [ebp + 0x688]
push eax
push esi
push str.CfgUserPath
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 0x1001a4b2
lea eax, [ebp + 0x688]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001a4b2
lea eax, [ebp + 0x688]
push eax
lea ecx, [ebp + 0x1c]
call fcn.10003610
lea eax, [ebp + 0x688]
push eax
lea ecx, [edi + 0xc]
call fcn.10003610
cmp byte [edi + 4], bl
mov byte [edi + 3], 1
je 0x1001a3a5
lea eax, [edi + 0xb4]
cmp dword [eax + 0x18], 8
jb 0x1001a4c3
mov eax, dword [eax + 4]
jmp 0x1001a4c6
add eax, 4
push str.SmartCloudInfo.ini
push eax
lea eax, [ebp + 0x70]
push 0x1018725c
push eax
call fcn.10004df5
add esp, 0x10
lea eax, [ebp + 0x70]
push eax
push 0x104
lea eax, [ebp + 0x688]
push eax
push esi
push str.CfgUserPath
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 0x1001a54b
lea eax, [ebp + 0x688]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001a54b
lea eax, [ebp + 0x688]
push eax
lea ecx, [ebp]
call fcn.10003610
lea eax, [ebp + 0x688]
push eax
lea ecx, [edi + 0xc]
call fcn.10003610
cmp byte [edi + 4], bl
mov byte [edi + 3], 1
je 0x1001a3a5
push esi
push str.CfgUserPath
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 0x1001a571
lea eax, [ebp + 0x58]
push eax
call fcn.10085b54
test eax, eax
pop ecx
jle 0x1001a5b5
cmp dword [ebp + 0x6c], 8
mov eax, dword [ebp + 0x58]
jae 0x1001a588
lea eax, [ebp + 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001a5b5
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 + 0xc]
call fcn.10001d30
mov byte [edi + 3], 1
cmp byte [edi + 4], bl
je 0x1001a606
cmp byte [edi + 3], bl
je 0x1001a606
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x38]
call fcn.100075ec
test eax, eax
je 0x1001a5d3
mov byte [edi + 5], 1
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x38]
call fcn.100075ec
test eax, eax
je 0x1001a5e7
mov byte [edi + 5], 1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 0x38]
call fcn.100075ec
test eax, eax
je 0x1001a606
xor esi, esi
inc esi
push esi
push esi
lea ecx, [ebp + 0x38]
call fcn.10019c91
jmp 0x1001a609
xor esi, esi
inc esi
push ebx
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