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

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
cmp dword [rdx + 0x10], 0xc
mov rbp, rcx
mov rbx, rdx
mov rsi, r8
je 0x1400c1ac5
mov r8d, 0x3ee
lea rdx, str.src_win_tcp.c
lea rcx, str.handle__type__UV_TCP
call qword [sym.imp.msvcrt.dll__assert]
mov edx, dword [rbx + 0x58]
mov eax, edx
and eax, 0xfffeffff
mov dword [rbx + 0x58], eax
mov ecx, dword [rsi + 0x40]
test ecx, ecx
js 0x1400c1c38
test edx, 0x40000
je 0x1400c1c00
mov esi, 0x21
lea r12, [rsp + 0x40]
lea rdi, [rsp + 0x60]
mov r13, qword [sym.imp.WS2_32.dll_WSARecv]
jmp 0x1400c1bad
xor r8d, r8d
xor edx, edx
mov rcx, r12
call fcn.1400a6b10
mov r8, rdi
mov edx, 0x10000
mov rcx, rbx
movdqu xmm0, xmmword [rsp + 0x40]
movups xmmword [rsp + 0x60], xmm0
call qword [rbx + 0x68]
cmp qword [rsp + 0x68], 0
je 0x1400c1e18
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400c1e18
lea rax, [rsp + 0x5c]
mov rcx, qword [rbx + 0x110]
mov rdx, rdi
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
mov r8d, 1
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
call r13
cmp eax, 0xffffffff
je 0x1400c1e50
mov edx, dword [rsp + 0x58]
test edx, edx
je 0x1400c1f00
mov r8, rdi
mov rcx, rbx
call qword [rbx + 0x70]
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x60], eax
mov eax, dword [rbx + 0x58]
ja 0x1400c1bbb
test ah, 0x10
je 0x1400c1bbb
sub esi, 1
jne 0x1400c1b08
and eax, 0x11000
cmp eax, 0x1000
je 0x1400c1e04
mov eax, dword [rbx + 0x78]
test eax, eax
je 0x1400c1cd9
sub eax, 1
mov edx, dword [rbx + 0x58]
mov dword [rbx + 0x78], eax
jne 0x1400c1bea
test dl, 1
jne 0x1400c1d00
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r9, qword [rsi + 0x48]
lea rdi, [rbx + 0x120]
test r9, r9
je 0x1400c1d70
mov r8, rdi
mov rdx, r9
mov rcx, rbx
call qword [rbx + 0x70]
mov eax, dword [rbx + 0x120]
cmp qword [rsi + 0x48], rax
mov eax, dword [rbx + 0x58]
jae 0x1400c1ae9
jmp 0x1400c1bbb
mov eax, edx
and eax, 0x41000
cmp eax, 0x40000
je 0x1400c1bcb
mov eax, dword [rbx + 0x7c]
mov ecx, edx
and ecx, 0xfffeefff
sub eax, 1
mov dword [rbx + 0x58], ecx
mov dword [rbx + 0x7c], eax
je 0x1400c1d30
test eax, eax
jns 0x1400c1c7e
mov r8d, 0x3f7
lea rdx, str.src_win_tcp.c
lea rcx, [0x14029e25b]
call qword [sym.imp.msvcrt.dll__assert]
mov ecx, dword [rbx + 0x58]
and ecx, 0x40000
jne 0x1400c1e30
movdqu xmm1, xmmword [rbx + 0x120]
movups xmmword [rsp + 0x60], xmm1
mov ecx, dword [rsi + 0x40]
call fcn.1400cdba0
mov rsi, qword [rbx + 0x70]
cmp eax, 0x2745
mov ecx, eax
mov eax, 0x2746
cmove ecx, eax
and dword [rbx + 0x58], 0xffff3fff
call fcn.1400ab4e0
lea r8, [rsp + 0x60]
mov rcx, rbx
movsxd rdx, eax
call rsi
mov eax, dword [rbx + 0x78]
test eax, eax
jne 0x1400c1bd6
mov r8d, 0x465
lea rdx, str.src_win_tcp.c
lea rcx, [0x14029e274]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x78]
jmp 0x1400c1bd6
test dl, 0x20
jne 0x1400c1bea
or edx, 0x20
mov dword [rbx + 0x58], edx
mov rax, qword [rbp + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rbp + 0x50], rbx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
test dl, 1
jne 0x1400c1c81
test dl, 4
je 0x1400c1c81
mov ecx, edx
and ecx, 0xfffeeffb
and edx, 8
mov dword [rbx + 0x58], ecx
je 0x1400c1c81
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
mov eax, dword [rbx + 0x7c]
jmp 0x1400c1c60
test dh, 0x10
je 0x1400c1dd0
mov eax, edx
and eax, 0xfffeefff
mov dword [rbx + 0x58], eax
mov eax, dword [rbx + 0x7c]
sub eax, 1
mov dword [rbx + 0x7c], eax
jne 0x1400c1dae
test dl, 1
jne 0x1400c1dd0
test dl, 4
je 0x1400c1dd0
mov eax, edx
and eax, 0xfffeeffb
and edx, 8
mov dword [rbx + 0x58], eax
je 0x1400c1dd0
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
mov eax, dword [rbx + 0x7c]
test eax, eax
jns 0x1400c1dd0
mov r8d, 0x418
lea rdx, str.src_win_tcp.c
lea rcx, [0x14029e25b]
call qword [sym.imp.msvcrt.dll__assert]
nop dword [rax]
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x60], 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 0x1400c1bcb
mov rdx, rbx
mov rcx, rbp
call fcn.1400bfdb0
jmp 0x1400c1bcb
mov r8, rdi
mov rdx, 0xfffffffffffff024
mov rcx, rbx
call qword [rbx + 0x70]
mov eax, dword [rbx + 0x58]
jmp 0x1400c1bbb
lea rcx, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
call fcn.1400a6b10
movdqu xmm2, xmmword [rsp + 0x40]
movups xmmword [rsp + 0x60], xmm2
jmp 0x1400c1c9a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r12d, eax
cmp eax, 0x2733
je 0x1400c1f77
mov ecx, dword [rbx + 0x58]
mov esi, dword [rbx + 0x7c]
mov eax, ecx
lea edx, [rsi - 1]
and ah, 0xef
mov dword [rbx + 0x7c], edx
mov dword [rbx + 0x58], eax
test edx, edx
jne 0x1400c1ea0
test cl, 1
jne 0x1400c1ec1
test cl, 4
je 0x1400c1ec1
mov eax, ecx
and eax, 0xffffeffb
and ecx, 8
mov dword [rbx + 0x58], eax
je 0x1400c1ec1
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
mov edx, dword [rbx + 0x7c]
test edx, edx
jns 0x1400c1ebe
mov r8d, 0x44c
lea rdx, str.src_win_tcp.c
lea rcx, [0x14029e25b]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x58]
cmp r12d, 0x2745
mov edx, 0x2746
mov rsi, qword [rbx + 0x70]
cmove r12d, edx
and ah, 0x3f
mov dword [rbx + 0x58], eax
mov ecx, r12d
call fcn.1400ab4e0
mov r8, rdi
mov rcx, rbx
movsxd rdx, eax
call rsi
mov eax, dword [rbx + 0x58]
jmp 0x1400c1bbb
mov edx, dword [rbx + 0x58]
mov eax, edx
and ah, 0xef
mov dword [rbx + 0x58], eax
mov eax, dword [rbx + 0x7c]
sub eax, 1
mov dword [rbx + 0x7c], eax
jne 0x1400c1f50
test dl, 1
jne 0x1400c1de1
test dl, 4
je 0x1400c1de1
mov eax, edx
and eax, 0xffffeffb
and edx, 8
mov dword [rbx + 0x58], eax
je 0x1400c1de1
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
mov eax, dword [rbx + 0x7c]
nop word cs:[rax + rax]
test eax, eax
jns 0x1400c1de1
mov r8d, 0x43f
lea rdx, str.src_win_tcp.c
lea rcx, [0x14029e25b]
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x1400c1de1
mov r8, rdi
xor edx, edx
mov rcx, rbx
call qword [rbx + 0x70]
mov eax, dword [rbx + 0x58]
jmp 0x1400c1bbb