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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x280
mov qword [rsp + 0x1e0], 0xfffffffffffffffe
mov esi, edx
mov rdi, rcx
lea rax, str.base_stor_vss_tools_vssagenthwdiag.cpp
mov qword [rsp + 0x50], rax
lea rax, str.CHwDiag::OnUnload
mov qword [rsp + 0x58], rax
lea rax, str.VHWDIAGC
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0xec
mov dword [rsp + 0x6c], 6
mov dword [rsp + 0x70], 0xff
xor ebx, ebx
mov dword [rsp + 0xf0], 0x1000000
xor edx, edx
lea r8d, [rbx + 0x78]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x170]
call fcn.14004058c
nop
mov dword [rsp + 0x2b0], 0x80042306
mov dword [rsp + 0x2b8], ebx
cmp qword [rdi + 0x28], rbx
jne 0x1400259dc
lea rcx, [rsp + 0x170]
call fcn.1400406a0
xor eax, eax
jmp 0x140025c57
lea rcx, [rdi + 0x2c0]
mov qword [rsp + 0x118], rcx
mov qword [rsp + 0x128], rcx
lea rax, [rdi + 0x30]
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x130], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x170]
mov qword [rsp + 0x38], rax
mov rax, qword [rdi + 0x4d0]
mov qword [rsp + 0x30], rax
mov rax, qword [rdi + 0x4d8]
mov qword [rsp + 0x28], rax
mov eax, dword [0x14007cd08]
mov dword [rsp + 0x20], eax
mov r9d, 0xe
lea r8, str.OnUnload
lea edx, [r9 - 0xd]
lea rcx, [rsp + 0x138]
call fcn.140037ff4
nop
mov rax, qword [rsp + 0x160]
mov word [rax], bx
lea rdx, [0x14005d46c]
lea rcx, [rsp + 0x138]
call fcn.140038654
lea rax, str.TRUE
lea r8, str.FALSE
test esi, esi
cmovne r8, rax
lea rdx, str.bForceUnload___s
lea rcx, [rsp + 0x138]
call fcn.140038654
mov r8, qword [rsp + 0x160]
lea rdx, str.InputParameters
lea rcx, [rsp + 0x150]
call fcn.140004f4c
nop
lea rcx, [rsp + 0x138]
call fcn.1400381ac
nop
jmp 0x140025ae4
cmp qword [rdi + 0x28], rbx
je 0x140025b2f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rdi + 0x28]
mov rax, qword [rcx]
mov edx, esi
mov rax, qword [rax + 0x20]
call qword [0x140053f18]
mov dword [rsp + 0x2b0], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov ecx, eax
sub ecx, ebx
cmp eax, ebx
jae 0x140025b28
dec ecx
mov dword [rsp + 0x2b8], ecx
jmp 0x140025b39
mov eax, dword [rsp + 0x2b0]
neg eax
sbb r9d, r9d
and r9d, 0xfffffff6
add r9d, 0xf
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x170]
mov qword [rsp + 0x38], rax
mov rax, qword [rdi + 0x4d0]
mov qword [rsp + 0x30], rax
mov rax, qword [rdi + 0x4d8]
mov qword [rsp + 0x28], rax
mov eax, dword [0x14007cd08]
mov dword [rsp + 0x20], eax
lea r8, str.OnUnload
xor edx, edx
lea rcx, [rsp + 0x138]
call fcn.140037ff4
nop
mov r9d, dword [rsp + 0x2b8]
lea r8, str._u__ms_
lea rdx, str.TimeElapsed
lea rcx, [rsp + 0x138]
call fcn.140038208
mov r8d, 0xe
mov edx, dword [rsp + 0x2b0]
lea rcx, [rsp + 0x138]
call fcn.1400388f4
nop
lea rcx, [rsp + 0x138]
call fcn.1400381ac
nop
mov rdx, qword [0x14009d7d0]
lea rcx, [rsp + 0xf8]
call fcn.140029ca4
nop
mov r8, qword [rsp + 0x128]
mov rdx, qword [rsp + 0x130]
call fcn.14003938c
mov rcx, qword [0x14007cd30]
call fcn.140038ec4
nop
lea rcx, [rsp + 0xf8]
call fcn.1400299c8
inc dword [0x14007cd08]
lea rcx, [rsp + 0x170]
call fcn.1400406a0
mov eax, dword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbx
ret