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

Disassembly:
push ebp
sub esp, 0x890
lea ebp, [esp - 4]
mov eax, dword [0x581de4]
xor eax, ebp
mov dword [ebp + 0x890], eax
push 0x1c
mov eax, 0x52912a
call fcn.0043ca31
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.0043d050
push esi
lea eax, [ebp + 0x68a]
push ebx
push eax
mov word [ebp + 0x688], bx
call fcn.0043d050
add esp, 0x18
mov esi, 0x5741b8
push esi
lea ecx, [ebp + 0x38]
call fcn.00401130
push esi
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], ebx
call fcn.00401130
push esi
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.00401130
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00401130
push ebx
push 0x2b
lea eax, [ebp + 0x480]
push eax
push ebx
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004093fd
lea eax, [ebp + 0x480]
push 0x5741ac
push eax
call fcn.0043d0ca
lea eax, [ebp + 0x480]
push str.SmartCloudWBInput
push eax
call fcn.0043d0ca
lea eax, [ebp + 0x480]
push 0x5741ac
push eax
call fcn.0043d0ca
lea eax, [ebp + 0x480]
push str.SmartCloudWB
push eax
call fcn.0043d0ca
lea eax, [ebp + 0x480]
push str..ini
push eax
call fcn.0043d0ca
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.0043d03a
test eax, eax
pop ecx
jle 0x409c5a
lea eax, [ebp + 0x688]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409c5a
lea eax, [ebp + 0x688]
push eax
lea ecx, [ebp + 0x38]
call fcn.00401300
lea eax, [ebp + 0x688]
push eax
lea ecx, [edi + 0x28]
call fcn.00401300
cmp byte [edi + 4], bl
mov byte [edi + 2], 1
jne 0x409c5a
xor esi, esi
inc esi
jmp 0x409e9c
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.0043d03a
test eax, eax
pop ecx
jne 0x409c8a
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.0043ed6b
mov word [eax + 2], bx
push 0x206
lea eax, [ebp + 0x27a]
push ebx
push eax
mov word [ebp + 0x278], bx
call fcn.0043d050
push str.SmartCloudInfo.ini
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x278]
push 0x52de40
push eax
call fcn.0043d110
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.0043d03a
test eax, eax
pop ecx
jle 0x409d40
lea eax, [ebp + 0x688]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409d40
lea eax, [ebp + 0x688]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00401300
lea eax, [ebp + 0x688]
push eax
lea ecx, [edi + 0x28]
call fcn.00401300
cmp byte [edi + 4], bl
mov byte [edi + 2], 1
je 0x409c52
lea eax, [edi + 0xb4]
cmp dword [eax + 0x18], 8
jb 0x409d51
mov eax, dword [eax + 4]
jmp 0x409d54
add eax, 4
push str.SmartCloudInfo.ini
push eax
lea eax, [ebp + 0x278]
push 0x52de40
push eax
call fcn.0043d110
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.0043d03a
cmp eax, ebx
pop ecx
jle 0x409ddf
lea eax, [ebp + 0x688]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409ddf
lea eax, [ebp + 0x688]
push eax
lea ecx, [ebp]
call fcn.00401300
lea eax, [ebp + 0x688]
push eax
lea ecx, [edi + 0x28]
call fcn.00401300
cmp byte [edi + 4], bl
mov byte [edi + 2], 1
je 0x409c52
push esi
push str.CfgRootPath
push str.AppInfo
lea eax, [ebp + 0x54]
push eax
mov ecx, edi
call fcn.004098ec
cmp dword [ebp + 0x6c], 8
mov eax, dword [ebp + 0x58]
mov byte [ebp - 4], 4
jae 0x409e05
lea eax, [ebp + 0x58]
push eax
call fcn.0043d03a
test eax, eax
pop ecx
jle 0x409e49
cmp dword [ebp + 0x6c], 8
mov eax, dword [ebp + 0x58]
jae 0x409e1c
lea eax, [ebp + 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409e49
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x54]
push eax
lea ecx, [ebp - 0x28]
call fcn.004018a0
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x54]
push eax
lea ecx, [edi + 0x28]
call fcn.004018a0
mov byte [edi + 2], 1
cmp byte [edi + 4], bl
je 0x409e8f
cmp byte [edi + 2], bl
je 0x409e8f
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x38]
call fcn.00402c42
test eax, eax
je 0x409e67
mov byte [edi + 5], 1
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x38]
call fcn.00402c42
test eax, eax
je 0x409e7b
mov byte [edi + 5], 1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 0x38]
call fcn.00402c42
test eax, eax
je 0x409e8f
mov byte [edi + 5], 1
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp + 0x54]
call fcn.00401330
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.00401330
push ebx
push esi
lea ecx, [ebp]
call fcn.00401330
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.00401330
push ebx
push esi
lea ecx, [ebp + 0x38]
call fcn.00401330
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.0043ca22
add ebp, 0x894
leave
ret