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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0xc], 0x7d0
mov eax, dword [ebp - 0xc]
push eax
call fcn.004748d0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5267ce
push str.Socket_receive_memory_allocation_failed.
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
call eax
xor al, al
jmp 0x5269b0
call fcn.00490d50
mov dword [ebp - 4], eax
mov ecx, 1
test ecx, ecx
je 0x5269ae
call fcn.00490d50
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 4]
jae 0x5267fb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
jmp 0x52680f
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 4]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0x64
jbe 0x52680f
jmp 0x5269ae
lea edx, [ebp - 0x11]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x34]
add ecx, 0xd8
call fcn.0057e510
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
je 0x526848
push str.Aborted_by_application_while_download_throttling__3_
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0x14]
call edx
xor al, al
jmp 0x5269b0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xa4]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x10], 0
jne 0x5268e1
push 2
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0xa4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x34]
mov dword [eax + 0xa4], 0xffffffff
mov ecx, dword [ebp - 0x34]
mov byte [ecx + 0xa0], 0
mov edx, dword [ebp - 8]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.005bb180
add esp, 4
push str.Socket_already_closed_by_peer.
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
call eax
xor al, al
jmp 0x5269b0
cmp dword [ebp - 0x10], 0xffffffff
je 0x5268ed
cmp dword [ebp - 0x10], 0
jge 0x526952
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x2733
jne 0x526918
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.005bb180
add esp, 4
mov al, 1
jmp 0x5269b0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0051fcd0
add esp, 8
push str.Failed_to_accumulate_data_on_socket.
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0x14]
call edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.005bb180
add esp, 4
xor al, al
jmp 0x5269b0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x10], 0
jle 0x526987
call fcn.00490d50
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x34]
movzx ecx, byte [eax + 0x16c]
test ecx, ecx
je 0x526987
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 0x10
call fcn.0052a6e0
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x34]
add ecx, 0xd8
call fcn.0057e480
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
call fcn.00462530
jmp 0x5267d6
mov al, 1
mov esp, ebp
pop ebp
ret 0xc