Function at 0x485b80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8cc4
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4f4fa0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
test edi, edi
je 0x485e57
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x485e57
mov eax, dword [esi]
push ebx
push edi
call dword [eax + 0x80]
test eax, eax
js 0x485c04
cmp eax, dword [0x510974]
jge 0x485e6e
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [0x510970]
lea ecx, [eax + ecx*4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call sub.mfc140u.dll_AfxGetModuleState
mov eax, dword [eax + 4]
test eax, eax
jne 0x485c32
push dword [esi + 4]
push dword [ebp + 0x10]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [eax + 0x58], 0
je 0x485c8c
lea ecx, [ebp - 0x6c]
call fcn.00464090
push edi
push dword [esi + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
call fcn.0049a960
add esp, 0xc
push dword [ebp + 0x10]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
push ebx
push dword [ebp - 0x14]
push 0x80000001
call fcn.00480520
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 0xffffffff
call fcn.00465d60
jmp 0x485c9d
push dword [esi + 4]
push dword [ebp + 0x10]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
mov eax, dword [esi]
mov ecx, esi
push ebx
push edi
call dword [eax + 0x88]
cmp dword [esi + 0xc], 0
je 0x485e40
push 0xa
push dword [ebp - 0x10]
lea eax, [ebp - 0x4c]
push eax
call fcn.00492340
mov ebx, eax
push 0xa
push dword [ebp + 0x10]
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 2
push eax
call fcn.00492340
add esp, 0x18
mov edi, eax
mov edx, dword [esi]
lea eax, [ebp - 0x44]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call dword [edx + 0x68]
mov esi, eax
push str.GetInt
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__21]
push 0x4dcf4c
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 5
push eax
call fcn.00466470
push esi
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 6
push eax
call fcn.004663f0
push 0x4dcf4c
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 7
push eax
call fcn.00466470
push dword [ebp + 8]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00466470
push 0x4dcf4c
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 9
push eax
call fcn.00466470
push dword [ebp + 0xc]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00466470
add esp, 0x48
push 0x4dcf4c
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0xb
push eax
call fcn.00466470
mov byte [ebp - 4], 0xc
push edi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004663f0
push 0x4dcf4c
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xd
push eax
call fcn.00466470
push ebx
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xe
push eax
call fcn.004663f0
push dword [eax]
mov byte [ebp - 4], 0xf
call fcn.00493d10
add esp, 0x34
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x34]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x40]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x44]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x48]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x4c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call sub.mfc140u.dll_AfxThrowInvalidArgException
int3