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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
cmp dword [rdx + 0x10], 0xc
mov rdi, rcx
mov rbx, rdx
mov rsi, r8
je 0x461492
lea rdx, str.src_win_tcp.c
lea rcx, str.handle__type__UV_TCP
mov r8d, 0x3ba
call fcn.0048c6c0
mov ecx, dword [rbx + 0x58]
mov edx, dword [rsi + 0x40]
mov eax, ecx
and eax, 0xfffdffff
test edx, edx
mov dword [rbx + 0x58], eax
js 0x461633
test ecx, 0x80000
je 0x4615c4
lea rbp, [rsp + 0x50]
lea rsi, [rsp + 0x70]
mov r12, qword [sym.imp.WS2_32.dll_WSARecv]
jmp 0x46157e
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call fcn.00449820
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov r8, rsi
mov rcx, rbx
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x70], rax
mov edx, 0x10000
call qword [rbx + 0x68]
cmp qword [rsp + 0x78], 0
je 0x461733
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x461733
lea rax, [rsp + 0x6c]
mov dword [rsp + 0x6c], 0
mov rcx, qword [rbx + 0x110]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r8d, 1
mov rdx, rsi
call r12
cmp eax, 0xffffffff
je 0x461780
mov edx, dword [rsp + 0x68]
test edx, edx
je 0x4617a4
mov r8, rsi
mov rcx, rbx
call qword [rbx + 0x70]
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x58]
ja 0x461590
test ah, 1
jne 0x4614d0
nop word [rax + rax]
and eax, 0x20100
cmp eax, 0x100
je 0x461600
mov eax, dword [rbx + 0x78]
test eax, eax
je 0x461612
sub eax, 1
mov edx, dword [rbx + 0x58]
test eax, eax
mov dword [rbx + 0x78], eax
jne 0x4615b9
test dl, 1
jne 0x4616d0
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [rsi + 0x48]
lea rbp, [rbx + 0x120]
test rdx, rdx
je 0x461813
mov r8, rbp
mov rcx, rbx
call qword [rbx + 0x70]
mov eax, dword [rbx + 0x120]
cmp qword [rsi + 0x48], rax
mov eax, dword [rbx + 0x58]
jae 0x4614b6
and eax, 0x20100
cmp eax, 0x100
jne 0x46159c
mov rdx, rbx
mov rcx, rdi
call fcn.0045fa50
mov eax, dword [rbx + 0x78]
test eax, eax
jne 0x4615a3
lea rdx, str.src_win_tcp.c
lea rcx, [0x004caf2f]
mov r8d, 0x430
call fcn.0048c6c0
mov eax, dword [rbx + 0x78]
jmp 0x4615a3
mov eax, ecx
and eax, 0x80100
cmp eax, 0x80000
je 0x46159c
mov edx, ecx
and edx, 0xfffdfeff
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], edx
je 0x461700
jns 0x461678
lea rdx, str.src_win_tcp.c
lea rcx, [0x004cb069]
mov r8d, 0x3c3
call fcn.0048c6c0
mov edx, dword [rbx + 0x58]
and edx, 0x80000
jne 0x461750
mov rax, qword [rbx + 0x120]
mov rdx, qword [rbx + 0x128]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdx
mov rcx, qword [rsi + 0x40]
call fcn.0046d3d0
mov edx, 0x2746
cmp eax, 0x2745
mov rsi, qword [rbx + 0x70]
cmove eax, edx
mov ecx, eax
call fcn.0044c5f0
lea r8, [rsp + 0x70]
movsxd rdx, eax
mov rcx, rbx
call rsi
jmp 0x46159c
test dl, 8
jne 0x4615b9
mov rax, qword [rdi + 0x50]
or edx, 8
mov dword [rbx + 0x58], edx
mov qword [rbx + 0x50], rax
mov qword [rdi + 0x50], rbx
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
test cl, 1
jne 0x461678
test cl, 0x40
je 0x461678
mov edx, ecx
and edx, 0xfffdfebf
and ecx, 0x20
mov dword [rbx + 0x58], edx
je 0x461678
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
jmp 0x461678
mov r8, rsi
mov rdx, 0xfffffffffffff024
mov rcx, rbx
call qword [rbx + 0x70]
mov eax, dword [rbx + 0x58]
jmp 0x461590
lea rcx, [rsp + 0x50]
xor edx, edx
xor r8d, r8d
call fcn.00449820
mov rax, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdx
jmp 0x46169c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x46187f
mov r8, rsi
xor edx, edx
mov rcx, rbx
call qword [rbx + 0x70]
mov eax, dword [rbx + 0x58]
jmp 0x461590
mov edx, dword [rbx + 0x58]
mov eax, edx
and ah, 0x7e
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], eax
jne 0x4617e0
test dl, 1
jne 0x4617fb
test dl, 0x40
je 0x4617fb
mov eax, edx
and eax, 0xffff7ebf
and edx, 0x20
mov dword [rbx + 0x58], eax
je 0x4617fb
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
jmp 0x4617fb
jns 0x4617fb
lea rdx, str.src_win_tcp.c
lea rcx, [0x004cb069]
mov r8d, 0x40b
call fcn.0048c6c0
mov r8, rsi
mov rdx, 0xfffffffffffff001
mov rcx, rbx
call qword [rbx + 0x70]
mov eax, dword [rbx + 0x58]
jmp 0x461590
test ch, 1
je 0x461850
mov eax, ecx
and eax, 0xfffdfeff
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], eax
jne 0x4618dd
test cl, 1
jne 0x461850
test cl, 0x40
je 0x461850
mov eax, ecx
and eax, 0xfffdfebf
and ecx, 0x20
mov dword [rbx + 0x58], eax
je 0x461850
mov rdx, qword [rbx + 8]
sub dword [rdx + 8], 1
nop dword [rax]
and ah, 0x7f
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x70], 0
mov dword [rbx + 0x58], eax
mov r8, rbp
mov rdx, 0xfffffffffffff001
mov rcx, rbx
call qword [rbx + 0x70]
mov eax, dword [rbx + 0x58]
jmp 0x461590
mov ecx, dword [rbx + 0x58]
mov edx, ecx
and dh, 0xfe
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], edx
jne 0x461904
test cl, 1
jne 0x4618b2
test cl, 0x40
je 0x4618b2
mov edx, ecx
and edx, 0xfffffebf
and ecx, 0x20
mov dword [rbx + 0x58], edx
je 0x4618b2
mov rdx, qword [rbx + 8]
sub dword [rdx + 8], 1
cmp eax, 0x2745
mov edx, 0x2746
mov rbp, qword [rbx + 0x70]
cmove eax, edx
mov ecx, eax
call fcn.0044c5f0
mov r8, rsi
movsxd rdx, eax
mov rcx, rbx
call rbp
mov eax, dword [rbx + 0x58]
jmp 0x461590
jns 0x461850
lea rdx, str.src_win_tcp.c
lea rcx, [0x004cb069]
mov r8d, 0x3e4
call fcn.0048c6c0
mov eax, dword [rbx + 0x58]
jmp 0x461850
jns 0x4618b2
lea rdx, str.src_win_tcp.c
lea rcx, [0x004cb069]
mov r8d, 0x418
mov dword [rsp + 0x4c], eax
call fcn.0048c6c0
mov eax, dword [rsp + 0x4c]
jmp 0x4618b2