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

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4ac40c]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x1c
mov eax, 0x47f8a9
call fcn.00442103
mov edi, dword [ebp + 0x214]
mov esi, ecx
test edi, edi
jne 0x41d273
xor eax, eax
inc eax
mov byte [esi + 0x28], 0
jmp 0x41d445
push str..ini
lea ecx, [ebp - 0x18]
call fcn.0040a2ca
and dword [ebp - 4], 0
push 0x48a024
lea ecx, [ebp - 0x14]
call fcn.0040a2ca
push edi
lea eax, [esi + 0x3c]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.0041cc02
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 2
call fcn.0041cbab
lea ecx, [esi + 0x44]
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 3
call fcn.0041cbab
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 4
call fcn.0041cbab
add esp, 0x30
lea edi, [esi + 0x40]
push eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.00403fca
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 0x41d26a
xor eax, eax
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
mov byte [esi + 0x28], 1
call fcn.00441830
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 0x489f14
push str.TypeFace
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp]
push eax
lea ecx, [esi + 0x38]
call fcn.004017b3
mov ecx, esi
mov byte [esi + 0x28], 1
call fcn.0041cd54
push 0x10000
call fcn.0042493b
pop ecx
push dword [edi]
mov ebx, eax
push 0x8000
push ebx
push 0x489fdc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov dword [ebp - 0x10], eax
mov edi, ebx
mov ecx, ebx
test eax, eax
jle 0x41d442
jmp 0x41d3dd
cmp word [edi], 0x39
ja 0x41d3e3
inc edi
inc edi
cmp word [edi], 0x30
jae 0x41d3d5
xor eax, eax
mov word [edi], ax
inc edi
push ecx
inc edi
call fcn.00442459
push edi
mov dword [ebp - 0x20], eax
call fcn.00441cf4
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042493b
add esp, 0xc
push edi
push eax
mov ecx, esi
mov dword [ebp - 0x1c], eax
call fcn.0041c548
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x10]
call fcn.004050ba
jmp 0x41d42d
inc edi
inc edi
cmp word [edi], 0
jne 0x41d42b
inc edi
inc edi
mov eax, edi
sub eax, ebx
sar eax, 1
cmp eax, dword [ebp - 0x10]
mov ecx, edi
jl 0x41d3dd
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.004420f4
add ebp, 0x20c
leave
ret 4