Function at 0x6de480
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 0x6de4b8
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 0x6de624
test ecx, 0x40000
je 0x6de5f2
mov esi, 0x21
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x70]
mov r12, qword [sym.imp.WS2_32.dll_WSARecv]
jmp 0x6de5a5
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call fcn.006c2940
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 0x6de7d0
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x6de7d0
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 0x6de810
mov edx, dword [rsp + 0x68]
test edx, edx
je 0x6de890
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 0x6de5b3
test ah, 0x10
je 0x6de5b3
sub esi, 1
jne 0x6de500
and eax, 0x11000
cmp eax, 0x1000
je 0x6de7ba
mov eax, dword [rbx + 0x78]
test eax, eax
je 0x6de6b8
sub eax, 1
mov edx, dword [rbx + 0x58]
mov dword [rbx + 0x78], eax
jne 0x6de5e2
test dl, 1
jne 0x6de6e0
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 0x6de743
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 0x6de4dc
jmp 0x6de5b3
mov eax, ecx
and eax, 0x41000
cmp eax, 0x40000
je 0x6de5c3
mov edx, ecx
and edx, 0xfffeefff
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], edx
je 0x6de710
jns 0x6de666
lea rdx, str.src_win_tcp.c
mov r8d, 0x3ab
lea rcx, [0x00d13165]
call qword [sym.imp.msvcrt.dll__assert]
mov edx, dword [rbx + 0x58]
and edx, 0x40000
jne 0x6de7f0
movdqu xmm1, xmmword [rbx + 0x120]
movaps xmmword [rsp + 0x70], xmm1
mov rcx, qword [rsi + 0x40]
call fcn.006e9be0
mov edx, 0x2746
mov rsi, qword [rbx + 0x70]
cmp eax, 0x2745
cmove eax, edx
mov ecx, eax
call fcn.006c72f0
lea r8, [rsp + 0x70]
mov rcx, rbx
movsxd rdx, eax
call rsi
mov eax, dword [rbx + 0x78]
test eax, eax
jne 0x6de5ce
mov r8d, 0x418
lea rdx, str.src_win_tcp.c
lea rcx, [0x00d1308f]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x78]
jmp 0x6de5ce
test dl, 0x20
jne 0x6de5e2
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 0x6de666
test cl, 4
je 0x6de666
mov edx, ecx
and edx, 0xfffeeffb
and ecx, 8
mov dword [rbx + 0x58], edx
je 0x6de666
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
jmp 0x6de666
test ch, 0x10
je 0x6de780
mov eax, ecx
and eax, 0xfffeefff
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], eax
jne 0x6de8f8
test cl, 1
jne 0x6de780
test cl, 4
je 0x6de780
mov eax, ecx
and eax, 0xfffeeffb
and ecx, 8
mov dword [rbx + 0x58], eax
je 0x6de780
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 0x6de5c3
mov rdx, rbx
mov rcx, r13
call fcn.006dcbe0
jmp 0x6de5c3
mov r8, rdi
mov rdx, 0xfffffffffffff024
mov rcx, rbx
call qword [rbx + 0x70]
mov eax, dword [rbx + 0x58]
jmp 0x6de5b3
lea rcx, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
call fcn.006c2940
movdqu xmm2, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x70], xmm2
jmp 0x6de67f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x6de920
mov ecx, dword [rbx + 0x58]
mov edx, ecx
and dh, 0xef
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], edx
jne 0x6de933
test cl, 1
jne 0x6de860
test cl, 4
je 0x6de860
mov edx, ecx
and edx, 0xffffeffb
and ecx, 8
mov dword [rbx + 0x58], edx
je 0x6de860
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.006c72f0
mov r8, rdi
mov rcx, rbx
movsxd rdx, eax
call rsi
mov eax, dword [rbx + 0x58]
jmp 0x6de5b3
mov edx, dword [rbx + 0x58]
mov eax, edx
and ah, 0xaf
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], eax
jne 0x6de8d3
test dl, 1
jne 0x6de797
test dl, 4
je 0x6de797
mov eax, edx
and eax, 0xffffaffb
and edx, 8
mov dword [rbx + 0x58], eax
je 0x6de797
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
jmp 0x6de797
jns 0x6de797
mov r8d, 0x3f3
lea rdx, str.src_win_tcp.c
lea rcx, [0x00d13165]
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x6de797
jns 0x6de780
mov r8d, 0x3cb
lea rdx, str.src_win_tcp.c
lea rcx, [0x00d13165]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x58]
jmp 0x6de780
mov r8, rdi
xor edx, edx
mov rcx, rbx
call qword [rbx + 0x70]
mov eax, dword [rbx + 0x58]
jmp 0x6de5b3
jns 0x6de860
mov dword [rsp + 0x4c], eax
mov r8d, 0x400
lea rdx, str.src_win_tcp.c
lea rcx, [0x00d13165]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rsp + 0x4c]
jmp 0x6de860