Function at 0x14008d770
Capabilities:
Get socket status

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5c0]
sub rsp, 0x6c0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x710], rbx
mov rax, qword [0x14013f130]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
mov r11d, edx
mov r12, rcx
lea rax, [rcx + 0x40]
lea r8, [rbp - 0x80]
mov r9d, 4
mov r10d, r9d
nop dword [rax]
nop dword [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [r8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r8 + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [r8 + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [r8 + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [r8 + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [r8 + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [r8 + 0x60], xmm0
lea r8, [r8 + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [r8 - 0x10], xmm1
lea rax, [rax + 0x80]
sub r10, 1
jne 0x14008d7d0
mov rax, qword [rax]
mov qword [r8], rax
lea rax, [rcx + 0x248]
lea rcx, [rbp + 0x190]
mov rdx, r9
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x14008d841
mov rax, qword [rax]
mov qword [rcx], rax
lea rax, [r12 + 0x450]
lea rcx, [rbp + 0x3a0]
nop dword [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub r9, 1
jne 0x14008d8b0
mov rax, qword [rax]
mov qword [rcx], rax
xor r14d, r14d
mov qword [rsp + 0x30], r14
cmp r11d, 0xffffffff
je 0x14008d93a
mov eax, 0x10624dd3
mul r11d
shr edx, 6
mov dword [rsp + 0x30], edx
imul eax, edx, 0x3e8
mov ecx, r11d
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x30]
cmp r11d, 0xffffffff
cmove rax, r14
mov ecx, dword [r12 + 0x658]
inc ecx
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x3a0]
lea r8, [rbp + 0x190]
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jle 0x14008dac3
lea rdx, [r12 + 0x28]
lea rcx, [rsp + 0x58]
call fcn.14008bff0
nop
mov rax, qword [rsp + 0x60]
mov r13, qword [rsp + 0x58]
sub rax, r13
sar rax, 4
test eax, eax
jle 0x14008da89
movsxd rcx, eax
mov qword [rsp + 0x50], rcx
mov r15, r13
xor r13d, r13d
nop
test ebx, ebx
jle 0x14008da84
mov edi, r13d
mov rsi, qword [r15]
lea rdx, [rbp - 0x80]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14008d9d5
mov edi, 1
dec ebx
test ebx, ebx
jle 0x14008da0d
lea rdx, [rbp + 0x190]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14008d9f1
or edi, 2
dec ebx
test ebx, ebx
jle 0x14008da0d
lea rdx, [rbp + 0x3a0]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14008da0d
or edi, 4
dec ebx
mov r8, qword [r12 + 8]
mov rcx, qword [r12 + 0x10]
sub rcx, r8
movabs rax, 0x2e8ba2e8ba2e8ba3
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rsi, rdx
jae 0x14008da72
imul rax, rsi, 0x58
and edi, dword [rax + r8 + 0xc]
je 0x14008da72
mov rcx, qword [rax + r8 + 0x50]
test rcx, rcx
je 0x14008da72
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x38], edi
mov rax, qword [rcx]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x38]
call qword [rax + reloc.WS2_32.dll_recv]
inc r14
add r15, 0x10
cmp r14, qword [rsp + 0x50]
jl 0x14008d9b0
mov r13, qword [rsp + 0x58]
test r13, r13
je 0x14008dac3
mov rdx, qword [rsp + 0x68]
sub rdx, r13
and rdx, 0xfffffffffffffff0
mov rax, r13
cmp rdx, 0x1000
jb 0x14008dabb
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008daef
mov rcx, r13
call fcn.14009ab24
xor eax, eax
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.14009ab00
mov rbx, qword [rsp + 0x710]
add rsp, 0x6c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400bcf00
int3