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

Disassembly:
push rbx
push rbp
sub rsp, 0x68
mov rbx, rdx
mov qword [rsp + 0x80], rsi
mov edx, dword [rdx + 0x58]
mov rsi, r8
btr edx, 0x10
mov rbp, rcx
mov dword [rbx + 0x58], edx
cmp dword [r8 + 0x40], 0
jge 0x140d8ecf7
bt edx, 0xc
jb 0x140d8ec6d
bt edx, 0x12
jb 0x140d8ef52
btr edx, 0xc
sub dword [rbx + 0x7c], 1
mov ecx, edx
mov dword [rbx + 0x58], edx
jne 0x140d8ec9b
mov eax, edx
and al, 5
cmp al, 4
jne 0x140d8ec9b
and edx, 0xfffffffb
mov dword [rbx + 0x58], edx
mov ecx, edx
test dl, 8
je 0x140d8ec9b
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov ecx, dword [rbx + 0x58]
bt ecx, 0x12
jae 0x140d8ecb2
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call fcn.140d8b800
jmp 0x140d8ecb9
lea rax, [rbx + 0x120]
movups xmm0, xmmword [rax]
mov ecx, dword [rsi + 0x40]
movups xmmword [rsp + 0x40], xmm0
call fcn.140d94620
mov ecx, 0x2746
cmp eax, 0x2745
cmove eax, ecx
and dword [rbx + 0x58], 0xffff3fff
mov ecx, eax
call fcn.140d8e1b0
movsxd rdx, eax
lea r8, [rsp + 0x40]
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
jmp 0x140d8ef52
mov qword [rsp + 0x60], rdi
bt edx, 0x12
jb 0x140d8ed2f
mov rax, qword [r8 + 0x48]
test rax, rax
je 0x140d8ee11
lea r8, [rbx + 0x120]
mov rdx, rax
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
mov eax, dword [rbx + 0x120]
cmp qword [rsi + 0x48], rax
jb 0x140d8ef33
test dword [rbx + 0x58], 0x1000
mov edi, 0x20
je 0x140d8ef33
xor esi, esi
mov eax, edi
dec edi
test eax, eax
jle 0x140d8ef33
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call fcn.140d8b800
lea r8, [rsp + 0x40]
mov edx, 0x10000
mov rcx, rbx
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
call qword [rbx + 0x68]
cmp qword [rsp + 0x48], rsi
je 0x140d8ef21
cmp dword [rsp + 0x40], esi
je 0x140d8ef21
mov rcx, qword [rbx + 0x110]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x88]
mov qword [rsp + 0x28], rsi
lea rdx, [rsp + 0x40]
mov r8d, 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x90], esi
call qword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
je 0x140d8eea3
mov eax, dword [rsp + 0x88]
test eax, eax
je 0x140d8ee62
mov edx, eax
lea r8, [rsp + 0x40]
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x88], eax
jb 0x140d8ef33
test dword [rbx + 0x58], 0x1000
jne 0x140d8ed43
jmp 0x140d8ef33
bt edx, 0xc
jae 0x140d8ee3e
btr edx, 0xc
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], edx
jne 0x140d8ee3e
mov eax, edx
and al, 5
cmp al, 4
jne 0x140d8ee3e
and edx, 0xfffffffb
mov dword [rbx + 0x58], edx
test dl, 8
je 0x140d8ee3e
mov rax, qword [rbx + 8]
dec dword [rax + 8]
xor esi, esi
lea r8, [rbx + 0x120]
mov rdx, 0xfffffffffffff001
mov qword [rsp + 0x48], rsi
mov rcx, rbx
mov dword [rsp + 0x40], esi
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
jmp 0x140d8ef33
mov ecx, dword [rbx + 0x58]
btr ecx, 0xc
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], ecx
jne 0x140d8ee8c
mov eax, ecx
and al, 5
cmp al, 4
jne 0x140d8ee8c
and ecx, 0xfffffffb
mov dword [rbx + 0x58], ecx
test cl, 8
je 0x140d8ee8c
mov rax, qword [rbx + 8]
dec dword [rax + 8]
lea r8, [rsp + 0x40]
mov rdx, 0xfffffffffffff001
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
jmp 0x140d8ef33
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
cmp eax, 0x2733
jne 0x140d8eec2
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
jmp 0x140d8ef33
mov ecx, dword [rbx + 0x58]
btr ecx, 0xc
sub dword [rbx + 0x7c], 1
mov edx, ecx
jne 0x140d8eef0
mov eax, ecx
and al, 5
cmp al, 4
jne 0x140d8eef0
and ecx, 0xfffffffb
mov dword [rbx + 0x58], ecx
mov edx, ecx
test cl, 8
je 0x140d8eef0
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov edx, dword [rbx + 0x58]
mov ecx, 0x2746
cmp r8d, 0x2745
cmove r8d, ecx
and edx, 0xffff3fff
mov ecx, r8d
mov dword [rbx + 0x58], edx
call fcn.140d8e1b0
movsxd rdx, eax
lea r8, [rsp + 0x40]
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
jmp 0x140d8ef33
lea r8, [rsp + 0x40]
mov rdx, 0xfffffffffffff024
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
mov eax, dword [rbx + 0x58]
mov rdi, qword [rsp + 0x60]
and eax, 0x11000
cmp eax, 0x1000
jne 0x140d8ef52
mov rdx, rbx
mov rcx, rbp
call fcn.140d8f890
mov ecx, dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
dec ecx
mov rsi, qword [rsp + 0x80]
mov dword [rbx + 0x78], ecx
test al, 1
je 0x140d8ef83
test ecx, ecx
jne 0x140d8ef83
test al, 0x20
jne 0x140d8ef83
or eax, 0x20
mov dword [rbx + 0x58], eax
mov rax, qword [rbp + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rbp + 0x50], rbx
add rsp, 0x68
pop rbp
pop rbx
ret