Function at 0x140004ec0
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov eax, dword [0x140067180]
xor r15d, r15d
imul eax, dword [0x140068064]
mov rdi, rcx
mov rbp, qword [0x140068d20]
cmp eax, edx
jne 0x1400050ab
cmp qword [0x140065ac8], r15
je 0x14000503f
lea rcx, [0x140064d28]
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x140004f25
lea rcx, [0x140064d28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, qword [0x140065ac8]
lea r14, [rdi + 0x2d8]
call fcn.1400234b0
lea rcx, [0x140064d28]
mov qword [r14], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, CMFCOutlookBar::FloatTab
mov dword [rsp + 0x60], r15d
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
je 0x14000503f
xor edx, edx
mov r8d, CMFCOutlookBar::FloatTab
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [0x140067c44]
mov rcx, rbx
mov rdx, r9
sub rcx, r9
nop dword [rax]
movzx eax, word [rdx]
mov word [rcx + rdx + 0xe94], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x140004f90
mov eax, dword [0x140067c40]
lea rsi, [rbx + 0xc78]
mov dword [rbx + reloc.mfc140u.dll_CDHtmlDialog::DDX_DHtml_SelectIndex], eax
mov eax, dword [0x140068054]
mov dword [rbx + reloc.mfc140u.dll_CDialog::Create], eax
mov eax, dword [0x140068064]
mov dword [rbx + 0xc6c], eax
mov dword [rbx + 0xc68], r15d
test rsi, rsi
je 0x140005005
mov eax, dword [0x14006806c]
lea r8, [0x140067a38]
mov dword [rsp + 0x28], eax
lea rdx, [0x140068070]
mov eax, dword [0x140068068]
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.1400246b0
mov rcx, rsi
call qword [sym.imp.CrlUtils.dll_bool___cdecl_SystemIO::File::Exists_wchar_t_const____ptr64_]
test al, al
je 0x140005047
cmp dword [0x14006718c], r15d
je 0x140005047
mov edx, 1
mov dword [rdi + 0x22c], 2
mov rcx, rdi
call fcn.140007bf0
test eax, eax
jne 0x140005047
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, r15d
jmp 0x14000521d
cmp dword [0x140068068], r15d
je 0x14000506e
mov ecx, dword [0x14006806c]
lea eax, [rcx + 1]
mov dword [0x14006806c], eax
cmp ecx, 0x3e7
jl 0x14000506e
mov dword [0x14006806c], r15d
mov qword [rbx + reloc.mfc140u.dll_CUserToolsManager::FindTool], rdi
mov qword [rbx + CDockSite::FixupVirtualRects], r14
lea rax, [rsp + 0x60]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x1400054c0]
xor edx, edx
mov dword [rsp + 0x20], r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x468], rax
test rax, rax
je 0x14000503f
lea rcx, [0x140064d28]
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x1400050c9
lea rcx, [0x140064d28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add rdi, 0x2e0
mov rbx, r15
mov rdx, qword [rdi]
mov rax, qword [rdi + 8]
sub rax, rdx
sar rax, 3
sub eax, 1
movsxd rcx, eax
js 0x140005108
lea rdx, [rdx + rcx*8]
nop dword [rax]
mov rax, qword [rdx]
lea rdx, [rdx - 8]
cmp dword [rax + 8], 1
cmovne rax, rbx
sub rcx, 1
mov rbx, rax
jns 0x1400050f0
test rbx, rbx
je 0x140005112
mov rsi, qword [rbx]
jmp 0x140005115
mov rsi, r15
lea rcx, [0x140064d28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x1400671a8]
mov r9, rsi
mov rdx, qword [0x140065ac8]
neg eax
mov rcx, rbp
mov dword [rsp + 0x20], r15d
sbb r8d, r8d
and r8d, 4
call fcn.140022280
mov rbp, rax
test rax, rax
je 0x1400051cc
lea rcx, [0x140064d28]
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x14000516e
lea rcx, [0x140064d28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x140068060]
mov ecx, 0x18
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
mov qword [rsp + 0x60], rax
mov rbx, rax
test rax, rax
je 0x1400051a1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov qword [rbx], rbp
mov dword [rbx + 8], r15d
mov dword [rbx + 0x10], esi
jmp 0x1400051a4
mov rbx, r15
mov rdx, qword [rdi + 8]
mov qword [rsp + 0x60], rbx
cmp qword [rdi + 0x10], rdx
je 0x1400051bd
mov qword [rdx], rbx
add qword [rdi + 8], 8
jmp 0x140005205
lea r8, [rsp + 0x60]
mov rcx, rdi
call fcn.1400084b0
jmp 0x140005205
test rsi, rsi
je 0x140005212
lea rcx, [0x140064d28]
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x1400051ef
lea rcx, [0x140064d28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x140068060]
mov dword [rbx + 8], r15d
mov dword [rbx + 0x10], ecx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
lea rcx, [0x140064d28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc dword [0x140068060]
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret