Function at 0x403e70
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x470074]
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 0x403ebd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 8], eax
mov edx, str.CCoreServer::_IocpInit
lea eax, [ebp - 8]
mov ecx, 0x4662e4
push eax
push 0x227
jmp 0x404027
push 0x22b
mov edx, str.CCoreServer::_IocpInit
mov ecx, 0x466308
call fcn.004080b0
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 0x40400b
push 0
push 0
push dword [edi + 0xc]
push eax
call esi
test eax, eax
je 0x40400b
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ecx, dword [0x4734b4]
mov dword [ecx*4 + 0x4734d0], eax
test eax, eax
je 0x40400b
push 0x28
push eax
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x40400b
inc dword [0x4734b4]
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 0x40400b
xorps xmm0, xmm0
mov eax, 2
xor esi, esi
movups xmmword [ebp - 0x18], xmm0
push esi
mov word [ebp - 0x18], ax
call fcn.0043aa70
add esp, 4
push eax
call fcn.00438a66
mov ebx, dword [sym.imp.WS2_32.dll_listen]
add esp, 4
call fcn.00438a45
cdq
mov ecx, 0xad9d
idiv ecx
mov ecx, 0x466278
add edx, 0x2b67
movzx eax, dx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov word [0x4735e4], dx
mov edx, str.CCoreServer::_ListenSkInit
push 0x1fb
call fcn.00408250
movzx eax, word [0x4735e4]
add esp, 8
push eax
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 0x403fff
push closesocket
push dword [edi + 0x10]
call ebx
cmp eax, 0xffffffff
jne 0x404042
mov eax, esi
inc esi
cmp eax, 0x14
jle 0x403f84
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x2c], eax
mov edx, str.CCoreServer::_ListenSkInit
lea eax, [ebp - 0x2c]
mov ecx, 0x4662ac
push eax
push 0x21d
call fcn.00408250
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d98c
mov esp, ebp
pop ebp
ret
push 0x218
mov edx, str.CCoreServer::_ListenSkInit
mov ecx, 0x466290
call fcn.004080b0
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 0x4040e2
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 0x404027
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 0x404126
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 0x404027
mov ecx, edi
call fcn.00404380
test al, al
je 0x40402f
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d98c
mov esp, ebp
pop ebp
ret