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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
push rbx
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov r13, qword [rcx + 0x18]
mov edi, r9d
mov rsi, r8
mov r14, rdx
mov rbx, rcx
test r13, r13
jne 0x1800d779f
mov dword [rcx + 0x64], 0xf0000001
xor eax, eax
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret
mov rcx, r13
mov qword [rsp + 0x48], r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor r12d, r12d
test rsi, rsi
jne 0x1800d77b9
mov dword [r14 + 0x20], r12d
lea rcx, [rbx + 0x20]
call fcn.1800e4460
cmp eax, 0x25
jb 0x1800d77e4
test edi, edi
je 0x1800d77fe
lea rcx, [rbx + 0x20]
call fcn.1800e4460
mov r11d, eax
mov eax, dword [r14 + 0x20]
add rax, 0x24
cmp rax, r11
jbe 0x1800d77fe
mov r12, qword [rsp + 0x48]
mov dword [rbx + 0x64], 0xf0000005
xor eax, eax
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rbx + 0x58]
mov edx, 2
mov qword [rsp + 0x88], rbp
call fcn.1800d6de0
mov rbp, rax
test rax, rax
jne 0x1800d7828
mov dword [rbx + 0x64], 0xf0000002
jmp 0x1800d7a75
xor eax, eax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov rax, qword [rbx + 0x50]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbp
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r15d, dword [rsp + 0xa0]
mov edi, r12d
mov dword [rsp + 0x80], eax
nop
mov rcx, qword [rbx + 0x10]
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x30], rcx
lea ecx, [r8 + 3]
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 2
jne 0x1800d7a26
lea rdx, [rsp + 0x20]
lea ecx, [rax + 1]
mov r9d, r15d
xor r8d, r8d
mov qword [rsp + 0x30], r13
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 2
jne 0x1800d79e4
lea rcx, [rbx + 0x20]
call fcn.1800e4480
cmp dword [rsp + 0x98], r12d
je 0x1800d7989
mov r11d, eax
mov eax, dword [r14 + 0x20]
add rax, 0x24
cmp rax, r11
ja 0x1800d7992
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x20]
call fcn.1800e4480
mov r11d, eax
mov eax, dword [r14 + 0x20]
add rax, 0x24
cmp rax, r11
jbe 0x1800d790f
lea rcx, [rbx + 0x20]
call fcn.1800e4480
sub eax, 0x24
mov dword [r14 + 0x20], eax
lea rcx, [rbx + 0x20]
mov r8d, 0x24
mov rdx, r14
call fcn.1800e4750
mov r8d, dword [r14 + 0x20]
mov edi, eax
test r8d, r8d
je 0x1800d793f
mov rdx, qword [rsp + 0x90]
lea rcx, [rbx + 0x20]
call fcn.1800e4750
add edi, eax
test edi, edi
jle 0x1800d7952
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1800d7952
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rcx, [rbx + 0x20]
call fcn.1800e4480
test eax, eax
jne 0x1800d796e
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1800d796e
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test edi, edi
mov dword [rbx + 0x64], r12d
setg r12b
mov eax, r12d
jmp 0x1800d7a70
cmp eax, 0x25
jae 0x1800d78d4
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
inc edi
cmp edi, 2
jle 0x1800d79b0
mov ecx, 5
mov edi, r12d
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x80]
cmp eax, r15d
jbe 0x1800d7860
mov rcx, rbp
mov dword [rbx + 0x64], 0xf0000003
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800d7a6e
cmp eax, 1
jne 0x1800d79f2
mov dword [rbx + 0x64], 0xf0000002
jmp 0x1800d7a09
cmp eax, 0x102
jne 0x1800d7a02
mov dword [rbx + 0x64], 0xf0000003
jmp 0x1800d7a09
mov dword [rbx + 0x64], 0xf0000001
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x1800d7a5d
cmp eax, 1
jne 0x1800d7a34
mov dword [rbx + 0x64], 0xf0000002
jmp 0x1800d7a4b
cmp eax, 0x102
jne 0x1800d7a44
mov dword [rbx + 0x64], 0xf0000003
jmp 0x1800d7a4b
mov dword [rbx + 0x64], 0xf0000001
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbx + 0x64], 0xf0000003
je 0x1800d7a6e
mov rcx, rbx
call fcn.1800d6930
xor eax, eax
mov r15, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x88]
mov r12, qword [rsp + 0x48]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret