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

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp + 0x18]
sub rsp, 0x108
mov rbx, rcx
mov r14d, 0xea60
mov dword [rbp + 0x30], r14d
call qword [sym.imp.mpclient.dll_MpClientUtilExportFunctions]
movabs r10, 0xb1e1875a16511370
lea r8, [rbp + 0x30]
mov edx, r14d
lea rcx, str.MpService_SigUpdServiceWaitTimeout
mov rax, qword [rax + 0xa0]
call qword [0x14009aae8]
nop
mov edi, dword [rbp + 0x30]
mov esi, 0x493e0
mov dword [rbp + 0x30], esi
call qword [sym.imp.mpclient.dll_MpClientUtilExportFunctions]
movabs r10, 0xb1e1875a16511370
lea r8, [rbp + 0x30]
mov edx, esi
lea rcx, str.MpService_SigUpdServiceBusyTimeout
mov rax, qword [rax + 0xa0]
call qword [0x14009aae8]
nop
mov dword [rbp + 0x40], r14d
call qword [sym.imp.mpclient.dll_MpClientUtilExportFunctions]
movabs r10, 0xb1e1875a16511370
lea r8, [rbp + 0x40]
mov edx, r14d
lea rcx, str.MpService_SigUpdServiceShutTimeout
mov rax, qword [rax + 0xa0]
call qword [0x14009aae8]
nop
and dword [rbp + 0x48], 0
call qword [sym.imp.mpclient.dll_MpClientUtilExportFunctions]
movabs r10, 0xb1e1875a16511370
lea r8, [rbp + 0x48]
xor edx, edx
lea rcx, str.MpService_SigUpdForceTimeOut
mov rax, qword [rax + 0xa0]
call qword [0x14009aae8]
nop
mov r15d, dword [rbp + 0x30]
cmp edi, r15d
jbe 0x140021e4d
mov eax, 0xaaaaaaab
mul r15d
mov edi, edx
shr edi, 2
mov rax, qword [rbx + 0x20]
mov qword [rbp - 0x30], rax
mov rax, qword [rbx + 0x30]
mov qword [rbp - 0x28], rax
lea rsi, str.8__r_
cmp dword [rbp + 0x48], 1
jne 0x140021e82
lea rcx, str.MiscConfig_set__forcing_update_timeout._n
call fcn.140077d60
mov dword [rbx + 0x44], 1
jmp 0x140021f17
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
and dword [rbp + 0x30], 0
lea r9, [rbp + 0x30]
mov r8d, edi
lea rdx, [rbp - 0x30]
call fcn.140082da8
cmp eax, 0x80070102
jne 0x140021f10
lea r12d, [rdi + 0x3a98]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, esi
cmp r12d, ecx
ja 0x140021ed4
sub esi, eax
cmp r12d, esi
jbe 0x140021eed
mov ecx, dword [rbx + 0x40]
mov eax, r14d
sub eax, ecx
cmp r15d, eax
ja 0x140021eed
sub ecx, r14d
cmp r15d, ecx
jbe 0x140021fc2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
and dword [rbp + 0x30], 0
lea r9, [rbp + 0x30]
mov r8d, edi
lea rdx, [rbp - 0x30]
call fcn.140082da8
cmp eax, 0x80070102
je 0x140021eb5
lea rsi, str.8__r_
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
movabs r10, 0xbbc59ee258503b70
mov rax, qword [rax + 0x18]
call qword [0x14009aae8]
mov edx, dword [rbp + 0x40]
mov rcx, qword [rbx + 0x30]
call fcn.14007882c
mov rcx, qword [rbx + 0x38]
mov rax, qword [rcx]
movabs r10, 0xd0190fe53c5e6870
mov rax, qword [rax + 0x20]
call qword [0x14009aae8]
mov edx, dword [rbp + 0x40]
mov rcx, qword [rbx + 0x20]
call fcn.14007882c
mov r9d, dword [rbx + 0x28]
test r9d, r9d
jns 0x140021fae
mov ecx, r9d
call fcn.14007988c
test eax, eax
jne 0x140021fae
mov rcx, qword [str.8__r_]
cmp rcx, rsi
je 0x140021f9f
test byte [rcx + 0x1c], 1
je 0x140021f9f
lea edx, [rax + 0xb]
lea r8, [0x1400b16a8]
mov rcx, qword [rcx + 0x10]
call fcn.140004000
mov edx, dword [rbx + 0x28]
lea rcx, str.ERROR:_Signatures_Update_Failed__lx_n
call fcn.140077d60
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [str.8__r_]
lea rsi, str.8__r_
cmp rcx, rsi
je 0x140021ff0
test byte [rcx + 0x1c], 1
je 0x140021ff0
mov edx, 0xa
lea r8, [0x1400b16a8]
mov rcx, qword [rcx + 0x10]
call fcn.140003cf8
mov edx, r15d
lea rcx, str.ERROR:_Signatures_Update_Service_hanged____timeout__lu_n
call fcn.140077d60
mov dword [rbx + 0x44], 1
sub r14d, r13d
mov rdi, qword [0x1400d9048]
test rdi, rdi
je 0x140021f17
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1400d4190], 5
jbe 0x140022165
movabs rdx, 0x400000000000
test qword [0x1400d41a0], rdx
je 0x140022165
mov rax, qword [0x1400d41a8]
and rax, rdx
cmp rax, qword [0x1400d41a8]
jne 0x140022165
mov dword [rbp + 0x48], r14d
mov dword [rbp - 0x80], r15d
mov rcx, qword [0x1400d9040]
mov eax, dword [rcx + 0x38]
mov dword [rbp - 0x7c], eax
mov eax, dword [rcx + 0x34]
mov dword [rbp - 0x78], eax
mov eax, dword [rcx + 0x30]
mov dword [rbp - 0x74], eax
movzx eax, byte [rcx + 0x2c]
mov dword [rbp - 0x70], eax
movzx eax, byte [rcx + 0x2b]
mov dword [rbp - 0x6c], eax
movzx eax, byte [rcx + 0x2a]
mov dword [rbp - 0x68], eax
movzx eax, byte [rcx + 0x29]
mov dword [rbp - 0x64], eax
movzx eax, byte [rcx + 0x28]
mov dword [rbp - 0x60], eax
mov rax, qword [rcx + 0x20]
mov qword [rbp - 0x58], rax
mov rax, qword [rcx + 0x18]
mov qword [rbp - 0x50], rax
mov rax, qword [rcx + 0x10]
mov qword [rbp - 0x48], rax
mov rax, qword [rcx + 8]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 0x2000000
lea rax, [rbp + 0x48]
mov qword [rsp + 0x90], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x88], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x80], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x70], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x64]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [0x1400c628e]
call fcn.140001838
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140021f17