Function at 0x483110
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 0x54a9e0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1a0
mov eax, dword [0x5b0008]
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
push str.vncSockConnectThread::run_undetached_:_started_socket_connection_thread_n
push 0
push 0x5b0d48
call fcn.0041ccb0
xor esi, esi
add esp, 0xc
cmp dword [edi + 0x60], esi
jne 0x4833aa
cmp byte [0x5b31af], 0
jne 0x48339e
mov ecx, dword [edi + 0x64]
call fcn.00483ba0
mov esi, eax
test esi, esi
je 0x4833aa
mov ecx, dword [0x5bdff0]
mov eax, dword [ecx + 0x730]
cmp eax, dword [ecx + 0x72c]
jne 0x48331c
mov eax, dword [edi + 0x68]
lea ecx, [ebp - 0x140]
push ecx
push 0
mov dword [ebp - 0x134], eax
lea ecx, [ebp - 0x130]
mov eax, dword [esi + 8]
push 0
mov dword [ebp - 0x12c], eax
inc eax
push ecx
push eax
mov dword [ebp - 0x130], 1
mov dword [ebp - 0x140], 2
mov dword [ebp - 0x13c], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x48331c
lea eax, [ebp - 0x1ac]
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 - 0x1b0]
call fcn.0050d950
mov dword [ebp - 0x188], 0
mov dword [ebp - 0x184], 0
mov dword [ebp - method.vncHTTPConnectThread.virtual_0], vtable.vncHTTPConnectThread.0
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x14c], eax
call fcn.004728f0
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x4832c4
push str.VSocket::Shutdown_:_shutdown_socket_n
push 0xa
push 0x5b0d48
call fcn.0041ccb0
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 eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x4832c4
push str.VSocket::Close_:_closing_socket_n
push 0xa
push 0x5b0d48
call fcn.0041ccb0
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 dword [esi + 8], 0xffffffff
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4832df
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x14], 0
mov dword [esi + 4], 0
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 4], 0xffffffff
call fcn.0050da10
push str.vncSockConnectThread::run_undetached_:_Woo_hoo__Served_Java_applet_via_RFB_
push 1
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
cmp dword [edi + 0x60], 0
je 0x483172
jmp 0x4833a2
lea eax, [ebp - 0x138]
mov dword [ebp - 0x138], 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 0x5b0d48
call fcn.0041ccb0
mov eax, dword [edi + 0x60]
add esp, 0x10
test eax, eax
jne 0x4833a2
cmp byte [0x5b31af], al
jne 0x4833a2
mov ecx, dword [edi + 0x68]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0
push esi
call dword [eax + 8]
mov eax, dword [edi + 0x60]
test eax, eax
jne 0x4833a2
cmp byte [0x5b31af], al
je 0x48317f
jmp 0x4833a2
test esi, esi
je 0x4833aa
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 0x5b0d48
call fcn.0041ccb0
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.00518799
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4