Function at 0x40ee10
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x436666
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
mov eax, dword [esi + 0x74]
push eax
call fcn.00422114
mov edi, dword [esp + 0x10]
or ebx, 0xffffffff
mov ecx, ebx
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x16c], ebp
je 0x40ef71
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0xd8]
call fcn.0040a8b0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0xc8]
mov ecx, dword [esi + 0xf0]
push eax
lea eax, [esp + 0x148]
push 0x20
push eax
push 0x446190
push ecx
push str.Service_Help
mov byte [esp + 0x184], 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x144]
push ecx
lea ecx, [esp + 0x18]
call fcn.00422114
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x170], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esi + 0xec]
mov eax, dword [esp + 0x18]
lea edi, [esi + 0xec]
push edx
push eax
lea ecx, [esp + 0x24]
mov bl, 3
push str.__s__s
push ecx
mov byte [esp + 0x17c], bl
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
push 0x62
push edx
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, edi
mov byte [esp + 0x170], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x16c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x16c], 0
call sub.MFC42.DLL_CString::CString
or ebx, 0xffffffff
mov edi, dword [esp + 0x10]
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40ef9e
mov eax, dword [esi + 0xdc]
cmp dword [eax - 8], ebp
je 0x40ef9e
mov ecx, dword [esi + 0xe0]
cmp dword [ecx - 8], ebp
je 0x40ef9e
mov dword [esi + 0x134], ebp
jmp 0x40efa8
mov dword [esi + 0x134], 1
push str.GL_ROOM_REC
push 0xa628
push ebp
push 4
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebp
mov dword [esi + 0xc4], eax
je 0x40f137
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40f137
mov edx, dword [esi + 0xc4]
push 0xa628
push ebp
push ebp
push 2
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebp
je 0x40f007
cmp dword [edi + 0x296c], ebp
je 0x40f032
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esp + 0x16c], ebx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x160
ret
xor ebx, ebx
lea eax, [edi + 0x1c]
cmp dword [eax], ebp
jne 0x40f063
inc ebx
add eax, 0x210
cmp ebx, 0x14
jl 0x40f037
mov eax, dword [esi + 0xdc]
lea ebp, [esi + 0xdc]
push eax
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
push edi
jmp 0x40f189
cmp ebx, 0x14
jge 0x40f046
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.NickName
call fcn.00422114
push ecx
mov byte [esp + 0x174], 5
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Settings
call fcn.00422114
lea eax, [esp + 0x1c]
mov ecx, 0x4461b8
push eax
mov byte [esp + 0x178], 0
call fcn.0040f450
push eax
lea ecx, [esi + 0xe4]
mov byte [esp + 0x170], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 0
call sub.MFC42.DLL_CString::CString
push edi
lea ecx, [esi + 0xdc]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [edi + 0x295c]
push ecx
lea ecx, [esi + 0xe0]
call sub.MFC42.DLL_CString::operator_1
cmp dword [esi + 0xf4], ebp
jne 0x40f108
mov edx, ebx
shl edx, 5
add edx, ebx
shl edx, 4
mov eax, dword [edx + edi + 0x48]
mov dword [esi + 0xf4], eax
push edi
mov dword [edi + 0x2970], 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [esp + 0x10]
mov dword [esp + 0x16c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x40f019
mov eax, dword [esi + 0xc4]
cmp eax, ebp
je 0x40f007
push 0xa628
push ebp
push ebp
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, ebp
je 0x40f277
mov ecx, 0x298a
xor eax, eax
mov edi, ebx
lea ebp, [esi + 0xdc]
rep stosd dword es:[edi], eax
mov eax, dword [ebp]
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
mov dword [ebx + 0x2970], 1
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp]
mov eax, dword [ecx - 8]
test eax, eax
je 0x40f1aa
mov edx, dword [esi + 0xe0]
mov eax, dword [edx - 8]
test eax, eax
jne 0x40f336
push 0
lea ecx, [esp + 0x24]
call fcn.00401870
push ebp
lea ecx, [esp + 0xcc]
mov byte [esp + 0x170], 7
call sub.MFC42.DLL_CString::operator
lea edi, [esi + 0xe4]
lea ecx, [esp + 0xc0]
push edi
call sub.MFC42.DLL_CString::operator
lea ebx, [esi + 0xe0]
lea ecx, [esp + 0xc4]
push ebx
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CDialog::DoModal
cmp eax, 2
jne 0x40f287
lea ecx, [esp + 0xcc]
mov byte [esp + 0x16c], 0xc
call fcn.00413d70
lea ecx, [esp + 0xc8]
mov byte [esp + 0x16c], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc4]
mov byte [esp + 0x16c], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc0]
mov byte [esp + 0x16c], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x80]
mov byte [esp + 0x16c], 8
call sub.MFC42.DLL_CComboBox::CComboBox
lea ecx, [esp + 0x20]
mov byte [esp + 0x16c], 0
call sub.MFC42.DLL_CDialog::CDialog
mov dword [esp + 0x16c], 0xffffffff
jmp 0x40f00e
lea eax, [esp + 0xc8]
mov ecx, ebp
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0xc0]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0xc4]
mov ecx, ebx
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x140]
mov dword [esi + 0xe74], eax
lea ecx, [esp + 0xcc]
mov byte [esp + 0x16c], 0x11
call fcn.00413d70
lea ecx, [esp + 0xc8]
mov byte [esp + 0x16c], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc4]
mov byte [esp + 0x16c], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc0]
mov byte [esp + 0x16c], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x80]
mov byte [esp + 0x16c], 0xd
call sub.MFC42.DLL_CComboBox::CComboBox
lea ecx, [esp + 0x20]
mov byte [esp + 0x16c], 0
call sub.MFC42.DLL_CDialog::CDialog
lea ecx, [esp + 0x10]
mov dword [esp + 0x16c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x40f019