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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x70
mov rbp, rcx
xor ebx, ebx
mov rcx, qword [str._b0_n_]
lea r12, str._b0_n_
lea r13, [0x140085890]
mov r14d, 0x100
cmp rcx, r12
je 0x140016871
test dword [rcx + 0x1c], r14d
je 0x140016871
cmp byte [rcx + 0x19], 4
jb 0x140016871
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x12]
mov r8, r13
call fcn.1400043e4
jmp 0x140016871
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov esi, eax
mov rcx, qword [str._b0_n_]
cmp rcx, r12
je 0x14001670f
test dword [rcx + 0x1c], r14d
je 0x14001670f
cmp byte [rcx + 0x19], 5
jb 0x14001670f
mov rcx, qword [rcx + 0x10]
mov edx, 0x13
mov r9d, 0x493e0
mov r8, r13
call fcn.140004410
xor r8d, r8d
mov dword [rsp + 0x20], 0x1cff
mov r9d, 0x493e0
lea rdx, [rsp + 0x30]
lea ecx, [r8 + 2]
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
nop dword [rax + rax]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [str._b0_n_]
cmp rcx, r12
je 0x14001678d
test dword [rcx + 0x1c], r14d
je 0x14001678d
cmp byte [rcx + 0x19], 5
jb 0x14001678d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov rcx, qword [str._b0_n_]
mov edx, 0x14
sub eax, esi
mov r8, r13
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140004410
mov rcx, qword [str._b0_n_]
test ebx, ebx
je 0x140016936
cmp ebx, 1
je 0x14001691e
cmp ebx, 2
jne 0x1400168a3
xor r9d, r9d
lea rcx, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
nop dword [rax + rax]
cmp eax, 1
jne 0x140016890
mov rcx, qword [str._b0_n_]
cmp rcx, r12
je 0x1400167f5
test dword [rcx + 0x1c], r14d
je 0x1400167f5
cmp byte [rcx + 0x19], 5
jb 0x1400167f5
mov r9d, dword [rsp + 0x48]
lea edx, [rbx + 0x16]
mov rcx, qword [rcx + 0x10]
mov r8, r13
call fcn.140004410
call qword [sym.imp.MFC42u.dll_Ordinal_1471]
nop dword [rax + rax]
mov rdx, rax
test rax, rax
je 0x140016821
mov rcx, qword [rax]
mov rax, qword [rcx + 0xf8]
mov rcx, rdx
call qword [case.0x14000c28f.0]
mov rcx, rax
jmp 0x140016823
xor ecx, ecx
test rcx, rcx
je 0x14001695a
cmp dword [rsp + 0x48], 0x36a
je 0x140016871
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
mov rax, qword [rax + 0x130]
call qword [case.0x14000c28f.0]
test eax, eax
jne 0x140016871
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_TranslateMessage]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_DispatchMessageW]
nop dword [rax + rax]
mov rax, qword [0x1400a5a28]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
test rax, rax
jne 0x1400166d2
jmp 0x14001695a
xor ecx, ecx
call qword [sym.imp.MFC42u.dll_Ordinal_1533]
nop dword [rax + rax]
jmp 0x140016958
cmp ebx, 0x102
je 0x1400168f4
cmp ebx, 0xffffffff
je 0x1400168d7
cmp rcx, r12
je 0x14001695a
test dword [rcx + 0x1c], r14d
je 0x14001695a
cmp byte [rcx + 0x19], 5
jb 0x14001695a
mov edx, 0x1a
mov r9d, ebx
jmp 0x140016910
mov ebx, edi
cmp edi, 6
jne 0x14001695a
cmp rcx, r12
je 0x140016958
test dword [rcx + 0x1c], r14d
je 0x140016958
cmp byte [rcx + 0x19], 5
jb 0x140016958
lea edx, [rdi + 0xf]
jmp 0x14001694c
cmp rcx, r12
je 0x14001695a
test dword [rcx + 0x1c], r14d
je 0x14001695a
cmp byte [rcx + 0x19], 5
jb 0x14001695a
mov edx, 0x19
mov r9d, 0x493e0
mov rcx, qword [rcx + 0x10]
mov r8, r13
call fcn.140004410
jmp 0x14001695a
cmp rcx, r12
je 0x140016958
test dword [rcx + 0x1c], r14d
je 0x140016958
cmp byte [rcx + 0x19], 5
jb 0x140016958
mov edx, 0x17
jmp 0x14001694c
cmp rcx, r12
je 0x140016958
test dword [rcx + 0x1c], r14d
je 0x140016958
cmp byte [rcx + 0x19], 5
jb 0x140016958
mov edx, 0x16
mov rcx, qword [rcx + 0x10]
mov r8, r13
call fcn.1400043e4
xor ebx, ebx
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret