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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5689a0
mov eax, dword fs:[0]
push eax
mov eax, 0x23b4
call fcn.0052c280
mov eax, dword [0x5d60c4]
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 0x5d6df8
call fcn.0041d510
mov eax, dword [esi + 0x9c]
add esp, 0x10
test ebx, ebx
je 0x48365d
test eax, eax
jne 0x4836bb
push 0x23b8
call fcn.0052b79c
mov edi, eax
add esp, 4
mov dword [ebp - 0x23c0], edi
lea ecx, [edi + 4]
mov dword [edi], vtable.vncSockConnect.0
call fcn.00485a20
mov eax, dword [0x5e44e8]
mov dword [edi + 0x23b4], 0
mov dword [esi + 0x9c], edi
cmp dword [eax + 0x728], 0
je 0x483627
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 0x5d6df8
mov dword [esi + 0x68], eax
call fcn.0041d510
add esp, 0x10
lea ecx, [ebp - 0x23bc]
call fcn.00485a20
mov dword [ebp - 4], 0
mov eax, dword [0x5e44e8]
cmp dword [eax + 0xe64], 0
je 0x483505
push dword [esi + 0x64]
lea ecx, [ebp - 0x23bc]
push str.localhost
call fcn.00485bd0
jmp 0x483573
cmp dword [ebp - 0x23ac], 0xffffffff
mov dword [ebp - 0x23c0], 1
je 0x483523
lea ecx, [ebp - 0x23bc]
call fcn.00486220
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x23ac], eax
cmp eax, 0xffffffff
je 0x48358e
push 4
lea ecx, [ebp - 0x23c0]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x48358e
lea ecx, [ebp - 0x23bc]
call fcn.00487050
push dword [esi + 0x64]
lea ecx, [ebp - 0x23bc]
push str.localhost
call fcn.004865a0
test eax, eax
jne 0x48358e
mov ecx, dword [esi + 0x9c]
push dword [esi + 0x64]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
jne 0x483610
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x23bc]
mov dword [ebp - method.VSocket.virtual_0], vtable.VSocket.0
call fcn.00486220
mov eax, dword [ebp - 0x2350]
test eax, eax
je 0x4835bd
push eax
call fcn.0052b797
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 0x4834b2
mov ecx, dword [esi + 0x9c]
test ecx, ecx
je 0x4835ff
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x9c], 0
xor eax, eax
jmp 0x4836c0
lea ecx, [ebp - 0x23bc]
mov dword [ebp - 4], 0xffffffff
call fcn.00485b60
mov ebx, dword [ebp + 8]
jmp 0x483636
push dword [esi + 0x64]
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 4]
test eax, eax
je 0x4835ef
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 0x5d6df8
call fcn.0041d510
add esp, 0x10
jmp 0x4836bb
test eax, eax
je 0x4836ab
push str.vncServer::EnableConnections_:_KillAuthClients___fix_up_a_lock_up__n
push 9
push 0x5d6df8
call fcn.0041d510
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 0x4836a1
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.0052b789
mov esp, ebp
pop ebp
ret 4