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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov byte [ebp - 2], 0
mov byte [ebp - 3], 0
mov byte [ebp - 1], 0
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x5a75e4
mov eax, dword [ebp + 0xc]
push 0x7c
push eax
mov ecx, ebx
call fcn.0056d720
mov ecx, ebx
call fcn.0056d4d0
test al, al
jne 0x5a77d0
cmp dword [edi + 0xa4], 0xffffffff
mov byte [ebp + 0x13], 0
mov byte [ebp - 1], 0
mov byte [ebp - 4], 0
jne 0x5a7615
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push str.This_socket_is_not_connected
mov ecx, esi
call eax
mov byte [edi + 0xa0], 0
xor al, al
jmp 0x5a777e
mov dword [0x7202e4], 0x6e
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x5a762e
mov eax, 0x1499700
push esi
lea ecx, [ebp + 0x13]
push ecx
lea edx, [ebp - 1]
push edx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
push edx
mov ecx, edi
call fcn.005a66b0
test al, al
je 0x5a777e
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 1]
push eax
push ebx
lea ecx, [edi + 0xf0]
push edx
mov dword [0x7202e4], 0x6f
call fcn.005f3f40
cmp byte [ebp - 1], 0
je 0x5a7689
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push str.Aborted_by_application_while_download_throttling__2_
mov ecx, esi
call edx
xor al, al
jmp 0x5a777e
push 0
push 1
lea eax, [ebp - 0xc]
mov dword [0x7202e4], 0x70
mov ecx, dword [edi + 0xa4]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jne 0x5a7706
mov dword [0x7202e4], 0x72
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
push 1
push str.numBytesRequested
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push str.Connection_closed_by_server.
mov ecx, esi
call eax
mov ecx, dword [edi + 0xa4]
push 2
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [edi + 0xa4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0xa4], 0xffffffff
mov byte [edi + 0xa0], bl
xor al, al
jmp 0x5a777e
cmp ebx, 0xffffffff
jne 0x5a773b
mov ecx, esi
call fcn.00561e70
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push 1
push str.numBytesRequested
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push str.Failed_to_receive_data_on_the_TCP_socket
mov ecx, esi
call edx
mov byte [edi + 0xa0], 0
xor al, al
jmp 0x5a777e
mov dword [0x7202e4], 0x71
test ebx, ebx
jle 0x5a776b
push ebx
lea ecx, [edi + 0xf0]
call fcn.005f3ed0
cmp byte [edi + 0x184], 0
je 0x5a776b
mov eax, dword [ebp + 0x14]
push eax
push ebx
lea ecx, [edi + 0x10]
call fcn.005ab480
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x5a777c
lea edx, [ebp - 1]
push edx
push ebx
call fcn.0056d9e0
mov al, 1
mov dword [0x7202e4], 0x9d
test al, al
je 0x5a77c4
mov eax, dword [ebp - 0xc]
cmp al, 0xa
je 0x5a779c
cmp al, 0xd
je 0x5a77aa
inc dword [ebp - 8]
jmp 0x5a77b1
cmp dword [ebp - 8], 0
jne 0x5a77aa
mov byte [ebp - 2], 1
mov byte [ebp - 3], 1
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
push eax
call fcn.00540bb0
cmp byte [ebp - 2], 0
je 0x5a75c1
mov al, byte [ebp - 3]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10