Function at 0x18004b069
Capabilities:
Get socket status

Disassembly:
test rcx, rcx
je 0x18004b423
mov r11, rsp
push rbx
sub rsp, 0x6a0
mov rax, qword [0x18014a010]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov qword [r11 + 0x10], rbp
mov rbx, rcx
mov qword [r11 + 0x18], rsi
mov qword [r11 - 0x10], rdi
mov qword [r11 - 0x18], r12
mov r12d, 1
mov qword [r11 - 0x20], r14
lea r14, [rcx + 0x67c]
mov qword [r11 - 0x28], r15
xor r15d, r15d
test r14, r14
je 0x18004b0bf
xor eax, eax
lock cmpxchg dword [r14], r12d
jne 0x18004b0b6
cmp qword [rbx + 0x10], r15
jne 0x18004b0d7
cmp byte [rbx + 0x679], r15b
je 0x18004b0e2
cmp dword [rbx + 0x660], r15d
je 0x18004b0e2
cmp dword [rbx], r15d
jne 0x18004b0e2
movzx ecx, r12b
jmp 0x18004b0e4
xor cl, cl
test r14, r14
je 0x18004b0ef
mov eax, r15d
xchg dword [r14], eax
test cl, cl
je 0x18004b3d0
lea rdx, [rsp + 0x30]
mov dword [rbx + 0x65c], 0xffffffff
mov rcx, rbx
call fcn.18004ad40
mov edi, dword [rsp + 0x30]
mov qword [rbx + 0x668], r15
test edi, edi
jle 0x18004b137
test eax, eax
jne 0x18004b137
mov rax, qword [rbx + 8]
test rax, rax
je 0x18004b137
mov rcx, rbx
call rax
test eax, eax
jne 0x18004b3d0
mov r10d, dword [rbx + 0x30]
test r10d, r10d
je 0x18004b3c3
cmp qword [rbx + 0x18], r15
jne 0x18004b154
cmp qword [rbx + 0x20], r15
je 0x18004b3c3
mov qword [rsp + 0x38], r15
test edi, edi
jle 0x18004b184
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3e8
mov dword [rsp + 0x38], edx
sub edi, eax
imul eax, edi, 0x3e8
mov dword [rsp + 0x3c], eax
lea rax, [rbx + 0x38]
mov edx, 4
lea rcx, [rsp + 0x40]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, r12
jne 0x18004b192
mov rax, qword [rax]
mov edx, 4
mov qword [rcx], rax
lea rax, [rbx + 0x240]
lea rcx, [rsp + 0x460]
nop
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, r12
jne 0x18004b200
mov rax, qword [rax]
lea rdx, [rsp + 0x250]
mov qword [rcx], rax
mov r8d, 4
lea rax, [rbx + 0x448]
nop dword [rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub r8, r12
jne 0x18004b270
mov rax, qword [rax]
lea r9, [rsp + 0x250]
mov qword [rdx], rax
lea r8, [rsp + 0x460]
lea rax, [rsp + 0x38]
mov ecx, r10d
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
cmp eax, r12d
jl 0x18004b0b1
mov edi, r15d
cmp dword [rbx + 0x30], r15d
jle 0x18004b0b1
mov rsi, r15
nop dword [rax]
cmp qword [rbx + 0x18], r15
je 0x18004b36a
movsxd rbp, edi
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x18004b340
lea rdx, [rsp + 0x250]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x18004b36a
mov rax, qword [rbx + 0x650]
mov dword [rbx + 0x65c], edi
test rax, rax
je 0x18004b358
mov rcx, qword [rsi + rax]
jmp 0x18004b35b
mov rcx, r15
mov qword [rbx + 0x668], rcx
mov edx, edi
mov rcx, rbx
call qword [rbx + 0x18]
cmp qword [rbx + 0x20], r15
je 0x18004b3af
movsxd rcx, edi
lea rdx, [rsp + 0x460]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x18004b3af
mov rax, qword [rbx + 0x650]
mov dword [rbx + 0x65c], edi
test rax, rax
je 0x18004b39d
mov rcx, qword [rsi + rax]
jmp 0x18004b3a0
mov rcx, r15
mov qword [rbx + 0x668], rcx
mov edx, edi
mov rcx, rbx
call qword [rbx + 0x20]
inc edi
add rsi, 8
cmp edi, dword [rbx + 0x30]
jl 0x18004b310
jmp 0x18004b0b1
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18004b0b1
mov rcx, rbx
call fcn.18004afa0
mov r15, qword [rsp + 0x680]
mov r14, qword [rsp + 0x688]
mov rdi, qword [rsp + 0x698]
mov rsi, qword [rsp + 0x6c0]
mov rbp, qword [rsp + 0x6b8]
mov dword [rbx], r12d
mov r12, qword [rsp + 0x690]
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.180096010
add rsp, 0x6a0
pop rbx
ret