Function at 0x406599
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0xc8
lea ebp, [esp - 4]
mov eax, dword [0x44c038]
xor eax, ebp
mov dword [ebp + 0xc8], eax
push 0x18
mov eax, 0x43ee3c
call fcn.004279b7
mov eax, dword [0x44dbcc]
mov edi, 0x44dbcc
xor ebx, ebx
mov ecx, edi
mov dword [ebp - 0x24], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], ebx
mov eax, dword [0x44dbcc]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0xc6
lea eax, [ebp + 2]
push ebx
mov byte [ebp - 4], 1
push eax
mov word [ebp], bx
call fcn.00426270
mov eax, dword [0x44dbcc]
add esp, 0xc
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
mov eax, dword [0x44dbcc]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 3
call fcn.00401c48
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00401ce8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004010aa
mov eax, edi
call fcn.00401d42
mov eax, edi
lea edi, [ebp - 0x20]
call fcn.00401ce8
push str.ressrcchsuplive.svr
lea eax, [ebp - 0x14]
push eax
call fcn.00401df7
push str.ressrcchskismain.ini
mov eax, edi
push eax
call fcn.00401df7
push dword [ebp - 0x14]
lea eax, [ebp]
push 0x64
push eax
mov esi, 0x442074
push esi
push str.Version
push str.Common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
je 0x40677d
lea eax, [ebp]
push eax
call fcn.00426257
pop ecx
lea ecx, [ebp]
mov ebx, eax
push ecx
lea eax, [ebp - 0x10]
call fcn.00401896
lea eax, [ebp - 0x10]
call fcn.00401d42
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
lea eax, [ebp - 0x1c]
push eax
push 2
pop edx
lea eax, [ebp - 0x10]
call fcn.00401eb8
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00401ce8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004010aa
push esi
push 0x4421c0
mov eax, edi
push eax
call fcn.00404811
push esi
push 0x442618
mov eax, edi
push eax
call fcn.00404811
push dword [ebp - 0x20]
lea eax, [ebp]
push 0x64
push eax
push esi
push 0x442340
push str.infos
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40677d
lea eax, [ebp]
push eax
call fcn.00426257
pop ecx
lea ecx, [ebp]
mov ebx, eax
push ecx
lea eax, [ebp - 0x10]
call fcn.00401896
lea eax, [ebp - 0x1c]
push eax
push 6
pop ecx
lea eax, [ebp - 0x10]
call fcn.00401d6b
mov byte [ebp - 4], 6
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.00401f30
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004010aa
push dword [ebp - 0x18]
call fcn.004269a1
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004010aa
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004010aa
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004010aa
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004010aa
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
call fcn.00425c5a
add ebp, 0xcc
leave
ret