Function at 0x52d200
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.0054b390
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x52d25a
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 0x52d469
cmp dword [ebp + 0x10], 0
jne 0x52d267
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.0052c650
mov byte [ebp - 6], al
movzx eax, byte [ebp - 6]
test eax, eax
jne 0x52d296
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
xor al, al
jmp 0x52d469
mov edx, dword [ebp + 0x14]
movzx eax, byte [edx + 0xd]
test eax, eax
je 0x52d2c3
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 0x52d469
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 4]
push eax
push 0x1000
mov ecx, dword [ebp - 0xc]
add ecx, 0x140
call fcn.00581750
mov byte [ebp - 5], al
movzx ecx, byte [ebp - 5]
test ecx, ecx
je 0x52d311
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 0x52d469
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 0x52d38e
mov ecx, dword [ebp + 0x18]
movzx edx, byte [ecx + 0x48]
test edx, edx
je 0x52d366
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
push 0x65c99c
mov ecx, dword [ebp + 0x18]
call fcn.005054d0
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.0052bf80
mov ecx, dword [ebp + 0x14]
mov byte [ecx + 0xf], 1
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
xor al, al
jmp 0x52d469
cmp dword [ebp - 4], 0xffffffff
je 0x52d39a
cmp dword [ebp - 4], 0
jge 0x52d3ea
mov ecx, dword [ebp + 0x18]
call fcn.00505610
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
push 0x65c9cc
mov ecx, dword [ebp + 0x18]
call fcn.005054d0
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 0x52d469
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
cmp dword [ebp - 4], 0
jle 0x52d438
mov edx, dword [ebp - 4]
sub edx, 0x1000
push edx
mov ecx, dword [ebp - 0xc]
add ecx, 0x140
call fcn.00581a40
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0x24c]
test ecx, ecx
je 0x52d438
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.0057c810
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0x249]
test ecx, ecx
je 0x52d467
mov edx, dword [ebp + 0x14]
cmp dword [edx + 4], 0
je 0x52d467
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.0050ec80
mov al, 1
mov esp, ebp
pop ebp
ret 0x14