Function at 0x412285
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4bda20
call fcn.00483820
sub esp, 0x11c
mov eax, dword [0x4eec8c]
and byte [ebp - 0x128], 0
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x1a8]
and dword [ebp - 4], 0
lea esi, [ebx + 0x1a8]
mov edi, 0x4f1070
push edi
push eax
call fcn.0048383f
pop ecx
test eax, eax
pop ecx
je 0x4123b1
push dword [esi]
lea eax, [ebp - 0x128]
push 0x105
push eax
push edi
mov edi, 0x4ea018
push 0x4ea02c
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x18]
push eax
call fcn.0049b93c
push dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0
push 0x4ea040
push edi
call ebx
push dword [esi]
push 0
push 0x4ea058
push edi
call ebx
push esi
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0049b574
push 0x5c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004938c0
cmp eax, 0xffffffff
jne 0x41234c
push 0x3a
lea ecx, [ebp - 0x10]
call fcn.004938c0
cmp eax, 0xffffffff
je 0x412383
inc eax
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00493848
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0049b8ec
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0049b7ff
test ebx, ebx
je 0x412383
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
call fcn.0049b8ec
push dword [esi]
lea eax, [ebp - 0x128]
push 0x105
push eax
push 0x4f1070
push 0x4ea074
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0049b7ff
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x14]
push eax
call fcn.0049b86d
cmp byte [ebp - 0x128], 0
mov byte [ebp - 4], 3
jne 0x4123de
lea eax, [ebx + 0x292]
lea ecx, [ebp - 0x14]
push eax
call fcn.0049b8ec
jmp 0x412429
push 0x4ea548
lea ecx, [ebp - 0x14]
call fcn.004938e2
cmp eax, 0xffffffff
jne 0x412429
push 0x3a
lea ecx, [ebp - 0x14]
call fcn.0049bc7a
cmp eax, 0xffffffff
jne 0x412429
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0049b9e2
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0049b8ec
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0049b7ff
push dword [0x4f1440]
push dword [ebp - 0x14]
call fcn.0048383f
pop ecx
test eax, eax
pop ecx
je 0x4124ad
push dword [ebp - 0x14]
call fcn.00412788
lea eax, [ebp - 0x14]
mov ecx, 0x4f1440
push eax
call fcn.0049b8ec
mov ecx, dword [ebx + 0x80]
xor edi, edi
cmp ecx, edi
mov dword [ebp - 0x10], edi
je 0x4124ad
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x4124ad
mov ecx, dword [ebx + 0x80]
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov esi, eax
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x54]
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x4124a8
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
call dword [eax + 0x58]
cmp eax, edi
je 0x4124a3
mov ecx, eax
call fcn.0042fcc2
cmp dword [ebp - 0x1c], edi
jne 0x41248d
cmp dword [ebp - 0x10], edi
jne 0x41246e
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0049b7ff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0049b7ff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret