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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rdi, qword [rsp + 0xb8]
mov r14, rcx
mov rsi, rdx
mov rbx, r8
mov r13, r9
test rcx, rcx
je 0x140076760
call fcn.140073e30
mov rdx, rax
mov rax, qword [r14]
test rax, rax
je 0x140076652
cmp qword [rax], rdx
je 0x140076662
mov rcx, r14
call fcn.1400b1670
test eax, eax
je 0x140076760
test rsi, rsi
je 0x140076760
call fcn.1400d4a80
mov rcx, qword [r14 + 0x18]
mov rdx, rdi
mov qword [rsp + 0x38], rax
call fcn.1402cb260
test eax, eax
je 0x14007678b
mov rax, qword [r14 + 0x18]
cmp byte [rax + 0x28], 0
js 0x1400768d8
mov rcx, qword [rsp + 0xb0]
mov rdx, rdi
call fcn.140042df0
test eax, eax
jne 0x14007678b
mov rbp, qword [sym.imp.WS2_32.dll_recv]
mov r12, qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax]
mov rax, qword [r14 + 0x18]
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
movsxd rcx, dword [rax + 0xc]
call rbp
cdqe
test rax, rax
jns 0x140076860
call r12
mov r15d, eax
cmp eax, 4
je 0x1400766c0
mov rax, qword [r14 + 0x18]
lea rcx, [rax + 0x58]
cmp r15d, 0x2733
jne 0x1400767a8
call fcn.140341618
mov rax, qword [r14 + 0x18]
and dword [rax + 0x40], 0xfffffffe
mov rax, qword [r14 + 0x18]
and dword [rax + 0x44], 0xfffffffe
mov rax, qword [r14 + 0x18]
lea rcx, [rax + 0x58]
call fcn.140341260
test r13, r13
je 0x1400767a8
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x28], rdi
mov rcx, r14
mov r8, 0xffffffffffffffff
mov r9, qword [rsp + 0x38]
mov edx, 1
mov qword [rsp + 0x20], rax
call fcn.1400764b0
test eax, eax
jne 0x1400766c0
jmp 0x14007678b
lea rax, str.G_IS_SOCKET__socket___buffer___NULL
lea r9, str.g_socket_receive_with_timeout
mov edx, 8
mov qword [rsp + 0x20], rax
lea r8, [0x14037a411]
lea rcx, [0x14037a4a6]
call fcn.1400d2190
mov rax, 0xffffffffffffffff
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [r14 + 0x18]
lea rcx, [rax + 0x58]
call fcn.140341618
mov rax, qword [r14 + 0x18]
and dword [rax + 0x40], 0xfffffffe
mov rax, qword [r14 + 0x18]
and dword [rax + 0x44], 0xfffffffe
mov rcx, qword [r14 + 0x18]
add rcx, 0x58
call fcn.140341260
test rdi, rdi
je 0x14007678b
mov ecx, r15d
call fcn.1400264c0
mov ecx, r15d
mov ebx, eax
call fcn.140075150
mov rbp, rax
cmp ebx, 0x1b
je 0x140076899
mov rcx, qword [0x14048def0]
mov rax, qword [rcx]
test rax, rax
je 0x140076962
lea rdx, str.Error_receiving_data:__s
lea rcx, [0x140379f1f]
call fcn.1400c7f40
mov r12, qword [0x14048eee0]
mov rsi, rax
mov edx, dword [r12]
test edx, edx
jne 0x14007683f
lea rcx, [0x14037ac44]
call fcn.1400daa90
mov dword [r12], eax
mov edx, eax
mov qword [rsp + 0x20], rbp
mov r9, rsi
mov r8d, ebx
mov rcx, rdi
call fcn.1400cab90
jmp 0x14007678b
mov qword [rsp + 0x38], rax
mov rax, qword [r14 + 0x18]
lea rcx, [rax + 0x58]
call fcn.140341618
mov rdx, qword [r14 + 0x18]
and dword [rdx + 0x40], 0xfffffffe
mov rdx, qword [r14 + 0x18]
and dword [rdx + 0x44], 0xfffffffe
mov rcx, qword [r14 + 0x18]
add rcx, 0x58
call fcn.140341260
mov rax, qword [rsp + 0x38]
jmp 0x140076792
mov rbx, qword [0x14048eee0]
mov eax, dword [rbx]
test eax, eax
je 0x14007694f
cmp qword [rdi], 0
je 0x1400769a7
mov r9, rbp
lea r8, [0x140379f38]
mov edx, 0x10
lea rcx, [0x140379ffe]
call fcn.1400d2190
jmp 0x14007678b
and byte [rax + 0x28], 0x7f
mov rcx, qword [0x14048def0]
mov rax, qword [rcx]
test rax, rax
je 0x140076979
lea rdx, [0x14037b280]
lea rcx, [0x140379f1f]
call fcn.1400c7f40
mov rsi, qword [0x14048eee0]
mov rbx, rax
mov eax, dword [rsi]
test eax, eax
jne 0x140076920
lea rcx, [0x14037ac44]
call fcn.1400daa90
mov dword [rsi], eax
test rdi, rdi
je 0x14007678b
cmp qword [rdi], 0
je 0x140076990
mov r9, rbx
lea r8, [0x140379f38]
mov edx, 0x10
lea rcx, [0x140379ffe]
call fcn.1400d2190
jmp 0x14007678b
lea rcx, [0x14037ac44]
call fcn.1400daa90
mov dword [rbx], eax
jmp 0x1400768aa
call fcn.1400e7370
test eax, eax
je 0x140076808
call fcn.1400cb3d0
jmp 0x140076808
call fcn.1400e7370
test eax, eax
je 0x1400768ef
call fcn.1400cb3d0
jmp 0x1400768ef
mov r8, rbx
mov edx, 0x18
mov ecx, eax
call fcn.1400cac00
mov qword [rdi], rax
jmp 0x14007678b
mov r8, rbp
mov edx, 0x1b
mov ecx, eax
call fcn.1400cac00
mov qword [rdi], rax
jmp 0x14007678b