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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov rax, qword [0x1400f2120]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov ebx, r8d
mov r15, rdx
mov rdi, rcx
xor esi, esi
test rdx, rdx
jne 0x140059415
mov qword [rbp - 0x38], SafeArrayLock
mov qword [rbp - 0x40], rsi
mov byte [rbp - 0x50], sil
lea r8d, [rdx + 0x2f]
lea rdx, str._Connector::DoRecv__Input_parameters_incorrect_n
lea rcx, [rbp - 0x50]
call fcn.140006800
nop
mov dword [rdi], 0xfffffffd
lea rcx, [rdi + 8]
lea rax, [rbp - 0x50]
cmp rcx, rax
je 0x1400593b8
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x50]
call fcn.140006930
nop
mov rax, qword [rbp - 0x38]
cmp rax, 0x10
jb 0x14005940e
inc rax
mov rcx, qword [rbp - 0x50]
cmp rax, 0x1000
jb 0x140059409
test cl, 0x1f
je 0x1400593dc
call fcn.140078f8c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400593eb
call fcn.140078f8c
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400593fa
call fcn.140078f8c
int3
cmp rcx, 0x27
jbe 0x140059406
call fcn.140078f8c
int3
mov rcx, rax
call fcn.14002a780
xor eax, eax
jmp 0x14005962a
mov r12d, ebx
mov r14d, esi
xor r9d, r9d
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rbp - 0x60], eax
test eax, eax
js 0x14005950f
je 0x140059462
sub ebx, eax
je 0x140059622
add r14d, eax
mov edx, r14d
add rdx, r15
xor r9d, r9d
mov r8d, ebx
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rbp - 0x60], eax
test eax, eax
jns 0x140059433
jmp 0x14005950f
mov rcx, rdi
call fcn.140059020
mov qword [rbp - 0x38], SafeArrayLock
mov qword [rbp - 0x40], rsi
mov byte [rbp - 0x50], sil
mov r8d, 0x24
lea rdx, str._Connector::DoRecv__Nothing_was_recv
lea rcx, [rbp - 0x50]
call fcn.140006800
nop
mov dword [rdi], 0xfffffffd
lea rcx, [rdi + 8]
lea rax, [rbp - 0x50]
cmp rcx, rax
je 0x1400594b5
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x50]
call fcn.140006930
nop
mov rax, qword [rbp - 0x38]
cmp rax, 0x10
jb 0x140059622
inc rax
mov rcx, qword [rbp - 0x50]
cmp rax, 0x1000
jb 0x14005961d
test cl, 0x1f
je 0x1400594e1
call fcn.140078f8c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400594f0
call fcn.140078f8c
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400594ff
call fcn.140078f8c
int3
cmp rcx, 0x27
jbe 0x14005961a
call fcn.140078f8c
int3
cmp eax, 0xffffffff
jne 0x14005951d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x60], eax
mov rcx, rdi
call fcn.140059020
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x30]
call fcn.140058840
nop
mov r8, rax
lea rdx, str._Connector::DoRecv__Recv_buffer_failed_:_wsaerror
lea rcx, [rbp - 0x50]
call fcn.14000cee0
nop
mov dword [rdi], 0xfffffffd
lea rcx, [rdi + 8]
cmp rcx, rax
je 0x140059566
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
call fcn.140006930
nop
mov rax, qword [rbp - 0x38]
cmp rax, 0x10
jb 0x1400595bc
inc rax
mov rcx, qword [rbp - 0x50]
cmp rax, 0x1000
jb 0x1400595b7
test cl, 0x1f
je 0x14005958a
call fcn.140078f8c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140059599
call fcn.140078f8c
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400595a8
call fcn.140078f8c
int3
cmp rcx, 0x27
jbe 0x1400595b4
call fcn.140078f8c
int3
mov rcx, rax
call fcn.14002a780
mov qword [rbp - 0x38], SafeArrayLock
mov qword [rbp - 0x40], rsi
mov byte [rbp - 0x50], 0
mov rax, qword [rbp - 0x18]
cmp rax, 0x10
jb 0x140059622
inc rax
mov rcx, qword [rbp - 0x30]
cmp rax, 0x1000
jb 0x14005961d
test cl, 0x1f
je 0x1400595f0
call fcn.140078f8c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400595ff
call fcn.140078f8c
int3
sub rcx, rax
cmp rcx, 8
jae 0x14005960e
call fcn.140078f8c
int3
cmp rcx, 0x27
jbe 0x14005961a
call fcn.140078f8c
int3
mov rcx, rax
call fcn.14002a780
test ebx, ebx
cmove esi, r12d
mov eax, esi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140057d50
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret