Function at 0x488d90
Capabilities:
Initialize winsock library
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x48ea0f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b0
mov eax, dword [esp + 0x1c0]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0x34], esi
call sub.MFC42.DLL_CDialog::CDialog
xor ebp, ebp
mov dword [esi], 0x4903a8
mov dword [esp + 0x1c8], ebp
call sub.MFC42.DLL_AfxGetModuleState
push 0x80
push 0xe
push 0x80
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0x30]
mov dword [esi + 0x68], eax
push ecx
push 0x202
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x488e12
push ebp
push ebp
push str.WSAStartup_Failed
call sub.MFC42.DLL_AfxMessageBox
mov ax, word [esp + 0x30]
cmp al, 2
jne 0x488e23
xor edx, edx
mov dl, ah
cmp dl, al
je 0x488e2f
push ebp
push ebp
push str.Socket_Version_Is_Wrong
call sub.MFC42.DLL_AfxMessageBox
mov dword [esi + 0x64], ebp
mov dword [esi + 0x60], ebp
mov dword [esi + 0x74], ebp
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
lea ecx, [esp + 0x10]
mov eax, dword [eax + 0x74]
push eax
call sub.MFC42.DLL_CString::CString_2
push str._BattleServer
lea ecx, [esp + 0x14]
mov byte [esp + 0x1cc], 1
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
mov ebx, 3
je 0x488e76
mov dword [esi + 0x70], 1
jmp 0x488ec9
push str._TestServer
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x488e92
mov dword [esi + 0x70], 2
jmp 0x488ec9
push str._BattleMatch
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x488eae
mov dword [esi + 0x70], 4
jmp 0x488ec9
push str._BattleArena
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x488ec6
mov dword [esi + 0x70], ebx
jmp 0x488ec9
mov dword [esi + 0x70], ebp
push 0x36f8
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x1c8], 2
je 0x488ef5
mov ecx, dword [esi + 0x70]
push ecx
push 0xffffffffffffffff
mov ecx, eax
call fcn.00441bc0
jmp 0x488ef7
xor eax, eax
push 0xdc
mov byte [esp + 0x1cc], 1
mov dword [esi + 0x60], eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x1c8], bl
je 0x488f34
mov edx, dword [esi + 0x70]
mov ecx, dword [esi + 0x60]
push edx
push ecx
push ebp
mov ecx, eax
call fcn.00476b30
mov dword [esp + 0x14], eax
jmp 0x488f38
mov dword [esp + 0x14], ebp
push 0xc8
mov byte [esp + 0x1cc], 1
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebp
mov byte [esp + 0x1c8], 4
je 0x488f6d
mov edx, dword [esi + 0x60]
mov ecx, eax
push edx
push ebp
call fcn.00408800
mov ebx, eax
jmp 0x488f6f
xor ebx, ebx
push 0x90
mov byte [esp + 0x1cc], 1
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebp
mov byte [esp + 0x1c8], 5
je 0x488faa
mov ecx, dword [esi + 0x60]
push ecx
push 0x3e8
mov ecx, eax
call fcn.00406300
mov dword [esp + 0x18], eax
jmp 0x488fae
mov dword [esp + 0x18], ebp
push 0x50
mov byte [esp + 0x1cc], 1
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
mov byte [esp + 0x1c8], 6
je 0x488ff3
mov edx, dword [esi + 0x60]
mov ecx, dword [edx + 0x32c4]
add edx, 0x32e8
push edx
push ecx
push 0x36ee80
mov ecx, eax
call fcn.00487cd0
mov dword [esp + 0x1c], eax
jmp 0x488ff7
mov dword [esp + 0x1c], ebp
push 0xac
mov byte [esp + 0x1cc], 1
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
mov byte [esp + 0x1c8], 7
je 0x48902e
mov edx, dword [esi + 0x60]
mov ecx, eax
push edx
push 0xea60
call fcn.004838d0
mov ebp, eax
mov eax, dword [esi + 0x60]
mov byte [esp + 0x1c8], 1
mov ecx, dword [eax + 0x32c4]
add eax, 0x323c
mov dword [esi + 0x6c], ecx
push eax
mov ecx, ebx
call fcn.004089a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
push ebp
push ecx
mov ecx, dword [esi + 0x60]
push ebx
push edx
call fcn.00446c30
push 0xc4
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
mov byte [esp + 0x1c8], 8
je 0x4890d8
push 0x4568
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov byte [esp + 0x1c8], 9
je 0x4890af
push 0
mov ecx, eax
call fcn.0040aaf0
jmp 0x4890b1
xor eax, eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push ebp
push eax
mov eax, dword [esi + 0x60]
push ecx
push ebx
push edx
push eax
mov ecx, edi
mov byte [esp + 0x1e4], 8
call fcn.00474bf0
jmp 0x4890da
xor eax, eax
mov dword [esi + 0x64], eax
mov eax, dword [eax + 0xa8]
mov ecx, esi
mov byte [esp + 0x1c8], 1
mov eax, dword [eax + 0x32c4]
push eax
call fcn.00489430
test eax, eax
jne 0x48910e
push eax
push eax
push 0x49c55c
call sub.MFC42.DLL_AfxMessageBox
jmp 0x4891cc
mov ecx, dword [esi + 0x64]
push 5
push eax
call dword [sym.imp.Nw200.dll_public:_int___thiscall_CServerSocket::Listen_unsigned_int__int_]
test eax, eax
jne 0x48912f
push eax
push eax
push str.Map_Server_:_Socket_Creation_Failed
call sub.MFC42.DLL_AfxMessageBox
jmp 0x4891cc
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esi + 0x6c]
lea edx, [esp + 0x20]
push ecx
push str.Map_Server__d
push edx
mov byte [esp + 0x1d4], 0xa
call sub.MFC42.DLL_CString::Format
push 0x40
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 0x10
mov dword [esp + 0x28], edi
test edi, edi
mov byte [esp + 0x1c8], 0xb
je 0x4891a7
mov ecx, dword [esi + 0x60]
call fcn.004445a0
mov ebp, dword [eax + 0x3c]
mov ebx, dword [esp + 0x20]
push str._nosetfirst
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
push ecx
push ebp
push ebx
mov ecx, edi
call dword [sym.imp.rmDB.dll_public:_void___thiscall_CStatusDBLogThread::constructor_char_const___class_CUserCountLog___int_]
mov dword [edi], 0x490390
jmp 0x4891a9
xor edi, edi
mov ecx, esi
mov byte [esp + 0x1c8], 0xa
mov dword [esi + 0x74], edi
call fcn.004892d0
lea ecx, [esp + 0x20]
mov byte [esp + 0x1c8], 1
call fcn.00489b20
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c8], 0
call fcn.00489b20
mov ecx, dword [esp + 0x1c0]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1bc
ret 4