Function at 0x485160
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6dc6
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x55800c]
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
push str.d:_saasultravncwinvncwinvnc_vncsockconnect.cpp_:_started_socket_connection_thread_n
push 0
push 0x558c50
call fcn.0041c840
add esp, 0xc
cmp dword [edi + 0x60], 0
jne 0x4853fb
nop
cmp byte [0x563186], 0
jne 0x4853fb
mov ecx, dword [edi + 0x64]
call fcn.00485cb0
mov esi, eax
test esi, esi
je 0x4853fb
mov ecx, dword [edi + 0x68]
mov eax, dword [ecx]
mov edx, dword [eax + 0x110]
cmp eax, vtable.vncServer.0
jne 0x48542f
mov ebx, dword [ecx + 0x54]
mov edx, dword [eax + 0x10c]
cmp eax, vtable.vncServer.0
jne 0x48543d
mov eax, dword [ecx + 0x50]
cmp ebx, eax
jne 0x485369
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x134]
mov ebx, dword [edi + 0x68]
push ecx
push 0
push 0
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x124], eax
push ecx
inc eax
mov dword [ebp - 0x128], 1
push eax
mov dword [ebp - 0x134], 2
mov dword [ebp - 0x130], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x485369
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]
push 1
sub esp, 8
lea ecx, [ebp - 0x1a8]
call fcn.004bb0b0
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x17c], 0
mov dword [ebp - 4], 0
mov dword [ebp - method.vncHTTPConnectThread.virtual_0], vtable.vncHTTPConnectThread.0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1a8]
push esi
mov dword [ebp - 0x144], ebx
call fcn.0046dd70
push str.d:_saasultravncwinvncwinvnc_vsocket.cpp_:_shutdown_socket_n
push 0xa
push 0x558c50
call fcn.0041c840
mov ebx, dword [sym.imp.WS2_32.dll_shutdown]
add esp, 0xc
push 2
push dword [esi + 8]
call ebx
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
push str.d:_saasultravncwinvncwinvnc_vsocket.cpp_:_closing_socket_n
push 0xa
push 0x558c50
call fcn.0041c840
add esp, 0xc
push 2
push dword [esi + 8]
call ebx
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esi + 0x14]
mov dword [esi + 8], 0xffffffff
test ecx, ecx
je 0x485325
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 - 0x1a8]
mov dword [ebp - 4], 2
call fcn.004bb170
push str.d:_saasultravncwinvncwinvnc_vncsockconnect.cpp_:_Woo_hoo__Served_Java_applet_via_RFB_
push 1
push 0x558c50
mov dword [ebp - 4], 0xffffffff
call fcn.0041c840
add esp, 0xc
cmp dword [edi + 0x60], 0
je 0x4851b0
jmp 0x4853fb
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_getpeername]
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
test eax, eax
mov ecx, str._unavailable_
cmovne ecx, eax
push ecx
push str.d:_saasultravncwinvncwinvnc_vncsockconnect.cpp_:_accepted_connection_from__s_n
push 1
push 0x558c50
call fcn.0041c840
add esp, 0x10
cmp dword [edi + 0x60], 0
jne 0x4853f3
cmp byte [0x563186], 0
jne 0x4853e0
mov ecx, dword [edi + 0x68]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0
mov edx, dword [eax + 8]
cmp eax, vtable.vncServer.0
jne 0x485444
push 0
push 0
push 0
push 0
push esi
call dword [eax]
cmp dword [edi + 0x60], 0
jne 0x4853f3
cmp byte [0x563186], 0
je 0x4851bd
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
push str.d:_saasultravncwinvncwinvnc_vncsockconnect.cpp_:_quitting_socket_connection_thread_n
push 0
push 0x558c50
call fcn.0041c840
add esp, 0xc
xor eax, eax
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.004cbf27
mov esp, ebp
pop ebp
ret 4
call edx
mov ecx, dword [edi + 0x68]
mov ebx, eax
mov eax, dword [ecx]
jmp 0x4851e8
call edx
jmp 0x4851fc
push esi
call edx
jmp 0x4853e0