Function at 0x401310
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7584
mov eax, dword fs:[0]
push eax
sub esp, 0x3c0
mov eax, dword [0x4c0c00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004011c0
test eax, eax
jne 0x40134e
mov eax, 1
jmp 0x401634
mov dword [ebp - 0x2a4], 0
lea ecx, [ebp - 0x24c]
call fcn.004022b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2a0]
call fcn.00402a40
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2a0]
push eax
call fcn.00421280
add esp, 4
push str._rscfg.dll
lea ecx, [ebp - 0x2a0]
call fcn.00401f40
lea ecx, [ebp - 0x284]
call fcn.00402a40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x268]
call fcn.00402a40
mov byte [ebp - 4], 3
push 0x104
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00421670
add esp, 8
lea edx, [ebp - 0x11c]
push edx
lea ecx, [ebp - 0x284]
call fcn.00402b10
push str.kakac.ini
lea ecx, [ebp - 0x284]
call fcn.00401f40
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x268]
call fcn.00402b10
push str.kaka.ini
lea ecx, [ebp - 0x268]
call fcn.00401f40
lea ecx, [ebp - 0x2a0]
call fcn.00402b30
push eax
lea ecx, [ebp - 0x24c]
call fcn.00402460
mov dword [ebp - 0x2a4], eax
cmp dword [ebp - 0x2a4], 0
je 0x4014e4
lea ecx, [ebp - 0x2ac]
call fcn.00402b50
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2ac]
push ecx
push 0x4ab58c
push 0
push 0
push 0x4ab56c
lea ecx, [ebp - 0x24c]
call fcn.00402530
mov dword [ebp - 0x2b0], eax
cmp dword [ebp - 0x2b0], 0
jne 0x4014d0
mov dword [ebp - 0x2b4], 0
lea ecx, [ebp - 0x2ac]
call fcn.00401fb0
mov dword [ebp - 0x3cc], eax
push 0
push 0
push 0
mov edx, dword [str.JoinImprovementPlan]
push edx
mov eax, dword [str.CloudSafe]
push eax
mov ecx, dword [ebp - 0x3cc]
push ecx
mov edx, dword [ebp - 0x3cc]
mov eax, dword [edx]
mov ecx, dword [eax + 0x14]
call ecx
mov dword [ebp - 0x2b4], eax
xor edx, edx
cmp dword [ebp - 0x2b4], 0
setne dl
mov dword [ebp - 0x2a4], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2ac]
call fcn.004880a0
jmp 0x4015e3
lea ecx, [ebp - 0x284]
call fcn.00402b30
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40150d
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x284]
call fcn.00401f00
mov byte [ebp - 0x3bc], 0
push 0x103
push 0
lea ecx, [ebp - 0x3bb]
push ecx
call fcn.0048e260
add esp, 0xc
lea ecx, [ebp - 0x284]
call fcn.00402b30
push eax
push 0x104
lea edx, [ebp - 0x3bc]
push edx
push 0x4ab4b4
push str.AutoTrans
push str.Cloud
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x3bc]
push eax
call fcn.0048e1d0
add esp, 4
test eax, eax
ja 0x4015bb
mov dword [ebp - 0x3c4], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x268]
call fcn.00402af0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x284]
call fcn.00402af0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2a0]
call fcn.00402af0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.004023f0
mov eax, dword [ebp - 0x3c4]
jmp 0x401634
lea ecx, [ebp - 0x3bc]
push ecx
call fcn.0048e1c3
add esp, 4
mov dword [ebp - 0x3c0], eax
cmp dword [ebp - 0x3c0], 1
jne 0x4015e3
mov dword [ebp - 0x2a4], 1
mov edx, dword [ebp - 0x2a4]
mov dword [ebp - 0x3c8], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x268]
call fcn.00402af0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x284]
call fcn.00402af0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2a0]
call fcn.00402af0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.004023f0
mov eax, dword [ebp - 0x3c8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048e19e
mov esp, ebp
pop ebp
ret