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

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
cmp dword [rdx + 0x10], 0xc
mov r13, rcx
mov rbx, rdx
mov rsi, r8
je 0x6b7098
mov r8d, 0x3a2
lea rdx, str.src_win_tcp.c
lea rcx, str.handle__type__UV_TCP
call qword [sym.imp.msvcrt.dll__assert]
mov ecx, dword [rbx + 0x58]
mov edx, dword [rsi + 0x40]
mov eax, ecx
and eax, 0xfffeffff
mov dword [rbx + 0x58], eax
test edx, edx
js 0x6b7204
test ecx, 0x40000
je 0x6b71d2
mov esi, 0x21
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x70]
mov r12, qword [sym.imp.WS2_32.dll_WSARecv]
jmp 0x6b7185
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call fcn.0069b520
mov r8, rdi
mov edx, 0x10000
mov rcx, rbx
movdqu xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x70], xmm0
call qword [rbx + 0x68]
cmp qword [rsp + 0x78], 0
je 0x6b73b0
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x6b73b0
lea rax, [rsp + 0x6c]
mov rcx, qword [rbx + 0x110]
mov rdx, rdi
mov dword [rsp + 0x6c], 0
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
mov r8d, 1
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
call r12
cmp eax, 0xffffffff
je 0x6b73f0
mov edx, dword [rsp + 0x68]
test edx, edx
je 0x6b7470
mov r8, rdi
mov rcx, rbx
call qword [rbx + 0x70]
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x58]
ja 0x6b7193
test ah, 0x10
je 0x6b7193
sub esi, 1
jne 0x6b70e0
and eax, 0x11000
cmp eax, 0x1000
je 0x6b739a
mov eax, dword [rbx + 0x78]
test eax, eax
je 0x6b7298
sub eax, 1
mov edx, dword [rbx + 0x58]
mov dword [rbx + 0x78], eax
jne 0x6b71c2
test dl, 1
jne 0x6b72c0
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rdx, qword [rsi + 0x48]
lea rdi, [rbx + 0x120]
test rdx, rdx
je 0x6b7323
mov r8, rdi
mov rcx, rbx
call qword [rbx + 0x70]
mov eax, dword [rbx + 0x120]
cmp qword [rsi + 0x48], rax
mov eax, dword [rbx + 0x58]
jae 0x6b70bc
jmp 0x6b7193
mov eax, ecx
and eax, 0x41000
cmp eax, 0x40000
je 0x6b71a3
mov edx, ecx
and edx, 0xfffeefff
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], edx
je 0x6b72f0
jns 0x6b7246
lea rdx, str.src_win_tcp.c
mov r8d, 0x3ab
lea rcx, [0x0090ede5]
call qword [sym.imp.msvcrt.dll__assert]
mov edx, dword [rbx + 0x58]
and edx, 0x40000
jne 0x6b73d0
movdqu xmm1, xmmword [rbx + 0x120]
movaps xmmword [rsp + 0x70], xmm1
mov rcx, qword [rsi + 0x40]
call fcn.006c27c0
mov edx, 0x2746
mov rsi, qword [rbx + 0x70]
cmp eax, 0x2745
cmove eax, edx
mov ecx, eax
call fcn.0069fed0
lea r8, [rsp + 0x70]
mov rcx, rbx
movsxd rdx, eax
call rsi
mov eax, dword [rbx + 0x78]
test eax, eax
jne 0x6b71ae
mov r8d, 0x418
lea rdx, str.src_win_tcp.c
lea rcx, [0x0090ed0f]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x78]
jmp 0x6b71ae
test dl, 0x20
jne 0x6b71c2
mov rax, qword [r13 + 0x50]
or edx, 0x20
mov dword [rbx + 0x58], edx
mov qword [rbx + 0x50], rax
mov qword [r13 + 0x50], rbx
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
test cl, 1
jne 0x6b7246
test cl, 4
je 0x6b7246
mov edx, ecx
and edx, 0xfffeeffb
and ecx, 8
mov dword [rbx + 0x58], edx
je 0x6b7246
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
jmp 0x6b7246
test ch, 0x10
je 0x6b7360
mov eax, ecx
and eax, 0xfffeefff
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], eax
jne 0x6b74d8
test cl, 1
jne 0x6b7360
test cl, 4
je 0x6b7360
mov eax, ecx
and eax, 0xfffeeffb
and ecx, 8
mov dword [rbx + 0x58], eax
je 0x6b7360
mov rdx, qword [rbx + 8]
sub dword [rdx + 8], 1
nop dword [rax]
and ah, 0xbf
mov dword [rsp + 0x70], 0
mov dword [rbx + 0x58], eax
mov qword [rsp + 0x78], 0
mov r8, rdi
mov rdx, 0xfffffffffffff001
mov rcx, rbx
call qword [rbx + 0x70]
mov eax, dword [rbx + 0x58]
and eax, 0x11000
cmp eax, 0x1000
jne 0x6b71a3
mov rdx, rbx
mov rcx, r13
call fcn.006b57c0
jmp 0x6b71a3
mov r8, rdi
mov rdx, 0xfffffffffffff024
mov rcx, rbx
call qword [rbx + 0x70]
mov eax, dword [rbx + 0x58]
jmp 0x6b7193
lea rcx, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
call fcn.0069b520
movdqu xmm2, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x70], xmm2
jmp 0x6b725f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x6b7500
mov ecx, dword [rbx + 0x58]
mov edx, ecx
and dh, 0xef
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], edx
jne 0x6b7513
test cl, 1
jne 0x6b7440
test cl, 4
je 0x6b7440
mov edx, ecx
and edx, 0xffffeffb
and ecx, 8
mov dword [rbx + 0x58], edx
je 0x6b7440
mov rdx, qword [rbx + 8]
sub dword [rdx + 8], 1
nop dword [rax + rax]
cmp eax, 0x2745
mov edx, 0x2746
mov rsi, qword [rbx + 0x70]
cmove eax, edx
mov ecx, eax
call fcn.0069fed0
mov r8, rdi
mov rcx, rbx
movsxd rdx, eax
call rsi
mov eax, dword [rbx + 0x58]
jmp 0x6b7193
mov edx, dword [rbx + 0x58]
mov eax, edx
and ah, 0xaf
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], eax
jne 0x6b74b3
test dl, 1
jne 0x6b7377
test dl, 4
je 0x6b7377
mov eax, edx
and eax, 0xffffaffb
and edx, 8
mov dword [rbx + 0x58], eax
je 0x6b7377
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
jmp 0x6b7377
jns 0x6b7377
mov r8d, 0x3f3
lea rdx, str.src_win_tcp.c
lea rcx, [0x0090ede5]
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x6b7377
jns 0x6b7360
mov r8d, 0x3cb
lea rdx, str.src_win_tcp.c
lea rcx, [0x0090ede5]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x58]
jmp 0x6b7360
mov r8, rdi
xor edx, edx
mov rcx, rbx
call qword [rbx + 0x70]
mov eax, dword [rbx + 0x58]
jmp 0x6b7193
jns 0x6b7440
mov dword [rsp + 0x4c], eax
mov r8d, 0x400
lea rdx, str.src_win_tcp.c
lea rcx, [0x0090ede5]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rsp + 0x4c]
jmp 0x6b7440