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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0x14]
call fcn.00540570
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x51e39a
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
push str.This_socket_is_not_connected
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x14]
call edx
mov eax, dword [ebp + 0x14]
mov byte [eax + 0xe], 1
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0xa0], 0
mov edx, dword [ebp - 0xc]
mov byte [edx + 0xa1], 0
xor al, al
jmp 0x51e5a9
cmp dword [ebp + 0x10], 0
jne 0x51e3a7
mov dword [ebp + 0x10], 0x1499700
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.0051d790
mov byte [ebp - 6], al
movzx eax, byte [ebp - 6]
test eax, eax
jne 0x51e3d6
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
xor al, al
jmp 0x51e5a9
mov edx, dword [ebp + 0x14]
movzx eax, byte [edx + 0xd]
test eax, eax
je 0x51e403
push str.Aborted_by_application_while_waiting_for_data.
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
xor al, al
jmp 0x51e5a9
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 4]
push eax
push 0x1000
mov ecx, dword [ebp - 0xc]
add ecx, 0x140
call fcn.00594660
mov byte [ebp - 5], al
movzx ecx, byte [ebp - 5]
test ecx, ecx
je 0x51e451
mov edx, dword [ebp + 0x14]
mov byte [edx + 0xd], 1
push str.Aborted_by_application_while_download_throttling__2_
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
xor al, al
jmp 0x51e5a9
push 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x51e4ce
mov ecx, dword [ebp + 0x18]
movzx edx, byte [ecx + 0x48]
test edx, edx
je 0x51e4a6
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
push 0x69a184
mov ecx, dword [ebp + 0x18]
call fcn.004f50b0
push str.Connection_closed_by_peer.
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x14]
call edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.0051d0c0
mov ecx, dword [ebp + 0x14]
mov byte [ecx + 0xf], 1
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
xor al, al
jmp 0x51e5a9
cmp dword [ebp - 4], 0xffffffff
je 0x51e4da
cmp dword [ebp - 4], 0
jge 0x51e52a
mov ecx, dword [ebp + 0x18]
call fcn.004f51f0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
push 0x69a1b4
mov ecx, dword [ebp + 0x18]
call fcn.004f50b0
push str.Failed_to_receive_data_on_the_TCP_socket
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x14]
call edx
mov eax, dword [ebp + 0x14]
mov byte [eax + 0xe], 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov edx, dword [ebp - 0xc]
mov byte [edx + 0xa0], 0
xor al, al
jmp 0x51e5a9
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
cmp dword [ebp - 4], 0
jle 0x51e578
mov edx, dword [ebp - 4]
sub edx, 0x1000
push edx
mov ecx, dword [ebp - 0xc]
add ecx, 0x140
call fcn.00594950
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0x24c]
test ecx, ecx
je 0x51e578
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0xc]
add ecx, 0x10
call fcn.0058f710
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0x249]
test ecx, ecx
je 0x51e5a7
mov edx, dword [ebp + 0x14]
cmp dword [edx + 4], 0
je 0x51e5a7
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
xor eax, eax
push eax
push edx
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx + 4]
call fcn.00520fe0
mov al, 1
mov esp, ebp
pop ebp
ret 0x14