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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
test dl, dl
je 0x4416df
add esp, 0xfffffff0
call fcn.00403f4c
mov ebx, dword [ebp + 0x18]
add ebx, ebx
inc ebx
test ebx, ebx
js 0x4416f3
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x4416ec
mov ecx, esp
mov dword [ebp - 0xa], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
call fcn.00404ea8
xor eax, eax
push ebp
push 0x441932
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov cl, 1
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0042fd9c
mov eax, dword [ebp + 8]
cmp byte [eax], 0
jne 0x44190f
mov eax, dword [ebp + 0x18]
inc eax
push eax
mov eax, dword [ebp - 4]
add eax, 0x14
mov ecx, 1
mov edx, dword [0x4415e4]
call fcn.00405df8
add esp, 4
mov eax, dword [ebp + 0x18]
inc eax
push eax
mov eax, dword [ebp - 4]
add eax, 0x24
mov ecx, 1
mov edx, dword [0x44160c]
call fcn.00405df8
add esp, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.00405c3c
dec eax
test eax, eax
jl 0x4417a6
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xa]
mov edx, dword [ebp - 0x10]
mov ax, word [eax + edx*2]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x14]
mov ecx, dword [ebp - 0x10]
mov word [edx + ecx*2], ax
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x441787
mov eax, dword [ebp - 4]
mov dl, byte [ebp + 0x14]
mov byte [eax + 0x18], dl
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 4]
add eax, 0x20
mov edx, dword [ebp + 0xc]
call fcn.00404a4c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.00405c3c
dec eax
test eax, eax
jl 0x44190f
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov edx, dword [ebp - 0x10]
mov dword [eax + edx*4], 0xffffffff
mov eax, dword [ebp - 4]
mov al, byte [eax + 4]
sub al, 1
jne 0x441903
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.004031cc
mov word [ebp - 0x24], 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x10]
mov ax, word [eax + edx*2]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x22], ax
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
mov ecx, dword [ebp - 0x10]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov edx, dword [ebp - 0x10]
cmp dword [eax + edx*4], 0xffffffff
je 0x4418b2
push 0x10
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
push eax
call sub.wsock32.dll_bind
inc eax
je 0x4418b2
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
push eax
call sub.wsock32.dll_listen
inc eax
je 0x4418b2
push 8
push 0x464
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
inc eax
jne 0x441903
push 0x441968
call sub.wsock32.dll_WSAGetLastError
lea edx, [ebp - 0x2c]
call fcn.0042d054
push dword [ebp - 0x2c]
push 0x441988
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2]
call fcn.00408b8c
push dword [ebp - 0x30]
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00404d78
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
mov edx, 0x441998
call fcn.0042cbd0
jmp 0x44190f
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x4417e5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441939
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404a1c
lea eax, [ebp + 0xc]
call fcn.004049f8
ret