Function at 0x4885e0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56bc80
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
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 ebx, ecx
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncsockconnect.cpp_:_started_socket_connection_thread_n
push 0
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
cmp dword [ebx + 0x60], 0
jne 0x48885f
nop
cmp byte [0x5d9e87], 0
jne 0x48885f
mov ecx, dword [ebx + 0x64]
call fcn.004890c0
mov esi, eax
test esi, esi
je 0x48885f
mov ecx, dword [ebx + 0x68]
mov eax, dword [ecx]
call dword [eax + 0x114]
mov ecx, dword [ebx + 0x68]
mov edi, eax
mov edx, dword [ecx]
call dword [edx + 0x110]
cmp edi, eax
jne 0x4887de
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x134]
mov edi, dword [ebx + 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 0x4887de
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.0053d050
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x17c], 0
mov dword [ebp - method.vncHTTPConnectThread.virtual_0], vtable.vncHTTPConnectThread.0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1a8]
push esi
mov dword [ebp - 0x144], edi
call fcn.0046ee50
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x488750
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vsocket.cpp_:_shutdown_socket_n
push 0xa
push 0x5d7d48
call fcn.0041c960
mov edi, dword [sym.imp.WS2_32.dll_shutdown]
add esp, 0xc
push 2
push dword [esi + 8]
call edi
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 8]
jmp 0x488756
mov edi, dword [sym.imp.WS2_32.dll_shutdown]
cmp eax, 0xffffffff
je 0x488786
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vsocket.cpp_:_closing_socket_n
push 0xa
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
push 2
push dword [esi + 8]
call edi
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 0x4887a1
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], 0xffffffff
call fcn.0053d110
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncsockconnect.cpp_:_Woo_hoo__Served_Java_applet_via_RFB_
push 1
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
cmp dword [ebx + 0x60], 0
je 0x488630
jmp 0x48885f
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.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncsockconnect.cpp_:_accepted_connection_from__s_n
push 1
push 0x5d7d48
call fcn.0041c960
mov eax, dword [ebx + 0x60]
add esp, 0x10
test eax, eax
jne 0x488857
cmp byte [0x5d9e87], al
jne 0x488857
mov ecx, dword [ebx + 0x68]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0
push esi
call dword [eax + 8]
mov eax, dword [ebx + 0x60]
test eax, eax
jne 0x488857
cmp byte [0x5d9e87], al
je 0x48863d
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncsockconnect.cpp_:_quitting_socket_connection_thread_n
push 0
push 0x5d7d48
call fcn.0041c960
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.0053d630
mov esp, ebp
pop ebp
ret 4