Function at 0x100192a0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x238
mov eax, dword [0x1002f104]
xor eax, esp
mov dword [esp + 0x234], eax
mov eax, dword [esp + 0x240]
xor ecx, ecx
push ebx
push ebp
push esi
xor ebx, ebx
mov dword [esp + 0x38], ecx
xor edx, edx
mov dword [esp + 0x13c], ebx
push edi
mov edi, dword [esp + 0x24c]
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edx
test eax, eax
je 0x10019493
add edi, 4
nop
movzx eax, byte [edi - 4]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x38], esi
mov dword [edi + 8], 0
sub eax, 1
je 0x100193ef
sub eax, 1
je 0x1001938f
sub eax, 1
jne 0x10019513
xor edx, edx
test ecx, ecx
je 0x1001934b
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x144]
nop dword [eax + eax]
cmp dword [esp + edx*4 + 0x40], eax
je 0x1001934b
inc edx
cmp edx, ecx
jb 0x10019340
cmp edx, ecx
jne 0x1001936c
cmp ecx, 0x40
jae 0x1001936c
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x144]
mov dword [esp + edx*4 + 0x40], eax
mov ecx, dword [esp + 0x3c]
inc ecx
mov dword [esp + 0x3c], ecx
mov eax, dword [edi]
mov ebp, dword [eax + 0xc]
mov esi, dword [ebp + 0x144]
cmp esi, dword [esp + 0x38]
cmovbe esi, dword [esp + 0x38]
cmp dword [esp + 0x20], 0
cmovne ebp, dword [esp + 0x28]
jmp 0x10019474
xor edx, edx
test ecx, ecx
je 0x100193ab
mov eax, dword [edi]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + 0x144]
cmp dword [esp + edx*4 + 0x40], eax
je 0x100193ab
inc edx
cmp edx, ecx
jb 0x100193a0
cmp edx, ecx
jne 0x100193cc
cmp ecx, 0x40
jae 0x100193cc
mov eax, dword [edi]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + 0x144]
mov dword [esp + edx*4 + 0x40], eax
mov ecx, dword [esp + 0x3c]
inc ecx
mov dword [esp + 0x3c], ecx
mov eax, dword [edi]
mov ebp, dword [eax + 0x4c]
mov esi, dword [ebp + 0x144]
cmp esi, dword [esp + 0x30]
cmovbe esi, dword [esp + 0x30]
cmp dword [esp + 0x18], 0
cmovne ebp, dword [esp + 0x1c]
jmp 0x10019474
mov eax, dword [edi + 4]
test al, 1
je 0x1001942f
xor edx, edx
test ecx, ecx
je 0x1001940b
mov eax, dword [edi]
nop
cmp dword [esp + edx*4 + 0x40], eax
je 0x1001940b
inc edx
cmp edx, ecx
jb 0x10019400
cmp edx, ecx
jne 0x10019423
cmp ecx, 0x40
jae 0x10019423
mov eax, dword [edi]
mov dword [esp + edx*4 + 0x40], eax
mov ecx, dword [esp + 0x3c]
inc ecx
mov dword [esp + 0x3c], ecx
cmp dword [edi], esi
mov eax, dword [edi + 4]
cmova esi, dword [edi]
mov edx, dword [esp + 0x10]
test al, 4
je 0x10019478
xor edx, edx
test ebx, ebx
je 0x1001944e
mov eax, dword [edi]
nop dword [eax + eax]
cmp dword [esp + edx*4 + 0x144], eax
je 0x1001944e
inc edx
cmp edx, ebx
jb 0x10019440
cmp edx, ebx
jne 0x1001946f
cmp ebx, 0x40
jae 0x1001946f
mov eax, dword [edi]
mov dword [esp + edx*4 + 0x144], eax
mov ebx, dword [esp + 0x140]
inc ebx
mov dword [esp + 0x140], ebx
cmp dword [edi], esi
cmova esi, dword [edi]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x250]
inc edx
add edi, 0x10
mov dword [esp + 0x10], edx
cmp edx, eax
jb 0x100192f0
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x254]
lea ecx, [esi + 1]
mov dword [esp + 0x18], ecx
xor ebp, ebp
test eax, eax
je 0x10019638
add edi, 0xc
mov dword [esp + 0x10], eax
mov esi, eax
mov ebx, dword [edi - 4]
mov eax, dword [edi]
cmp ebx, eax
je 0x10019617
movzx ecx, byte [edi - 0xc]
sub ecx, 2
je 0x1001952f
sub ecx, 1
jne 0x10019617
mov edx, eax
test bl, 1
je 0x100194f9
test al, 1
jne 0x100194f9
mov eax, dword [edi - 8]
add eax, 0x18
push eax
call fcn.10013dc0
mov edx, dword [edi]
add esp, 4
neg eax
sbb eax, eax
neg eax
or edx, eax
mov dword [edi], edx
mov ecx, dword [edi - 8]
mov eax, edx
mov ecx, dword [ecx + 0xc]
cmp dword [ecx + 0x148], 0xffffffff
jne 0x10019617
jmp 0x10019610
test ebp, ebp
je 0x10019527
push str.Invalid_descriptor_passed_to_libssh2_poll__
push 0xffffffffffffffdd
push ebp
call fcn.10013940
add esp, 0xc
or eax, 0xffffffff
jmp 0x100197fd
mov edx, eax
test bl, 1
je 0x100195a9
test al, 1
jne 0x100195a9
mov ebx, dword [edi - 8]
test ebx, ebx
jne 0x10019546
lea ecx, [ebx - 0x27]
jmp 0x1001959e
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0x1c], eax
add eax, 0x128
push eax
call fcn.10013dc0
mov esi, eax
add esp, 4
test esi, esi
je 0x10019598
cmp dword [esi + 0x10], 5
jb 0x10019760
mov eax, dword [esi + 0xc]
inc eax
push eax
call fcn.10013ed0
add esp, 4
cmp dword [ebx + 0x1c], eax
jne 0x10019589
mov eax, dword [esi + 0xc]
cmp byte [eax], 0x5e
je 0x10019756
push esi
call fcn.10013df0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10019561
xor ecx, ecx
mov esi, dword [esp + 0x10]
xor eax, eax
test ecx, ecx
setne al
or dword [edi], eax
mov edx, dword [edi]
test byte [edi - 4], 2
mov ecx, edx
je 0x100195d0
test dl, 2
jne 0x100195d0
push 1
push dword [edi - 8]
call sym.libssh2.dll_libssh2_poll_channel_read
mov ecx, dword [edi]
add esp, 8
neg eax
sbb eax, eax
and eax, 2
or ecx, eax
mov dword [edi], ecx
test byte [edi - 4], 4
mov eax, ecx
je 0x100195ee
test cl, 4
jne 0x100195ee
mov eax, dword [edi - 8]
mov eax, dword [eax + 0x24]
neg eax
sbb eax, eax
and eax, 4
or eax, ecx
mov dword [edi], eax
mov ecx, dword [edi - 8]
cmp byte [ecx + 0x40], 0
jne 0x100195fd
cmp byte [ecx + 0x2c], 0
je 0x10019604
or eax, 0x80
mov dword [edi], eax
mov ecx, dword [ecx + 0x4c]
cmp dword [ecx + 0x148], 0xffffffff
jne 0x10019617
or eax, 0x90
mov dword [edi], eax
test eax, eax
lea ecx, [ebp + 1]
cmove ecx, ebp
add edi, 0x10
sub esi, 1
mov ebp, ecx
mov dword [esp + 0x10], esi
jne 0x100194b4
mov ebx, dword [esp + 0x254]
xor edi, edi
mov eax, 0x10624dd3
test ebp, ebp
push 0
cmove edi, ebx
imul edi
mov ecx, edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x34], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x38], eax
lea eax, [esp + 0x2c]
push eax
call fcn.10013c50
add esp, 8
lea eax, [esp + 0x30]
push eax
push 0
lea eax, [esp + 0x148]
push eax
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
lea eax, [esp + 0x20]
push 0
push eax
call fcn.10013c50
mov ecx, dword [esp + 0x2c]
mov eax, 0x10624dd3
sub ecx, dword [esp + 0x34]
add esp, 8
imul ecx
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
sar edx, 6
imul ebx, eax, 0x3e8
mov ecx, edx
mov eax, dword [esp + 0x250]
shr ecx, 0x1f
add ecx, edx
sub ebx, ecx
add ebx, edi
mov dword [esp + 0x254], ebx
test esi, esi
jle 0x100197eb
test eax, eax
je 0x100197eb
mov esi, dword [esp + 0x14]
mov edi, eax
add esi, 4
nop dword [eax + eax]
movzx eax, byte [esi - 4]
sub eax, 1
je 0x100197a6
sub eax, 1
je 0x1001977a
sub eax, 1
jne 0x100197d8
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
push dword [eax + 0x144]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100197d8
nop dword [eax + eax]
mov eax, dword [esi]
push dword [eax + 0xc]
call fcn.1001f1f0
add esp, 4
test eax, eax
jg 0x10019740
jmp 0x100197d8
mov ecx, 1
jmp 0x1001959a
push str.Packet_too_small
push 0xffffffffffffffda
push dword [esp + 0x24]
call fcn.10013940
add esp, 0xc
mov ecx, eax
jmp 0x1001959a
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x4c]
push dword [eax + 0x144]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100197d8
mov eax, dword [esi]
push dword [eax + 0x4c]
call fcn.1001f1f0
add esp, 4
test eax, eax
jg 0x10019793
jmp 0x100197d8
lea eax, [esp + 0x3c]
push eax
push dword [esi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100197ba
or dword [esi + 8], 1
lea eax, [esp + 0x140]
push eax
push dword [esi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100197d1
or dword [esi + 8], 4
cmp dword [esi + 8], 0
je 0x100197d8
inc ebp
add esi, 0x10
sub edi, 1
jne 0x10019700
mov eax, dword [esp + 0x250]
test ebx, ebx
jle 0x100197fb
mov edi, dword [esp + 0x14]
test ebp, ebp
je 0x100194a1
mov eax, ebp
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100227df
add esp, 0x238
ret