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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ba10
mov eax, dword fs:[0]
push eax
mov eax, 0x23ac
call fcn.00567be0
mov eax, dword [0x5d7008]
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.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncserver.cpp_:_SockConnect__d_n
push 0xa
push 0x5d7d48
call fcn.0041c960
add esp, 0x10
test ebx, ebx
je 0x484bfd
cmp dword [esi + 0x88], 0
jne 0x484c60
push 0x23b0
call fcn.0053d643
mov edi, eax
add esp, 4
mov dword [ebp - 0x23b8], edi
lea ecx, [edi + 4]
mov dword [edi], vtable.vncSockConnect.0
call fcn.00488d80
mov dword [edi + 0x23ac], 0
cmp dword [esi + 0x98], 0
mov dword [esi + 0x88], edi
je 0x484bc7
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov edi, 0x170c
nop dword [eax]
push edi
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncserver.cpp_:_trying_port_number__d_n
lea eax, [edi - 0x64]
mov dword [esi + 0x50], edi
push 1
push 0x5d7d48
mov dword [esi + 0x54], eax
call fcn.0041c960
add esp, 0x10
lea ecx, [ebp - 0x23b4]
call fcn.00488d80
mov dword [ebp - 4], 0
cmp dword [ebp - 0x23ac], 0xffffffff
mov dword [ebp - 0x23b8], 1
je 0x484ace
lea ecx, [ebp - 0x23b4]
call fcn.00488f20
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x23ac], eax
cmp eax, 0xffffffff
je 0x484b35
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 0x484b35
lea ecx, [ebp - 0x23b4]
call fcn.00489200
push dword [esi + 0x50]
lea ecx, [ebp - 0x23b4]
push str.localhost
call fcn.00489010
test eax, eax
jne 0x484b35
mov ecx, dword [esi + 0x88]
push dword [esi + 0x50]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
jne 0x484bb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23b4]
mov dword [ebp - method.VSocket.virtual_0], vtable.VSocket.0
call fcn.00488f20
mov eax, dword [ebp - 0x2350]
test eax, eax
je 0x484b64
push eax
call fcn.0053d63e
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
lea eax, [edi - 0x170c]
cmp eax, 0x63
jl 0x484a80
mov ecx, dword [esi + 0x88]
test ecx, ecx
je 0x484b9f
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x88], 0
xor eax, eax
jmp 0x484c65
lea ecx, [ebp - 0x23b4]
mov dword [ebp - 4], 0xffffffff
call fcn.00488e80
mov ebx, dword [ebp + 8]
jmp 0x484bd6
push dword [esi + 0x50]
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 4]
test eax, eax
je 0x484b8f
mov eax, dword [esi]
mov ecx, esi
push dword [esi + 0x90]
call dword [eax + 0x198]
push ebx
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncserver.cpp_:_SockConnect__Done__d_n
push 0xa
push 0x5d7d48
call fcn.0041c960
add esp, 0x10
jmp 0x484c60
cmp dword [esi + 0x88], 0
je 0x484c50
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncserver.cpp_:_KillAuthClients___fix_up_a_lock_up__n
push 9
push 0x5d7d48
call fcn.0041c960
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 + 0x88]
test ecx, ecx
je 0x484c46
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x88], 0
mov eax, dword [esi]
mov ecx, esi
push dword [esi + 0x90]
call dword [eax + 0x198]
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.0053d630
mov esp, ebp
pop ebp
ret 4