Function at 0x40f7ba
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x224], edx
push 0x405138
push 2
mov edi, ecx
mov dword [ebp - 0x220], eax
mov ebx, eax
call fcn.0040fadc
pop ecx
pop ecx
mov edx, 0x403ac0
mov ecx, edi
call fcn.00410486
mov dword [ebp - 0x218], eax
test eax, eax
je 0x40fa26
mov edx, 0x405170
mov ecx, edi
call fcn.00410486
mov esi, eax
mov dword [ebp - 0x228], esi
test esi, esi
je 0x40f9e4
mov edx, 0x4051b0
mov ecx, edi
call fcn.00410486
mov dword [ebp - 0x220], eax
test eax, eax
je 0x40f9d1
mov ecx, esi
call fcn.0040f5ac
test eax, eax
jne 0x40f862
push esi
push 0x4051c8
push 3
call fcn.0040fadc
add esp, 0xc
jmp 0x40f9d1
mov edi, 0x40521c
cmp dword [ebp + 8], ebx
jne 0x40f871
mov edi, 0x40524c
push 0x4000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x22c], ebx
test ebx, ebx
jne 0x40f89d
push 0x405280
push 4
jmp 0x40f9ca
push esi
push 0x2000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x40f8bf
push 0x4052f0
jmp 0x40f9c8
cmp eax, 0x1ffe
jb 0x40f8da
push 0x405330
push 4
call fcn.0040fadc
mov eax, dword [ebp - 0x21c]
pop ecx
pop ecx
mov edi, ebx
test eax, eax
je 0x40f9c3
xor edx, edx
cmp word [edi], dx
je 0x40f9b7
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x40f8f4
push dword [ebp - 0x220]
sub esi, ecx
mov edx, 0x104
lea ecx, [ebp - 0x214]
sar esi, 1
call fcn.0040de92
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x40f940
xor eax, eax
lea ecx, [ebp - 0x214]
mov word [ebx], ax
add ebx, 2
push edi
call fcn.0040decc
jmp 0x40f942
mov ebx, edi
push ebx
push dword [ebp - 0x218]
lea eax, [ebp - 0x214]
push eax
push 0x405390
push 2
call fcn.0040fadc
mov eax, dword [ebp - 0x224]
add esp, 0x14
mov edx, dword [ebp - 0x218]
xor ecx, ecx
push ecx
push ecx
push ecx
push eax
push eax
push ecx
push ebx
lea ecx, [ebp - 0x214]
call fcn.0040eb94
test eax, eax
jne 0x40f9a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push dword [ebp - 0x218]
lea eax, [ebp - 0x214]
push eax
push 0x4053f8
push 4
call fcn.0040fadc
add esp, 0x18
inc esi
sub dword [ebp - 0x21c], esi
lea edi, [edi + esi*2]
jne 0x40f8e4
mov ebx, dword [ebp - 0x22c]
mov esi, dword [ebp - 0x228]
push 0x405490
push 2
call fcn.0040fadc
pop ecx
pop ecx
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40f9e6
xor esi, esi
push dword [ebp - 0x218]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x40fa0d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x40fa26
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0041ef80
mov esp, ebp
pop ebp
ret 4