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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54a700
mov eax, dword fs:[0]
push eax
mov eax, 0x23ac
call fcn.00546590
mov eax, dword [0x5b0008]
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 0x5b0d48
call fcn.0041ccb0
add esp, 0x10
test ebx, ebx
je 0x481499
cmp dword [esi + 0x9c], 0
jne 0x4814fc
push 0x23b0
call fcn.005187ac
mov edi, eax
add esp, 4
mov dword [ebp - 0x23b8], edi
lea ecx, [edi + 4]
mov dword [edi], vtable.vncSockConnect.0
call fcn.00483800
mov eax, dword [0x5bdff0]
mov dword [edi + 0x23ac], 0
mov dword [esi + 0x9c], edi
cmp dword [eax + 0x728], 0
je 0x481463
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 0x5b0d48
mov dword [esi + 0x68], eax
call fcn.0041ccb0
add esp, 0x10
lea ecx, [ebp - 0x23b4]
call fcn.00483800
mov dword [ebp - 4], 0
cmp dword [ebp - 0x23ac], 0xffffffff
mov dword [ebp - 0x23b8], 1
je 0x48135f
lea ecx, [ebp - 0x23b4]
call fcn.00483a00
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x23ac], eax
cmp eax, 0xffffffff
je 0x4813ca
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 0x4813ca
lea ecx, [ebp - 0x23b4]
call fcn.00483cf0
push dword [esi + 0x64]
lea ecx, [ebp - 0x23b4]
push str.localhost
call fcn.00483af0
test eax, eax
jne 0x4813ca
mov ecx, dword [esi + 0x9c]
push dword [esi + 0x64]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
jne 0x48144c
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x23b4]
mov dword [ebp - method.VSocket.virtual_0], vtable.VSocket.0
call fcn.00483a00
mov eax, dword [ebp - 0x2350]
test eax, eax
je 0x4813f9
push eax
call fcn.005187a7
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 0x481311
mov ecx, dword [esi + 0x9c]
test ecx, ecx
je 0x48143b
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x9c], 0
xor eax, eax
jmp 0x481501
lea ecx, [ebp - 0x23b4]
mov dword [ebp - 4], 0xffffffff
call fcn.00483930
mov ebx, dword [ebp + 8]
jmp 0x481472
push dword [esi + 0x64]
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 4]
test eax, eax
je 0x48142b
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 0x5b0d48
call fcn.0041ccb0
add esp, 0x10
jmp 0x4814fc
cmp dword [esi + 0x9c], 0
je 0x4814ec
push str.vncServer::EnableConnections_:_KillAuthClients___fix_up_a_lock_up__n
push 9
push 0x5b0d48
call fcn.0041ccb0
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 0x4814e2
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.00518799
mov esp, ebp
pop ebp
ret 4