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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x592c80]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x14], ebx
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 [ebx + 4]
mov dword [esp + 0x44], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x441cc4
mov esi, dword [ebp + 0xc]
push esi
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x441cc4
mov dword [esp + 0x20], 0
test esi, esi
jle 0x441ce9
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 0
push eax
push 4
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], 0xb5367df1
push eax
push 0x10
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], 0x11cfcbac
push eax
push 0xc8000006
push dword [ebx + 4]
mov dword [esp + 0x50], 0x8000ca95
mov dword [esp + 0x54], 0x92a1485f
mov dword [esp + 0x3c], 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 + 0x14], eax
cmp eax, 0xffffffff
je 0x441cda
nop dword [eax]
push 0x5a5980
call edi
push 0x5a5980
call edi
mov eax, dword [0x5a596c]
cmp eax, dword [0x5a5970]
push 0x5a5980
sete bl
call esi
test bl, bl
je 0x441bda
push 0x5a5980
call esi
mov ecx, 0x3e8
call fcn.004424e0
jmp 0x441ba0
mov ecx, dword [0x5a5970]
mov eax, dword [0x5a5968]
mov ebx, dword [eax + ecx*4]
inc ecx
mov dword [0x5a5970], ecx
cmp ecx, dword [0x5a5978]
jl 0x441c01
mov eax, dword [0x5a5974]
mov dword [0x5a5970], eax
push 0x5a5980
call esi
push dword [ebx + 0x20]
call fcn.004c8b97
mov eax, dword [esp + 0x14]
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x18], 3
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov eax, dword [eax + 4]
push 0x5a9374
mov dword [ebx + 0x28], eax
call edi
push ebx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push 0x20
push 0x20
push 0
push 0x5a9328
push dword [esp + 0x2c]
push dword [eax + 4]
call dword [esp + 0x3c]
test eax, eax
jne 0x441c7b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x441c99
push 0x5a9374
call esi
mov ebx, dword [esp + 0x20]
inc ebx
mov dword [esp + 0x20], ebx
cmp ebx, dword [ebp + 0xc]
jge 0x441ce9
mov ebx, dword [esp + 0x10]
jmp 0x441b28
push str.AcceptEx___Failed_and_IO_aint_pending.
call fcn.00442a00
add esp, 4
mov ecx, ebx
call fcn.00440da0
push ebx
call fcn.00443760
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x5a9374
call esi
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004c8873
mov esp, ebp
pop ebp
ret 8
push str.Failed_to_create_socket_in_IOCP_setup.
call fcn.00442a00
add esp, 4
jmp 0x441cc4
mov ecx, dword [esp + 0x44]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c8873
mov esp, ebp
pop ebp
ret 8