Function at 0x65c9c7
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a9978
mov eax, dword fs:[0]
push eax
mov eax, 0x31ac
call fcn.006ffc90
mov eax, dword [0x8d5f40]
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
mov dword [ebp - 0x31a0], edi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x180]
and dword [ebp - 0x2188], 0
and dword [ebp - 0x318c], 0
mov dword [ebp - 0x3198], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x31ac], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x31b0], eax
mov eax, dword [edi + 0x2fc]
mov dword [ebp - 0x1180], eax
xor eax, eax
inc eax
mov dword [ebp - 0x3194], eax
mov dword [ebp - 0x1184], eax
lea eax, [edi + 0x10]
push eax
call fcn.0065c0c2
mov eax, dword [ebp - 0x178]
xor ecx, ecx
and dword [ebp - 4], 0
mov dword [ebp - 0x3190], eax
mov dword [ebp - 0x31a4], ecx
test eax, eax
je 0x65cb98
mov esi, dword [ebp - 0x1184]
mov edi, eax
mov eax, dword [ebp - 0x17c]
mov edx, dword [eax + ecx*4]
mov eax, dword [edx + 8]
test al, 1
je 0x65cac7
xor ecx, ecx
test esi, esi
je 0x65caa2
mov eax, dword [edx]
cmp dword [ebp + ecx*4 - 0x1180], eax
je 0x65caa2
inc ecx
cmp ecx, esi
jb 0x65ca94
cmp ecx, esi
jne 0x65cac4
cmp esi, 0x400
jae 0x65cac4
mov eax, dword [edx]
mov dword [ebp + ecx*4 - 0x1180], eax
mov esi, dword [ebp - 0x1184]
inc esi
mov dword [ebp - 0x1184], esi
mov eax, dword [edx + 8]
test al, 2
je 0x65cb10
mov eax, dword [ebp - 0x2188]
xor ecx, ecx
test eax, eax
je 0x65caf3
mov edi, dword [ebp - 0x3190]
mov esi, dword [edx]
cmp dword [ebp + ecx*4 - 0x2184], esi
je 0x65caed
inc ecx
cmp ecx, eax
jb 0x65cadf
mov esi, dword [ebp - 0x1184]
cmp ecx, eax
jne 0x65cb0d
cmp eax, 0x400
jae 0x65cb0d
mov eax, dword [edx]
mov dword [ebp + ecx*4 - 0x2184], eax
inc dword [ebp - 0x2188]
mov eax, dword [edx + 8]
test eax, eax
je 0x65cb56
mov eax, dword [ebp - 0x318c]
xor ecx, ecx
test eax, eax
je 0x65cb3c
mov edi, dword [ebp - 0x3190]
mov esi, dword [edx]
cmp dword [ebp + ecx*4 - 0x3188], esi
je 0x65cb36
inc ecx
cmp ecx, eax
jb 0x65cb28
mov esi, dword [ebp - 0x1184]
cmp ecx, eax
jne 0x65cb56
cmp eax, 0x400
jae 0x65cb56
mov eax, dword [edx]
mov dword [ebp + ecx*4 - 0x3188], eax
inc dword [ebp - 0x318c]
mov ecx, dword [ebp - 0x31a4]
inc ecx
mov dword [ebp - 0x31a4], ecx
cmp ecx, edi
jb 0x65ca7c
test edi, edi
mov edi, dword [ebp - 0x31a0]
je 0x65cb98
push dword [0x84633c]
lea esi, [edi + 0x2c0]
push dword [0x846338]
push dword [esi + 4]
push dword [esi]
call fcn.0061461b
mov ecx, 0x846338
jmp 0x65cbc4
mov eax, dword [ebp - 0x3198]
cmp dword [eax], 0
jle 0x65cbd3
push dword [0x846344]
lea esi, [edi + 0x2c0]
push dword [0x846340]
push dword [esi + 4]
push dword [esi]
call fcn.0061461b
mov ecx, 0x846340
add esp, 0x10
test al, al
cmovne ecx, esi
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
jmp 0x65cbde
mov eax, dword [0x846340]
mov ecx, dword [0x846344]
push ebx
push 0
push 0x3b9aca00
push ecx
push eax
call fcn.006ff310
mov esi, ebx
pop ebx
push 0
push 0x3e8
push esi
push ecx
mov edi, eax
mov dword [ebp - 0x31a4], edx
call fcn.006ff1a0
mov dword [ebp - 0x31b4], eax
xor ecx, ecx
cmp dword [ebp - 0x318c], ecx
lea eax, [ebp - 0x31b8]
push eax
lea eax, [ebp - 0x318c]
mov dword [ebp - 0x31b8], edi
cmove eax, ecx
cmp dword [ebp - 0x2188], ecx
push eax
lea eax, [ebp - 0x2188]
cmove eax, ecx
push eax
lea eax, [ebp - 0x1184]
push eax
mov eax, dword [ebp - 0x3190]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x65cc9e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x3198]
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x3198], esi
push eax
call fcn.00607ca7
lea eax, [ebp - 0x110]
push eax
push esi
push str.Failed_to_poll_for_events_using_select__._Error__d_:__s
push 0x117
push str.d:package_cache_tact3.7.19_srcdownloaddownload_curl.windows.cpp
push 4
push str.tact
call fcn.00785e68
add esp, 0x24
jmp 0x65ccf2
mov ecx, dword [ebp - 0x31ac]
test eax, eax
mov esi, dword [ebp - 0x31a0]
sete al
mov byte [ecx], al
lea eax, [ebp - 0x1184]
push eax
push dword [esi + 0x2fc]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x65cd1f
push 0
push 1
lea eax, [ebp - 0x3199]
push eax
push dword [esi + 0x2fc]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x65ccc7
mov eax, dword [ebp - 0x31b0]
mov byte [eax], 1
mov byte [ebp - 0x3194], 0
lea ecx, [ebp - 0x180]
call fcn.0060a124
mov al, byte [ebp - 0x3194]
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.006fedff
leave
ret 0xc
xor edi, edi
cmp dword [ebp - 0x3190], edi
jbe 0x65cceb
mov eax, dword [ebp - 0x17c]
lea ecx, [ebp - 0x1184]
push ecx
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x31a4], eax
push dword [eax]
call sub.WS2_32.dll___WSAFDIsSet
push 1
xor esi, esi
test eax, eax
pop eax
cmovne esi, eax
lea eax, [ebp - 0x2188]
push eax
mov eax, dword [ebp - 0x31a4]
push dword [eax]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x65cd6b
or esi, 2
push dword [ebp - 0x3198]
mov eax, dword [ebp - 0x31a4]
push esi
push dword [eax]
mov eax, dword [ebp - 0x31a0]
push dword [eax + 8]
call fcn.0069f57b
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x65cd9f
inc edi
cmp edi, dword [ebp - 0x3190]
jb 0x65cd29
jmp 0x65cceb
push esi
call fcn.006a1b05
push eax
push esi
push str.curl_multi_socket_action_failed_to_update_socket._Error__d_:__s
push 0x13b
push str.d:package_cache_tact3.7.19_srcdownloaddownload_curl.windows.cpp
push 4
push str.tact
call fcn.00785e68
xor eax, eax
add esp, 0x20
inc eax
mov dword [ebp - 0x3194], eax
jmp 0x65ccf2