Function at 0x140067bf0
Capabilities:
Get socket status

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x670
xor edi, edi
test rcx, rcx
mov r13d, r8d
mov esi, edx
mov rbp, rcx
mov dword [rax + 0x20], edi
mov dword [rax + 0x24], edi
mov r14d, edi
je 0x140067c3a
test edx, edx
mov r9d, edi
je 0x140067c3a
mov rax, rcx
cmp qword [rax], 0xffffffffffffffff
jne 0x140067c6b
add r9d, 1
add rax, 0x10
cmp r9d, esi
jb 0x140067c27
test r8d, r8d
je 0x140067fe6
test r8d, r8d
jns 0x140067fdd
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
or edi, 0xffffffff
mov eax, edi
add rsp, 0x670
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
test r8d, r8d
mov qword [rsp + 0x6a8], rbx
mov qword [rsp + 0x668], r12
mov qword [rsp + 0x660], r15
jle 0x140067c95
mov r14d, r8d
call fcn.140075010
mov rbx, rax
jmp 0x140067c9d
mov rbx, qword [rsp + 0x6b8]
mov r10d, edi
mov dword [rsp + 0x240], edi
mov r11d, edi
mov dword [rsp + 0x30], edi
mov r8d, edi
mov dword [rsp + 0x450], edi
or r12, 0xffffffffffffffff
mov r15, rsi
nop
mov rdx, qword [rbp]
mov word [rbp + 0xa], di
cmp rdx, 0xffffffffffffffff
je 0x140067dce
movzx r9d, word [rbp + 8]
test r9b, 7
je 0x140067dce
cmp rdx, r12
cmova r12, rdx
test r9b, 1
je 0x140067d3d
test r10d, r10d
mov ecx, edi
mov rax, rdi
je 0x140067d16
nop
nop
cmp qword [rsp + rax*8 + 0x248], rdx
je 0x140067d16
add ecx, 1
add rax, 1
cmp ecx, r10d
jb 0x140067d00
cmp ecx, r10d
jne 0x140067d3d
cmp r10d, 0x40
jae 0x140067d3d
mov qword [rsp + rax*8 + 0x248], rdx
mov r10d, dword [rsp + 0x240]
add r10d, 1
mov dword [rsp + 0x240], r10d
test r9b, 4
je 0x140067d81
test r11d, r11d
mov ecx, edi
mov rax, rdi
je 0x140067d63
nop
cmp qword [rsp + rax*8 + 0x38], rdx
je 0x140067d63
add ecx, 1
add rax, 1
cmp ecx, r11d
jb 0x140067d50
cmp ecx, r11d
jne 0x140067d81
cmp r11d, 0x40
jae 0x140067d81
mov qword [rsp + rax*8 + 0x38], rdx
mov r11d, dword [rsp + 0x30]
add r11d, 1
mov dword [rsp + 0x30], r11d
test r9b, 2
je 0x140067dce
test r8d, r8d
mov ecx, edi
mov rax, rdi
je 0x140067da7
cmp qword [rsp + rax*8 + 0x458], rdx
je 0x140067da7
add ecx, 1
add rax, 1
cmp ecx, r8d
jb 0x140067d91
cmp ecx, r8d
jne 0x140067dce
cmp r8d, 0x40
jae 0x140067dce
mov qword [rsp + rax*8 + 0x458], rdx
mov r8d, dword [rsp + 0x450]
add r8d, 1
mov dword [rsp + 0x450], r8d
add rbp, 0x10
sub rsi, 1
jne 0x140067cc0
test r10d, r10d
jne 0x140067e37
test r11d, r11d
jne 0x140067e37
test r8d, r8d
jne 0x140067e37
test r13d, r13d
je 0x140067e0e
test r13d, r13d
jns 0x140067e05
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
or edi, 0xffffffff
jmp 0x140067e0e
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
mov r12, qword [rsp + 0x668]
mov rbx, qword [rsp + 0x6a8]
mov r15, qword [rsp + 0x660]
add rsp, 0x670
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
lea rbp, [rsp + 0x6b8]
test r13d, r13d
cmovs rbp, rdi
test r13d, r13d
jle 0x140067e7e
mov eax, 0x10624dd3
imul r14d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r14d
mov dword [rsp + 0x6b8], edx
imul edx, edx, 0x3e8
sub eax, edx
imul eax, eax, 0x3e8
mov dword [rsp + 0x6bc], eax
jmp 0x140067e91
test r13d, r13d
jne 0x140067e91
mov dword [rsp + 0x6b8], edi
mov dword [rsp + 0x6bc], edi
test r8d, r8d
lea r9, [rsp + 0x450]
lea r8, [rsp + 0x30]
cmove r9, rdi
test r11d, r11d
lea rdx, [rsp + 0x240]
cmove r8, rdi
test r10d, r10d
lea ecx, [r12 + 1]
cmove rdx, rdi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
mov esi, eax
jne 0x140067f3f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x140067eeb
cmp dword [0x14023f428], edi
jne 0x140067f3f
cmp eax, 0x2714
jne 0x140067f3f
test r13d, r13d
jg 0x140067f0a
mov r10d, dword [rsp + 0x240]
mov r11d, dword [rsp + 0x30]
mov r8d, dword [rsp + 0x450]
jmp 0x140067e46
call fcn.140075010
mov rdx, rbx
mov rcx, rax
call fcn.140075050
mov r14d, r13d
sub r14d, eax
test r14d, r14d
jle 0x140067f4f
mov r10d, dword [rsp + 0x240]
mov r11d, dword [rsp + 0x30]
mov r8d, dword [rsp + 0x450]
jmp 0x140067e46
test esi, esi
jns 0x140067f4b
or eax, 0xffffffff
jmp 0x140067e10
test esi, esi
jne 0x140067f56
xor eax, eax
jmp 0x140067e10
mov rbx, qword [rsp + 0x6a0]
add rbx, 0xa
nop
nop
nop
nop
mov rcx, qword [rbx - 0xa]
mov word [rbx], 0
cmp rcx, 0xffffffffffffffff
je 0x140067fcc
lea rdx, [rsp + 0x240]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140067f94
or word [rbx], 1
mov rcx, qword [rbx - 0xa]
lea rdx, [rsp + 0x30]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140067faa
or word [rbx], 4
mov rcx, qword [rbx - 0xa]
lea rdx, [rsp + 0x450]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140067fc3
or word [rbx], 2
cmp word [rbx], 0
je 0x140067fcc
add edi, 1
add rbx, 0x10
sub r15, 1
jne 0x140067f70
mov eax, edi
jmp 0x140067e10
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
add rsp, 0x670
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret