Function at 0x140045ecc
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x68
mov qword [rsp + 0x50], 0xfffffffffffffffe
movzx eax, word [rcx]
mov r8d, 0x2a
cmp r8w, ax
sete sil
xor r14d, r14d
cmp ax, r14w
je 0x140045f2f
mov edx, 9
cmp dx, ax
ja 0x140045f10
cmp ax, 0xd
jbe 0x140045f2f
mov edx, 0x20
cmp dx, ax
je 0x140045f2f
add rcx, 2
mov qword [rsp + 0xa0], rcx
mov ax, word [rcx]
cmp ax, r14w
jne 0x140045f00
lea rcx, [rsp + 0xa0]
call fcn.140029d28
mov rbp, qword [rsp + 0xa0]
mov byte [rsp + 0xb8], r8b
mov byte [rsp + 0xa8], r14b
mov byte [rsp + 0x31], r14b
mov edi, 1
mov byte [rsp + 0x30], dil
mov byte [rsp + 0xb0], r14b
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x31]
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0xa0]
call fcn.140039a40
mov r11, qword [rsp + 0xa0]
cmp word [r11], r14w
je 0x1400460a4
lea rbx, [0x14019cf50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp sil, r14b
je 0x140045fe4
cmp qword [0x14019c038], r14
je 0x140045fe4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x140046202
mov byte [0x14019c052], dil
mov r8b, 0xff
mov byte [0x1401958a9], r8b
movsx edx, byte [rsp + 0xb8]
mov rcx, qword [rsp + 0xa0]
movzx eax, word [rcx]
cmp edx, eax
jne 0x140046020
movzx eax, word [rcx + 2]
movzx ecx, r8b
cmp edx, eax
cmove ecx, r14d
mov byte [0x1401958a9], cl
lea rax, [0x14019bc94]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x10000
mov r9, rbp
lea r8, [0x140045ebc]
mov edx, 0x100000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
movzx ecx, word [rbp]
cmp cx, r14w
jne 0x14004607e
mov cl, byte [0x14019c052]
cmp cl, r14b
je 0x140046200
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x7d0
jae 0x140046200
mov edx, 0x14
lea rcx, [0x14019c170]
call fcn.14002bb1c
jmp 0x140046065
mov qword [rsp + 0x40], r14
lea rbp, [rsp + 0x40]
mov r12d, 0xbb8
lea rbx, [0x14019cf50]
mov qword [rsp + 0x58], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov qword [rsp + 0x48], r14
mov rsi, qword [0x14019c038]
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x34], 8
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
lea r8, str.LogohWnd
lea rdx, str.SOFTWAREPELOGON
mov rcx, 0xffffffff80000002
call qword [0x14019bf60]
lea r8, str.LogohWnd
lea rdx, str.SOFTWAREPELOGON
mov rcx, 0xffffffff80000002
call qword [0x14019c380]
cmp rsi, r14
jne 0x140046151
mov rsi, qword [rsp + 0x48]
cmp rsi, r14
jne 0x140046151
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x140046202
cmp rsi, qword [0x14019c038]
jne 0x140046176
cmp byte [rsp + 0xa8], r14b
jne 0x14004616e
cmp byte [rsp + 0xb0], r14b
je 0x140046171
mov rdi, r14
mov qword [rsp + 0x40], rdi
mov rax, qword [rsp + 0x40]
neg rax
sbb r9, r9
lea rax, [rsp + 0x40]
and r9, rax
mov al, byte [rsp + 0xa8]
neg al
sbb r8, r8
add r8, 0x67
mov edx, 0x111
mov rcx, rsi
call qword [sym.imp.USER32.dll_PostMessageW]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
cmp byte [rsp + 0xb0], r14b
je 0x1400461d0
lea rbp, [0x14019c038]
mov r12d, 0xfa0
mov rcx, qword [rbp]
cmp rcx, r14
je 0x140046200
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, r12d
jae 0x140046200
mov edx, 0xa
lea rcx, [0x14019c170]
call fcn.14002bb1c
mov r11, qword [rbp]
cmp r11, r14
jne 0x1400461d9
xor eax, eax
add rsp, 0x68
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret