Function at 0x408520
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4b2068]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x28
mov eax, 0x483c46
call fcn.0048062c
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x34], eax
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
mov esi, ecx
push eax
mov dword [ebp - 0x2c], esi
call sub.MSVCR80.dll_memset
mov eax, dword [0x4b457c]
mov edi, 0x4b457c
add esp, 0xc
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x4b457c]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov eax, dword [0x4b457c]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 3
mov eax, dword [0x4b457c]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 4
mov eax, dword [0x4b457c]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.00402112
mov eax, dword [0x4b457c]
mov ecx, edi
mov dword [ebp - 0x34], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 6
call fcn.00408c11
pop ecx
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.004024a3
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], 0
mov edi, dword [sym.imp.MSVCR80.dll_wcslen]
jne 0x408638
mov esi, 0x48fb78
push esi
call edi
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x1c]
call fcn.004023bb
lea esi, [ebp - 0x10]
call fcn.00420bd3
mov byte [ebp - 4], 8
push dword [ebp - 0x1c]
push dword [eax]
lea eax, [ebp - 0x20]
push str._sressrc_skismain.ini
push eax
call fcn.00404e7f
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x10]
add esp, 0x10
add eax, 0xfffffff0
call fcn.0040214e
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x104
lea eax, [ebp]
push eax
push 0x48f268
push 0x48ee28
push str.infos
call esi
lea eax, [ebp]
push eax
call edi
pop ecx
lea ecx, [ebp]
mov ebx, eax
push ecx
lea eax, [ebp - 0x14]
call fcn.004023bb
push dword [ebp - 0x20]
lea eax, [ebp]
push 0x104
push eax
push 0x48f268
push str.Version
push str.DisplayVersions
call esi
lea eax, [ebp]
push eax
call edi
pop ecx
lea ecx, [ebp]
mov ebx, eax
push ecx
lea eax, [ebp - 0x18]
call fcn.004023bb
push dword [ebp - 0x20]
lea eax, [ebp]
push 0x104
push eax
push 0x48f268
push str.MainVersion
push str.DisplayVersions
call esi
lea eax, [ebp]
push eax
call edi
pop ecx
lea ecx, [ebp]
mov ebx, eax
push ecx
lea eax, [ebp - 0x30]
call fcn.004023bb
push 4
pop ecx
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x18]
call fcn.00404dff
lea edi, [ebp - 0x24]
mov byte [ebp - 4], 9
call fcn.004024a3
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 6
jle 0x408761
lea eax, [ebp - 0x10]
push eax
push 6
pop ecx
lea eax, [ebp - 0x14]
call fcn.0040f1a5
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.004024a3
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040214e
mov ebx, dword [ebp - 0x30]
cmp dword [ebx - 0xc], 0
jne 0x408789
push dword [ebp - 0x14]
mov edi, dword [ebp - 0x24]
push dword [ebp - 0x18]
push edi
push str._s._s._s
push dword [ebp - 0x2c]
call fcn.00404e7f
add esp, 0x14
jmp 0x40883d
mov eax, dword [0x4b457c]
mov ecx, 0x4b457c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x48fc18
xor ecx, ecx
lea esi, [ebp - 0x18]
mov byte [ebp - 4], 0xb
call fcn.004022fb
cmp eax, 0xffffffff
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
je 0x40881e
push dword [ebx - 0xc]
lea eax, [ebp - 0x10]
push ebx
call fcn.0040217c
mov esi, 0x48f26c
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.004021d8
push dword [edi - 0xc]
lea eax, [ebp - 0x10]
push edi
call fcn.0040217c
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.004021d8
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x28]
push eax
add edx, 2
lea eax, [ebp - 0x18]
call fcn.0040f187
mov byte [ebp - 4], 0xc
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.0040217c
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.0040214e
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
push esi
push str._s._s
push dword [ebp - 0x2c]
call fcn.00404e7f
add esp, 0x10
lea eax, [esi - 0x10]
call fcn.0040214e
lea eax, [edi - 0x10]
call fcn.0040214e
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040214e
lea eax, [ebx - 0x10]
call fcn.0040214e
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0047f7b2
add ebp, 0x20c
leave
ret