Function at 0x18004f300
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rsi
push r13
push r14
push r15
lea rbp, [rsp - 0x5d8]
sub rsp, 0x6d8
mov rax, qword [0x1800ac030]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
xor esi, esi
mov dword [rsp + 0x30], r8d
mov ebx, edx
mov r15, rcx
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x48], esi
mov r14d, esi
test rcx, rcx
je 0x18004f360
mov edx, esi
test ebx, ebx
je 0x18004f360
mov rax, rcx
cmp qword [rax], 0xffffffffffffffff
jne 0x18004f36d
inc edx
add rax, 0x10
cmp edx, ebx
jb 0x18004f350
mov ecx, r8d
call fcn.18004ef40
jmp 0x18004f519
mov qword [rsp + 0x718], rdi
mov qword [rsp + 0x6d0], r12
movaps xmmword [rsp + 0x6c0], xmm6
test r8d, r8d
jle 0x18004f39c
lea rcx, [rsp + 0x50]
mov r14d, r8d
call fcn.18006f9c0
movups xmm6, xmmword [rax]
jmp 0x18004f3a1
movaps xmm6, xmmword [rsp + 0x40]
xor r13d, r13d
lea rdi, [r15 + 8]
mov r12, rbx
mov r10d, r13d
mov dword [rbp - 0x80], r13d
mov r11d, r13d
mov dword [rbp + 0x190], r13d
mov r8d, r13d
mov dword [rbp + 0x3a0], r13d
or rsi, 0xffffffffffffffff
nop word [rax + rax]
mov rdx, qword [rdi - 8]
mov word [rdi + 2], r13w
cmp rdx, 0xffffffffffffffff
je 0x18004f4d8
movzx r9d, word [rdi]
test r9b, 7
je 0x18004f4d8
cmp rdx, rsi
cmova rsi, rdx
test r9b, 1
je 0x18004f43c
mov ecx, r13d
mov rax, r13
test r10d, r10d
je 0x18004f421
nop dword [rax]
cmp qword [rbp + rax*8 - 0x78], rdx
je 0x18004f421
inc ecx
inc rax
cmp ecx, r10d
jb 0x18004f410
cmp ecx, r10d
jne 0x18004f43c
cmp r10d, 0x40
jae 0x18004f43c
mov qword [rbp + rax*8 - 0x78], rdx
mov r10d, dword [rbp - 0x80]
inc r10d
mov dword [rbp - 0x80], r10d
test r9b, 4
je 0x18004f488
mov ecx, r13d
mov rax, r13
test r11d, r11d
je 0x18004f464
nop dword [rax]
cmp qword [rbp + rax*8 + 0x198], rdx
je 0x18004f464
inc ecx
inc rax
cmp ecx, r11d
jb 0x18004f450
cmp ecx, r11d
jne 0x18004f488
cmp r11d, 0x40
jae 0x18004f488
mov qword [rbp + rax*8 + 0x198], rdx
mov r11d, dword [rbp + 0x190]
inc r11d
mov dword [rbp + 0x190], r11d
test r9b, 2
je 0x18004f4d8
mov ecx, r13d
mov rax, r13
test r8d, r8d
je 0x18004f4b4
nop dword [rax]
cmp qword [rbp + rax*8 + 0x3a8], rdx
je 0x18004f4b4
inc ecx
inc rax
cmp ecx, r8d
jb 0x18004f4a0
cmp ecx, r8d
jne 0x18004f4d8
cmp r8d, 0x40
jae 0x18004f4d8
mov qword [rbp + rax*8 + 0x3a8], rdx
mov r8d, dword [rbp + 0x3a0]
inc r8d
mov dword [rbp + 0x3a0], r8d
add rdi, 0x10
dec rbx
jne 0x18004f3d0
mov r13d, dword [rsp + 0x30]
test r10d, r10d
jne 0x18004f539
test r11d, r11d
jne 0x18004f539
test r8d, r8d
jne 0x18004f539
mov ecx, r13d
call fcn.18004ef40
mov r12, qword [rsp + 0x6d0]
mov rdi, qword [rsp + 0x718]
movaps xmm6, xmmword [rsp + 0x6c0]
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.1800334b0
add rsp, 0x6d8
pop r15
pop r14
pop r13
pop rsi
pop rbx
pop rbp
ret
lea rdi, [rsp + 0x40]
test r13d, r13d
mov ecx, 0
cmovs rdi, rcx
nop word [rax + rax]
test r13d, r13d
jle 0x18004f582
mov eax, 0x10624dd3
imul r14d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r14d
mov dword [rsp + 0x40], edx
imul edx, edx, 0x3e8
sub eax, edx
imul eax, eax, 0x3e8
mov dword [rsp + 0x44], eax
jmp 0x18004f58d
jne 0x18004f58d
mov qword [rsp + 0x40], 0
test r8d, r8d
lea r9, [rbp + 0x3a0]
lea r8, [rbp + 0x190]
cmove r9, rcx
test r11d, r11d
lea rdx, [rbp - 0x80]
cmove r8, rcx
test r10d, r10d
mov qword [rsp + 0x20], rdi
cmove rdx, rcx
lea ecx, [rsi + 1]
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x18004f64e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x18004f5e5
cmp dword [0x1800affac], 0
jne 0x18004f652
cmp eax, 0x2714
jne 0x18004f652
test r13d, r13d
jg 0x18004f603
mov r10d, dword [rbp - 0x80]
mov r11d, dword [rbp + 0x190]
mov r8d, dword [rbp + 0x3a0]
xor ecx, ecx
jmp 0x18004f550
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 r14d, r13d
sub r14d, eax
test r14d, r14d
jle 0x18004f65c
mov r10d, dword [rbp - 0x80]
mov r11d, dword [rbp + 0x190]
mov r8d, dword [rbp + 0x3a0]
xor ecx, ecx
jmp 0x18004f550
test eax, eax
jns 0x18004f65a
or eax, 0xffffffff
jmp 0x18004f501
jne 0x18004f663
xor eax, eax
jmp 0x18004f501
xor esi, esi
lea rbx, [r15 + 0xa]
mov edi, esi
nop dword [rax + rax]
mov rcx, qword [rbx - 0xa]
mov word [rbx], si
cmp rcx, 0xffffffffffffffff
je 0x18004f6c5
lea rdx, [rbp - 0x80]
call fcn.180033490
test eax, eax
je 0x18004f68e
or word [rbx], 1
mov rcx, qword [rbx - 0xa]
lea rdx, [rbp + 0x190]
call fcn.180033490
test eax, eax
je 0x18004f6a6
or word [rbx], 4
mov rcx, qword [rbx - 0xa]
lea rdx, [rbp + 0x3a0]
call fcn.180033490
test eax, eax
je 0x18004f6be
or word [rbx], 2
cmp word [rbx], si
je 0x18004f6c5
inc edi
add rbx, 0x10
dec r12
jne 0x18004f670
mov eax, edi
jmp 0x18004f501