Function at 0x18013ff60
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 - 0x610]
sub rsp, 0x710
mov rax, qword [0x180594240]
xor rax, rsp
mov qword [rbp + 0x600], rax
mov rdi, r9
mov qword [rsp + 0x50], r9
mov esi, r8d
mov dword [rsp + 0x30], r8d
mov r13d, edx
mov r14, rcx
mov qword [rsp + 0x78], rcx
test r9, r9
je 0x1801403b8
mov rsi, qword [r9]
mov qword [rsp + 0x58], rsi
test rsi, rsi
je 0x1801403b5
mov qword [rsp + 0x38], rsi
xor r15d, r15d
mov qword [r9], r15
cmp r13d, 0x3f
jae 0x1801403a0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], r15
movdqu xmmword [rbp - 0x80], xmm1
mov qword [rbp - 0x70], r15
lea r8, [rsp + 0x38]
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.18010b170
mov r12d, r15d
mov rbx, qword [rbp - 0x78]
test r13d, r13d
je 0x18014018e
mov edi, r12d
shl rdi, 4
add rdi, r14
mov word [rdi + 0xa], r15w
mov r14, rdi
mov qword [rsp + 0x48], rdi
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x68]
cmp rdx, qword [rsp + 0x70]
je 0x180140051
mov qword [rdx], rax
mov rsi, r15
mov qword [rdx + 8], rdi
add qword [rsp + 0x68], 0x10
jmp 0x18014006a
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.180140690
mov r14, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
test rsi, rsi
je 0x180140092
test r14, r14
je 0x180140089
mov rcx, qword [r14]
cmp rcx, 0xffffffffffffffff
je 0x180140089
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
mov rax, qword [rsp + 0x68]
mov rsi, qword [rax - 0x10]
mov qword [rsp + 0x38], rsi
test rsi, rsi
je 0x180140165
cmp rbx, qword [rbp - 0x70]
je 0x1801400bc
mov qword [rbx], rsi
add rbx, 8
mov qword [rbp - 0x78], rbx
jmp 0x1801400d1
lea r8, [rsp + 0x38]
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.18010b170
mov rbx, qword [rbp - 0x78]
movzx eax, word [rdi + 8]
mov ecx, 0x300
and ax, cx
neg ax
sbb ecx, ecx
and ecx, 9
mov r8d, ecx
or r8d, 0x12
test byte [rdi + 8], 0x10
cmove r8d, ecx
mov rdx, rsi
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
je 0x180140153
mov word [rdi + 0xa], 4
mov rdi, qword [rsp + 0x68]
mov rdx, qword [rdi - 0x10]
test rdx, rdx
je 0x180140142
mov rax, qword [rdi - 8]
test rax, rax
je 0x180140133
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x180140133
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov rcx, qword [rdi - 0x10]
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
mov rdi, qword [rsp + 0x68]
sub rdi, 0x10
mov qword [rsp + 0x68], rdi
sub rbx, 8
mov qword [rbp - 0x78], rbx
inc r12d
cmp r12d, r13d
jae 0x180140184
mov r14, qword [rsp + 0x78]
jmp 0x180140011
mov ecx, 0x2747
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r13, qword [rbp - 0x80]
mov r15d, 0xffffffff
mov rbx, qword [rsp + 0x60]
jmp 0x1801402cc
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov r9d, 0xffffffff
cmp dword [rsp + 0x30], 0xffffffff
cmovne r9d, dword [rsp + 0x30]
mov r13, qword [rbp - 0x80]
sub rbx, r13
sar rbx, 3
mov dword [rsp + 0x20], r15d
xor r8d, r8d
mov rdx, r13
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0xffffffff
jne 0x1801401d2
mov r15d, 0xffffffff
mov rbx, qword [rsp + 0x60]
jmp 0x1801402cc
cmp eax, 0x102
je 0x1801401e6
test eax, eax
jne 0x1801401f0
mov qword [rdi], rsi
mov r15d, 1
mov rbx, qword [rsp + 0x60]
jmp 0x1801402cc
lea r14d, [rax - 1]
mov r12d, r15d
movsxd rsi, r14d
mov rax, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
sub rax, rbx
sar rax, 4
cmp rsi, rax
jae 0x1801402c9
shl rsi, 4
nop dword [rax + rax]
mov rdi, qword [rsi + rbx + 8]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x68], xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x40], eax
lea r8, [rbp - 0x68]
mov rdx, qword [rsi + rbx]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
je 0x180140256
mov word [rdi + 0xa], 1
jmp 0x1801402a1
mov eax, dword [rbp - 0x68]
test eax, eax
je 0x1801402a1
test al, 0xd
je 0x18014026d
mov eax, 0x300
or word [rdi + 0xa], ax
mov eax, dword [rbp - 0x68]
test al, 0x12
je 0x180140276
or word [rdi + 0xa], 0x10
mov rax, r15
nop dword [rax]
cmp dword [rbp + rax*4 - 0x64], 0
jne 0x180140292
inc rax
cmp rax, 0xa
jl 0x180140280
jmp 0x180140297
or word [rdi + 0xa], 1
cmp word [rdi + 0xa], 0
je 0x1801402a1
inc r12d
inc r14d
add rsi, 0x10
movsxd rcx, r14d
mov rax, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
sub rax, rbx
sar rax, 4
cmp rcx, rax
jb 0x180140220
mov r13, qword [rbp - 0x80]
mov r15d, r12d
test r13, r13
je 0x180140316
mov rax, qword [rbp - 0x70]
sub rax, r13
sar rax, 3
lea rdx, [rax*8]
mov rax, r13
cmp rdx, 0x1000
jb 0x180140309
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801405c8
mov rcx, r13
call fcn.1803fd0fc
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x180140398
mov rdi, qword [rsp + 0x68]
cmp rbx, rdi
je 0x18014035f
mov rdx, qword [rbx]
test rdx, rdx
je 0x180140351
mov rax, qword [rbx + 8]
test rax, rax
je 0x180140348
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x180140348
xor r8d, r8d
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 0x180140325
mov rbx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
sub rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rbx
cmp rdx, 0x1000
jb 0x180140390
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801405c2
mov rcx, rbx
call fcn.1803fd0fc
mov eax, r15d
jmp 0x180140598
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, 0xffffffff
jmp 0x180140598
mov esi, r8d
xor r15d, r15d
mov ebx, r15d
mov r9d, r15d
mov dword [rbp - 0x30], r15d
mov r8d, r15d
mov dword [rbp + 0x1e0], r15d
mov edx, r15d
mov dword [rbp + 0x3f0], edx
mov r14d, 0x300
mov r12, rcx
test r13d, r13d
je 0x1801404d0
mov r10, rcx
mov rdi, r13
mov r11, qword [r10]
mov rax, r11
cmp r11, rbx
cmovbe rax, rbx
mov rbx, rax
test word [r10 + 8], r14w
je 0x180140439
mov ecx, r15d
test r9d, r9d
je 0x18014041e
nop
cmp qword [rbp + rcx*8 - 0x28], r11
je 0x18014041e
inc ecx
cmp ecx, r9d
jb 0x180140410
cmp ecx, r9d
jne 0x180140439
cmp r9d, 0x40
jae 0x180140439
mov qword [rbp + rcx*8 - 0x28], r11
mov r9d, dword [rbp - 0x30]
inc r9d
mov dword [rbp - 0x30], r9d
test byte [r10 + 8], 0x10
je 0x180140485
mov ecx, r15d
test r8d, r8d
je 0x180140461
nop dword [rax + rax]
cmp qword [rbp + rcx*8 + 0x1e8], r11
je 0x180140461
inc ecx
cmp ecx, r8d
jb 0x180140450
cmp ecx, r8d
jne 0x180140485
cmp r8d, 0x40
jae 0x180140485
mov qword [rbp + rcx*8 + 0x1e8], r11
mov r8d, dword [rbp + 0x1e0]
inc r8d
mov dword [rbp + 0x1e0], r8d
test byte [r10 + 8], 1
je 0x1801404c2
mov ecx, r15d
test edx, edx
je 0x1801404a3
cmp qword [rbp + rcx*8 + 0x3f8], r11
je 0x1801404a3
inc ecx
cmp ecx, edx
jb 0x180140493
cmp ecx, edx
jne 0x1801404c2
cmp edx, 0x40
jae 0x1801404c2
mov qword [rbp + rcx*8 + 0x3f8], r11
mov edx, dword [rbp + 0x3f0]
inc edx
mov dword [rbp + 0x3f0], edx
add r10, 0x10
sub rdi, 1
jne 0x1801403f0
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x78], edx
imul eax, edx, 0x3e8
mov ecx, esi
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x7c], eax
lea rax, [rsp + 0x78]
cmp esi, 0xffffffff
cmove rax, r15
lea ecx, [rbx + 1]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x3f0]
lea r8, [rbp + 0x1e0]
lea rdx, [rbp - 0x30]
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
test eax, eax
js 0x180140596
test r13d, r13d
je 0x180140596
lea rbx, [r12 + 0xa]
mov rdi, r13
nop dword [rax + rax]
mov word [rbx], r15w
lea rdx, [rbp - 0x30]
mov rcx, qword [rbx - 0xa]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x18014055a
or word [rbx], r14w
lea rdx, [rbp + 0x1e0]
mov rcx, qword [rbx - 0xa]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x180140573
or word [rbx], 0x10
lea rdx, [rbp + 0x3f0]
mov rcx, qword [rbx - 0xa]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x18014058c
or word [rbx], 1
add rbx, 0x10
sub rdi, 1
jne 0x180140540
mov eax, esi
mov rcx, qword [rbp + 0x600]
xor rcx, rsp
call fcn.1803fd0a0
mov rbx, qword [rsp + 0x758]
add rsp, 0x710
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180403864
nop
call fcn.180403864
nop
int3