Function at 0x18004ef70
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x5e8]
sub rsp, 0x6e8
mov rax, qword [0x1800ac030]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
xor ebx, ebx
mov eax, 0x7fffffff
mov rdi, r9
cmp r9, rax
mov r12, r8
mov rsi, rdx
cmovge rdi, rax
mov r15, rcx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebx
mov r10d, ebx
mov dword [rsp + 0x30], ebx
cmp rcx, 0xffffffffffffffff
jne 0x18004efdf
cmp rdx, rcx
jne 0x18004efdf
cmp r8, rcx
jne 0x18004efdf
mov ecx, edi
call fcn.18004ef40
jmp 0x18004f2dd
mov qword [rsp + 0x6e0], r13
mov qword [rsp + 0x6d8], r14
movaps xmmword [rsp + 0x6c0], xmm6
test rdi, rdi
jle 0x18004f012
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x30], edi
call fcn.18006f9c0
mov r10d, edi
movups xmm6, xmmword [rax]
jmp 0x18004f017
movaps xmm6, xmmword [rsp + 0x40]
or r8, 0xffffffffffffffff
mov ecx, ebx
mov dword [rbp + 0x3a0], ebx
mov r9d, ebx
mov dword [rbp - 0x80], ebx
lea eax, [r8 + 2]
cmp r15, r8
je 0x18004f04e
mov qword [rbp - 0x78], r15
mov r9d, eax
mov dword [rbp - 0x80], eax
mov qword [rbp + 0x3a8], r15
mov ecx, eax
mov dword [rbp + 0x3a0], eax
mov r8, r15
cmp rsi, 0xffffffffffffffff
je 0x18004f0da
mov eax, ebx
test r9d, r9d
je 0x18004f073
lea rdx, [rbp - 0x78]
cmp qword [rdx], rsi
je 0x18004f073
inc eax
add rdx, 8
cmp eax, r9d
jb 0x18004f063
cmp eax, r9d
jne 0x18004f08e
cmp r9d, 0x40
jae 0x18004f08e
mov qword [rbp + rax*8 - 0x78], rsi
mov r9d, dword [rbp - 0x80]
inc r9d
mov dword [rbp - 0x80], r9d
mov eax, ebx
test ecx, ecx
je 0x18004f0af
lea rdx, [rbp + 0x3a8]
nop dword [rax + rax]
cmp qword [rdx], rsi
je 0x18004f0af
inc eax
add rdx, 8
cmp eax, ecx
jb 0x18004f0a0
cmp eax, ecx
jne 0x18004f0ce
cmp ecx, 0x40
jae 0x18004f0ce
mov qword [rbp + rax*8 + 0x3a8], rsi
mov ecx, dword [rbp + 0x3a0]
inc ecx
mov dword [rbp + 0x3a0], ecx
cmp rsi, r8
mov eax, 1
cmova r8, rsi
mov dword [rbp + 0x190], ebx
cmp r12, 0xffffffffffffffff
je 0x18004f12d
mov dword [rbp + 0x190], eax
mov qword [rbp + 0x198], r12
mov eax, ebx
test ecx, ecx
je 0x18004f10f
lea rdx, [rbp + 0x3a8]
cmp qword [rdx], r12
je 0x18004f10f
inc eax
add rdx, 8
cmp eax, ecx
jb 0x18004f100
cmp eax, ecx
jne 0x18004f126
cmp ecx, 0x40
jae 0x18004f126
mov qword [rbp + rax*8 + 0x3a8], r12
inc dword [rbp + 0x3a0]
cmp r12, r8
cmova r8, r12
lea r13, [rsp + 0x40]
test rdi, rdi
lea r14d, [r8 + 1]
cmovs r13, rbx
nop dword [rax]
test rdi, rdi
jle 0x18004f172
mov eax, 0x10624dd3
imul r10d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r10d
mov dword [rsp + 0x40], edx
imul edx, edx, 0x3e8
sub eax, edx
imul eax, eax, 0x3e8
mov dword [rsp + 0x44], eax
jmp 0x18004f179
jne 0x18004f179
mov qword [rsp + 0x40], rbx
cmp dword [rbp + 0x190], ebx
lea r8, [rbp + 0x190]
lea rdx, [rbp - 0x80]
cmove r8, rbx
test r9d, r9d
lea r9, [rbp + 0x3a0]
mov ecx, r14d
cmove rdx, rbx
mov qword [rsp + 0x20], r13
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x18004f21b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x18004f1c8
cmp dword [0x1800affac], ebx
jne 0x18004f21f
cmp eax, 0x2714
jne 0x18004f21f
test rdi, rdi
jg 0x18004f1db
mov r9d, dword [rbp - 0x80]
mov r10d, dword [rsp + 0x30]
jmp 0x18004f140
lea rcx, [rsp + 0x70]
movdqa xmmword [rsp + 0x60], xmm6
call fcn.18006f9c0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x50], xmm0
call fcn.18006fa50
mov r10d, edi
sub r10d, eax
mov dword [rsp + 0x30], r10d
test r10d, r10d
jle 0x18004f229
mov r9d, dword [rbp - 0x80]
jmp 0x18004f140
test eax, eax
jns 0x18004f227
or eax, 0xffffffff
jmp 0x18004f2c5
jne 0x18004f230
xor eax, eax
jmp 0x18004f2c5
cmp r15, 0xffffffffffffffff
je 0x18004f262
lea rdx, [rbp - 0x80]
mov rcx, r15
call fcn.180033490
lea rdx, [rbp + 0x3a0]
mov rcx, r15
test eax, eax
mov eax, 1
cmovne ebx, eax
call fcn.180033490
test eax, eax
je 0x18004f262
or ebx, 4
cmp rsi, 0xffffffffffffffff
je 0x18004f291
lea rdx, [rbp - 0x80]
mov rcx, rsi
call fcn.180033490
test eax, eax
je 0x18004f27b
or ebx, 8
lea rdx, [rbp + 0x3a0]
mov rcx, rsi
call fcn.180033490
test eax, eax
je 0x18004f291
or ebx, 4
cmp r12, 0xffffffffffffffff
je 0x18004f2c3
lea rdx, [rbp + 0x190]
mov rcx, r12
call fcn.180033490
test eax, eax
je 0x18004f2ad
or ebx, 2
lea rdx, [rbp + 0x3a0]
mov rcx, r12
call fcn.180033490
test eax, eax
je 0x18004f2c3
or ebx, 4
mov eax, ebx
mov r14, qword [rsp + 0x6d8]
mov r13, qword [rsp + 0x6e0]
movaps xmm6, xmmword [rsp + 0x6c0]
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.1800334b0
add rsp, 0x6e8
pop r15
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret