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

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov qword [rax - 0xd8], 0xfffffffffffffffe
mov r12, r9
mov r13, r8
mov r14d, edx
mov rsi, rcx
lea rax, str.base_stor_vss_tools_vssagenthwdiag.cpp
mov qword [rsp + 0x58], rax
lea rax, str.CHwDiag::GetTargetLuns
mov qword [rsp + 0x60], rax
lea rax, str.VHWDIAGC
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], 0x1e7
mov dword [rsp + 0x74], 6
mov dword [rsp + 0x78], 0xff
xor edi, edi
mov dword [rsp + 0xf8], 0x1000000
xor edx, edx
lea r8d, [rdi + 0x78]
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x160]
call fcn.14004058c
nop
mov dword [rsp + 0x50], 0x80042306
mov dword [rsp + 0x54], edi
lea rcx, [rsi + 0x2c8]
mov qword [rsp + 0x158], rcx
lea rax, [rsi + 0x38]
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x160]
mov qword [rsp + 0x38], rax
mov rax, qword [rsi + 0x4d8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsi + 0x4e0]
mov qword [rsp + 0x28], rax
mov eax, dword [0x14007ccf8]
mov dword [rsp + 0x20], eax
lea r9d, [rdi + 0xe]
lea r8, str.GetTargetLuns
lea edx, [rdi + 1]
lea rcx, [rsp + 0x110]
call fcn.140037ff4
nop
mov rax, qword [rsp + 0x138]
mov word [rax], di
lea rdx, [0x14005d46c]
lea rcx, [rsp + 0x110]
call fcn.140038654
mov r8d, r14d
lea rdx, str.lLunCount___lu_r_n
lea rcx, [rsp + 0x110]
call fcn.140038654
mov ebx, edi
cmp ebx, r14d
jge 0x1400269ca
movsxd r15, ebx
mov r9, qword [r13 + r15*8]
mov qword [rsp + 0x20], r9
mov r8d, ebx
lea rdx, str.rgwszDevices__d____s__0x_08lx__r_n
lea rcx, [rsp + 0x110]
call fcn.140038654
mov r8d, ebx
lea rdx, str.rgSourceLuns__d______r_n
lea rcx, [rsp + 0x110]
call fcn.140038654
lea rdx, [r15 + r15*2]
shl rdx, 5
add rdx, r12
lea rcx, [rsp + 0x110]
call fcn.1400382e4
inc ebx
jmp 0x14002696e
mov r8, qword [rsp + 0x138]
lea rdx, str.InputParameters
lea rcx, [rsp + 0x128]
call fcn.140004f4c
nop
lea rcx, [rsp + 0x110]
call fcn.1400381ac
nop
jmp 0x140026a19
cmp qword [rsi + 0x20], rdi
je 0x140026a72
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rsi + 0x20]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x2d0]
mov qword [rsp + 0x20], rdx
mov r9, r12
mov r8, r13
mov edx, r14d
mov rax, qword [rax + 0x30]
call qword [0x140053f18]
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov ecx, eax
sub ecx, ebx
cmp eax, ebx
jae 0x140026a6e
dec ecx
mov dword [rsp + 0x54], ecx
jmp 0x140026a86
mov ebx, dword [rsp + 0x50]
mov eax, ebx
neg eax
sbb r9d, r9d
and r9d, 0xfffffff6
add r9d, 0xf
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x160]
mov qword [rsp + 0x38], rax
mov rax, qword [rsi + 0x4d8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsi + 0x4e0]
mov qword [rsp + 0x28], rax
mov eax, dword [0x14007ccf8]
mov dword [rsp + 0x20], eax
lea r8, str.GetTargetLuns
xor edx, edx
lea rcx, [rsp + 0x110]
call fcn.140037ff4
nop
mov r9d, dword [rsp + 0x54]
lea r8, str._u__ms_
lea rdx, str.TimeElapsed
lea rcx, [rsp + 0x110]
call fcn.140038208
mov r8d, 0xa
mov edx, ebx
lea rcx, [rsp + 0x110]
call fcn.1400388f4
test ebx, ebx
jne 0x140026bae
mov rax, qword [rsp + 0x138]
mov word [rax], di
lea rdx, [0x14005d46c]
lea rcx, [rsp + 0x110]
call fcn.140038654
cmp edi, r14d
jge 0x140026b91
mov r8d, edi
lea rdx, str.rgDestinationLuns__d______r_n
lea rcx, [rsp + 0x110]
call fcn.140038654
movsxd rax, edi
lea rdx, [rax + rax*2]
shl rdx, 5
add rdx, qword [rsp + 0x2d0]
lea rcx, [rsp + 0x110]
call fcn.1400382e4
inc edi
jmp 0x140026b51
mov r8, qword [rsp + 0x138]
lea rdx, str.OutputParameters
lea rcx, [rsp + 0x128]
call fcn.140004f4c
nop
lea rcx, [rsp + 0x110]
call fcn.1400381ac
nop
inc dword [0x14007ccf8]
lea rcx, [rsp + 0x160]
call fcn.1400406a0
mov eax, dword [rsp + 0x50]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret