Function at 0x5a88a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x640668
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x703eb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0x14]
lea ecx, [ebp - 0x18]
mov byte [edi], 0
call fcn.00561fd0
push 0x4e38
mov dword [ebp - 4], 0
call fcn.00419f69
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x5a8927
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push str.Socket_read_memory_allocation_failed.
call edx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00561ff0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp + 0xc]
lea ebx, [ebx]
mov byte [edi], 0
cmp dword [esi + 0xa4], 0xffffffff
je 0x5a8a08
mov eax, dword [esi + 0x118]
test eax, eax
jne 0x5a894f
mov eax, 0xea60
mov edi, dword [ebp + 0x10]
push 0xabc
push 0
push 0
push edi
push ebx
push eax
mov ecx, esi
call fcn.005a7fb0
test al, al
je 0x5a8a15
lea eax, [ebp + 0xf]
push eax
push edi
lea ecx, [esi + 0xf0]
push 0
mov byte [ebp + 0xf], 0
call fcn.005f3f40
cmp byte [ebp + 0xf], 0
jne 0x5a8a4b
mov ecx, dword [ebp - 0x14]
mov edx, dword [esi + 0xa4]
push 0
push 0x4e20
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
je 0x5a8a5b
cmp edi, 0xffffffff
je 0x5a8a9e
test edi, edi
jle 0x5a89de
push edi
lea ecx, [esi + 0xf0]
call fcn.005f3ed0
cmp byte [esi + 0x184], 0
je 0x5a89de
mov eax, dword [ebp + 0x10]
push eax
push edi
lea ecx, [esi + 0x10]
call fcn.005ab480
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5a89f3
lea edx, [ebp - 0xd]
push edx
push edi
mov byte [ebp - 0xd], 0
call fcn.0056d9e0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
push edi
push eax
call fcn.00540eb0
mov edi, dword [ebp + 0x14]
jmp 0x5a8930
mov byte [edi], 1
push str.This_socket_is_not_connected
jmp 0x5a8aaa
cmp dword [esi + 0xa4], 0xffffffff
je 0x5a8a43
mov eax, dword [esi + 0x118]
mov edx, dword [ebx]
mov edx, dword [edx + 0x2c]
push eax
push str.timeoutMs2
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
push str.WaitForData_timed_out.
mov ecx, ebx
call edx
jmp 0x5a8aba
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
jmp 0x5a8ab3
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
push str.Aborted_by_application_while_download_throttling__1_
mov ecx, ebx
call eax
jmp 0x5a8aba
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
push str.The_peer_has_closed_the_socket__TCP__connection
mov ecx, ebx
call eax
mov ecx, dword [esi + 0xa4]
push 2
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [esi + 0xa4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xa4], 0xffffffff
mov byte [esi + 0xa0], 0
mov byte [eax], 1
jmp 0x5a8aba
mov ecx, ebx
call fcn.00561e70
push str.Failed_to_receive_on_the_TCP_socket
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
mov ecx, ebx
call eax
mov byte [esi + 0xa0], 0
mov ecx, dword [ebp - 0x14]
push ecx
xor bl, bl
call fcn.00419f98
mov ecx, dword [ebp + 8]
add esp, 4
call fcn.0061c880
test eax, eax
je 0x5a8ad6
mov bl, 1
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00561ff0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10