Function at 0x4058f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437350
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x190
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x16c], 0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.00408ce0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x170]
call fcn.0042760b
mov byte [ebp - 4], 5
push 0x447ff8
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [ebp - 0x170]
add ecx, 8
call fcn.004044b0
test eax, eax
jne 0x405988
mov ecx, dword [ebp - 0x170]
add ecx, 8
push ecx
lea ecx, [ebp - 0x14]
call fcn.004355a4
push 0x448004
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 6
push 0x448008
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x14]
call fcn.004014c0
push eax
push 0xff
lea edx, [ebp - 0x128]
push edx
push 0
lea ecx, [ebp - 0x28]
call fcn.004014c0
push eax
lea ecx, [ebp - 0x20]
call fcn.004014c0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp + 0x10]
call fcn.004044b0
test eax, eax
jne 0x405b01
push 0x44801c
lea ecx, [ebp - 0x134]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x134]
call fcn.00404470
mov dword [ebp - 0x12c], eax
push 0
lea ecx, [ebp - 0x134]
call fcn.004014c0
push eax
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::Find
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
push ecx
push 0x448030
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::Find
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0xffffffff
jne 0x405aac
mov edx, dword [ebp - 0x138]
add edx, dword [ebp - 0x12c]
push edx
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x174]
mov dword [ebp - 0x178], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x178]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004355a4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x164]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x130]
sub eax, dword [ebp - 0x138]
sub eax, dword [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x138]
add ecx, dword [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::Delete
lea ecx, [ebp + 0x10]
call fcn.004014c0
push eax
mov edx, dword [ebp - 0x138]
add edx, dword [ebp - 0x12c]
push edx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::Insert
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x134]
call sub.MFC42.DLL_CString::CString
push 0x448034
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x14]
call fcn.004014c0
push eax
push 0
lea ecx, [ebp - 0x28]
call fcn.004014c0
push eax
lea ecx, [ebp - 0x20]
call fcn.004014c0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x405b47
push 0x44803c
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 0xa
push 7
push 0
push 0x448060
lea ecx, [ebp - 0x24]
call fcn.00408e40
test eax, eax
jge 0x405bf2
cmp dword [ebp + 0x14], 0
je 0x405b78
push 0
push 0
push 0x448070
call sub.MFC42.DLL_AfxMessageBox
push 0
mov ecx, dword [ebp + 8]
call fcn.00408d00
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x16c]
or al, 1
mov dword [ebp - 0x16c], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.00408d80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
jmp 0x405ec5
lea ecx, [ebp - 0x1c]
call fcn.004014c0
mov dword [ebp - 0x180], eax
mov ecx, dword [ebp - 0x180]
push ecx
lea ecx, [ebp - 0x148]
call fcn.00409790
mov dword [ebp - 0x184], eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 0xc]
call fcn.004014c0
mov dword [ebp - 0x188], eax
mov edx, dword [ebp - 0x188]
push edx
lea ecx, [ebp - 0x158]
call fcn.00409790
mov dword [ebp - 0x18c], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x24]
call fcn.00408da0
mov dword [ebp - 0x190], eax
push 8
push 3
push 3
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x158]
push ecx
mov ecx, dword [ebp - 0x190]
call fcn.00409dd0
mov dword [ebp - 0x194], eax
cmp dword [ebp - 0x194], 0
jge 0x405d3b
cmp dword [ebp + 0x14], 0
je 0x405c9a
push 0
push 0
push 0x448088
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [ebp - 0x24]
call fcn.00408e00
push 0
mov ecx, dword [ebp + 8]
call fcn.00408d00
mov dword [ebp - 0x198], eax
mov edx, dword [ebp - 0x16c]
or edx, 1
mov dword [ebp - 0x16c], edx
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x158]
call fcn.00409880
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x148]
call fcn.00409880
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.00408d80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
jmp 0x405ec5
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
call fcn.00408d30
mov ecx, dword [ebp - 0x16c]
or ecx, 1
mov dword [ebp - 0x16c], ecx
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x158]
call fcn.00409880
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x148]
call fcn.00409880
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.00408d80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
jmp 0x405ec5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10