Function at 0x409ee7
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.CfgUserPath
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 0x40a058
lea eax, [ebp + 0x688]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a058
lea eax, [ebp + 0x688]
push eax
lea ecx, [ebp + 0x38]
call fcn.00401300
lea eax, [ebp + 0x688]
push eax
lea ecx, [edi + 0xc]
call fcn.00401300
cmp byte [edi + 4], bl
mov byte [edi + 3], 1
jne 0x40a058
xor esi, esi
inc esi
jmp 0x40a2be
push 0x206
lea eax, [ebp + 0x27a]
push ebx
push eax
mov word [ebp + 0x278], bx
call fcn.0043d050
push 0x206
lea eax, [ebp + 0x72]
push ebx
push eax
mov word [ebp + 0x70], bx
call fcn.0043d050
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.0043d03a
test eax, eax
pop ecx
jne 0x40a0c0
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.0043ed6b
mov word [eax + 2], bx
push str.SmartCloudInfo.ini
lea eax, [ebp + 0x278]
push eax
lea eax, [ebp + 0x70]
push 0x52de40
push eax
call fcn.0043d110
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.0043d03a
test eax, eax
pop ecx
jle 0x40a15d
lea eax, [ebp + 0x688]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a15d
lea eax, [ebp + 0x688]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00401300
lea eax, [ebp + 0x688]
push eax
lea ecx, [edi + 0xc]
call fcn.00401300
cmp byte [edi + 4], bl
mov byte [edi + 3], 1
je 0x40a050
lea eax, [edi + 0xb4]
cmp dword [eax + 0x18], 8
jb 0x40a16e
mov eax, dword [eax + 4]
jmp 0x40a171
add eax, 4
push str.SmartCloudInfo.ini
push eax
lea eax, [ebp + 0x70]
push 0x52de40
push eax
call fcn.0043d110
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.0043d03a
cmp eax, ebx
pop ecx
jle 0x40a1f6
lea eax, [ebp + 0x688]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a1f6
lea eax, [ebp + 0x688]
push eax
lea ecx, [ebp]
call fcn.00401300
lea eax, [ebp + 0x688]
push eax
lea ecx, [edi + 0xc]
call fcn.00401300
cmp byte [edi + 4], bl
mov byte [edi + 3], 1
je 0x40a050
push esi
push str.CfgUserPath
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 0x40a21c
lea eax, [ebp + 0x58]
push eax
call fcn.0043d03a
test eax, eax
pop ecx
jle 0x40a260
cmp dword [ebp + 0x6c], 8
mov eax, dword [ebp + 0x58]
jae 0x40a233
lea eax, [ebp + 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a260
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 + 0xc]
call fcn.004018a0
mov byte [edi + 3], 1
cmp byte [edi + 4], bl
je 0x40a2b1
cmp byte [edi + 3], bl
je 0x40a2b1
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x38]
call fcn.00402c42
test eax, eax
je 0x40a27e
mov byte [edi + 5], 1
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x38]
call fcn.00402c42
test eax, eax
je 0x40a292
mov byte [edi + 5], 1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 0x38]
call fcn.00402c42
test eax, eax
je 0x40a2b1
xor esi, esi
inc esi
push esi
push esi
lea ecx, [ebp + 0x38]
call fcn.0040993c
jmp 0x40a2b4
xor esi, esi
inc esi
push ebx
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