Function at 0x140004c90
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x470
mov rax, qword [0x14002d030]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov ebx, dword [rcx]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov r15, r8
mov dword [rsp + 0x250], edi
movzx r14d, dl
mov rsi, rcx
mov r9d, edi
lea r10d, [rdi - 1]
test ebx, ebx
jle 0x140004d53
mov r8, qword [rcx + 0x10]
add r8, 0x20
mov r11, r8
mov eax, dword [r8 - 0x20]
dec eax
cmp eax, 1
ja 0x140004d45
mov eax, edi
test r9d, r9d
je 0x140004d13
movsxd rdx, dword [r11]
nop word [rax + rax]
mov ecx, eax
cmp qword [rsp + rcx*8 + 0x258], rdx
je 0x140004d13
inc eax
cmp eax, r9d
jb 0x140004d00
cmp eax, r9d
jne 0x140004d3e
cmp r9d, 0x40
jae 0x140004d3e
movsxd rdx, dword [r8]
mov ecx, eax
mov qword [rsp + rcx*8 + 0x258], rdx
mov r9d, dword [rsp + 0x250]
inc r9d
mov dword [rsp + 0x250], r9d
cmp dword [r8], r10d
cmovg r10d, dword [r8]
add r11, 0x40
add r8, 0x40
sub rbx, 1
jne 0x140004ce5
lea ebp, [r10 + 1]
test r14b, r14b
je 0x140004e70
lea rcx, [rsp + 0x40]
mov edx, 4
lea rax, [rsp + 0x250]
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, 1
jne 0x140004d72
mov rax, qword [rax]
mov qword [rcx], rax
nop dword [rax + rax]
lea rcx, [rsp + 0x250]
mov edx, 4
lea rax, [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, 1
jne 0x140004de2
mov rax, qword [rax]
lea rdx, [rsp + 0x250]
mov qword [rcx], rax
xor r9d, r9d
mov ecx, ebp
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140004e96
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x140004dd0
jmp 0x140004e96
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x250]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
je 0x140004efe
test ebx, ebx
jns 0x140004ebe
cmp dword [0x14002da14], 4
jg 0x140004eb4
lea rdx, str.select___failed:__m
mov ecx, 4
call fcn.1400166d0
mov ecx, 1
call fcn.1400133f0
cmp dword [rsi], edi
jle 0x140004efe
mov rbx, rdi
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
mov eax, dword [rcx + rbx]
dec eax
cmp eax, 1
ja 0x140004ef4
movsxd rcx, dword [rcx + rbx + 0x20]
lea rdx, [rsp + 0x250]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x140004f27
inc edi
add rbx, 0x40
cmp edi, dword [rsi]
jl 0x140004ed0
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14001e2e0
mov rbx, qword [rsp + 0x4a8]
add rsp, 0x470
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rsi + 0x10]
movsxd rcx, edi
shl rcx, 6
mov ecx, dword [rcx + rax + 0x20]
call fcn.1400051a0
mov dword [r15], edi
jmp 0x140004f00