Function at 0x414190
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 + 0x34], 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 + 0x38], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x38], 0xffffffff
jne 0x414208
mov eax, 1
test eax, eax
je 0x4141ea
mov dword [ebp - 0x20], 0
jmp 0x414201
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Could_not_create_listen_socket__ld_n
call fcn.0040c170
add esp, 8
mov dword [ebp - 0x20], eax
xor al, al
jmp 0x4143d5
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x80], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x80], 0
jne 0x414260
mov eax, 1
test eax, eax
je 0x414235
mov dword [ebp - 0x24], 0
jmp 0x41424c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSACreateEvent___error__ld_n
call fcn.0040c170
add esp, 8
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x38]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x4143d5
push 8
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x80]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4142bf
mov ecx, 1
test ecx, ecx
je 0x414294
mov dword [ebp - 0x28], 0
jmp 0x4142ab
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAAsyncSelect___error__ld_n
call fcn.0040c170
add esp, 8
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x4143d5
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 + 0x38]
push ecx
call dword [sym.imp.WS2_32.dll_bind]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x414334
mov edx, 1
test edx, edx
je 0x414309
mov dword [ebp - 0x2c], 0
jmp 0x414320
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.bind___error__ld_n
call fcn.0040c170
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x38]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x4143d5
push OleUIAddVerbMenuA
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.WS2_32.dll_listen]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x414389
mov ecx, 1
test ecx, ecx
je 0x414361
mov dword [ebp - 0x30], 0
jmp 0x414378
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.listen___error__ld_n
call fcn.0040c170
add esp, 8
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x4143d5
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
push 0x4143e0
push 0
push 0
call fcn.00481a76
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x88], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x88], 0xffffffff
je 0x4143d3
mov ecx, dword [ebp - 4]
call fcn.00414890
mov eax, dword [ebp - 4]
mov byte [eax + 0x40], 1
mov al, 1
jmp 0x4143d5
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10