Function at 0x40ac30
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x438a66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
xor edi, edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x190], edi
call sub.MFC70.DLL_Ordinal_503
lea ecx, [esp + 0x38]
mov byte [esp + 0x190], 1
call sub.MFC70.DLL_Ordinal_503
lea ecx, [esp + 0x4c]
mov byte [esp + 0x190], 2
call sub.MFC70.DLL_Ordinal_503
mov bl, 3
push ebp
lea ecx, [esp + 0x24]
mov byte [esp + 0x194], bl
call fcn.00401f00
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x2c]
call sub.MFC70.DLL_Ordinal_5760
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x60]
push eax
push esi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
call sub.MFC70.DLL_Ordinal_3196
test eax, eax
jne 0x40ad41
lea ecx, [esp + 0x4c]
mov byte [esp + 0x190], 2
call sub.MFC70.DLL_Ordinal_686
lea ecx, [esp + 0x38]
mov byte [esp + 0x190], 1
call sub.MFC70.DLL_Ordinal_686
lea ecx, [esp + 0x24]
mov byte [esp + 0x190], 0
call sub.MFC70.DLL_Ordinal_686
lea eax, [esi - 0x10]
mov dword [esp + 0x190], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ad3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor al, al
jmp 0x40afe3
mov eax, dword [ebp + 0x20]
cmp eax, edi
je 0x40ad51
push eax
call sub.MFC70.DLL_Ordinal_257
add esp, 4
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x10], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x14], eax
fild qword [esp + 0x10]
and ecx, 0x80000000
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edi
fild qword [esp + 0x10]
fchs
faddp st(1)
fmul qword [0x43ac18]
call fcn.0040c550
push eax
call sub.MFC70.DLL_Ordinal_256
add esp, 4
cmp eax, edi
mov dword [ebp + 0x20], eax
jne 0x40ae30
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x18], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x1c], eax
fild qword [esp + 0x18]
and ecx, 0x80000000
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edi
fild qword [esp + 0x18]
mov byte [esp + 0x190], 4
fchs
faddp st(1)
fmul qword [str.333333]
call fcn.0040c550
push eax
lea edx, [esp + 0x14]
push 0x43abf0
push edx
call fcn.00409320
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x190], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ae30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp + 0x20]
push esi
push 0xffd
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
test eax, eax
je 0x40af83
mov edx, dword [ebp + 0x20]
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.0040c080
add esp, 8
test eax, eax
je 0x40af83
mov ecx, ebp
call fcn.0040aab0
cmp dword [esp + 0x2c], edi
mov dword [esp + 0x18], edi
jle 0x40af83
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x40]
call sub.MFC70.DLL_Ordinal_5760
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x54]
call sub.MFC70.DLL_Ordinal_5760
push 0x20
call fcn.0040c4b0
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, edi
mov byte [esp + 0x190], 5
je 0x40aecf
push 0xa
mov ecx, esi
call sub.MFC70.DLL_Ordinal_373
mov byte [esp + 0x190], 6
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
jmp 0x40aed1
xor esi, esi
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + ecx*4]
push 1
push edx
push esi
push eax
mov byte [esp + 0x1a0], bl
call fcn.0040c320
add esp, 0x10
test al, al
je 0x40affc
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + ecx*4]
sub eax, 0x10
push eax
call fcn.004014c0
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x190], 7
call fcn.00402ec0
lea edx, [esp + 0x10]
lea ecx, [esi + 0x1c]
push edx
call fcn.00401f00
mov edi, dword [esp + 0x10]
push edi
lea ecx, [ebp + 4]
call sub.MFC70.DLL_Ordinal_788
mov dword [eax], esi
lea eax, [edi - 0x10]
mov byte [esp + 0x190], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40af68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor edi, edi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x40ae76
mov esi, dword [esp + 0x20]
cmp dword [ebp + 0x10], edi
lea ecx, [esp + 0x4c]
setne bl
mov byte [esp + 0x190], 2
call sub.MFC70.DLL_Ordinal_686
lea ecx, [esp + 0x38]
mov byte [esp + 0x190], 1
call sub.MFC70.DLL_Ordinal_686
lea ecx, [esp + 0x24]
mov byte [esp + 0x190], 0
call sub.MFC70.DLL_Ordinal_686
lea eax, [esi - 0x10]
mov dword [esp + 0x190], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40afe1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, bl
mov ecx, dword [esp + 0x188]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x184
ret
cmp esi, edi
mov dword [esp + 0x10], esi
je 0x40af6a
mov eax, dword [esi + 0x1c]
sub eax, 0x10
mov byte [esp + 0x190], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b02d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, esi
mov byte [esp + 0x190], bl
call sub.MFC70.DLL_Ordinal_605
push esi
call sub.MFC70.DLL_Ordinal_705
add esp, 4
jmp 0x40af6a