Function at 0x100661a0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101e7a59
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0
push 0
or ebx, 0xffffffff
push 0
mov ebp, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
mov dword [ebp + 0x30], eax
jne 0x10066247
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_2
mov dword [esp + 0x24], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [esp + 0x14]
push 0x1025dff4
push eax
call sub.MFC42u.DLL_CString::Format
mov eax, dword [0x10282758]
add esp, 0xc
test eax, eax
je 0x10066225
mov ecx, dword [esp + 0x10]
push ecx
push str._IOCP___s
push 0x1025debc
push ebx
push 0x10281ec4
call fcn.100de220
add esp, 0x14
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call sub.MFC42u.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
cmp esi, ebx
jne 0x100662d1
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_2
mov dword [esp + 0x24], 1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea edx, [esp + 0x18]
push 0x1025dfc4
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [0x10282758]
add esp, 0xc
test eax, eax
je 0x100662af
mov eax, dword [esp + 0x14]
push eax
push str._IOCP___s
push 0x1025debc
push ebx
push 0x10281ec4
call fcn.100de220
add esp, 0x14
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebx
call sub.MFC42u.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [0x10282758]
test eax, eax
je 0x100662f7
push 0x1025dfa8
push str._IOCP___s
push 0x1025debc
push ebx
push 0x10281ec4
call fcn.100de220
add esp, 0x14
push esi
call fcn.1006f5a0
push esi
mov dword [ebp + 0x12c], eax
call fcn.1006f620
push 0x98
mov dword [ebp + 0x130], eax
call sub.MFC42u.DLL_operatornew
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x24], 2
je 0x10066368
mov ecx, dword [ebp + 0x12c]
lea edx, [ebp + 0xc4]
push ecx
lea ecx, [ebp + 0x94]
push edx
push ecx
lea edx, [ebp + 0x50]
lea ecx, [ebp + 0x34]
push edx
mov edx, dword [ebp + 0x30]
push ecx
lea esi, [ebp + 0xec]
sub esp, 0x2c
mov ecx, 0xb
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push edx
mov ecx, eax
call fcn.10068960
jmp 0x1006636a
xor eax, eax
mov dword [ebp + 0xe8], eax
mov dword [eax + 0x4c], ebp
mov eax, dword [ebp + 0x280]
mov ecx, dword [ebp + 0x27c]
push eax
push ecx
mov ecx, dword [ebp + 0xe8]
mov dword [esp + 0x2c], ebx
call fcn.1006a9c0
mov ecx, dword [ebp + 0xe8]
mov eax, dword [ebp + 0x20]
mov dword [ecx + 0x8c], eax
mov ecx, ebp
call fcn.10066180
shl eax, 1
mov dword [ebp + 0xe4], eax
lea edx, [eax*4]
push edx
call sub.MFC42u.DLL_operatornew
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0xe4]
add esp, 4
xor edi, edi
test eax, eax
jle 0x10066440
lea ebx, [ebp + 0x70]
push 0x2c
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x24], 3
je 0x10066407
mov ecx, dword [ebp + 0xe8]
lea edx, [ebp + 0x2c]
push ecx
mov ecx, dword [ebp + 0x30]
push edx
push ecx
mov ecx, eax
call fcn.1006bdb0
mov esi, eax
jmp 0x10066409
xor esi, esi
mov ecx, esi
mov dword [esp + 0x24], 0xffffffff
call fcn.10089800
push esi
mov ecx, ebx
call sub.MFC42u.DLL_CPtrList::AddHead
mov edx, dword [ebp + 0x8c]
mov eax, dword [esi + 8]
push 1
mov ecx, esi
mov dword [edx + edi*4], eax
call fcn.10089980
mov eax, dword [ebp + 0xe4]
inc edi
cmp edi, eax
jl 0x100663d3
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_2
mov eax, dword [ebp + 0xe4]
lea ecx, [esp + 0x18]
push eax
mov ebx, 4
push 0x1025df7c
push ecx
mov dword [esp + 0x30], ebx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [0x10282758]
add esp, 0xc
test eax, eax
je 0x10066492
mov edx, dword [esp + 0x18]
push edx
push str._IOCP___s
push 0x1025debc
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x14
mov eax, dword [ebp + 0x104]
test eax, eax
jg 0x100664a6
mov eax, dword [ebp + 0xf4]
test eax, eax
je 0x1006651d
push 0x34
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x24], 5
je 0x100664e3
mov ecx, dword [ebp + 0xe8]
lea edx, [ebp + 0xc4]
push ecx
lea ecx, [ebp + 0x94]
push edx
push ecx
mov ecx, dword [ebp + 0x30]
lea edx, [ebp + 0x2c]
push edx
push ecx
mov ecx, eax
call fcn.1006f700
jmp 0x100664e5
xor eax, eax
mov ecx, eax
mov byte [esp + 0x24], bl
mov dword [ebp + 0x90], eax
call fcn.10089800
mov eax, dword [0x10282758]
test eax, eax
je 0x1006651d
push 0x1025df58
push str._IOCP___s
push 0x1025debc
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x14
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret