Function at 0x4852b0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568c80
mov eax, dword fs:[0]
push eax
sub esp, 0x394
mov eax, dword [0x5d60c4]
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.vncSockConnectThread::run_undetached_:_started_socket_connection_thread_n
push 0
push 0x5d6df8
call fcn.0041d510
xor esi, esi
add esp, 0xc
cmp dword [edi + 0x54], esi
jne 0x48550f
nop
cmp byte [0x5d960f], 0
jne 0x485503
mov ecx, dword [edi + 0x58]
call fcn.004869f0
mov esi, eax
test esi, esi
je 0x48550f
mov ecx, dword [0x5e44e8]
mov eax, dword [ecx + 0x730]
cmp eax, dword [ecx + 0x72c]
jne 0x4854b1
cmp dword [ecx + 0xe64], 0
mov ebx, dword [edi + 0x5c]
je 0x4853bd
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x48537e
lea ecx, [ebp - 0x330]
mov dword [ebp - 0x114], eax
push ecx
mov dword [ebp - 0x118], 1
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x330], 2
mov dword [ebp - 0x32c], 0
jmp 0x4853f1
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x4853b9
lea ecx, [ebp - 0x338]
mov dword [ebp - 0x21c], eax
push ecx
mov dword [ebp - 0x220], 1
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x338], 2
mov dword [ebp - 0x334], 0
jmp 0x4853f1
xor ecx, ecx
jmp 0x485405
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x340]
push ecx
mov dword [ebp - 0x324], eax
lea ecx, [ebp - 0x328]
mov dword [ebp - 0x328], 1
mov dword [ebp - 0x340], 2
mov dword [ebp - 0x33c], 0
push 0
push 0
push ecx
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
xor ecx, ecx
test eax, eax
setg cl
test ecx, ecx
je 0x4854b1
lea eax, [ebp - 0x39c]
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 - 0x3a0]
call fcn.004aad30
mov dword [ebp - 0x378], 0
mov dword [ebp - 0x374], 0
mov dword [ebp - method.vncHTTPConnectThread.virtual_0], vtable.vncHTTPConnectThread.0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3a0]
push esi
mov dword [ebp - 0x348], ebx
call fcn.00473840
mov ecx, esi
call fcn.00486340
mov ecx, esi
call fcn.00486220
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea ecx, [ebp - 0x3a0]
mov dword [ebp - 4], 0xffffffff
call fcn.004aade0
push str.vncSockConnectThread::run_undetached_:_Woo_hoo__Served_Java_applet_via_RFB_
push 1
push 0x5d6df8
call fcn.0041d510
add esp, 0xc
cmp dword [edi + 0x54], 0
je 0x485300
jmp 0x485507
push ecx
mov ecx, esi
call fcn.00486ad0
push eax
push str.vncSockConnectThread::run_undetached_:_accepted_connection_from__s_n
push 1
push 0x5d6df8
call fcn.0041d510
mov eax, dword [edi + 0x54]
add esp, 0x10
test eax, eax
jne 0x485507
cmp byte [0x5d960f], al
jne 0x485507
mov ecx, dword [edi + 0x5c]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0
push esi
call dword [eax + 8]
mov eax, dword [edi + 0x54]
test eax, eax
jne 0x485507
cmp byte [0x5d960f], al
je 0x48530d
jmp 0x485507
test esi, esi
je 0x48550f
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 0x5d6df8
call fcn.0041d510
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.0052b789
mov esp, ebp
pop ebp
ret 4