Function at 0x140077660
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x1400af040]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rax, qword [rcx + 0x98]
mov r12d, edx
mov rbx, rcx
mov byte [rbp - 0x70], r12b
cmp qword [rcx + 0x90], rax
jne 0x1400776c6
cmp edx, 0xffffffff
je 0x140077963
lea r15, [rbp - 0x70]
mov edi, 1
jmp 0x1400776d7
mov rax, qword [rcx + 0x20]
mov r15, qword [rax]
mov rax, qword [rcx + 0x40]
mov rdi, qword [rax]
sub rdi, r15
mov rax, rdi
test rax, rax
je 0x14007792c
lea r14, [rcx + 0x150]
lea r13, [0x1400af558]
lea rcx, [rsp + 0x48]
call fcn.140064fb0
mov rcx, qword [rbx + 0x168]
cmp rcx, qword [rsp + 0x48]
je 0x14007770f
jl 0x14007796a
test byte [rbx + 0xc0], 2
jne 0x14007772c
lea rcx, [rbx + 0xb0]
mov r9, r14
lea rdx, [rsp + 0x50]
call fcn.140078d10
cmp byte [rbx + 0xf4], 0
mov rcx, qword [rbx + 0xb8]
mov qword [rbp - 0x58], r15
mov dword [rbp - 0x60], edi
mov qword [rbp - 0x50], rdi
jne 0x14007775a
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x5c], xmm0
mov qword [rsp + 0x6c], rax
mov dword [rsp + 0x74], eax
mov r8d, 1
mov qword [rsp + 0x20], r14
lea rdx, [rbp - 0x60]
call fcn.140069870
test eax, eax
jle 0x140077789
cdqe
mov rcx, rdi
cmp rax, rdi
cmovb rcx, rax
add r15, rcx
sub rdi, rcx
jmp 0x140077923
mov rsi, qword [0x1400af560]
movabs rax, 0x4d54ee85da812030
add rax, rsi
mov dword [rsp + 0x34], 0
cmp rax, 1
jbe 0x1400777c6
mov rax, qword [0x1400af558]
mov edx, 0x2733
mov rcx, r13
call qword [rax + 0x30]
mov rsi, qword [0x1400af560]
jmp 0x1400777c8
mov al, 1
movzx eax, al
lea rdx, [rsp + 0x78]
add rax, 2
mov dword [rsp + 0x30], 0x2733
mov qword [rsp + 0x40], rax
mov rcx, r14
movsd xmm1, qword [rsp + 0x40]
mov qword [rsp + 0x38], r13
movups xmm0, xmmword [rsp + 0x30]
movsd qword [rbp - 0x78], xmm1
movups xmmword [rsp + 0x78], xmm0
call fcn.140066cd0
test al, al
jne 0x14007787c
movabs rax, 0x4d54ee85da812030
mov dword [rsp + 0x34], 0
add rax, rsi
cmp rax, 1
jbe 0x140077836
mov rax, qword [0x1400af558]
mov edx, 0x4d5
mov rcx, r13
call qword [rax + 0x30]
jmp 0x140077838
mov al, 1
movzx eax, al
lea rdx, [rsp + 0x50]
add rax, 2
mov dword [rsp + 0x30], 0x4d5
mov qword [rsp + 0x40], rax
mov rcx, r14
movsd xmm1, qword [rsp + 0x40]
mov qword [rsp + 0x38], r13
movups xmm0, xmmword [rsp + 0x30]
movsd qword [rsp + 0x60], xmm1
movups xmmword [rsp + 0x50], xmm0
call fcn.140066cd0
test al, al
je 0x1400779cd
mov rcx, rbx
call fcn.140078c40
cmp byte [rbx + 0xf4], 0
mov r8d, eax
mov rcx, qword [rbx + 0xb8]
jne 0x1400778aa
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x5c], xmm0
mov qword [rsp + 0x6c], rax
mov dword [rsp + 0x74], eax
cmp rcx, 0xffffffffffffffff
je 0x1400779d4
mov qword [rbp - 0x38], rcx
mov dword [rbp - 0x40], 1
test r8d, r8d
js 0x1400778f2
mov eax, 0x10624dd3
imul r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3e8
mov dword [rbp - 0x68], edx
sub r8d, eax
imul eax, r8d, 0x3e8
mov dword [rbp - 0x64], eax
lea rax, [rbp - 0x68]
jmp 0x1400778f4
xor eax, eax
inc ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x40]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
mov edx, eax
mov rcx, r14
shr edx, 0x1f
mov esi, eax
call fcn.140069320
test esi, esi
je 0x140077923
js 0x1400779cd
test rdi, rdi
jne 0x1400776f1
mov rdx, qword [rbx + 0x90]
mov rcx, qword [rbx + 0x98]
cmp rdx, rcx
je 0x140077a35
mov rax, qword [rbx + 0x20]
sub ecx, edx
mov qword [rax], rdx
mov rax, qword [rbx + 0x40]
mov qword [rax], rdx
mov rax, qword [rbx + 0x58]
mov dword [rax], ecx
cmp r12d, 0xffffffff
jne 0x140077a1b
xor eax, eax
jmp 0x140077a38
movabs rcx, 0x4d54ee85da812030
mov dword [rsp + 0x34], 0
add rcx, qword [0x1400af560]
cmp rcx, 1
jbe 0x14007799d
mov rax, qword [0x1400af558]
mov edx, 0x274c
mov rcx, r13
call qword [rax + 0x30]
jmp 0x14007799f
mov al, 1
mov dword [rsp + 0x30], 0x274c
movzx eax, al
mov qword [rsp + 0x38], r13
add rax, 2
movups xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0x40], rax
movsd xmm1, qword [rsp + 0x40]
movups xmmword [r14], xmm0
movsd qword [r14 + 0x10], xmm1
mov eax, 0xffffffff
jmp 0x140077a38
movabs rcx, 0x4d54ee85da812030
mov dword [rsp + 0x34], 0
add rcx, qword [0x1400af560]
cmp rcx, 1
jbe 0x140077a0f
mov rax, qword [0x1400af558]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
mov dword [rsp + 0x30], 0x2719
jmp 0x1400779a7
mov al, 1
mov dword [rsp + 0x30], 0x2719
jmp 0x1400779a7
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
movzx eax, byte [rbp - 0x70]
mov byte [rcx], al
mov rax, qword [rbx + 0x58]
dec dword [rax]
mov rax, qword [rbx + 0x40]
inc qword [rax]
mov eax, r12d
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.14007fe40
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret