Function at 0x4857e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd594
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4fafc0]
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 0x485ab7
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x485ab7
mov eax, dword [esi]
push ebx
push edi
call dword [eax + 0x80]
test eax, eax
js 0x485864
cmp eax, dword [0x516a30]
jge 0x485ace
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [0x516a2c]
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 0x485892
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 0x4858ec
lea ecx, [ebp - 0x6c]
call fcn.004643b0
push edi
push dword [esi + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
call fcn.0049a5a0
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.00480500
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.00465ef0
jmp 0x4858fd
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 0x485aa0
push 0xa
push dword [ebp - 0x10]
lea eax, [ebp - 0x4c]
push eax
call fcn.00492280
mov ebx, eax
push 0xa
push dword [ebp + 0x10]
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 2
push eax
call fcn.00492280
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 0x4e1f9c
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 5
push eax
call fcn.00466880
push esi
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 6
push eax
call fcn.00466800
push 0x4e1f9c
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 7
push eax
call fcn.00466880
push dword [ebp + 8]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00466880
push 0x4e1f9c
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 9
push eax
call fcn.00466880
push dword [ebp + 0xc]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00466880
add esp, 0x48
push 0x4e1f9c
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0xb
push eax
call fcn.00466880
mov byte [ebp - 4], 0xc
push edi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00466800
push 0x4e1f9c
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xd
push eax
call fcn.00466880
push ebx
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xe
push eax
call fcn.00466800
push dword [eax]
mov byte [ebp - 4], 0xf
call fcn.00493c40
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