Function at 0x48be20
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559450
mov eax, dword fs:[0]
push eax
mov eax, 0x23ac
call fcn.005258e0
mov eax, dword [0x5c3040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
push ebx
push str.vncServer::EnableConnections_:_SockConnect__d_n
push 0xa
push 0x5c3db0
call fcn.0041dde0
mov eax, dword [esi + 0x9c]
add esp, 0x10
test ebx, ebx
je 0x48c05b
test eax, eax
jne 0x48c0b9
push 0x23b0
call fcn.00524776
mov edi, eax
add esp, 4
mov dword [ebp - 0x23b8], edi
lea ecx, [edi + 4]
mov dword [edi], vtable.vncSockConnect.0
call fcn.0048e420
mov ecx, dword [0x5d1914]
mov dword [edi + 0x23ac], 0
mov dword [esi + 0x9c], edi
cmp dword [ecx + 0x728], 0
je 0x48c025
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov edi, 0x170c
push edi
push str.vncServer::EnableConnections_:_trying_port_number__d_n
lea eax, [edi - 0x64]
mov dword [esi + 0x64], edi
push 1
push 0x5c3db0
mov dword [esi + 0x68], eax
call fcn.0041dde0
add esp, 0x10
lea ecx, [ebp - 0x23b4]
call fcn.0048e420
mov dword [ebp - 4], 0
cmp dword [ebp - 0x23ac], 0xffffffff
mov dword [ebp - 0x23b8], 1
je 0x48bf21
lea ecx, [ebp - 0x23b4]
call fcn.0048e620
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x23ac], eax
cmp eax, 0xffffffff
je 0x48bf8c
push 4
lea ecx, [ebp - 0x23b8]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x48bf8c
lea ecx, [ebp - 0x23b4]
call fcn.0048e970
push dword [esi + 0x64]
lea ecx, [ebp - 0x23b4]
push str.localhost
call fcn.0048e700
test eax, eax
jne 0x48bf8c
mov ecx, dword [esi + 0x9c]
push dword [esi + 0x64]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
jne 0x48c00e
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x23b4]
mov dword [ebp - method.VSocket.virtual_0], vtable.VSocket.0
call fcn.0048e620
mov eax, dword [ebp - 0x2350]
test eax, eax
je 0x48bfbb
push eax
call fcn.00524771
add esp, 4
lea eax, [ebp - 0x2368]
push eax
call ebx
lea eax, [ebp - 0x2380]
push eax
call ebx
lea eax, [ebp - 0x2398]
push eax
call ebx
inc edi
mov dword [ebp - 4], 0xffffffff
lea eax, [edi - 0x170c]
cmp eax, 0x63
jl 0x48bed3
mov ecx, dword [esi + 0x9c]
test ecx, ecx
je 0x48bffd
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x9c], 0
xor eax, eax
jmp 0x48c0be
lea ecx, [ebp - 0x23b4]
mov dword [ebp - 4], 0xffffffff
call fcn.0048e550
mov ebx, dword [ebp + 8]
jmp 0x48c034
push dword [esi + 0x64]
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 4]
test eax, eax
je 0x48bfed
mov eax, dword [esi]
mov ecx, esi
push dword [esi + 0xa4]
call dword [eax + 0xdc]
push ebx
push str.vncServer::EnableConnections_:_SockConnect__Done__d_n
push 0xa
push 0x5c3db0
call fcn.0041dde0
add esp, 0x10
jmp 0x48c0b9
test eax, eax
je 0x48c0a9
push str.vncServer::EnableConnections_:_KillAuthClients___fix_up_a_lock_up__n
push 9
push 0x5c3db0
call fcn.0041dde0
mov eax, dword [esi]
add esp, 0xc
mov ecx, esi
call dword [eax + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
mov ecx, dword [esi + 0x9c]
test ecx, ecx
je 0x48c09f
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x9c], 0
mov eax, dword [esi]
mov ecx, esi
push dword [esi + 0xa4]
call dword [eax + 0xdc]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00524763
mov esp, ebp
pop ebp
ret 4