Function at 0x46e4a0
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push 0xffffffffffffffff
push 0x512466
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x5580a0]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
xor ebx, ebx
push ebx
push 1
push 2
mov dword [esp + 0xb4], ebx
call sub.WSOCK32.dll_socket
lea ecx, [esp + 0xc]
mov dword [esi + 0x45c], eax
mov eax, dword [esi + 0x458]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x18], 0x10
call sub.WSOCK32.dll_getsockname
mov ecx, dword [esi + 0x4b0]
mov word [esp + 0x10], 2
mov word [esp + 0x12], bx
mov eax, dword [ecx + 0x64]
cmp eax, 2
jne 0x46e527
call fcn.004f7db8
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x838]
cmp eax, ebx
je 0x46e52f
mov dword [esp + 0x14], ebx
mov eax, dword [esi + 0x45c]
lea edx, [esp + 0x10]
push 0x10
push edx
push eax
call sub.WSOCK32.dll_bind
mov ecx, dword [esi + 0x4b0]
mov eax, dword [ecx + 0x64]
cmp eax, 2
jne 0x46e55e
call fcn.004f7db8
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x838]
cmp eax, ebx
je 0x46e62f
push ebx
lea edx, [esp + 0xc]
push ebx
push edx
push str.PASV
mov ecx, esi
call fcn.00469ea0
cmp eax, 2
jne 0x46e705
mov word [esi + 0x460], ax
lea eax, [esp + 0x38]
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x34]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x34]
push ecx
push edx
push str._______i__i__i__i__i__i
push eax
call fcn.004c21e3
add esp, 0x20
cmp eax, 6
mov dword [esp + 0xc], eax
jne 0x46e705
mov dl, byte [esp + 0x28]
mov al, byte [esp + 0x2c]
mov cl, byte [esp + 0x24]
mov byte [esi + 0x465], dl
mov edx, dword [esp + 0x38]
mov byte [esi + 0x466], al
mov eax, dword [esp + 0x34]
mov byte [esi + 0x464], cl
mov cl, byte [esp + 0x30]
shl edx, 8
add edx, eax
mov byte [esi + 0x467], cl
mov word [esi + 0x462], dx
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.004dd111
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
mov eax, dword [esi + 0x45c]
push 1
push eax
call sub.WSOCK32.dll_listen
test eax, eax
je 0x46e67b
lea ecx, [esp + 0x20]
push 0xd3
push ecx
call fcn.0042e080
add esp, 8
mov eax, dword [eax]
push ebx
push eax
mov ecx, esi
mov byte [esp + 0xb0], 1
call fcn.00452660
lea ecx, [esp + 0x20]
mov byte [esp + 0xa8], bl
call fcn.004dd111
jmp 0x46e705
mov ecx, dword [esi + 0x45c]
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
mov dword [esp + 0x18], 0x10
call sub.WSOCK32.dll_getsockname
mov eax, dword [esp + 0x12]
mov ecx, dword [esp + 0x17]
xor edx, edx
and eax, 0xff
mov dl, byte [esp + 0x13]
and ecx, 0xff
and edx, 0xff
push edx
mov edx, dword [esp + 0x1a]
push eax
mov eax, dword [esp + 0x1d]
push ecx
mov ecx, dword [esp + 0x20]
and edx, 0xff
and eax, 0xff
push edx
and ecx, 0xff
push eax
push ecx
lea edx, [esp + 0x54]
push str.PORT__u__u__u__u__u__u_r_n
push edx
call fcn.004c286d
add esp, 0x20
lea eax, [esp + 0x3c]
mov ecx, esi
push ebx
push ebx
push ebx
push eax
call fcn.00469ea0
cmp eax, 2
je 0x46e602
mov ecx, esi
call fcn.0046e740
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.004dd111
mov ecx, dword [esp + 0xa0]
pop esi
or eax, 0xffffffff
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret