Function at 0x14004a9c0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa0
cmp word [r9 + 0xe], 3
mov rdi, r8
movaps xmmword [rsp + 0x90], xmm6
mov rsi, rdx
mov rbp, rcx
jne 0x14004ade6
lea rdx, str.message
mov rcx, r9
call fcn.140006090
mov ecx, 0x1000
mov r14, rax
test word [rax + 0xe], cx
jne 0x14004aa24
mov r14, qword [rax + 8]
movabs rcx, 0xffffffffffff
and r14, rcx
lea r15, [rbp + 0xc80]
mov rcx, qword [r15]
mov rbx, rcx
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x14004aa63
nop dword [rax + rax]
cmp qword [rax + 0x20], rsi
jge 0x14004aa4c
mov rax, qword [rax + 0x10]
jmp 0x14004aa52
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14004aa40
cmp rbx, rcx
je 0x14004aa63
cmp rsi, qword [rbx + 0x20]
jge 0x14004aa66
mov rbx, rcx
mov qword [rsp + 0xd0], r13
cmp rbx, rcx
je 0x14004ad33
xor edi, edi
xorps xmm6, xmm6
cmp byte [0x140096418], dil
jne 0x14004ac32
xor r9d, r9d
lea edx, [rdi + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov r15, rax
test rax, rax
je 0x14004b1fc
xor eax, eax
lock cmpxchg qword [0x140096420], r15
mov r12, rax
jne 0x14004ac16
mov ecx, 0x8003
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rcx, [fcn.140001190]
call fcn.14002dee4
lea rcx, [0x1400966e8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.140018b50
call fcn.14001ca60
call fcn.140035db8
lea rcx, [0x1400964e8]
mov dword [rax], 0x8000
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edx, [rdi + 1]
lea rcx, [0x14000dba0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x14004b211
xor r9d, r9d
lea edx, [rdi + 1]
xor ecx, ecx
mov r8d, 0x7fffffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov qword [0x140096730], rax
test rax, rax
jne 0x14004ab4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140018f20
test eax, eax
jne 0x14004b217
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rcx, str.CONOUT_
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140088d18], rax
test rax, rax
je 0x14004ab96
xor edx, edx
lea rcx, [0x1400134e0]
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
lea rcx, [0x1400964b8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14004abca
movsd xmm1, qword [0x14007dd10]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x40]
divsd xmm1, xmm0
jmp 0x14004abcd
xorps xmm1, xmm1
mov r9, qword [0x1400969c0]
movsd qword [0x140096408], xmm1
test r9, r9
je 0x14004ac04
lea rax, [0x14001c9c0]
mov qword [rsp + 0x78], rdi
lea r8, [rsp + 0x60]
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x70]
mov ecx, 2
call r9
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [0x140096418], 1
jmp 0x14004ac2b
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or edx, 0xffffffff
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea r15, [rbp + 0xc80]
movsd xmm0, qword [0x140096408]
ucomisd xmm0, xmm6
jp 0x14004ac42
je 0x14004ac9a
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14004ac9a
movsd xmm1, qword [0x14007dd50]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x48]
xor eax, eax
mulsd xmm0, qword [0x140096408]
mulsd xmm0, qword [0x14007dd40]
comisd xmm0, xmm1
jb 0x14004ac92
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14004ac92
movabs rcx, 0x8000000000000000
mov rax, rcx
cvttsd2si rdi, xmm0
add rdi, rax
sub rdi, qword [rbx + 0x48]
lea r8, [rbx + 0x28]
movabs rax, 0x431bde82d7b634db
mov r9, r14
mul rdi
shr rdx, 0x12
mov qword [rbx + 0x40], rdx
mov rdx, rbp
mov rcx, qword [rbp + 0xb90]
mov rax, qword [rcx]
call qword [rax + 0x20]
cmp byte [rbx + 0x19], 0
mov rax, rbx
jne 0x14004ad1b
mov rcx, qword [rbx + 0x10]
cmp byte [rcx + 0x19], 0
jne 0x14004acfe
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
jne 0x14004ad1b
nop word [rax + rax]
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x14004acf0
jmp 0x14004ad1b
mov rdx, qword [rbx + 8]
cmp byte [rdx + 0x19], 0
jne 0x14004ad1b
cmp rax, qword [rdx + 0x10]
jne 0x14004ad1b
mov rax, rdx
mov rdx, qword [rdx + 8]
cmp byte [rdx + 0x19], 0
je 0x14004ad08
mov rdx, rbx
mov rcx, r15
call fcn.140005bd0
mov edx, 0x50
mov rcx, rax
call fcn.140028e0c
cmp rsi, 1
je 0x14004ad89
test r14, r14
je 0x14004adbd
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Unauthenticated
mov rcx, r14
call fcn.1400321dc
test eax, eax
je 0x14004ad89
mov r8d, shutdown
lea rdx, str.your_IP_is_banned
mov rcx, r14
call fcn.1400321dc
test eax, eax
je 0x14004ad89
mov r8d, 0x1b
lea rdx, str.IP_Address_currently_banned
mov rcx, r14
call fcn.1400321dc
test eax, eax
jne 0x14004adbd
test dword [rbp + 0xc78], 0xfffffffb
je 0x14004adbd
mov rcx, qword [rbp + 0xdc0]
test rcx, rcx
je 0x14004adbd
mov dword [rbp + 0xc78], 4
test byte [rcx + 0x58], 3
jne 0x14004adbd
lea rdx, [0x14004a7d0]
call fcn.140013650
mov r13, qword [rsp + 0xd0]
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
cmp word [r8 + 0xe], 3
jne 0x14004adc5
cmp rsi, 1
jne 0x14004aefb
or rbx, 0xffffffffffffffff
lea rdx, [0x14007652c]
mov rcx, rdi
mov dword [rsp + 0xe8], ebx
call fcn.140006090
mov ecx, 0x1000
test word [rax + 0xe], cx
jne 0x14004ae2e
mov rax, qword [rax + 8]
movabs rcx, 0xffffffffffff
and rax, rcx
test rax, rax
je 0x14004aeee
mov rcx, rbx
nop word [rax + rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x14004ae40
cmp rcx, 0x40
jae 0x14004aeee
lea rcx, [rbp + 0x842]
xor edx, edx
mov qword [rcx], rdx
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], rdx
mov qword [rcx + 0x18], rdx
mov qword [rcx + 0x20], rdx
mov qword [rcx + 0x28], rdx
mov qword [rcx + 0x30], rdx
mov qword [rcx + 0x38], rdx
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], dl
jne 0x14004ae80
mov r8, rbx
mov rdx, rax
call fcn.14002aeb0
lea rdx, [0x140076544]
mov rcx, rdi
call fcn.140006090
lea r8, [rsp + 0xe8]
mov rdx, rax
mov rcx, rbp
call fcn.14004bee0
test al, al
je 0x14004aeee
mov rcx, qword [rbp + 0xb90]
xor edi, edi
mov qword [rbp + 0xba0], rdi
mov rdx, rbp
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [rbp + 0xb90]
lea r8, [rbp + 0xbb0]
mov rdx, rbp
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x14004adc5
mov rcx, rbp
call fcn.14004bc20
jmp 0x14004adc5
mov rcx, qword [rcx + 0xc80]
mov rbx, rcx
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x14004af33
nop
cmp qword [rax + 0x20], rsi
jge 0x14004af1c
mov rax, qword [rax + 0x10]
jmp 0x14004af22
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14004af10
cmp rbx, rcx
je 0x14004af33
cmp rsi, qword [rbx + 0x20]
jge 0x14004af36
mov rbx, rcx
cmp rbx, rcx
je 0x14004adc5
xor edi, edi
xorps xmm6, xmm6
cmp byte [0x140096418], dil
jne 0x14004b0fc
xor r9d, r9d
lea edx, [rdi + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rsi, rax
test rax, rax
je 0x14004b21d
xor eax, eax
lock cmpxchg qword [0x140096420], rsi
mov r14, rax
jne 0x14004b0e7
mov ecx, 0x8003
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rcx, [fcn.140001190]
call fcn.14002dee4
lea rcx, [0x1400966e8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.140018b50
call fcn.14001ca60
call fcn.140035db8
lea rcx, [0x1400964e8]
mov dword [rax], 0x8000
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edx, [rdi + 1]
lea rcx, [0x14000dba0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x14004b232
xor r9d, r9d
lea edx, [rdi + 1]
xor ecx, ecx
mov r8d, 0x7fffffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov qword [0x140096730], rax
test rax, rax
jne 0x14004b015
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140018f20
test eax, eax
jne 0x14004b238
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rcx, str.CONOUT_
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140088d18], rax
test rax, rax
je 0x14004b05e
xor edx, edx
lea rcx, [0x1400134e0]
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
lea rcx, [0x1400964b8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14004b092
movsd xmm1, qword [0x14007dd10]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x50]
divsd xmm1, xmm0
jmp 0x14004b095
xorps xmm1, xmm1
mov r9, qword [0x1400969c0]
movsd qword [0x140096408], xmm1
test r9, r9
je 0x14004b0d5
lea rax, [0x14001c9c0]
mov qword [rsp + 0x88], rdi
lea r8, [rsp + 0x68]
mov qword [rsp + 0x80], rax
lea rdx, [rsp + 0x80]
mov ecx, 2
call r9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [0x140096418], 1
jmp 0x14004b0fc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or edx, 0xffffffff
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movsd xmm0, qword [0x140096408]
ucomisd xmm0, xmm6
jp 0x14004b10c
je 0x14004b164
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14004b164
movsd xmm1, qword [0x14007dd50]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x58]
xor eax, eax
mulsd xmm0, qword [0x140096408]
mulsd xmm0, qword [0x14007dd40]
comisd xmm0, xmm1
jb 0x14004b15c
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14004b15c
movabs rcx, 0x8000000000000000
mov rax, rcx
cvttsd2si rdi, xmm0
add rdi, rax
sub rdi, qword [rbx + 0x48]
lea r8, [rbx + 0x28]
movabs rax, 0x431bde82d7b634db
xor r9d, r9d
mul rdi
shr rdx, 0x12
mov qword [rbx + 0x40], rdx
mov rdx, rbp
mov rcx, qword [rbp + 0xb90]
mov rax, qword [rcx]
call qword [rax + 0x20]
cmp byte [rbx + 0x19], 0
mov rax, rbx
jne 0x14004b1db
mov rcx, qword [rbx + 0x10]
cmp byte [rcx + 0x19], 0
jne 0x14004b1be
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
jne 0x14004b1db
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x14004b1b0
jmp 0x14004b1db
mov rdx, qword [rbx + 8]
cmp byte [rdx + 0x19], 0
jne 0x14004b1db
cmp rax, qword [rdx + 0x10]
jne 0x14004b1db
mov rax, rdx
mov rdx, qword [rdx + 8]
cmp byte [rdx + 0x19], 0
je 0x14004b1c8
mov rdx, rbx
lea rcx, [rbp + 0xc80]
call fcn.140005bd0
mov edx, 0x50
mov rcx, rax
call fcn.140028e0c
jmp 0x14004adc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.140018e70
int3
call fcn.140033840
int3
call fcn.140033840
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.140018e70
int3
call fcn.140033840
int3
call fcn.140033840
int3