Function at 0x48dd50
Capabilities:
Get socket status

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559770
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x198
mov eax, dword [0x5c3040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x134], edi
push str.vncSockConnectThread::run_undetached_:_started_socket_connection_thread_n
push 0
push 0x5c3db0
call fcn.0041dde0
xor esi, esi
add esp, 0xc
cmp dword [edi + 0x54], esi
jne 0x48dfb9
nop dword [eax + eax]
cmp byte [0x5c64d5], 0
jne 0x48dfad
mov ecx, dword [edi + 0x58]
call fcn.0048e820
mov esi, eax
test esi, esi
je 0x48dfb9
mov ecx, dword [0x5d1914]
mov eax, dword [ecx + 0x730]
cmp eax, dword [ecx + 0x72c]
jne 0x48df1f
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x144]
push ecx
push 0
push 0
mov eax, dword [eax + 0x5c]
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x138], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x12c], eax
inc eax
push ecx
push eax
mov dword [ebp - 0x130], 1
mov dword [ebp - 0x144], 2
mov dword [ebp - 0x140], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x48df1f
lea eax, [ebp - 0x1a4]
mov dword [ebp - method.omni_thread.virtual_0], vtable.omni_thread.0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
sub esp, 0xc
lea ecx, [ebp - 0x1a8]
call fcn.00518ee0
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x17c], 0
mov dword [ebp - method.vncHTTPConnectThread.virtual_0], vtable.vncHTTPConnectThread.0
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x1a8]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x150], eax
call fcn.00478d00
cmp dword [esi + 8], 0xffffffff
je 0x48dedf
push str.VSocket::Shutdown_:_shutdown_socket_n
push 0xa
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
push 2
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, esi
call fcn.0048e620
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea ecx, [ebp - 0x1a8]
mov dword [ebp - 4], 0xffffffff
call fcn.00518f90
push str.vncSockConnectThread::run_undetached_:_Woo_hoo__Served_Java_applet_via_RFB_
push 1
push 0x5c3db0
call fcn.0041dde0
mov edi, dword [ebp - 0x134]
add esp, 0xc
jmp 0x48dfa1
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x13c], 0x10
push eax
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
push dword [esi + 8]
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.WS2_32.dll_getpeername]
push dword [ebp - 0x20]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
test eax, eax
mov ecx, str._unavailable_
cmovne ecx, eax
push ecx
push str.vncSockConnectThread::run_undetached_:_accepted_connection_from__s_n
push 1
push 0x5c3db0
call fcn.0041dde0
mov edi, dword [ebp - 0x134]
add esp, 0x10
cmp dword [edi + 0x54], 0
jne 0x48dfb1
cmp byte [0x5c64d5], 0
jne 0x48df92
mov ecx, dword [edi + 0x5c]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0
push esi
call dword [eax + 8]
cmp dword [edi + 0x54], 0
jne 0x48dfb1
cmp byte [0x5c64d5], 0
jne 0x48dfb1
cmp dword [edi + 0x54], 0
je 0x48ddc0
jmp 0x48dfb1
test esi, esi
je 0x48dfb9
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
push str.vncSockConnectThread::run_undetached_:_quitting_socket_connection_thread_n
push 0
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00524763
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4