Function at 0x140017520
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1401a8f70]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14d, dword [0x1401f4768]
movsxd rax, dword [0x1401f471c]
xor edx, edx
cmp eax, 0x7b
ja 0x14001756d
lea rdx, [0x1401ea870]
mov rdx, qword [rdx + rax*8]
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
mov esi, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x18], rsi
mov byte [rbp - 0x30], 0
test rdx, rdx
jne 0x1400175b3
mov qword [rbp - 0x20], 0xa
movsd xmm0, qword [str.Select_Key]
movsd qword [rbp - 0x30], xmm0
movzx eax, word [0x14013d1e8]
mov word [rbp - 0x28], ax
mov byte [rbp - 0x26], dl
jmp 0x1400175d7
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x1400175c0
lea rcx, [rbp - 0x30]
call fcn.140024a30
mov rsi, qword [rbp - 0x18]
cmp r14d, 1
jne 0x14001770b
cmp rsi, 0xd
jb 0x140017618
lea rbx, [rbp - 0x30]
cmp rsi, 0x10
cmovae rbx, qword [rbp - 0x30]
mov qword [rbp - 0x20], reloc.WS2_32.dll_listen
lea r8d, [r14 + 0xc]
lea rdx, str.Press_any_key
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0xd], 0
jmp 0x14001770b
mov rcx, rsi
shr rcx, 1
movabs rdi, 0x7fffffffffffffff
mov rax, rdi
sub rax, rcx
cmp rsi, rax
jbe 0x140017660
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.14010c2e4
test rax, rax
je 0x1400176fb
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14001769d
lea rax, [rcx + rsi]
mov edi, reloc.WS2_32.dll_ntohs
cmp rax, rdi
cmova rdi, rax
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x14001768c
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140017907
jmp 0x140017641
test rcx, rcx
je 0x14001769b
call fcn.14010c2e4
mov rbx, rax
jmp 0x14001769d
xor ebx, ebx
mov qword [rbp - 0x20], reloc.WS2_32.dll_listen
mov qword [rbp - 0x18], rdi
movsd xmm0, qword [str.Press_any_key]
movsd qword [rbx], xmm0
mov eax, dword [0x14013d1f8]
mov dword [rbx + 8], eax
movzx eax, byte [0x14013d1fc]
mov byte [rbx + 0xc], al
mov byte [rbx + 0xd], 0
cmp rsi, 0x10
jb 0x140017707
lea rdx, [rsi + 1]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017702
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017702
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010bf20
mov qword [rbp - 0x30], rbx
mov rbx, qword [0x1401f4838]
mov dword [rbp - 0x50], reloc.WS2_32.dll_setsockopt
movups xmm0, xmmword [rbx + 0x1774]
movups xmmword [rbp - 0x4c], xmm0
lea rcx, [rbx + 0x1d38]
lea rdx, [rbp - 0x50]
call fcn.14003c380
movaps xmm0, xmmword [0x140169920]
movups xmmword [rbx + 0x1774], xmm0
mov rbx, qword [0x1401f4838]
mov dword [rbp - 0x50], reloc.WS2_32.dll_socket
movups xmm0, xmmword [rbx + 0x1794]
movups xmmword [rbp - 0x4c], xmm0
lea rcx, [rbx + 0x1d38]
lea rdx, [rbp - 0x50]
call fcn.14003c380
movaps xmm0, xmmword [0x140169960]
movups xmmword [rbx + 0x1794], xmm0
mov rbx, qword [0x1401f4838]
mov dword [rbp - 0x50], reloc.WLDAP32.dll_Ordinal_22
movups xmm0, xmmword [rbx + 0x1784]
movups xmmword [rbp - 0x4c], xmm0
lea rcx, [rbx + 0x1d38]
lea rdx, [rbp - 0x50]
call fcn.14003c380
movaps xmm0, xmmword [0x140169960]
movups xmmword [rbx + 0x1784], xmm0
mov dword [rbp - 0x38], 0x42fa0000
mov dword [rbp - 0x34], 0x41c80000
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rcx, qword [rbp - 0x30]
lea rdx, [rbp - 0x38]
call fcn.140052350
test al, al
je 0x140017800
test r14d, r14d
jne 0x140017800
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8, [0x1400174d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r8, qword [0x1401f4838]
movsxd rax, dword [r8 + 0x1d38]
lea rdx, [rax + rax*4]
mov rcx, qword [r8 + 0x1d40]
movsxd rax, dword [rcx + rdx*4 - 0x14]
add rax, rax
movups xmm0, xmmword [rcx + rdx*4 - 0x10]
movups xmmword [r8 + rax*8 + 0x1624], xmm0
movsxd rcx, dword [r8 + 0x1d38]
lea eax, [rcx - 1]
mov dword [r8 + 0x1d38], eax
lea rax, [rcx - 2]
lea rdx, [rax + rax*4]
mov rcx, qword [r8 + 0x1d40]
movsxd rax, dword [rcx + rdx*4]
add rax, rax
movups xmm0, xmmword [rcx + rdx*4 + 4]
movups xmmword [r8 + rax*8 + 0x1624], xmm0
movsxd rcx, dword [r8 + 0x1d38]
lea eax, [rcx - 1]
mov dword [r8 + 0x1d38], eax
lea rax, [rcx - 2]
lea rdx, [rax + rax*4]
mov rcx, qword [r8 + 0x1d40]
movsxd rax, dword [rcx + rdx*4]
add rax, rax
movups xmm0, xmmword [rcx + rdx*4 + 4]
movups xmmword [r8 + rax*8 + 0x1624], xmm0
dec dword [r8 + 0x1d38]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x1400178de
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400178d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400178d9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010bf20
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14010bf00
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14000f280
nop
int3