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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101e7a93
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 1
push ebp
push ebp
push ebp
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
or ebx, 0xffffffff
cmp edi, ebx
jne 0x100665f6
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_2
mov dword [esp + 0x34], ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [esp + 0x14]
push 0x1025dfc4
push eax
call sub.MFC42u.DLL_CString::Format
mov eax, dword [0x10282758]
add esp, 0xc
cmp eax, ebp
je 0x100665d4
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 + 0x34], ebx
call sub.MFC42u.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov eax, dword [0x10282758]
cmp eax, ebp
je 0x1006661c
push str.WSASocket__
push str._IOCP___s
push 0x1025debc
push ebx
push 0x10281ec4
call fcn.100de220
add esp, 0x14
push pe_nt_image_headers32
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov dword [esp + 0x34], 1
je 0x1006665f
mov edx, dword [esi + 0x108]
mov ecx, dword [esi + 0x10c]
push edx
mov edx, dword [esi + 0xec]
push ecx
mov ecx, dword [esi + 0xf0]
push ebp
push edx
push ecx
mov ecx, eax
call fcn.1006c230
jmp 0x10066661
xor eax, eax
push edi
mov ecx, eax
mov dword [esp + 0x38], ebx
mov dword [esi + 0x118], eax
call fcn.1006c610
mov edx, dword [esi + 0x118]
mov eax, dword [esi + 0x30]
push ebp
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x100666fc
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_2
mov dword [esp + 0x34], 2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x18]
push 0x1025e0f4
push ecx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [0x10282758]
add esp, 0xc
cmp eax, ebp
je 0x100666da
mov edx, dword [esp + 0x14]
push edx
push str._IOCP___s
push 0x1025debc
push ebx
push 0x10281ec4
call fcn.100de220
add esp, 0x14
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], ebx
call sub.MFC42u.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
cmp dword [0x10282758], ebp
je 0x10066721
push str.Listen_Socket
push str._IOCP___s
push 0x1025debc
push ebx
push 0x10281ec4
call fcn.100de220
add esp, 0x14
mov cx, word [esi + 0x28]
xor eax, eax
mov dword [esp + 0x1c], eax
push ecx
mov dword [esp + 0x24], eax
mov word [esp + 0x20], 2
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x118]
lea edx, [esp + 0x1c]
push 0x10
push edx
mov word [esp + 0x26], ax
call fcn.1006c640
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, ebx
mov eax, dword [0x10282758]
jne 0x1006677b
cmp eax, ebp
je 0x100667dd
push 0x1025e0a4
jmp 0x100667c5
cmp eax, ebp
je 0x1006679c
push str.bind__
push str._IOCP___s
push 0x1025debc
push ebx
push 0x10281ec4
call fcn.100de220
add esp, 0x14
mov ecx, dword [esi + 0x118]
push bind
call fcn.1006c640
push eax
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, ebx
mov eax, dword [0x10282758]
jne 0x100667f2
cmp eax, ebp
je 0x100667dd
push 0x1025e064
push str._IOCP___s
push 0x1025debc
push ebx
push 0x10281ec4
call fcn.100de220
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
cmp eax, ebp
je 0x10066813
push 0x1025e048
push str._IOCP___s
push 0x1025debc
push ebx
push 0x10281ec4
call fcn.100de220
add esp, 0x14
mov eax, dword [esi + 0x110]
test eax, eax
jle 0x10066879
lea ebx, [esi + 0x134]
mov ecx, dword [esi + 0x118]
push 0x40
call fcn.1006cdd0
mov edi, eax
mov ecx, ebx
push edi
mov dword [edi + 0x2c], 0
call sub.MFC42u.DLL_CPtrList::AddTail_1
mov eax, dword [esi + 0x12c]
mov ecx, dword [esi + 0x118]
push eax
push edi
call fcn.1006c640
push eax
call fcn.1006fa10
add esp, 0xc
cmp eax, 2
je 0x100668e8
cmp eax, 3
je 0x100668e8
mov eax, dword [esi + 0x110]
inc ebp
cmp ebp, eax
jl 0x10066823
or ebx, 0xffffffff
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_2
push ebp
lea ecx, [esp + 0x1c]
push 0x1025e01c
push ecx
mov dword [esp + 0x40], 3
call sub.MFC42u.DLL_CString::Format
mov eax, dword [0x10282758]
add esp, 0xc
test eax, eax
je 0x100668c3
mov edx, dword [esp + 0x18]
push edx
push str._IOCP___s
push 0x1025debc
push ebx
push 0x10281ec4
call fcn.100de220
add esp, 0x14
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], ebx
call sub.MFC42u.DLL_CString::CString
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov ecx, dword [esi + 0x118]
push edi
call fcn.1006cef0
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret