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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov qword [rsp + 0x150], rbx
mov rsi, rdx
mov rbx, rcx
cmp dword [0x180153b70], 0
je 0x18003d690
lea r9, str.CTSDocModuleMgr64::StartTSafeDoc_0
lea r8, str.CheckModule
or edx, 0xffffffff
lea rcx, [0x180153288]
call fcn.18006d360
xor r13d, r13d
call fcn.1800a0060
test eax, eax
je 0x18003d6b1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.180053920
test eax, eax
je 0x18003d9b9
lea rcx, [0x1801517d0]
call fcn.18002b930
test eax, eax
je 0x18003d740
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, str.TEC_OCULAR__AGENT_V3_MUTEX_SDAGENT
lea rcx, [rsp + 0x70]
call fcn.1800273f0
nop
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1800270d0
nop
mov r8d, 1
lea rdx, [rbp + 0x68]
lea rcx, [rsp + 0x70]
call fcn.1800276e0
nop
mov rdx, qword [rax]
lea rcx, [rsp + 0x40]
call fcn.180027090
nop
lea rcx, [rbp + 0x68]
call fcn.180040610
lea rcx, [rsp + 0x40]
call fcn.1800271c0
test eax, eax
jne 0x18003d75e
lea rcx, [rsp + 0x40]
call fcn.180027120
nop
lea rcx, [rsp + 0x70]
call fcn.1800272e0
mov edx, 0x3e8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x18003d9b9
jmp 0x18003d693
lea rcx, [rsp + 0x40]
call fcn.180027120
nop
lea rcx, [rsp + 0x70]
call fcn.1800272e0
cmp dword [0x180153b70], 0
je 0x18003d799
lea r9, str.CTSDocModuleMgr64::StartTSafeDoc_1
lea r8, str.CheckModule
or edx, 0xffffffff
lea rcx, [0x180153288]
call fcn.18006d360
mov edx, 0xa
lea rcx, [rbp - 0x80]
call fcn.180027270
nop
lea rcx, [rbp - 0x70]
call fcn.1800272c0
mov r11, qword [0x1800f5df0]
mov qword [rbp - 0x60], r11
mov qword [rbp - 0x58], r11
mov qword [rbp - 0x50], r11
mov qword [rbp - 0x48], r11
mov qword [rbp - 0x40], r11
mov qword [rbp - 0x38], r11
mov qword [rbp - 0x10], r11
mov qword [rbp - 8], r11
mov qword [rbp], r11
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x80]
lea rcx, [0x1801515d8]
call fcn.180022d00
test eax, eax
je 0x18003d884
lea rcx, str.Default
call fcn.18006bc60
mov r12d, eax
call fcn.18001f510
mov dword [rbx + 0x10], eax
test eax, eax
jne 0x18003d849
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
cmp dword [rbx + 0x10], 0
jne 0x18003d849
sub eax, edi
cmp eax, 0x1b7740
jae 0x18003d849
call fcn.18001f510
mov dword [rbx + 0x10], eax
mov ecx, 0x3a98
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [rbx + 0x10], 0
je 0x18003d821
call fcn.18001f5d0
cmp dword [0x180153b70], 0
je 0x18003d884
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x20], eax
lea r9, str.CTSDocModuleMgr64::CTSDocModuleMgr64TaskDisposeFunc::StartTSafeDoc__lu__lu__lu
lea r8, str.CheckModule
or edx, 0xffffffff
lea rcx, [0x180153288]
call fcn.18006d360
mov qword [rbp + 0x60], rsi
mov dword [rsp + 0x20], 0x4ff
mov r9d, 0x3e8
xor r8d, r8d
lea rdx, [rbp + 0x60]
lea ecx, [r8 + 1]
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
je 0x18003d94c
nop
mov qword [rsp + 0x40], r13
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x18003d925
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_DispatchMessageA]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x18003d8f0
mov dword [rsp + 0x20], 0x4ff
mov r9d, 0x3e8
xor r8d, r8d
lea rdx, [rbp + 0x60]
lea ecx, [r8 + 1]
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
jne 0x18003d8b0
lea rcx, [rbp]
call fcn.180040610
nop
lea rcx, [rbp - 8]
call fcn.180040610
nop
lea rcx, [rbp - 0x10]
call fcn.180040610
nop
lea rcx, [rbp - 0x38]
call fcn.180040610
nop
lea rcx, [rbp - 0x40]
call fcn.180040610
nop
lea rcx, [rbp - 0x48]
call fcn.180040610
nop
lea rcx, [rbp - 0x50]
call fcn.180040610
nop
lea rcx, [rbp - 0x58]
call fcn.180040610
nop
lea rcx, [rbp - 0x60]
call fcn.180040610
nop
lea rcx, [rbp - 0x70]
call fcn.180027260
nop
lea rcx, [rbp - 0x80]
call fcn.180027260
mov rbx, qword [rsp + 0x150]
add rsp, 0x120
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret