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

Disassembly:
push rsi
sub rsp, 0xa0
mov rax, qword [0x140040650]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, rcx
call fcn.14000a4d0
test eax, eax
jne 0x14000a460
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0xc0], rbp
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x90], r13
lea r8, str.Waiting_For_Commands
lea edx, [rax + 0x64]
lea rcx, [rsi + 0x18]
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x80], r15
call fcn.14000a820
lea r8, str.TeamViewer_Win32_Instance_Mutex
xor r13d, r13d
xor edx, edx
mov ecx, 0x10000000
mov ebp, r13d
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
je 0x14000a090
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15b, 1
jmp 0x14000a093
xor r15b, r15b
mov rax, qword [rsi + 0x20]
lea r12, [0x140000000]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x68]
mov r9d, 0x4ff
mov r8d, 0x3e8
mov ecx, 1
mov dword [rsp + 0x20], r13d
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
cmp ebx, 0x102
je 0x14000a0e2
mov ecx, eax
sub ecx, ebp
cmp ecx, 0x3e8
jb 0x14000a11b
lea r8, str.TeamViewer_Win32_Instance_Mutex
xor edx, edx
mov ecx, 0x10000000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
je 0x14000a10b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15b, 1
mov ebp, edi
jmp 0x14000a11b
test r15b, r15b
mov ebp, edi
sete al
test al, al
je 0x14000a40e
test ebx, ebx
je 0x14000a1a9
cmp ebx, 1
je 0x14000a150
cmp ebx, 0xffffffff
jne 0x14000a0a3
lea r8, str.Error_in_Wait_Function
lea rcx, [rsi + 0x18]
mov edx, 0xc8
call fcn.14000a820
mov eax, 0xa
jmp 0x14000a428
lea rcx, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 1
call qword [sym.imp.USER32.dll_PeekMessageW]
cmp eax, 0xffffffff
je 0x14000a40a
test eax, eax
je 0x14000a0a3
mov eax, dword [rsp + 0x40]
add eax, 0xffffffee
test eax, 0xfffffffb
je 0x14000a3dc
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x14000a0a3
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x30]
mov edi, r13d
call qword [rax + 8]
test eax, eax
je 0x14000a0a3
cmp eax, 0xffffffff
je 0x14000a3c2
mov r9d, dword [rsp + 0x30]
lea eax, [r9 + 1]
cmp eax, 0x13
ja case.0x14000a1e8.0
cdqe
mov ecx, dword [r12 + rax*4 + 0xa478]
add rcx, r12
jmp rcx
lea r8, str.Error__CmdUndef_
lea rcx, [rsi + 0x18]
mov edx, 0xc8
call fcn.14000a820
jmp case.0x14000a1e8.13
mov rcx, qword [rsi + 0x18]
call fcn.14000a640
lea r8, str.Logging_Opened
lea rcx, [rsi + 0x18]
mov edx, 0x64
call fcn.14000a820
jmp case.0x14000a1e8.13
lea r8, str.Closing_Log
lea rcx, [rsi + 0x18]
mov edx, 0x64
call fcn.14000a820
mov rbx, qword [rsi + 0x18]
mov rcx, qword [rbx + 8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000a258
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], r13
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je case.0x14000a1e8.13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], r13
jmp case.0x14000a1e8.13
mov rax, qword [rsi + 8]
call qword [rax + 0x18]
test eax, eax
jne case.0x14000a1e8.13
lea r8, str.Could_not_start_hooks
lea rcx, [rsi + 0x18]
mov edx, 0xc8
call fcn.14000a820
jmp case.0x14000a1e8.13
mov rax, qword [rsi + 8]
call qword [rax + 0x20]
jmp case.0x14000a1e8.13
mov rax, qword [rsi + 8]
call qword [rax + 0x28]
test eax, eax
jne case.0x14000a1e8.13
lea r8, str.Could_not_start_Title_Bar_Buttons
lea rcx, [rsi + 0x18]
mov edx, 0xc8
call fcn.14000a820
jmp case.0x14000a1e8.13
mov rax, qword [rsi + 8]
call qword [rax + 0x30]
jmp case.0x14000a1e8.13
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, edi
cmp ecx, 0x32
jbe case.0x14000a1e8.13
mov edi, eax
mov rax, qword [rsi + 8]
call qword [rax + 0x38]
jmp case.0x14000a1e8.13
mov rax, qword [rsi + 8]
call qword [rax + 0x40]
test eax, eax
jne case.0x14000a1e8.13
lea r8, str.Could_not_start_Single_Window
lea rcx, [rsi + 0x18]
mov edx, 0xc8
call fcn.14000a820
jmp case.0x14000a1e8.13
mov rax, qword [rsi + 8]
call qword [rax + 0x48]
jmp case.0x14000a1e8.13
mov rax, qword [rsi + 8]
call qword [rax + 0x60]
test eax, eax
jne case.0x14000a1e8.13
lea r8, str.Could_not_start_DragDrop_Interceptor
lea rcx, [rsi + 0x18]
mov edx, 0xc8
call fcn.14000a820
jmp case.0x14000a1e8.13
mov rax, qword [rsi + 8]
call qword [rax + 0x68]
jmp case.0x14000a1e8.13
mov rax, qword [rsi + 8]
call qword [rax + 0x78]
test eax, eax
jne case.0x14000a1e8.13
lea r8, str.Could_not_start_DirectX_hooks
lea rcx, [rsi + 0x18]
mov edx, 0xc8
call fcn.14000a820
jmp case.0x14000a1e8.13
mov rax, qword [rsi + 8]
call qword [rax + 0x80]
jmp case.0x14000a1e8.13
lea r8, str.Error__Unknown_Command__i
lea rcx, [rsi + 0x18]
mov edx, 0xc8
call fcn.14000a820
mov rax, qword [rsi + 8]
mov rcx, qword [rax]
call qword [rcx + 0x28]
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x30]
call qword [rax + 8]
test eax, eax
jne 0x14000a1c0
jmp 0x14000a0a3
lea r8, str.Fatal_Error__Cmd_overflow_detected._Running_in_inconsistent_state.
lea rcx, [rsi + 0x18]
mov edx, 0xc8
call fcn.14000a820
jmp 0x14000a0a3
lea r8, str.Quitting_because_of_window_message
lea rcx, [rsi + 0x18]
mov edx, 0xc8
call fcn.14000a820
xor eax, eax
jmp 0x14000a428
lea r8, str.CmdQuitLoader
lea rcx, [rsi + 0x18]
mov edx, 0x64
call fcn.14000a820
xor eax, eax
jmp 0x14000a428
lea r8, str.Error__TeamViewer_terminated_unexpectedly_
lea rcx, [rsi + 0x18]
mov edx, 0xc8
call fcn.14000a820
mov eax, 9
mov r14, qword [rsp + 0x88]
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xc8]
mov rbp, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xb8]
mov r15, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400184d0
add rsp, 0xa0
pop rsi
ret