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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0xa8], rbx
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbp, r8
mov qword [rsp + 0x20], r8
mov r13, rdx
mov rdi, rcx
mov rsi, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xc0]
mov r12d, 1
mov r15d, r12d
movzx eax, r9b
mov ecx, dword [rsp + 0xb0]
cmp ecx, 0xabcd0123
cmovne r15d, eax
cmovne r12d, ecx
test rdx, rdx
je 0x1400f82d4
mov rcx, rsi
call fcn.1400aeb50
cmp qword [rdi + 0xb0], 0xffffffffffffffff
jne 0x1400f82db
mov rax, qword [rbx]
lea rdx, str.This_socket_is_not_connected
mov rcx, rbx
call qword [rax + 0x28]
mov byte [rsi + 0x1a], 1
mov word [rdi + 0xa8], 0
xor al, al
jmp 0x1400f8544
lea rdx, [rdi + 0xd]
cmp byte [rdx], 0
je 0x1400f82fb
mov rax, qword [rbx]
lea rdx, str.Another_thread_is_already_receiving_on_this_socket.
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
jmp 0x1400f8544
cmp byte [rdi + 0xe], 0
je 0x1400f8318
mov rax, qword [rbx]
mov rdx, qword [str.Another_thread_is_closing_this_socket.]
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
jmp 0x1400f8544
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
call fcn.14006f5b0
nop
mov r14d, dword [rbp]
mov dword [rbp], 0
test r14d, r14d
je 0x1400f8535
mov eax, 0x1499700
test r12d, r12d
cmove r12d, eax
lea rcx, [rdi + 0x150]
mov r9, rbx
mov r8, qword [rsi + 8]
mov edx, 0x1000
call fcn.1401595b0
test al, al
je 0x1400f8386
mov byte [rsi + 0x19], 1
mov rax, qword [rbx]
lea rdx, str.Aborted_by_application_while_download_throttling__2_
mov rcx, rbx
call qword [rax + 0x28]
xor bl, bl
jmp 0x1400f8537
cmp byte [rdi + 0xe], 0
je 0x1400f83a3
mov rax, qword [rbx]
mov rdx, qword [str.Another_thread_is_closing_this_socket.]
mov rcx, rbx
call qword [rax + 0x28]
xor bl, bl
jmp 0x1400f8537
cmp qword [rdi + 0xb0], 0xffffffffffffffff
jne 0x1400f83c4
mov rax, qword [rbx]
lea rdx, str.The_socket_is_already_closed.__Cannot_recv.
mov rcx, rbx
call qword [rax + 0x28]
xor bl, bl
jmp 0x1400f8537
mov eax, 0x100000
cmp r14d, eax
cmova r14d, eax
xor r9d, r9d
mov r8d, r14d
mov rdx, r13
mov rcx, qword [rdi + 0xb0]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbp, eax
test eax, eax
jg 0x1400f84e4
je 0x1400f84a6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400f846a
test r15b, r15b
jne 0x1400f845f
mov rdx, rbx
mov rcx, rsi
call fcn.1400aece0
test al, al
jne 0x1400f8463
mov r9, rbx
mov r8, rsi
mov edx, r12d
mov rcx, rdi
call fcn.1400f8e50
test al, al
je 0x1400f8433
test ebp, ebp
jns 0x1400f8463
jmp 0x1400f83d0
cmp byte [rsi + 0x19], 0
je 0x1400f8442
lea rdx, str.Socket_recv_aborted_by_application
jmp 0x1400f844f
cmp byte [rsi + 0x18], 0
jne 0x1400f8463
lea rdx, str.Socket_recv_failed.
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x28]
xor bl, bl
jmp 0x1400f8537
mov byte [rsi + 0x18], 1
xor bl, bl
jmp 0x1400f8537
mov rcx, rbx
call fcn.1400720b0
mov r8d, r14d
lea rdx, str.maxToReceive
mov rcx, rbx
call fcn.1400717d0
mov rax, qword [rbx]
lea rdx, str.Failed_to_receive_data_on_the_TCP_socket
mov rcx, rbx
call qword [rax + 0x28]
mov byte [rsi + 0x1a], 1
mov byte [rdi + 0xa8], 0
xor bl, bl
jmp 0x1400f8537
cmp byte [rbx + 0xa9], 0
je 0x1400f84d1
mov r8d, r14d
lea rdx, str.maxToReceive
mov rcx, rbx
call fcn.1400717d0
mov rax, qword [rbx]
lea rdx, str.Connection_closed_by_peer.
mov rcx, rbx
call qword [rax + 0x28]
mov rdx, rbx
mov rcx, rdi
call fcn.1400f6f30
mov byte [rsi + 0x1b], 1
xor bl, bl
jmp 0x1400f8537
mov rax, qword [rsp + 0x20]
mov dword [rax], ebp
lea edx, [rbp - 0x1000]
lea rcx, [rdi + 0x150]
call fcn.140159560
cmp byte [rdi + 0x2ac], 0
je 0x1400f8518
lea rcx, [rdi + 0x18]
mov r9, rbx
mov r8, qword [rsi + 8]
mov edx, ebp
call fcn.140121dd0
cmp byte [rdi + 0x2a9], 0
je 0x1400f8535
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1400f8535
mov rdx, rbp
mov r8, rbx
call fcn.14008e440
mov bl, 1
lea rcx, [rsp + 0x30]
call fcn.14006f6e0
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140168e10
mov rbx, qword [rsp + 0xa8]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret