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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8ff4
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x60]
mov byte [eax + 0x44], 0
lea ecx, [ebp - 0x58]
call fcn.004104d0
mov dword [ebp - 4], 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x60]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x60]
cmp dword [edx + 0xc], 0xffffffff
jne 0x4466e6
mov byte [ebp - 0x58], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call fcn.004087a0
add esp, 8
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x90], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x90]
push eax
push str.create_socket_error:
lea ecx, [ebp - 0xc4]
push ecx
call fcn.00408b80
add esp, 0xc
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x94]
push edx
lea ecx, [ebp - 0x54]
call fcn.0040f610
lea ecx, [ebp - 0xc4]
call fcn.004066d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.004066d0
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041b4e0
mov ecx, dword [ebp - 0x64]
or ecx, 1
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00409a40
mov eax, dword [ebp + 8]
jmp 0x446a16
lea edx, [ebp - 0x184]
push edx
mov ecx, dword [ebp - 0x60]
call fcn.00446300
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x9c]
push ecx
lea ecx, [ebp - 0x58]
call fcn.00411a30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x184]
call fcn.00409a40
movzx edx, byte [ebp - 0x58]
test edx, edx
jne 0x446757
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041b4e0
mov ecx, dword [ebp - 0x64]
or ecx, 1
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00409a40
mov eax, dword [ebp + 8]
jmp 0x446a16
lea edx, [ebp - 0x1cc]
push edx
mov ecx, dword [ebp - 0x60]
call fcn.00446500
lea ecx, [ebp - 0x1cc]
call fcn.00409a40
push 0x10
call fcn.00460745
add esp, 4
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x5c], eax
mov ecx, 2
mov edx, dword [ebp - 0x5c]
mov word [edx], cx
mov eax, dword [ebp - 0x60]
movzx ecx, word [eax + 0x28]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp - 0x5c]
mov word [edx + 2], ax
mov ecx, dword [ebp - 0x60]
add ecx, 0x10
call fcn.00406750
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 4], eax
push 0x10
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4468c5
mov byte [ebp - 0x58], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x13c]
push eax
call fcn.004087a0
add esp, 8
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xac], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xac]
push edx
push 0x61673c
lea eax, [ebp - 0xf4]
push eax
call fcn.00408b80
add esp, 0xc
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x54]
call fcn.0040f610
lea ecx, [ebp - 0xf4]
call fcn.004066d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x13c]
call fcn.004066d0
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
push edx
call fcn.0046077b
add esp, 4
cmp dword [ebp - 0x68], 0
jne 0x446889
mov dword [ebp - 0x98], 0
jmp 0x446899
mov dword [ebp - 0x5c], 0x8123
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041b4e0
mov edx, dword [ebp - 0x64]
or edx, 1
mov dword [ebp - 0x64], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00409a40
mov eax, dword [ebp + 8]
jmp 0x446a16
push 0x14
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4469bb
mov byte [ebp - 0x58], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0xdc]
push eax
call fcn.004087a0
add esp, 8
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x8c], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x8c]
push edx
push str.listen_error:
lea eax, [ebp - 0x124]
push eax
call fcn.00408b80
add esp, 0xc
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x54]
call fcn.0040f610
lea ecx, [ebp - 0x124]
call fcn.004066d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xdc]
call fcn.004066d0
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
push edx
call fcn.0046077b
add esp, 4
cmp dword [ebp - 0x70], 0
jne 0x446985
mov dword [ebp - 0x7c], 0
jmp 0x446992
mov dword [ebp - 0x5c], 0x8123
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x7c], eax
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041b4e0
mov edx, dword [ebp - 0x64]
or edx, 1
mov dword [ebp - 0x64], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00409a40
mov eax, dword [ebp + 8]
jmp 0x446a16
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.0046077b
add esp, 4
cmp dword [ebp - 0x6c], 0
jne 0x4469df
mov dword [ebp - 0x84], 0
jmp 0x4469ef
mov dword [ebp - 0x5c], 0x8123
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x84], edx
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041b4e0
mov ecx, dword [ebp - 0x64]
or ecx, 1
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00409a40
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00588685
mov esp, ebp
pop ebp
ret 4