Function at 0x140005928
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r14, rdx
lea rcx, [rbp + 0x50]
lea rdx, [rbp + 0x58]
mov edi, r9d
mov esi, r8d
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoGetApartmentType]
nop dword [rax + rax]
test eax, eax
js 0x140005976
cmp dword [rbp + 0x50], 0
jne 0x140005976
cmp dword [rbp + 0x58], 6
jne 0x140005976
mov r15d, 1
jmp 0x140005979
xor r15d, r15d
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
mov r12d, eax
mov ebx, edi
or eax, 0xffffffff
test r14, r14
jne 0x14000599a
cmp edi, eax
je 0x140005b81
test r15, r15
je 0x1400059e0
lea rax, [rbp + 0x48]
mov r9, r14
mov r8d, esi
mov qword [rsp + 0x20], rax
mov edx, ebx
mov ecx, 0x18
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoWaitForMultipleHandles]
nop dword [rax + rax]
cmp eax, 0x80010115
jne 0x1400059cf
mov ecx, 0x102
jmp 0x1400059d6
test eax, eax
jns 0x1400059db
or ecx, 0xffffffff
mov dword [rbp + 0x48], ecx
jmp 0x140005a04
mov ecx, dword [rbp + 0x48]
jmp 0x140005a04
and dword [rsp + 0x20], 0
mov r9d, 0x1cff
mov r8d, ebx
mov rdx, r14
mov ecx, esi
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
nop dword [rax + rax]
mov ecx, eax
mov dword [rbp + 0x48], eax
xor ebx, ebx
or eax, 0xffffffff
cmp edi, eax
jne 0x140005a11
mov ebx, eax
jmp 0x140005a35
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
sub eax, r12d
cmp eax, edi
ja 0x140005a2d
mov ecx, dword [rbp + 0x48]
mov ebx, edi
sub ebx, eax
jmp 0x140005a35
mov ecx, 0x102
mov dword [rbp + 0x48], ecx
cmp ecx, esi
jne 0x140005b42
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp - 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
nop dword [rax + rax]
test eax, eax
je 0x140005b37
cmp dword [rbp - 0x28], 0x12
je 0x140005b1e
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
nop dword [rax + rax]
cmp dword [rbp - 0x28], 0x20
jne 0x140005ab4
mov eax, 0xfffe
cmp word [rbp - 0x18], ax
je 0x140005ab4
mov edx, 0x7f02
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
nop dword [rax + rax]
jmp 0x140005ac4
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
nop dword [rax + rax]
test esi, esi
je 0x140005aed
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov ecx, esi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForMultipleObjectsEx]
nop dword [rax + rax]
mov ecx, eax
cmp eax, 0x102
jne 0x140005b19
xor ebx, ebx
or eax, 0xffffffff
cmp edi, eax
jne 0x140005afd
mov ebx, eax
jmp 0x140005a3d
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
sub eax, r12d
cmp eax, edi
ja 0x140005b2d
mov ebx, edi
sub ebx, eax
jmp 0x140005a3d
mov dword [rbp + 0x48], eax
jmp 0x140005b3a
mov ecx, dword [rbp - 0x20]
call qword [sym.imp.USER32.dll_PostQuitMessage]
nop dword [rax + rax]
mov ecx, 0x102
mov dword [rbp + 0x48], ecx
jmp 0x140005b3a
mov ecx, dword [rbp + 0x48]
cmp ecx, esi
je 0x14000599a
cmp ecx, 0xc0
je 0x14000599a
mov ebx, 0x102
cmp ecx, ebx
jne 0x140005b7f
test esi, esi
je 0x140005b7f
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov ecx, esi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForMultipleObjectsEx]
nop dword [rax + rax]
mov ecx, dword [rbp + 0x48]
cmp eax, ebx
cmovne ecx, eax
mov eax, ecx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret