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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x57bc74]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x36], ax
mov eax, 2
mov word [esp + 0x34], ax
lea eax, [esp + 0x34]
push 0x10
push eax
push dword [edi + 4]
mov dword [esp + 0x44], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x441ce8
mov ebx, dword [ebp + 0xc]
push ebx
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x441ce8
mov dword [esp + 0x1c], 0
test ebx, ebx
jle 0x441d0d
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], 0
push eax
push 4
lea eax, [esp + 0x28]
mov dword [esp + 0x34], 0xb5367df1
push eax
push 0x10
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], 0x11cfcbac
push eax
push 0xc8000006
push dword [edi + 4]
mov dword [esp + 0x50], 0x8000ca95
mov dword [esp + 0x54], 0x92a1485f
mov dword [esp + 0x38], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x441cfe
xor edi, edi
nop dword [eax + eax]
push 0x58e730
xor bh, bh
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x58e730
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x58e71c]
cmp eax, dword [0x58e720]
push 0x58e730
sete bl
call esi
test bl, bl
jne 0x441c15
mov ecx, dword [0x58e720]
mov bh, 1
mov eax, dword [0x58e718]
mov edi, dword [eax + ecx*4]
inc ecx
cmp ecx, dword [0x58e728]
cmovge ecx, dword [0x58e724]
mov dword [0x58e720], ecx
push 0x58e730
call esi
test bh, bh
jne 0x441c2c
mov ecx, 0x3e8
call fcn.00442510
jmp 0x441bc0
push dword [edi + 0x20]
call fcn.004c954c
mov ebx, dword [esp + 0x24]
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [edi + 0x28], 0
mov dword [edi + 0x18], 3
mov dword [edi + 0x14], ebx
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov eax, dword [ebx + 4]
push 0x592224
mov dword [edi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
lea eax, [esp + 0x18]
push eax
push 0x20
push 0x20
push 0
push 0x5921e0
push dword [esp + 0x28]
push dword [ebx + 4]
call dword [esp + 0x38]
test eax, eax
jne 0x441c9f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x441cbd
push 0x592224
call esi
mov ebx, dword [esp + 0x1c]
inc ebx
mov dword [esp + 0x1c], ebx
cmp ebx, dword [ebp + 0xc]
jge 0x441d0d
mov edi, dword [esp + 0x20]
jmp 0x441b42
push str.AcceptEx___Failed_and_IO_aint_pending.
call fcn.00442a10
add esp, 4
mov ecx, edi
call fcn.00440d00
push edi
call fcn.004442c0
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x592224
call esi
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004c922c
mov esp, ebp
pop ebp
ret 8
push str.Failed_to_create_socket_in_IOCP_setup.
call fcn.00442a10
add esp, 4
jmp 0x441ce8
mov ecx, dword [esp + 0x44]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c922c
mov esp, ebp
pop ebp
ret 8