Function at 0x6d6380
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 0x6d63b8
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 0x6d6524
test ecx, 0x40000
je 0x6d64f2
mov esi, 0x21
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x70]
mov r12, qword [sym.imp.WS2_32.dll_WSARecv]
jmp 0x6d64a5
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call fcn.006ba840
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 0x6d66d0
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x6d66d0
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 0x6d6710
mov edx, dword [rsp + 0x68]
test edx, edx
je 0x6d6790
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 0x6d64b3
test ah, 0x10
je 0x6d64b3
sub esi, 1
jne 0x6d6400
and eax, 0x11000
cmp eax, 0x1000
je 0x6d66ba
mov eax, dword [rbx + 0x78]
test eax, eax
je 0x6d65b8
sub eax, 1
mov edx, dword [rbx + 0x58]
mov dword [rbx + 0x78], eax
jne 0x6d64e2
test dl, 1
jne 0x6d65e0
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 0x6d6643
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 0x6d63dc
jmp 0x6d64b3
mov eax, ecx
and eax, 0x41000
cmp eax, 0x40000
je 0x6d64c3
mov edx, ecx
and edx, 0xfffeefff
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], edx
je 0x6d6610
jns 0x6d6566
lea rdx, str.src_win_tcp.c
mov r8d, 0x3ab
lea rcx, [0x00af4045]
call qword [sym.imp.msvcrt.dll__assert]
mov edx, dword [rbx + 0x58]
and edx, 0x40000
jne 0x6d66f0
movdqu xmm1, xmmword [rbx + 0x120]
movaps xmmword [rsp + 0x70], xmm1
mov rcx, qword [rsi + 0x40]
call fcn.006e1ae0
mov edx, 0x2746
mov rsi, qword [rbx + 0x70]
cmp eax, 0x2745
cmove eax, edx
mov ecx, eax
call fcn.006bf1f0
lea r8, [rsp + 0x70]
mov rcx, rbx
movsxd rdx, eax
call rsi
mov eax, dword [rbx + 0x78]
test eax, eax
jne 0x6d64ce
mov r8d, 0x418
lea rdx, str.src_win_tcp.c
lea rcx, [0x00af3f6f]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x78]
jmp 0x6d64ce
test dl, 0x20
jne 0x6d64e2
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 0x6d6566
test cl, 4
je 0x6d6566
mov edx, ecx
and edx, 0xfffeeffb
and ecx, 8
mov dword [rbx + 0x58], edx
je 0x6d6566
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
jmp 0x6d6566
test ch, 0x10
je 0x6d6680
mov eax, ecx
and eax, 0xfffeefff
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], eax
jne 0x6d67f8
test cl, 1
jne 0x6d6680
test cl, 4
je 0x6d6680
mov eax, ecx
and eax, 0xfffeeffb
and ecx, 8
mov dword [rbx + 0x58], eax
je 0x6d6680
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 0x6d64c3
mov rdx, rbx
mov rcx, r13
call fcn.006d4ae0
jmp 0x6d64c3
mov r8, rdi
mov rdx, 0xfffffffffffff024
mov rcx, rbx
call qword [rbx + 0x70]
mov eax, dword [rbx + 0x58]
jmp 0x6d64b3
lea rcx, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
call fcn.006ba840
movdqu xmm2, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x70], xmm2
jmp 0x6d657f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x6d6820
mov ecx, dword [rbx + 0x58]
mov edx, ecx
and dh, 0xef
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], edx
jne 0x6d6833
test cl, 1
jne 0x6d6760
test cl, 4
je 0x6d6760
mov edx, ecx
and edx, 0xffffeffb
and ecx, 8
mov dword [rbx + 0x58], edx
je 0x6d6760
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.006bf1f0
mov r8, rdi
mov rcx, rbx
movsxd rdx, eax
call rsi
mov eax, dword [rbx + 0x58]
jmp 0x6d64b3
mov edx, dword [rbx + 0x58]
mov eax, edx
and ah, 0xaf
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], eax
jne 0x6d67d3
test dl, 1
jne 0x6d6697
test dl, 4
je 0x6d6697
mov eax, edx
and eax, 0xffffaffb
and edx, 8
mov dword [rbx + 0x58], eax
je 0x6d6697
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
jmp 0x6d6697
jns 0x6d6697
mov r8d, 0x3f3
lea rdx, str.src_win_tcp.c
lea rcx, [0x00af4045]
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x6d6697
jns 0x6d6680
mov r8d, 0x3cb
lea rdx, str.src_win_tcp.c
lea rcx, [0x00af4045]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x58]
jmp 0x6d6680
mov r8, rdi
xor edx, edx
mov rcx, rbx
call qword [rbx + 0x70]
mov eax, dword [rbx + 0x58]
jmp 0x6d64b3
jns 0x6d6760
mov dword [rsp + 0x4c], eax
mov r8d, 0x400
lea rdx, str.src_win_tcp.c
lea rcx, [0x00af4045]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rsp + 0x4c]
jmp 0x6d6760