Function at 0x4bcab5
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x158], 0
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._libssh2_keepalive_send
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jns 0x4bcaf5
mov eax, dword [ebp - 0x24]
jmp 0x4bcdc3
mov eax, dword [ebp - 0x34]
imul eax, eax, 0x3e8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._libssh2_session_block_directions
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4bcb1c
mov dword [ebp - 0x10], 0x3e8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x54]
test eax, eax
jle 0x4bcbce
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4bcb40
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x54]
cmp eax, dword [ebp - 0x10]
jge 0x4bcbce
mov dword [esp], 0
call sym._time_3
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._difftime
fld qword [0x622c28]
fmulp st(1)
fnstcw word [ebp - 0x24a]
movzx eax, word [ebp - 0x24a]
mov ah, 0xc
mov word [ebp - 0x24c], ax
fldcw word [ebp - 0x24c]
fistp dword [ebp - 0x30]
fldcw word [ebp - 0x24a]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x54]
cmp eax, dword [ebp - 0x30]
jge 0x4bcbb9
mov dword [esp + 8], str.API_timeout_expired
mov dword [esp + 4], 0xfffffff7
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.__libssh2_error
jmp 0x4bcdc3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x54]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 1
jmp 0x4bcbe4
cmp dword [ebp - 0x10], 0
jle 0x4bcbdd
mov dword [ebp - 0xc], 1
jmp 0x4bcbe4
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x10]
mov edx, 0x10624dd3
mov eax, ecx
imul edx
sar edx, 6
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
imul edx, eax, 0xfffffc18
mov eax, dword [ebp - 0x10]
add eax, edx
imul eax, eax, 0x3e8
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
and eax, 1
test eax, eax
je 0x4bccab
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x1c], 0
jmp 0x4bcc5c
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + eax*4 - 0x240]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x144]
cmp edx, eax
je 0x4bcc69
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x244]
cmp eax, dword [ebp - 0x1c]
ja 0x4bcc41
jmp 0x4bcc6a
nop
mov eax, dword [ebp - 0x244]
cmp eax, dword [ebp - 0x1c]
jne 0x4bcca2
mov eax, dword [ebp - 0x244]
cmp eax, 0x3f
ja 0x4bcca2
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x144]
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x240], edx
mov eax, dword [ebp - 0x244]
add eax, 1
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x244]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
and eax, 2
test eax, eax
je 0x4bcd32
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x20], 0
jmp 0x4bcce3
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp + eax*4 - 0x13c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x144]
cmp edx, eax
je 0x4bccf0
add dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x140]
cmp eax, dword [ebp - 0x20]
ja 0x4bccc8
jmp 0x4bccf1
nop
mov eax, dword [ebp - 0x140]
cmp eax, dword [ebp - 0x20]
jne 0x4bcd29
mov eax, dword [ebp - 0x140]
cmp eax, 0x3f
ja 0x4bcd29
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x144]
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x13c], edx
mov eax, dword [ebp - 0x140]
add eax, 1
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x140]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], 0
je 0x4bcd3d
lea eax, [ebp - 0x3c]
jmp 0x4bcd42
mov eax, 0
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x144]
add edx, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.WS2_32.dll_select]
call eax
sub esp, 0x14
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4bcd9b
mov dword [esp + 8], str.Timed_out_waiting_on_socket
mov dword [esp + 4], 0xfffffff7
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.__libssh2_error
jmp 0x4bcdc3
cmp dword [ebp - 0x24], 0
jns 0x4bcdbe
mov dword [esp + 8], str.Error_waiting_on_socket
mov dword [esp + 4], 0xfffffff7
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.__libssh2_error
jmp 0x4bcdc3
mov eax, 0
leave
ret