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

Disassembly:
push 0xffffffffffffffff
push 0x5127e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x5580c0]
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 0x46e7d7
call fcn.004f80f4
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x838]
cmp eax, ebx
je 0x46e7df
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 0x46e80e
call fcn.004f80f4
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x838]
cmp eax, ebx
je 0x46e8df
push ebx
lea edx, [esp + 0xc]
push ebx
push edx
push str.PASV
mov ecx, esi
call fcn.0046a190
cmp eax, 2
jne 0x46e9b5
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.004c2513
add esp, 0x20
cmp eax, 6
mov dword [esp + 0xc], eax
jne 0x46e9b5
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.004dd44d
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 0x46e92b
lea ecx, [esp + 0x20]
push 0xd3
push ecx
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push ebx
push eax
mov ecx, esi
mov byte [esp + 0xb0], 1
call fcn.00452980
lea ecx, [esp + 0x20]
mov byte [esp + 0xa8], bl
call fcn.004dd44d
jmp 0x46e9b5
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.004c2b9d
add esp, 0x20
lea eax, [esp + 0x3c]
mov ecx, esi
push ebx
push ebx
push ebx
push eax
call fcn.0046a190
cmp eax, 2
je 0x46e8b2
mov ecx, esi
call fcn.0046e9f0
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.004dd44d
mov ecx, dword [esp + 0xa0]
pop esi
or eax, 0xffffffff
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret