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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2d8]
sub rsp, 0x3b0
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140076010]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
movsxd r12, ecx
mov dword [rsp + 0x5c], r12d
xor edi, edi
mov word [rbp + 0x90], di
mov rax, r12
imul r14, r12, 0x2c0
lea r13, [0x140076040]
test byte [r14 + r13 + 0x2b8], 2
je 0x140037fc4
lea eax, [rdi + 1]
jmp 0x140038213
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov dword [rsp + 0x58], eax
mov ebx, edi
mov r15d, edi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
mov esi, 1
cmp eax, 0xbb8
jae 0x140038045
mov r13d, edi
mov r12d, dword [rsp + 0x58]
lea rcx, [0x14007ef78]
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
mov ebx, edi
test eax, eax
setne bl
mov dword [rsp + 0x40], ebx
mov r15d, r13d
test eax, eax
jne 0x140038039
mov edx, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SleepEx]
mov dword [rsp + 0x44], esi
mov r13d, esi
mov r15d, esi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r12d
cmp eax, 0xbb8
jb 0x140037ff6
mov r12d, dword [rsp + 0x5c]
lea r13, [0x140076040]
test ebx, ebx
je 0x140038206
test r15d, r15d
je 0x140038067
mov eax, dword [r14 + r13 + 0x2b8]
shr eax, 1
and al, sil
mov dil, al
jmp 0x140038206
test r12d, r12d
jne 0x140038090
mov ecx, dword [reloc.AppVIsvSubsystems64.dll_Ordinal_1]
imul rdx, rcx, 0x2c0
test byte [rdx + r13 + 0x2b8], 2
jne 0x140038090
cmp dword [rdx + r13], 0xffffffff
je 0x140038090
call fcn.140037f50
cmp dword [0x1400802fc], edi
jne 0x1400380b1
mov dword [0x1400802fc], esi
xor r8d, r8d
or edx, 0xffffffff
lea rcx, [0x140040e00]
call qword [sym.imp.msi.dll_MsiSetInternalUI]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
mov r9d, r12d
lea r15, str.FEnsureProductCode
mov r8, r15
lea rcx, str._T_d__s:_Preparing_Gimme_table__d_for_calls_to_MSI.
call fcn.140035fec
mov word [rbp - 0x60], di
mov word [rbp + 0x40], di
lea rbx, [0x14004ad70]
mov qword [rsp + 0x40], rbx
mov edx, dword [r14 + r13]
lea rcx, [rsp + 0x40]
call fcn.140035dbc
mov r8d, 0x27
lea rdx, [rbp - 0x60]
mov r13, qword [rsp + 0x48]
mov rcx, r13
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea r8, [0x140076040]
mov edx, dword [r14 + r8 + 4]
cmp edx, 0xffffffff
je 0x140038148
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x40]
call fcn.140035dbc
mov r8d, 0x27
lea rdx, [rbp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea r8, [0x140076040]
mov ebx, edi
test r12d, r12d
jne 0x140038243
mov eax, dword [reloc.AppVIsvSubsystems64.dll_Ordinal_1]
imul rcx, rax, 0x2c0
cmp dword [rcx + r8], 0xffffffff
je 0x140038243
test byte [rcx + r8 + 0x2b8], 2
je 0x14003819f
lea rcx, [rbp - 0x60]
call fcn.1400377b8
test al, al
je 0x14003819f
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
mov r8, r15
lea rcx, str._T_d__s:_get_table_PID_Office__app
call fcn.140035fec
jmp 0x1400382d1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
mov r8, r15
lea rcx, str._T_d__s:_app_ensure_failed__office_ensure_following
call fcn.140035fec
xor r9d, r9d
or r8d, 0xffffffff
xor edx, edx
mov ecx, ebx
call fcn.140037620
lea rbx, [0x140076040]
add rbx, 0x48
add rbx, r14
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
mov qword [rsp + 0x28], rbx
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, r12d
lea r8, str.FEnsureProductCode
lea rcx, str._T_d__s:_Error:_EnsureProductCode_failed_for_table_d__coreGuid_s__pid_s
call fcn.140035fec
mov sil, dil
mov dil, sil
lea rcx, [rsp + 0x40]
call fcn.140036984
mov al, dil
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.1400443a0
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea r15, [r14 + 0x48]
add r15, r8
mov eax, dword [r14 + r8 + 0x2b8]
shr eax, 4
and eax, esi
mov dword [rsp + 0x20], eax
mov r8, r15
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.140037af4
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x60]
lea r8, str.FEnsureProductCode
lea rcx, str._T_d__s:_get_table_PID_IGetProductCodeW__s__s__d
call fcn.140035fec
test ebx, ebx
jne 0x1400381b6
lea ecx, [rbx + 6]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1528]
test eax, eax
jne 0x1400382d1
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_913]
test al, al
jne 0x1400382d1
mov rcx, r15
call qword [sym.imp.msi.dll_MsiRecordGetStringA]
lea ecx, [rax - 1]
cmp ecx, esi
jbe 0x1400381b6
cmp eax, 0xffffffff
je 0x1400381b6
lea r15, [0x140076040]
lea rbx, [r14 + r15]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
lea r9, [rbx + 0x48]
lea r8, str.FEnsureProductCode
lea rcx, str._T_d__s:_ProductCode___s
call fcn.140035fec
or dword [r14 + r15 + 0x2b8], 2
mov edx, dword [r13 + 0x18]
cmp edx, 0xffffffff
je 0x140038203
mov word [rbp - 0x10], di
lea rax, [0x14004ad60]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x60]
call fcn.140035ea8
mov r8d, 0x27
lea rdx, [rbp - 0x10]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_923]
mov edx, 0x10
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400805e8], eax
jg 0x140038451
cmp byte [0x1400805ec], dil
je 0x1400383ee
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x10]
call fcn.14003f2cc
test al, al
jne 0x140038203
lea rax, [0x14004a5c8]
mov qword [rsp + 0x40], rax
lea rax, str.IsFeaturePresentInC2RRegKey
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x50], dil
mov word [rsp + 0x52], di
lea rax, [0x14004ad18]
mov qword [rsp + 0x60], rax
lea rax, str.FeatureName
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x70], rax
mov word [rsp + 0x78], di
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov ecx, 0x26824a0
call fcn.14003f790
jmp 0x140038203
xor r9d, r9d
mov r8d, 0xfffffffe
lea rdx, [rbp - 0x10]
lea rcx, [rbx + 0x48]
call qword [sym.imp.msi.dll_MsiLoadStringW]
mov edi, eax
lea rdx, [rbp + 0x90]
mov ecx, eax
call fcn.140036dd0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov qword [rsp + 0x20], rbx
mov r9d, edi
lea r8, str.FEnsureProductCode
mov edx, eax
lea rcx, str._T_d__s:_MsiUseFeatureExW_returned__d___s_
call fcn.140035fec
jmp 0x140038203
lea rcx, [0x1400805e8]
call fcn.140044ad8
jmp 0x140038360
lea rcx, [0x1400805e8]
call fcn.140044b38
cmp dword [0x1400805e8], 0xffffffff
jne 0x140038360
lea rax, str.Microsoft.Office.Gimme.FEnsureProductCodeFromC2RRegKey
mov qword [rsp + 0x40], rax
mov word [rsp + 0x48], 0x100
lea rcx, [rsp + 0x40]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2479]
test al, al
je 0x1400384a2
mov ecx, 6
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1528]
test eax, eax
mov byte [0x1400805ec], sil
jne 0x140038440
mov byte [0x1400805ec], dil
jmp 0x140038440