Function at 0x40e513
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
mov dword [ebp - 0x15c], ecx
mov eax, dword [ebp - 0x15c]
mov dword [eax + 0x64], 0
mov ecx, dword [ebp - 0x15c]
mov dword [ecx + 0x94], 0
mov edx, dword [ebp - 0x15c]
mov dword [edx + 0x74], 0
mov eax, dword [ebp - 0x15c]
mov dword [eax + 0x60], 0
mov ecx, dword [ebp - 0x15c]
mov dword [ecx + 0x6c], 0
mov edx, dword [ebp - 0x15c]
mov dword [edx + 0xc0], 1
mov eax, dword [ebp - 0x15c]
mov dword [eax + 0x90], 0
mov ecx, dword [ebp - 0x15c]
mov dword [ecx + 0xac], 0xffffffff
mov edx, dword [ebp - 0x15c]
mov dword [edx + 0x7c], 0
mov eax, dword [ebp - 0x15c]
mov dword [eax + 0x80], 0xffffffff
mov ecx, dword [ebp - 0x15c]
mov dword [ecx + 0x84], 0
mov edx, dword [ebp - 0x15c]
mov dword [edx + 0x88], 0
mov dword [0x44e8f8], 0
mov eax, dword [ebp - 0x15c]
mov dword [eax + 0x158], 0
mov ecx, dword [ebp - 0x15c]
mov dword [ecx + 0x15c], 0
mov edx, dword [ebp - 0x15c]
mov dword [edx + 0x148], 0
mov eax, dword [ebp - 0x15c]
mov dword [eax + 0x14c], 0
mov ecx, dword [ebp - 0x15c]
mov dword [ecx + 0x154], 0
mov edx, dword [ebp - 0x15c]
mov dword [edx + 0x150], 0
mov eax, dword [ebp - 0x15c]
mov dword [0x44e8fc], eax
push 4
push 0x1000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp - 0x15c]
mov dword [ecx + 0x170], eax
mov edx, dword [ebp - 0x15c]
mov dword [edx + 0xb4], 0
lea eax, [ebp - 0x13c]
push eax
mov ecx, dword [ebp - 0x15c]
add ecx, 0x138
call fcn.0042760b
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 0x164], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x164]
push edx
mov ecx, dword [ebp - 0x15c]
add ecx, 0xd4
call fcn.004355a4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x15c]
add eax, 0xd4
push eax
mov ecx, 0x44e908
call fcn.004355a4
push 0x44935c
mov ecx, dword [ebp - 0x15c]
add ecx, 0xd4
push ecx
lea edx, [ebp - 0x140]
push edx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x16c], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x16c]
push ecx
mov ecx, dword [ebp - 0x15c]
add ecx, 0xc4
call fcn.004355a4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x140]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x15c]
add ecx, 0xc4
call fcn.004014c0
push eax
push 1
push 0x449368
push 0x449370
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebp - 0x15c]
mov dword [edx + 0xa8], eax
mov ecx, dword [ebp - 0x15c]
add ecx, 0xc4
call fcn.004014c0
push eax
push 0
push str.OnlySingleModuleFlag
push 0x44938c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 1
jne 0x40e802
mov ecx, dword [ebp - 0x15c]
add ecx, 0xc4
call fcn.004014c0
push eax
push 0
push str.OnlySingleModuleVer
push 0x4493a8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 1
jne 0x40e802
mov eax, dword [ebp - 0x15c]
mov dword [eax + 0x7c], 1
mov ecx, dword [ebp - 0x15c]
add ecx, 0xc4
call fcn.004014c0
push eax
push 0
push str.OnlySingleModuleId
push 0x4493c4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x15c]
mov dword [ecx + 0x80], eax
mov ecx, dword [ebp - 0x15c]
add ecx, 0xc4
call fcn.004014c0
push eax
push 0x104
lea edx, [ebp - 0x124]
push edx
push 0x44e924
push str.KeyProVer
push 0x4493d8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.004044b0
test eax, eax
je 0x40e894
push 0x4493e0
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x20]
call fcn.004014c0
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [0x44e8f0], eax
lea ecx, [ebp - 0x138]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x15c]
add ecx, 0x138
call fcn.00430964
and eax, 0xff
test eax, eax
jne 0x40e97b
push 0
push 0x40
push ecx
mov ecx, esp
mov dword [ebp - 0x144], esp
push 0x4493e4
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x174], eax
mov byte [ebp - 4], 3
push ecx
mov ecx, esp
mov dword [ebp - 0x148], esp
push str.052000031
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 0x178], eax
lea ecx, [ebp - 0x14c]
push ecx
mov byte [ebp - 4], 2
call fcn.00419ab8
add esp, 0xc
mov dword [ebp - 0x17c], eax
mov edx, dword [ebp - 0x17c]
mov dword [ebp - 0x180], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x180]
call fcn.004014c0
push eax
call sub.MFC42.DLL_AfxMessageBox
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14c]
call sub.MFC42.DLL_CString::CString
push str.Null
mov ecx, dword [ebp - 0x15c]
add ecx, 0xd0
call sub.MFC42.DLL_CString::operator_2
jmp 0x40e990
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x15c]
add ecx, 0xd0
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [ebp - 0x15c]
add ecx, 0x138
call fcn.00404fd3
mov ecx, dword [ebp - 0x15c]
mov dword [ecx + 0x8c], eax
mov ecx, dword [ebp - 0x15c]
add ecx, 0xc4
call fcn.004014c0
push eax
push 0x1e
push str.ReadServerListPeriod
push 0x449424
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebp - 0x15c]
mov dword [edx + 0xa0], eax
mov eax, dword [ebp - 0x15c]
cmp dword [eax + 0xa0], 5
jl 0x40e9fb
mov ecx, dword [ebp - 0x15c]
cmp dword [ecx + 0xa0], 0x3c
jle 0x40ea0b
mov edx, dword [ebp - 0x15c]
mov dword [edx + 0xa0], 5
mov ecx, dword [ebp - 0x15c]
call fcn.00420ffd
test eax, eax
jne 0x40ea4c
push 0
push 0
push str.LoadDll_Error
call sub.MFC42.DLL_AfxMessageBox
mov dword [ebp - 0x150], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x150]
jmp 0x40eae1
mov eax, dword [ebp - 0x15c]
cmp dword [eax + 0xa8], 0
jne 0x40ea87
mov ecx, dword [ebp - 0x15c]
mov dword [ecx + 0x84], 1
mov edx, dword [ebp - 0x15c]
mov dword [edx + 0x88], 1
mov dword [0x44e8f8], 1
jmp 0x40eab7
mov ecx, dword [ebp - 0x15c]
call fcn.00421ef5
test eax, eax
jne 0x40eab7
mov dword [ebp - 0x154], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x154]
jmp 0x40eae1
mov ecx, dword [ebp - 0x15c]
call fcn.00419608
mov dword [ebp - 0x158], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret