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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5596cd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
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 edi, ecx
cmp dword [edi + 0x2f4], 0
je 0x48d4cb
lea ebx, [edi + 0x300]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48d395
sub ecx, edx
je 0x48d4cb
cmp byte [0x5c64d5], al
jne 0x48d4cb
call fcn.0042e0b0
mov esi, eax
mov eax, dword [esi + 0x54]
cmp eax, dword [esi + 0x50]
jg 0x48d5a0
push eax
push str.vncServer::actualRetryThread_:_Attempting_AutoReconnect_time_d...._n
lea ecx, [eax + 1]
push 9
push 0x5c3db0
mov dword [esi + 0x54], ecx
call fcn.0041dde0
push 0x23a4
call fcn.00524776
add esp, 0x14
mov dword [ebp - 0x2c], eax
mov ecx, eax
call fcn.0048e420
mov esi, eax
mov dword [edi + 0x84], esi
test esi, esi
je 0x48d4be
cmp dword [esi + 8], 0xffffffff
mov dword [ebp - 0x30], 1
je 0x48d416
mov ecx, esi
call fcn.0048e620
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x48d449
push 4
lea ecx, [ebp - 0x30]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x48d449
mov ecx, esi
call fcn.0048e970
push dword [edi + 0x2fc]
mov ecx, dword [edi + 0x84]
push ebx
call fcn.0048e700
test eax, eax
jne 0x48d4fb
push str.vncServer::actualRetryThread_:_connect_failed__waitin_5_sec_to_retry...._n
push 9
push 0x5c3db0
call fcn.0041dde0
mov ecx, dword [edi + 0x84]
add esp, 0xc
test ecx, ecx
je 0x48d487
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [edi + 0x2f4], 0
mov dword [edi + 0x84], 0
je 0x48d4cb
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48d4a0
sub eax, edx
je 0x48d4be
cmp byte [0x5c64d5], cl
jne 0x48d4be
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x2f4], 0
jne 0x48d390
push str.vncServer::actualRetryThread_:_leaving_reconnectThread...._n
push 9
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
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
lea ebx, [edi + 0x3ff]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48d506
sub ecx, edx
je 0x48d567
mov ecx, dword [edi + 0x84]
push 0xfa
push ebx
call fcn.0048eb60
mov ecx, dword [edi + 0x84]
push 0
call fcn.0048ea40
mov esi, dword [edi]
lea eax, [edi + 0x300]
push 1
push dword [edi + 0x2fc]
xor edx, edx
mov ecx, edi
push eax
mov eax, dword [0x5d1914]
push ebx
push 0
push 0
cmp dword [eax + 0xa64], edx
push 1
sete dl
push edx
push dword [edi + 0x84]
call dword [esi]
jmp 0x48d4cb
mov edx, dword [edi]
lea eax, [edi + 0x300]
push 1
push dword [edi + 0x2fc]
xor ecx, ecx
push eax
mov eax, dword [0x5d1914]
push 0
push 0
push 0
cmp dword [eax + 0xa64], ecx
push 1
sete cl
push ecx
push dword [edi + 0x84]
mov ecx, edi
call dword [edx]
jmp 0x48d4cb
push str.exited
lea ecx, [ebp - 0x28]
call fcn.0041e2b0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0042e500
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0041ca00
mov ecx, esi
call fcn.0042e380
push eax
push str.vncServer::actualRetryThread_:_alread_tried_for__d_time_exit_vnc_process_n
push 9
push 0x5c3db0
call fcn.0041dde0
add esp, 0x10
push 0
call fcn.0053b8b9
int3