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

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4ad40c]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x1c
mov eax, 0x47fbf0
call fcn.00442103
mov edi, dword [ebp + 0x214]
mov esi, ecx
test edi, edi
jne 0x41d447
xor eax, eax
inc eax
mov byte [esi + 0x28], 0
jmp 0x41d619
push str..ini
lea ecx, [ebp - 0x18]
call fcn.0040a470
and dword [ebp - 4], 0
push 0x48b03c
lea ecx, [ebp - 0x14]
call fcn.0040a470
push edi
lea eax, [esi + 0x3c]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.0041cc0f
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 2
call fcn.0041cbb8
lea ecx, [esi + 0x44]
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 3
call fcn.0041cbb8
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 4
call fcn.0041cbb8
add esp, 0x30
lea edi, [esi + 0x40]
push eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.00404143
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 0x41d43e
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 0x48af2c
push str.TypeFace
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp]
push eax
lea ecx, [esi + 0x38]
call fcn.004017a9
mov ecx, esi
mov byte [esi + 0x28], 1
call fcn.0041ccf3
push 0x10000
call fcn.00424946
pop ecx
push dword [edi]
mov ebx, eax
push 0x8000
push ebx
push 0x48aff4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov dword [ebp - 0x10], eax
mov edi, ebx
mov ecx, ebx
test eax, eax
jle 0x41d616
jmp 0x41d5b1
cmp word [edi], 0x39
ja 0x41d5b7
inc edi
inc edi
cmp word [edi], 0x30
jae 0x41d5a9
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.00424946
add esp, 0xc
push edi
push eax
mov ecx, esi
mov dword [ebp - 0x1c], eax
call fcn.0041c57c
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x10]
call fcn.0041d339
jmp 0x41d601
inc edi
inc edi
cmp word [edi], 0
jne 0x41d5ff
inc edi
inc edi
mov eax, edi
sub eax, ebx
sar eax, 1
cmp eax, dword [ebp - 0x10]
mov ecx, edi
jl 0x41d5b1
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