Function at 0x415570
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0x1c], edx
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x68], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x68], 0xffffffff
jne 0x4155e8
mov eax, 1
test eax, eax
je 0x4155ca
mov dword [ebp - 0x20], 0
jmp 0x4155e1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Could_not_create_listen_socket__ld_n
call fcn.0040b7b0
add esp, 8
mov dword [ebp - 0x20], eax
xor al, al
jmp 0x4157a6
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x64], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x64], 0
jne 0x41563a
mov eax, 1
test eax, eax
je 0x41560f
mov dword [ebp - 0x24], 0
jmp 0x415626
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSACreateEvent___error__ld_n
call fcn.0040b7b0
add esp, 8
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x68]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x4157a6
push 8
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x64]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x68]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x415696
mov ecx, 1
test ecx, ecx
je 0x41566b
mov dword [ebp - 0x28], 0
jmp 0x415682
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAAsyncSelect___error__ld_n
call fcn.0040b7b0
add esp, 8
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x68]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x4157a6
mov cx, word [ebp + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
mov word [ebp - 0x18], 2
mov dword [ebp - 0x14], 0
push 0x10
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x68]
push ecx
call dword [sym.imp.WS2_32.dll_bind]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x41570b
mov edx, 1
test edx, edx
je 0x4156e0
mov dword [ebp - 0x2c], 0
jmp 0x4156f7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.bind___error__ld_n
call fcn.0040b7b0
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x68]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x4157a6
push OleUIAddVerbMenuA
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x68]
push eax
call dword [sym.imp.WS2_32.dll_listen]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x415760
mov ecx, 1
test ecx, ecx
je 0x415738
mov dword [ebp - 0x30], 0
jmp 0x41574f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.listen___error__ld_n
call fcn.0040b7b0
add esp, 8
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x68]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x4157a6
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
push 0x4157b0
push 0
push 0
call fcn.00451e9c
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x70], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x70], 0xffffffff
je 0x4157a4
mov ecx, dword [ebp - 4]
call fcn.00415c60
mov eax, dword [ebp - 4]
mov byte [eax + 0x24], 1
mov al, 1
jmp 0x4157a6
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10