Function at 0x140ab09f0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x620]
sub rsp, 0x720
mov rax, qword [0x14100f500]
xor rax, rsp
mov qword [rbp + 0x610], rax
mov r14, r9
mov qword [rbp - 0x68], r9
mov esi, r8d
mov dword [rsp + 0x70], r8d
mov edi, edx
mov dword [rsp + 0x38], edi
mov r15, rcx
mov qword [rbp - 0x70], rcx
test r9, r9
je 0x140ab0e31
mov rax, qword [r9]
mov qword [rbp - 0x60], rax
test rax, rax
je 0x140ab0e31
mov qword [rsp + 0x78], rax
xor r12d, r12d
mov qword [r9], r12
cmp edi, 0x3f
jae 0x140ab0e1c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov r15d, r12d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x68], r12
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
lea r8, [rsp + 0x78]
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140ab0440
mov r13d, r12d
mov rbx, qword [rsp + 0x48]
test edi, edi
mov rdi, qword [rsp + 0x60]
je 0x140ab0c2d
mov esi, r13d
shl rsi, 4
add rsi, qword [rbp - 0x70]
mov word [rsi + 0xa], r12w
mov r14, rsi
mov qword [rbp - 0x78], rsi
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
mov qword [rbp - 0x80], rax
cmp rdi, r15
je 0x140ab0aeb
mov qword [rdi], rax
mov r15, r12
mov qword [rdi + 8], rsi
add rdi, 0x10
mov qword [rsp + 0x60], rdi
jmp 0x140ab0b13
lea r8, [rbp - 0x80]
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.140ab05d0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rdi, qword [rsp + 0x60]
mov r14, qword [rbp - 0x78]
mov r15, qword [rbp - 0x80]
test r15, r15
je 0x140ab0b3b
test r14, r14
je 0x140ab0b32
cmp dword [r14], 0xffffffff
je 0x140ab0b32
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r14]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
lea r14, [rdi - 0x10]
mov r15, qword [r14]
mov qword [rsp + 0x78], r15
test r15, r15
je 0x140ab0c05
cmp rbx, qword [rsp + 0x50]
je 0x140ab0b65
mov qword [rbx], r15
add rbx, 8
mov qword [rsp + 0x48], rbx
jmp 0x140ab0b7c
lea r8, [rsp + 0x78]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140ab0440
mov rbx, qword [rsp + 0x48]
movzx eax, word [rsi + 8]
mov ecx, 0x300
and ax, cx
neg ax
sbb ecx, ecx
and ecx, 9
mov r8d, ecx
or r8d, 0x12
test byte [rsi + 8], 0x10
cmove r8d, ecx
mov rdx, r15
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
je 0x140ab0bf1
mov word [rsi + 0xa], 4
mov rdx, qword [r14]
test rdx, rdx
je 0x140ab0be0
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x140ab0bd7
cmp dword [rcx], 0xffffffff
je 0x140ab0bd7
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov rcx, qword [r14]
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
mov rdi, r14
mov qword [rsp + 0x60], r14
sub rbx, 8
mov qword [rsp + 0x48], rbx
inc r13d
cmp r13d, dword [rsp + 0x38]
jae 0x140ab0c25
mov r15, qword [rsp + 0x30]
jmp 0x140ab0ab0
mov ecx, 0x2747
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x40]
mov r12d, 0xffffffff
mov r15, qword [rsp + 0x58]
jmp 0x140ab0d50
mov r14, qword [rbp - 0x68]
mov esi, dword [rsp + 0x70]
mov r9d, 0xffffffff
cmp esi, 0xffffffff
cmovne r9d, esi
mov rsi, qword [rsp + 0x40]
sub rbx, rsi
sar rbx, 3
mov dword [rsp + 0x20], r12d
xor r8d, r8d
mov rdx, rsi
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0xffffffff
jne 0x140ab0c6e
mov r12d, 0xffffffff
mov r15, qword [rsp + 0x58]
jmp 0x140ab0d50
cmp eax, 0x102
je 0x140ab0c86
test eax, eax
jne 0x140ab0c90
mov rax, qword [rbp - 0x60]
mov qword [r14], rax
mov r12d, 1
mov r15, qword [rsp + 0x58]
jmp 0x140ab0d50
lea ecx, [rax - 1]
mov r14d, r12d
mov rax, rdi
mov r15, qword [rsp + 0x58]
sub rax, r15
sar rax, 4
cmp ecx, eax
jge 0x140ab0d4d
movsxd rsi, ecx
shl rsi, 4
add rsi, r15
sub eax, ecx
mov r13d, eax
mov edi, 0x300
mov rbx, qword [rsi + 8]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x58], xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x30], eax
lea r8, [rbp - 0x58]
mov rdx, qword [rsi]
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
je 0x140ab0cf5
mov word [rbx + 0xa], 1
jmp 0x140ab0d34
mov eax, dword [rbp - 0x58]
test eax, eax
je 0x140ab0d34
test al, 0xd
je 0x140ab0d07
or word [rbx + 0xa], di
mov eax, dword [rbp - 0x58]
test al, 0x12
je 0x140ab0d10
or word [rbx + 0xa], 0x10
mov rax, r12
cmp dword [rbp + rax*4 - 0x54], 0
jne 0x140ab0d25
inc rax
cmp rax, 0xa
jl 0x140ab0d13
jmp 0x140ab0d2a
or word [rbx + 0xa], 1
cmp word [rbx + 0xa], 0
je 0x140ab0d34
inc r14d
add rsi, 0x10
sub r13, 1
jne 0x140ab0cc1
mov rdi, qword [rsp + 0x60]
mov r15, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x40]
mov r12d, r14d
test rsi, rsi
je 0x140ab0d97
mov rax, qword [rsp + 0x50]
sub rax, rsi
sar rax, 3
lea rdx, [rax*8]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140ab0d8e
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140ab1045
mov rcx, rsi
call fcn.140cd8948
nop
test r15, r15
je 0x140ab0e14
mov rbx, r15
cmp r15, rdi
je 0x140ab0dd8
mov rdx, qword [rbx]
test rdx, rdx
je 0x140ab0dcf
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140ab0dc6
cmp dword [rcx], 0xffffffff
je 0x140ab0dc6
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
add rbx, 0x10
cmp rbx, rdi
jne 0x140ab0da4
mov rcx, qword [rsp + 0x30]
sub rcx, r15
and rcx, 0xfffffffffffffff0
mov rax, r15
cmp rcx, 0x1000
jb 0x140ab0e09
add rcx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140ab103f
mov rdx, rcx
mov rcx, r15
call fcn.140cd8948
mov eax, r12d
jmp 0x140ab1015
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, 0xffffffff
jmp 0x140ab1015
xor r12d, r12d
mov ebx, r12d
mov r9d, r12d
mov dword [rbp - 0x20], r12d
mov r8d, r12d
mov dword [rbp + 0x1f0], r12d
mov edx, r12d
mov dword [rbp + 0x400], edx
mov r14d, 0x300
test edi, edi
je 0x140ab0f57
mov r10, r15
nop dword [rax]
nop word [rax + rax]
mov r11, qword [r10]
mov rax, r11
cmp r11, rbx
cmovbe rax, rbx
mov rbx, rax
test word [r10 + 8], r14w
je 0x140ab0eb9
mov ecx, r12d
test r9d, r9d
je 0x140ab0e9e
nop
cmp qword [rbp + rcx*8 - 0x18], r11
je 0x140ab0e9e
inc ecx
cmp ecx, r9d
jb 0x140ab0e90
cmp ecx, r9d
jne 0x140ab0eb9
cmp r9d, 0x40
jae 0x140ab0eb9
mov qword [rbp + rcx*8 - 0x18], r11
mov r9d, dword [rbp - 0x20]
inc r9d
mov dword [rbp - 0x20], r9d
test byte [r10 + 8], 0x10
je 0x140ab0f05
mov ecx, r12d
test r8d, r8d
je 0x140ab0ee1
nop dword [rax + rax]
cmp qword [rbp + rcx*8 + 0x1f8], r11
je 0x140ab0ee1
inc ecx
cmp ecx, r8d
jb 0x140ab0ed0
cmp ecx, r8d
jne 0x140ab0f05
cmp r8d, 0x40
jae 0x140ab0f05
mov qword [rbp + rcx*8 + 0x1f8], r11
mov r8d, dword [rbp + 0x1f0]
inc r8d
mov dword [rbp + 0x1f0], r8d
test byte [r10 + 8], 1
je 0x140ab0f45
mov ecx, r12d
test edx, edx
je 0x140ab0f23
cmp qword [rbp + rcx*8 + 0x408], r11
je 0x140ab0f23
inc ecx
cmp ecx, edx
jb 0x140ab0f13
cmp ecx, edx
jne 0x140ab0f45
cmp edx, 0x40
jae 0x140ab0f45
mov rax, qword [r10]
mov qword [rbp + rcx*8 + 0x408], rax
mov edx, dword [rbp + 0x400]
inc edx
mov dword [rbp + 0x400], edx
add r10, 0x10
sub rdi, 1
jne 0x140ab0e70
mov edi, dword [rsp + 0x38]
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x30], edx
imul eax, edx, 0x3e8
mov ecx, esi
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x30]
cmp esi, 0xffffffff
cmove rax, r12
lea ecx, [rbx + 1]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x400]
lea r8, [rbp + 0x1f0]
lea rdx, [rbp - 0x20]
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
test eax, eax
js 0x140ab1013
test edi, edi
je 0x140ab1013
lea rbx, [r15 + 0xa]
nop word [rax + rax]
mov word [rbx], r12w
lea rdx, [rbp - 0x20]
mov rcx, qword [rbx - 0xa]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140ab0fd9
or word [rbx], r14w
lea rdx, [rbp + 0x1f0]
mov rcx, qword [rbx - 0xa]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140ab0ff1
or word [rbx], 0x10
lea rdx, [rbp + 0x400]
mov rcx, qword [rbx - 0xa]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140ab1009
or word [rbx], 1
add rbx, 0x10
sub rdi, 1
jne 0x140ab0fc0
mov eax, esi
mov rcx, qword [rbp + 0x610]
xor rcx, rsp
call fcn.140cd9320
mov rbx, qword [rsp + 0x768]
add rsp, 0x720
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140cf5acc
nop
call fcn.140cf5acc
nop
int3