Function at 0x14007d440
Capabilities:
Get socket status

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f8]
sub rsp, 0x6c0
movaps xmmword [rax - 0x48], xmm6
mov rax, qword [0x1402b1510]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
xor r9d, r9d
mov ebx, edx
mov qword [rbp + 0x590], r9
mov edi, r8d
mov dword [rbp + 0x598], r9d
mov r15, rcx
mov r12d, r9d
test rcx, rcx
je 0x14007d4b0
mov eax, r9d
test edx, edx
je 0x14007d4b0
lea edx, [r9 + 0x10]
cmp qword [rcx], 0xffffffffffffffff
jne 0x14007d4e6
inc eax
add rcx, rdx
cmp eax, ebx
jb 0x14007d4a1
mov ecx, edi
call fcn.14007db88
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.1401d08c0
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test edi, edi
jle 0x14007d4ff
lea rcx, [rsp + 0x30]
mov r12d, edi
call fcn.140080634
xor r9d, r9d
movups xmm6, xmmword [rax]
jmp 0x14007d506
movaps xmm6, xmmword [rbp + 0x590]
mov r10d, r9d
mov dword [rsp + 0x60], r9d
mov r11d, r9d
mov dword [rbp + 0x170], r9d
mov r8d, r9d
mov dword [rbp + 0x380], r9d
or r14, 0xffffffffffffffff
mov rsi, r15
mov r13, rbx
mov ecx, 0x300
mov rdx, qword [rsi]
mov word [rsi + 0xa], r9w
cmp rdx, 0xffffffffffffffff
je 0x14007d63c
movzx r9d, word [rsi + 8]
mov eax, 0x710
test ax, r9w
je 0x14007d62f
cmp rdx, r14
mov rax, rdx
cmovbe rax, r14
mov r14, rax
test cx, r9w
je 0x14007d59c
xor ecx, ecx
test r10d, r10d
je 0x14007d57f
cmp qword [rsp + rcx*8 + 0x68], rdx
je 0x14007d57f
inc ecx
cmp ecx, r10d
jb 0x14007d571
cmp ecx, r10d
jne 0x14007d59c
cmp r10d, 0x40
jae 0x14007d59c
mov qword [rsp + rcx*8 + 0x68], rdx
mov r10d, dword [rsp + 0x60]
inc r10d
mov dword [rsp + 0x60], r10d
test r9b, 0x10
je 0x14007d5de
xor ecx, ecx
test r11d, r11d
je 0x14007d5ba
cmp qword [rbp + rcx*8 + 0x178], rdx
je 0x14007d5ba
inc ecx
cmp ecx, r11d
jb 0x14007d5a9
cmp ecx, r11d
jne 0x14007d5de
cmp r11d, 0x40
jae 0x14007d5de
mov qword [rbp + rcx*8 + 0x178], rdx
mov r11d, dword [rbp + 0x170]
inc r11d
mov dword [rbp + 0x170], r11d
mov eax, 0x600
test ax, r9w
je 0x14007d634
xor r9d, r9d
mov ecx, r9d
test r8d, r8d
je 0x14007d607
mov eax, ecx
cmp qword [rbp + rax*8 + 0x388], rdx
je 0x14007d607
inc ecx
cmp ecx, r8d
jb 0x14007d5f4
cmp ecx, r8d
jne 0x14007d637
cmp r8d, 0x40
jae 0x14007d637
mov eax, ecx
mov qword [rbp + rax*8 + 0x388], rdx
mov r8d, dword [rbp + 0x380]
inc r8d
mov dword [rbp + 0x380], r8d
jmp 0x14007d637
xor r9d, r9d
jmp 0x14007d63c
xor r9d, r9d
mov ecx, 0x300
add rsi, 0x10
sub rbx, 1
jne 0x14007d531
test r10d, r10d
jne 0x14007d65d
test r11d, r11d
jne 0x14007d65d
test r8d, r8d
je 0x14007d4b0
test edi, edi
lea rbx, [rbp + 0x590]
cmovs rbx, r9
test edi, edi
jle 0x14007d69f
mov eax, 0x10624dd3
mov ecx, r12d
imul r12d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3e8
mov dword [rbp + 0x590], edx
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rbp + 0x594], eax
jmp 0x14007d6a9
jne 0x14007d6a9
and qword [rbp + 0x590], 0
neg r8d
mov qword [rsp + 0x20], rbx
lea rax, [rbp + 0x380]
sbb r9, r9
lea ecx, [r14 + 1]
and r9, rax
lea rax, [rbp + 0x170]
neg r11d
sbb r8, r8
and r8, rax
lea rax, [rsp + 0x60]
neg r10d
sbb rdx, rdx
and rdx, rax
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x14007d757
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor r9d, r9d
test eax, eax
je 0x14007d708
cmp dword [0x1402b2bec], r9d
jne 0x14007d75d
cmp eax, 0x2714
jne 0x14007d75d
test edi, edi
jle 0x14007d73f
lea rcx, [rsp + 0x50]
movdqa xmmword [rsp + 0x40], xmm6
call fcn.140080634
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x30], xmm0
call fcn.14008070c
mov r12d, edi
sub r12d, eax
test r12d, r12d
jle 0x14007d767
mov r10d, dword [rsp + 0x60]
mov r11d, dword [rbp + 0x170]
mov r8d, dword [rbp + 0x380]
jmp 0x14007d66a
xor esi, esi
test eax, eax
jns 0x14007d765
or eax, 0xffffffff
jmp 0x14007d4b7
jne 0x14007d76e
xor eax, eax
jmp 0x14007d4b7
mov edi, esi
lea rbx, [r15 + 0xa]
mov eax, reloc.WS2_32.dll_recv
mov r14d, 0x300
mov rcx, qword [rbx - 0xa]
mov word [rbx], si
cmp rcx, 0xffffffffffffffff
je 0x14007d7e5
lea rdx, [rsp + 0x60]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14007d79e
or word [rbx], r14w
mov rcx, qword [rbx - 0xa]
lea rdx, [rbp + 0x170]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14007d7ba
mov eax, reloc.WS2_32.dll_recv
or word [rbx], ax
mov rcx, qword [rbx - 0xa]
lea rdx, [rbp + 0x380]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14007d7d6
mov eax, 0x400
or word [rbx], ax
movzx eax, word [rbx]
test ax, ax
mov eax, reloc.WS2_32.dll_recv
je 0x14007d7e5
inc edi
add rbx, rax
sub r13, 1
jne 0x14007d77f
mov eax, edi
jmp 0x14007d4b7