Function at 0x403ff0
Capabilities:
Create tcp socket
Create thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x496074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push edi
push 0
push 0
push 0
push 0xffffffffffffffff
mov edi, ecx
call esi
mov dword [edi + 0xc], eax
test eax, eax
jne 0x40403d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 8], eax
mov edx, str.CCoreServer::_IocpInit
lea eax, [ebp - 8]
mov ecx, 0x48746c
push eax
push 0x227
jmp 0x404339
push 0x22b
mov edx, str.CCoreServer::_IocpInit
mov ecx, 0x487490
call fcn.004073d0
add esp, 4
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x10], eax
cmp eax, 0xffffffff
je 0x40431d
push 0
push 0
push dword [edi + 0xc]
push eax
call esi
test eax, eax
je 0x40431d
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ecx, dword [0x499604]
mov dword [ecx*4 + 0x499610], eax
test eax, eax
je 0x40431d
push 0x28
push eax
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x40431d
inc dword [0x499604]
lea eax, [ebp - 8]
push 4
push eax
push 4
push 0xffff
push dword [edi + 0x10]
mov dword [ebp - 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x40431d
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x18], xmm0
push 0x46a6
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [ebp - 0x16], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0x10
push eax
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x40431d
push bind
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x40431d
push 0x218
mov edx, str.CCoreServer::_ListenSkInit
mov ecx, 0x487418
call fcn.004073d0
add esp, 4
mov esi, dword [sym.imp.WS2_32.dll_WSAIoctl]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
mov dword [ebp - 0x28], 0xb5367df1
mov dword [ebp - 0x24], 0x11cfcbac
push 0
push 0
push eax
push 4
lea eax, [edi + 0x34]
mov dword [ebp - 0x20], 0x8000ca95
push eax
push 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1c], 0x92a1485f
push eax
push 0xc8000006
push dword [edi + 0x10]
mov dword [ebp - 0x18], 0xb5367df2
mov dword [ebp - 0x14], 0x11cfcbac
mov dword [ebp - 0x10], 0x8000ca95
mov dword [ebp - 0xc], 0x92a1485f
call esi
cmp eax, 0xffffffff
jne 0x4041d3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x2c], eax
mov edx, str.CCoreServer::_GetExtenstionFunctionPointer
lea eax, [ebp - 0x2c]
mov ecx, str.AcceptEx_d
push eax
push 0x238
jmp 0x404339
push 0
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [edi + 0x38]
push eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0xc8000006
push dword [edi + 0x10]
call esi
cmp eax, 0xffffffff
jne 0x404217
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x2c], eax
mov edx, str.CCoreServer::_GetExtenstionFunctionPointer
lea eax, [ebp - 0x2c]
mov ecx, str.GetAcceptExSockaddrs_d
push eax
push 0x23e
jmp 0x404339
mov eax, dword [edi + 0x3c]
xor ecx, ecx
mov edx, 4
mul edx
push 0x4986c9
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00439386
add esp, 8
mov dword [0x49960c], eax
test eax, eax
jne 0x404267
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov edx, str.CCoreServer::_BeginThread
lea eax, [ebp - 0x2c]
mov ecx, 0x487538
push eax
push 0x25b
call fcn.00407570
jmp 0x40433e
xor esi, esi
mov dword [ebp - 8], esi
cmp dword [edi + 0x3c], esi
jbe 0x4042bb
push 0
push 0
push 0
push 0x404590
push 0
push 0
call fcn.00454509
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4042aa
call fcn.0045438f
push eax
call fcn.004543a2
push eax
lea eax, [ebp - 8]
push eax
push ecx
call fcn.00407810
mov esi, dword [ebp - 8]
add esp, 0x10
mov eax, dword [0x49960c]
mov dword [eax + esi*4], ebx
inc esi
mov dword [ebp - 8], esi
cmp esi, dword [edi + 0x3c]
jb 0x404271
push 0
push 0
push 0
push 0x404620
push 0
push 0
call fcn.00454509
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4042ed
call fcn.0045438f
push eax
call fcn.004543a2
push eax
push ecx
call fcn.004079e0
add esp, 0xc
push 0x271
mov edx, str.CCoreServer::_BeginThread
mov dword [0x499608], esi
mov ecx, 0x4875bc
call fcn.004073d0
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043930f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x2c], eax
mov edx, str.CCoreServer::_ListenSkInit
lea eax, [ebp - 0x2c]
mov ecx, 0x487434
push eax
push 0x21d
call fcn.00407570
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor al, al
pop edi
pop esi
pop ebx
call fcn.0043930f
mov esp, ebp
pop ebp
ret