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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x57ec74]
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 0x441f58
mov ebx, dword [ebp + 0xc]
push ebx
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x441f58
mov dword [esp + 0x1c], 0
test ebx, ebx
jle 0x441f7d
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_WSASocketW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x441f6e
xor edi, edi
nop dword [eax + eax]
push 0x59193c
xor bh, bh
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x59193c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x591928]
cmp eax, dword [0x59192c]
push 0x59193c
sete bl
call esi
test bl, bl
jne 0x441e85
mov ecx, dword [0x59192c]
mov bh, 1
mov eax, dword [0x591924]
mov edi, dword [eax + ecx*4]
inc ecx
cmp ecx, dword [0x591934]
cmovge ecx, dword [0x591930]
mov dword [0x59192c], ecx
push 0x59193c
call esi
test bh, bh
jne 0x441e9c
mov ecx, 0x3e8
call fcn.00442830
jmp 0x441e30
push dword [edi + 0x20]
call fcn.004cbc8a
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 0x595544
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 0x595500
push dword [esp + 0x28]
push dword [ebx + 4]
call dword [esp + 0x38]
test eax, eax
jne 0x441f0f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x441f2d
push 0x595544
call esi
mov ebx, dword [esp + 0x1c]
inc ebx
mov dword [esp + 0x1c], ebx
cmp ebx, dword [ebp + 0xc]
jge 0x441f7d
mov edi, dword [esp + 0x20]
jmp 0x441db2
push str.AcceptEx___Failed_and_IO_aint_pending.
call fcn.00442d60
add esp, 4
mov ecx, edi
call fcn.00440ee0
push edi
call fcn.004447d0
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x595544
call esi
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004cb96a
mov esp, ebp
pop ebp
ret 8
push str.Failed_to_create_socket_in_IOCP_setup.
call fcn.00442d60
add esp, 4
jmp 0x441f58
mov ecx, dword [esp + 0x44]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cb96a
mov esp, ebp
pop ebp
ret 8