Function at 0x40f220
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10618
call fcn.00468360
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov word [ebp - 0x10008], ax
push 0xfff8
push 0
lea ecx, [ebp - 0x10006]
push ecx
call fcn.00467d60
add esp, 0xc
mov dword [ebp - 0x1000c], 0
mov edx, dword [ebp + 8]
push edx
push 0x7ffd
lea eax, [ebp - 0x10008]
push eax
push 0x4af40c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
jbe 0x40f5bd
xor ecx, ecx
mov word [ebp - 0x10410], cx
push 0x1fe
push 0
lea edx, [ebp - 0x1040e]
push edx
call fcn.00467d60
add esp, 0xc
xor eax, eax
mov word [ebp - 0x10210], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x1020e]
push ecx
call fcn.00467d60
add esp, 0xc
xor edx, edx
mov word [ebp - 0x10618], dx
push 0x206
push 0
lea eax, [ebp - 0x10616]
push eax
call fcn.00467d60
add esp, 0xc
lea ecx, [ebp - 0x10008]
mov dword [ebp - 0x10010], ecx
mov edx, dword [ebp - 0x10010]
movzx eax, word [edx]
test eax, eax
je 0x40f5bd
push 0x3d
push 0x100
lea ecx, [ebp - 0x10410]
push ecx
push 0x104
lea edx, [ebp - 0x10618]
push edx
mov eax, dword [ebp - 0x10010]
push eax
call fcn.0040e8e0
add esp, 0x18
mov ecx, dword [ebp + 8]
push ecx
push 0x100
lea edx, [ebp - 0x10210]
push edx
push 0x4af420
push 0x4af424
lea eax, [ebp - 0x10410]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x40f599
mov ecx, dword [ebp - 0x1000c]
add ecx, 1
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040ff60
mov edx, dword [ebp + 8]
push edx
push 0x100
mov eax, dword [ebp - 0x1000c]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040ffd0
add eax, 0x200
push eax
lea ecx, [ebp - 0x10210]
push ecx
push 0x4af430
lea edx, [ebp - 0x10410]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x10210]
push eax
push 0x100
mov ecx, dword [ebp - 0x1000c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040ffd0
push eax
call fcn.0046a6ad
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0xffffffffffffffff
push 0x4af448
lea eax, [ebp - 0x10410]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov ecx, dword [ebp - 0x1000c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040ffd0
mov dword [eax + 0x61c], esi
mov edx, dword [ebp + 8]
push edx
push 0xffffffffffffffff
push 0x4af464
lea eax, [ebp - 0x10410]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov ecx, dword [ebp - 0x1000c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040ffd0
mov dword [eax + 0x620], esi
mov edx, dword [ebp + 8]
push edx
push 0xffffffffffffffff
push 0x4af480
lea eax, [ebp - 0x10410]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov ecx, dword [ebp - 0x1000c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040ffd0
mov dword [eax + 0x614], esi
mov edx, dword [ebp + 8]
push edx
push 0xffffffffffffffff
push 0x4af4a0
lea eax, [ebp - 0x10410]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov ecx, dword [ebp - 0x1000c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040ffd0
mov dword [eax + 0x618], esi
mov edx, dword [ebp + 8]
push edx
push 0x100
mov eax, dword [ebp - 0x1000c]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040ffd0
add eax, 0x400
push eax
push 0x4af4c0
push 0x4af4c4
lea ecx, [ebp - 0x10410]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [ebp + 8]
push edx
push 0xa
mov eax, dword [ebp - 0x1000c]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040ffd0
add eax, 0x600
push eax
push 0x4af4e8
push 0x4af4ec
lea ecx, [ebp - 0x10410]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [ebp - 0x1000c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0040ffd0
add eax, 0x600
push eax
mov eax, dword [ebp - 0x1000c]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040ffd0
add eax, 0x400
push eax
mov ecx, dword [ebp - 0x1000c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040ffd0
mov edx, dword [eax + 0x618]
push edx
mov eax, dword [ebp - 0x1000c]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040ffd0
mov ecx, dword [eax + 0x614]
push ecx
mov edx, dword [ebp - 0x1000c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0040ffd0
mov eax, dword [eax + 0x620]
push eax
mov ecx, dword [ebp - 0x1000c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040ffd0
mov edx, dword [eax + 0x61c]
push edx
mov eax, dword [ebp - 0x1000c]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040ffd0
add eax, 0x200
push eax
push str.InitPlatforms____Description:__s___Platform:__d._d___SP:_d._d____s_cond:__s
call fcn.00456fc0
add esp, 0x20
mov ecx, dword [ebp - 0x1000c]
add ecx, 1
mov dword [ebp - 0x1000c], ecx
mov edx, dword [ebp - 0x10010]
push edx
call fcn.004684f8
add esp, 4
mov ecx, dword [ebp - 0x10010]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0x10010], edx
jmp 0x40f2ed
mov eax, dword [ebp - 0x1000c]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467d4f
mov esp, ebp
pop ebp
ret