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

Disassembly:
push 0x338
mov eax, 0x4a2809
call fcn.00481da3
mov eax, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x340], edi
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x324]
call fcn.0040161b
and dword [ebp - 4], 0
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x338]
call fcn.0040161b
mov byte [ebp - 4], 1
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x33c]
call fcn.0040161b
mov byte [ebp - 4], 2
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x328]
call fcn.0040161b
mov esi, 0x4ed5e8
push esi
lea ecx, [ebp - 0x334]
mov byte [ebp - 4], 3
call fcn.00401640
push str.indexksg.txt
push eax
lea eax, [ebp - 0x32c]
push eax
mov byte [ebp - 4], 4
call fcn.00402dca
add esp, 0xc
push eax
lea ecx, [ebp - 0x328]
mov byte [ebp - 4], 5
call fcn.004015ba
mov ecx, dword [ebp - 0x32c]
add ecx, 0xfffffff0
call fcn.00401325
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x334]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, edi
call fcn.0042169b
mov edi, dword [ebp - 0x328]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebx
test eax, eax
jne 0x41ebff
lea ecx, [edi - 0x10]
call fcn.00401325
mov ecx, dword [ebp - 0x33c]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x338]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x324]
add ecx, 0xfffffff0
call fcn.00401325
xor eax, eax
inc eax
lea esp, [ebp - 0x354]
call fcn.00481e26
ret 4
push esi
lea ecx, [ebp - 0x330]
call fcn.00401640
mov edi, 0x4ef5ec
push edi
push eax
lea eax, [ebp - 0x32c]
push eax
mov byte [ebp - 4], 6
call fcn.0040a465
add esp, 0xc
push 0x4ad1b4
push eax
lea eax, [ebp - 0x334]
push eax
mov byte [ebp - 4], 7
call fcn.00402dca
add esp, 0xc
push eax
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 8
call fcn.004015ba
mov ecx, dword [ebp - 0x334]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x32c]
add ecx, 0xfffffff0
call fcn.00401325
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x330]
add ecx, 0xfffffff0
call fcn.00401325
push esi
lea ecx, [ebp - 0x32c]
call fcn.00401640
push edi
push eax
lea eax, [ebp - 0x334]
push eax
mov byte [ebp - 4], 9
call fcn.0040a465
add esp, 0xc
push str.index.dat
push eax
lea eax, [ebp - 0x330]
push eax
mov byte [ebp - 4], 0xa
call fcn.00402dca
add esp, 0xc
push eax
lea ecx, [ebp - 0x33c]
mov byte [ebp - 4], 0xb
call fcn.004015ba
mov ecx, dword [ebp - 0x330]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x334]
add ecx, 0xfffffff0
call fcn.00401325
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x32c]
add ecx, 0xfffffff0
call fcn.00401325
mov esi, dword [ebp - 0x338]
push esi
call ebx
test eax, eax
mov edi, dword [ebp - 0x33c]
jne 0x41ed39
push edi
call ebx
test eax, eax
jne 0x41ed2c
mov ecx, dword [ebp - 0x328]
add ecx, 0xfffffff0
call fcn.00401325
lea ecx, [edi - 0x10]
call fcn.00401325
lea ecx, [esi - 0x10]
jmp 0x41ebdb
push esi
push edi
call fcn.004020c7
test eax, eax
pop ecx
pop ecx
je 0x41ed0e
call dword [0x4d1acc]
xor ebx, ebx
push 0x206
mov dword [ebp - 0x330], eax
lea eax, [ebp - 0x31e]
push ebx
push eax
mov word [ebp - 0x320], bx
call fcn.0047e7d0
add esp, 0xc
push ebx
lea eax, [ebp - 0x324]
push 0x4ae1a8
push eax
call fcn.004063eb
add esp, 0xc
push dword [ebp - 0x328]
lea eax, [ebp - 0x320]
push 0x104
push eax
push str.error
push dword [ebp - 0x324]
push 0x4acf30
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x41edb9
xor eax, eax
jmp 0x41edd9
lea ebx, [eax + eax]
mov eax, ebx
call fcn.004840d0
mov eax, esp
push dword [ebp - 0x330]
lea ecx, [ebp - 0x320]
push ebx
push ecx
push eax
call fcn.004034ff
mov ebx, dword [ebp - 0x344]
push eax
push ebx
call fcn.00421738
push 0x103
lea eax, [ebp - 0x117]
push 0
push eax
mov byte [ebp - 0x118], 0
call fcn.0047e7d0
add esp, 0xc
lea edx, [ebp - 0x118]
mov ecx, esi
call fcn.004121c7
test eax, eax
jne 0x41ee4a
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x328]
add ecx, 0xfffffff0
call fcn.00401325
lea ecx, [edi - 0x10]
call fcn.00401325
lea ecx, [esi - 0x10]
call fcn.00401325
mov ecx, dword [ebp - 0x324]
add ecx, 0xfffffff0
call fcn.00401325
mov eax, ebx
jmp 0x41ebf1
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x340]
call fcn.00421738
mov eax, dword [ebp - 0x340]
mov eax, dword [eax]
mov ecx, dword [ebx]
push eax
push ecx
call fcn.004976b1
pop ecx
xor ebx, ebx
test eax, eax
pop ecx
je 0x41ee17
jmp 0x41ee16