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

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4aa3ec]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x1c
mov eax, 0x47e07b
call fcn.004409e3
mov edi, dword [ebp + 0x214]
mov esi, ecx
test edi, edi
jne 0x41be68
xor eax, eax
inc eax
mov byte [esi + 0x28], 0
jmp 0x41c03a
push str..ini
lea ecx, [ebp - 0x18]
call fcn.00409d19
and dword [ebp - 4], 0
push 0x488ea4
lea ecx, [ebp - 0x14]
call fcn.00409d19
push edi
lea eax, [esi + 0x3c]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.0041b5b6
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 2
call fcn.0041b55f
lea ecx, [esi + 0x44]
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 3
call fcn.0041b55f
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 4
call fcn.0041b55f
add esp, 0x30
lea edi, [esi + 0x40]
push eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.00403f46
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.00401100
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401100
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401100
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401100
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401100
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401100
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41be5f
xor eax, eax
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
mov byte [esi + 0x28], 1
call fcn.00440110
add esp, 0xc
push dword [edi]
mov ebx, str.StringInfo
push 1
push str.CharacterSet
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push dword [edi]
mov dword [esi + 0x34], eax
push 0x104
lea eax, [ebp]
push eax
push 0x488d94
push str.TypeFace
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp]
push eax
lea ecx, [esi + 0x38]
call fcn.004017b1
mov ecx, esi
mov byte [esi + 0x28], 1
call fcn.0041b691
push 0x10000
call fcn.0042321b
pop ecx
push dword [edi]
mov ebx, eax
push 0x8000
push ebx
push 0x488e5c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov dword [ebp - 0x10], eax
mov edi, ebx
mov ecx, ebx
test eax, eax
jle 0x41c037
jmp 0x41bfd2
cmp word [edi], 0x39
ja 0x41bfd8
inc edi
inc edi
cmp word [edi], 0x30
jae 0x41bfca
xor eax, eax
mov word [edi], ax
inc edi
push ecx
inc edi
call fcn.00440eea
push edi
mov dword [ebp - 0x20], eax
call fcn.004405d4
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042321b
add esp, 0xc
push edi
push eax
mov ecx, esi
mov dword [ebp - 0x1c], eax
call fcn.0041af2b
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x10]
call fcn.0041bd5a
jmp 0x41c022
inc edi
inc edi
cmp word [edi], 0
jne 0x41c020
inc edi
inc edi
mov eax, edi
sub eax, ebx
sar eax, 1
cmp eax, dword [ebp - 0x10]
mov ecx, edi
jl 0x41bfd2
xor eax, eax
inc eax
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.004409d4
add ebp, 0x20c
leave
ret 4