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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.004cb7c0
push 0x11c
lea edi, [esi + 0x618]
push 0
push edi
call fcn.0051d250
push edi
mov dword [edi], 0x11c
call fcn.004ccc50
add esp, 0x10
test eax, eax
jne 0x4cd268
push 0x11c
push eax
push edi
call fcn.0051d250
add esp, 0xc
mov dword [edi], 0x11c
push 0
lea ecx, [esi + 0x734]
push 0x576bd0
mov dword [ebp - 0x2ec], ecx
call fcn.00449eb0
push 0
lea ecx, [esi + 0x73c]
push 0x576bd0
mov dword [ebp - 0x2e8], ecx
call fcn.00449eb0
push 0
lea ecx, [esi + 0x740]
push 0x576bd0
mov dword [ebp - 0x2dc], ecx
call fcn.00449eb0
push 0
lea ebx, [esi + 0x748]
push 0x576bd0
mov ecx, ebx
call fcn.00449eb0
push 1
lea edi, [esi + 0x74c]
push 0x559820
mov ecx, edi
call fcn.00449eb0
push 0
lea ecx, [esi + 0x744]
push 0x576bd0
mov dword [ebp - 0x2e4], ecx
call fcn.00449eb0
push esi
lea ecx, [ebp - 0x2e0]
call fcn.00464b60
push 0xc
push str.360base.dll
lea ecx, [ebp - 0x2e0]
call fcn.0044a1a0
push esi
lea ecx, [ebp - 0x2d8]
call fcn.00464b60
lea eax, [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x2e0]
push ecx
call fcn.00458670
mov eax, dword [ebp - 0x2d8]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4cd352
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x758], 1
jne 0x4cd39d
xor ecx, ecx
push 0xc6
push ecx
lea edx, [ebp - 0x2d2]
push edx
mov word [ebp - 0x2d4], cx
call fcn.0051d250
add esp, 0xc
push 0x64
lea eax, [ebp - 0x2d4]
push eax
call fcn.00551dd0
test eax, eax
je 0x4cd39d
lea ecx, [ebp - 0x2d4]
push ecx
mov ecx, dword [ebp - 0x2ec]
call fcn.00459660
lea edx, [esi + 0x738]
push edx
call fcn.00460cd0
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0051d250
add esp, 0x10
push 0x5662a0
push esi
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x2d8]
push ecx
call fcn.004c48a0
mov ecx, dword [ebp - 0x2e8]
add esp, 8
push eax
call fcn.0044f5c0
mov eax, dword [ebp - 0x2d8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4cd41e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x2d8]
push edx
call fcn.004cd020
add esp, 8
push eax
lea ecx, [esi + 0x750]
call fcn.0044f5c0
mov eax, dword [ebp - 0x2d8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cd462
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov word [ebp - 0x20c], cx
call fcn.0051d250
add esp, 0xc
push str.config.ini
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4cd654
mov ecx, dword [ebp - 0x2dc]
mov eax, dword [ecx]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x3e8
or edx, eax
jge 0x4cd4d7
push 0x3e8
call fcn.0043a120
mov ecx, dword [ebp - 0x2dc]
mov eax, dword [ecx]
lea edx, [ebp - 0x20c]
push edx
push 0x3e8
push eax
push 0x561bf0
push str.language
push 0x561c38
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [ebp - 0x2dc]
mov eax, dword [edx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4cd522
push ecx
push eax
call fcn.0051f6df
add esp, 8
test eax, eax
jl 0x4cd6dc
mov edx, dword [ebp - 0x2dc]
mov ecx, dword [edx]
cmp eax, dword [ecx - 8]
jg 0x4cd6dc
mov dword [ecx - 0xc], eax
mov ecx, dword [edx]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [ebx]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x3e8
or ecx, edx
jge 0x4cd55e
push 0x3e8
mov ecx, ebx
call fcn.0043a120
mov ecx, dword [ebx]
lea eax, [ebp - 0x20c]
push eax
push 0x3e8
push ecx
push 0x576bd0
push str.channel
push 0x561c38
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4cd59d
push ecx
push eax
call fcn.0051f6df
add esp, 8
test eax, eax
jl 0x4cd6dc
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x4cd6dc
mov dword [ecx - 0xc], eax
mov edx, dword [ebx]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [edi]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x3e8
or edx, eax
jge 0x4cd5d8
push 0x3e8
mov ecx, edi
call fcn.0043a120
mov edx, dword [edi]
lea ecx, [ebp - 0x20c]
push ecx
push 0x3e8
push edx
push 0x576bd0
push 0x56b9a4
push 0x561c38
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4cd617
push ecx
push eax
call fcn.0051f6df
add esp, 8
test eax, eax
jl 0x4cd6dc
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x4cd6dc
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [edi]
cmp dword [eax - 0xc], edx
je 0x4cd646
push edi
push 0x56b9a0
call fcn.004a0830
add esp, 8
test al, al
je 0x4cd654
push 1
push 0x559820
mov ecx, edi
call fcn.00449eb0
push 0x1e
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
mov eax, 0x56b998
jne 0x4cd66a
mov eax, 0x56b990
mov ecx, dword [esi + 0x620]
mov edx, dword [esi + 0x61c]
push eax
mov eax, dword [ebp - 0x2e4]
push ecx
push edx
push str._d._d__s
push eax
call fcn.0044ff30
add esp, 0x14
test byte [0x597c58], 1
jne 0x4cd6a7
or dword [0x597c58], 1
mov ecx, 0x5979e0
call fcn.00458540
cmp byte [0x597c50], 0
jne 0x4cd6ba
mov ecx, 0x5979e0
call fcn.00453980
cmp dword [0x5979e0], 0
je 0x4cd6e6
mov eax, dword [0x597c10]
test eax, eax
je 0x4cd6e6
lea ecx, [esi + 0x8b4]
push 0
push ecx
call eax
add esp, 8
jmp 0x4cd6e8
push 0x80070057
call fcn.00414840
xor eax, eax
mov dword [esi + 0x75c], eax
call fcn.00417180
push eax
lea ecx, [esi + 0x760]
call fcn.00464bf0
mov edx, dword [ebp - 0x2e4]
mov eax, dword [ebp - 0x2dc]
mov ecx, dword [ebp - 0x2e8]
push edi
push ebx
push edx
mov edx, dword [ebp - 0x2ec]
push eax
push ecx
push edx
call fcn.0050cad0
mov eax, dword [ebp - 0x2e0]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop esi
pop ebx
test edx, edx
jg 0x4cd74a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret