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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8cc4
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x641490]
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.00410490
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 0x446396
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.00408770
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.00408b50
add esp, 0xc
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x94]
push edx
lea ecx, [ebp - 0x54]
call fcn.0040f5d0
lea ecx, [ebp - 0xc4]
call fcn.004066a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.004066a0
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041b490
mov ecx, dword [ebp - 0x64]
or ecx, 1
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00409a10
mov eax, dword [ebp + 8]
jmp 0x4466c6
lea edx, [ebp - 0x184]
push edx
mov ecx, dword [ebp - 0x60]
call fcn.00445fb0
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.004119e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x184]
call fcn.00409a10
movzx edx, byte [ebp - 0x58]
test edx, edx
jne 0x446407
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041b490
mov ecx, dword [ebp - 0x64]
or ecx, 1
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00409a10
mov eax, dword [ebp + 8]
jmp 0x4466c6
lea edx, [ebp - 0x1cc]
push edx
mov ecx, dword [ebp - 0x60]
call fcn.004461b0
lea ecx, [ebp - 0x1cc]
call fcn.00409a10
push 0x10
call fcn.00460305
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.00406720
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 0x446575
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.00408770
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 0x615430
lea eax, [ebp - 0xf4]
push eax
call fcn.00408b50
add esp, 0xc
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x54]
call fcn.0040f5d0
lea ecx, [ebp - 0xf4]
call fcn.004066a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x13c]
call fcn.004066a0
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.0046033b
add esp, 4
cmp dword [ebp - 0x68], 0
jne 0x446539
mov dword [ebp - 0x98], 0
jmp 0x446549
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.0041b490
mov edx, dword [ebp - 0x64]
or edx, 1
mov dword [ebp - 0x64], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00409a10
mov eax, dword [ebp + 8]
jmp 0x4466c6
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 0x44666b
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.00408770
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.00408b50
add esp, 0xc
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x54]
call fcn.0040f5d0
lea ecx, [ebp - 0x124]
call fcn.004066a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xdc]
call fcn.004066a0
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.0046033b
add esp, 4
cmp dword [ebp - 0x70], 0
jne 0x446635
mov dword [ebp - 0x7c], 0
jmp 0x446642
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.0041b490
mov edx, dword [ebp - 0x64]
or edx, 1
mov dword [ebp - 0x64], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00409a10
mov eax, dword [ebp + 8]
jmp 0x4466c6
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.0046033b
add esp, 4
cmp dword [ebp - 0x6c], 0
jne 0x44668f
mov dword [ebp - 0x84], 0
jmp 0x44669f
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.0041b490
mov ecx, dword [ebp - 0x64]
or ecx, 1
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00409a10
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.00588246
mov esp, ebp
pop ebp
ret 4