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

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x278
mov qword [r11 - 0xd8], 0xfffffffffffffffe
mov r14d, r9d
mov r15, r8
mov r12, rdx
mov rdi, rcx
lea rax, str.base_stor_vss_tools_vssagenthwdiag.cpp
mov qword [rsp + 0x58], rax
lea rax, str.CHwDiag::ResyncLuns
mov qword [rsp + 0x60], rax
lea rax, str.VHWDIAGC
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], 0x30f
mov dword [rsp + 0x74], 6
mov dword [rsp + 0x78], 0xff
xor esi, esi
mov dword [rsp + 0xf8], 0x1000000
xor edx, edx
lea r8d, [rsi + 0x78]
lea rcx, [r11 - 0x228]
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], esi
lea rcx, [rdi + 0x2c8]
mov qword [rsp + 0x158], rcx
lea rax, [rdi + 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 [rdi + 0x4d8]
mov qword [rsp + 0x30], rax
mov rax, qword [rdi + 0x4e0]
mov qword [rsp + 0x28], rax
mov eax, dword [0x14007cce0]
mov dword [rsp + 0x20], eax
lea r9d, [rsi + 0xe]
lea r8, str.ResyncLuns
lea edx, [rsi + 1]
lea rcx, [rsp + 0x110]
call fcn.140037ff4
nop
mov rax, qword [rsp + 0x138]
mov word [rax], si
lea rdx, [0x14005d46c]
lea rcx, [rsp + 0x110]
call fcn.140038654
mov r8d, r14d
lea rdx, str.dwCount___hu_r_n
lea rcx, [rsp + 0x110]
call fcn.140038654
mov ebx, esi
cmp ebx, r14d
jae 0x140027df6
mov r8d, ebx
lea rdx, str.pSnapshotLuns__u______r_n
lea rcx, [rsp + 0x110]
call fcn.140038654
mov eax, ebx
lea rdx, [rax + rax*2]
shl rdx, 5
add rdx, r12
lea rcx, [rsp + 0x110]
call fcn.1400382e4
inc ebx
jmp 0x140027dbc
mov ebx, esi
cmp ebx, r14d
jae 0x140027e32
mov r8d, ebx
lea rdx, str.pOriginalLuns__u______r_n
lea rcx, [rsp + 0x110]
call fcn.140038654
mov eax, ebx
lea rdx, [rax + rax*2]
shl rdx, 5
add rdx, r15
lea rcx, [rsp + 0x110]
call fcn.1400382e4
inc ebx
jmp 0x140027df8
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 0x140027e81
cmp qword [rdi + 0x28], rsi
je 0x140027eda
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rdi + 0x28]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x2d0]
mov qword [rsp + 0x20], rdx
mov r9d, r14d
mov r8, r15
mov rdx, r12
mov rax, qword [rax + 0x58]
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 0x140027ed6
dec ecx
mov dword [rsp + 0x54], ecx
jmp 0x140027ee4
mov eax, dword [rsp + 0x50]
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 [rdi + 0x4d8]
mov qword [rsp + 0x30], rax
mov rax, qword [rdi + 0x4e0]
mov qword [rsp + 0x28], rax
mov eax, dword [0x14007cce0]
mov dword [rsp + 0x20], eax
lea r8, str.ResyncLuns
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, 0x12
mov edx, dword [rsp + 0x50]
lea rcx, [rsp + 0x110]
call fcn.1400388f4
nop
lea rcx, [rsp + 0x110]
call fcn.1400381ac
nop
inc dword [0x14007cce0]
lea rcx, [rsp + 0x160]
call fcn.1400406a0
mov eax, dword [rsp + 0x50]
add rsp, 0x278
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret