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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1d0
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
movaps xmmword [rax - 0x38], xmm6
mov r14, qword [0x140161ce8]
lea r15, str.base_stor_vssmoduleswriters_regwriter.cxx
mov qword [rax - 0x118], r15
lea r12, str.CRegistryWriter::Initialize
mov qword [rax - 0x110], r12
lea r13, str.WRTREGRC
mov qword [rax - 0x108], r13
mov dword [rax - 0x100], 0x63
mov dword [rax - 0xfc], 4
mov dword [rax - 0xf8], 0xff
xor esi, esi
mov dword [rax - 0x78], 0x1000000
xor edx, edx
lea r8d, [rsi + 0x78]
lea rcx, [rax - 0xf0]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x78], esi
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0xfc]
mov dword [rsp + 0x94], eax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
mov dword [rsp + 0xa4], eax
mov dword [rsp + 0x74], 0xffffffff
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0xa8], eax
mov dword [rsp + 0x70], esi
mov qword [rsp + 0xd0], rsi
xorps xmm0, xmm0
movdqa xmmword [rsp + 0xb0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0xc0], xmm1
mov qword [rsp + 0x200], rsi
lea rcx, [rsp + 0x200]
call qword [sym.imp.VssTrace.DLL_Ordinal_10]
nop dword [rax + rax]
test eax, eax
js 0x140021ddc
lea rcx, [rsp + 0x70]
call qword [sym.imp.VssTrace.DLL_Ordinal_9]
nop dword [rax + rax]
test eax, eax
js 0x140021ddc
mov rax, qword [rsp + 0x200]
mov qword [rsp + 0xd0], rax
test rax, rax
je 0x140021de9
mov eax, dword [rax + 0x30]
inc eax
mov dword [rsp + 0xa0], eax
mov ebx, dword [rsp + 0xa8]
cmp ebx, 0xff
jne 0x140005f08
mov ebx, RegisterTypeLib
mov edi, dword [rsp + 0x94]
call qword [sym.imp.VssTrace.DLL_Ordinal_5]
nop dword [rax + rax]
test eax, eax
jne 0x140021df5
cmp byte [rsp + 0x183], sil
je 0x140005f56
lea rbx, [rsp + 0x108]
mov edi, 0xf
nop word [rax + rax]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140021e7e
add rbx, 8
sub rdi, 1
jne 0x140005f40
mov qword [r14 + 0x20], rsi
movups xmm6, xmmword [0x140107188]
cmp qword [r14 + 8], 0
jne 0x140021e92
lea rdx, [r14 + 8]
mov rcx, r14
call qword [sym.imp.VSSAPI.DLL_CreateWriter]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140005ff0
movdqa xmmword [rsp + 0x1b0], xmm6
mov rcx, qword [r14 + 8]
mov rax, qword [rcx]
mov byte [rsp + 0x58], 0
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x48], 0xea60
mov dword [rsp + 0x40], 4
mov dword [rsp + 0x38], 3
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, str.Registry_Writer
lea rdx, [rsp + 0x1b0]
mov rax, qword [rax + 0x18]
call qword [0x1400faf30]
mov ebx, eax
test eax, eax
js 0x140021f12
mov dword [rsp + 0x78], ebx
test ebx, ebx
js 0x140021e9b
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x140021f2c
mov rax, qword [rcx]
mov edx, 0xffffffff
mov r8d, 6
mov rax, qword [rax + 0x20]
call qword [0x1400faf30]
mov ebx, eax
mov dword [rsp + 0x78], eax
test eax, eax
js 0x140021f35
mov edi, dword [rsp + 0x78]
mov rbx, rsi
mov rcx, qword [rsp + rbx*8 + 0xb0]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov qword [rsp + rbx*8 + 0xb0], rsi
inc rbx
cmp rbx, 4
jl 0x140006036
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
mov r9d, eax
sub r9d, dword [rsp + 0xa4]
mov eax, 0x10624dd3
mul r9d
mov r10d, edx
shr r10d, 6
imul ecx, r10d, 0x3e8
mov esi, r9d
sub esi, ecx
mov eax, 0x88888889
mul r10d
shr edx, 5
imul eax, edx, 0x3c
sub r10d, eax
mov eax, 0x45e7b273
mul r9d
mov r11d, edx
shr r11d, 0xe
mov eax, 0x88888889
mul r11d
shr edx, 5
imul ecx, edx, 0x3c
sub r11d, ecx
mov eax, 0x95217cb1
mul r9d
mov ebx, edx
shr ebx, 0x15
mov eax, 0x88888889
mul ebx
shr edx, 5
imul eax, edx, 0x3c
sub ebx, eax
mov r8d, dword [rsp + 0xa8]
cmp r8d, 0xff
jne 0x1400060f1
mov r8d, RegisterTypeLib
mov ecx, dword [rsp + 0x78]
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], ebx
lea r9, str.Time_spent:__02ld:_02ld:_02ld__04ld__total:__x__HRESULT:__x
lea rdx, str.EXIT
lea rcx, [rsp + 0x70]
call fcn.14000c1c0
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.VssTrace.DLL_Ordinal_9]
nop dword [rax + rax]
mov eax, edi
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, qword [rsp + 0xd0]
jmp 0x140005edf
mov dword [rsp + 0xa0], esi
jmp 0x140005ef4
mov ecx, edi
call qword [sym.imp.VssTrace.DLL_Ordinal_7]
nop dword [rax + rax]
test eax, eax
je 0x140005f23
lea rcx, [rsp + 0x70]
call fcn.1400c7550
cmp dword [rsp + 0x70], esi
je 0x140005f23
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], ebx
lea rax, str.ENTER
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x94]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0xa0]
mov r8d, dword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.VssTrace.DLL_Ordinal_3]
nop dword [rax + rax]
nop
jmp 0x140005f23
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov qword [rbx], rsi
jmp 0x140005f4c
mov ebx, 0x80004005
mov dword [rsp + 0x78], ebx
mov qword [rsp + 0xe0], r15
mov qword [rsp + 0xe8], r12
mov qword [rsp + 0xf0], r13
mov dword [rsp + 0xf8], 0x77
mov dword [rsp + 0xfc], 4
mov dword [rsp + 0x100], 0xff
mov dword [rsp + 0x180], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x108]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x20], ebx
lea r9, str.Failed_to_initialize_the_Registry_writer.__hr__0x_08lx
mov r8d, ebx
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x70]
call fcn.1400c6008
mov rcx, qword [r14 + 8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400faf30]
mov qword [r14 + 8], rsi
jmp 0x140005ff0
mov ebx, 0x80004005
mov dword [rsp + 0x78], ebx
mov qword [rsp + 0xe0], r15
mov qword [rsp + 0xe8], r12
mov qword [rsp + 0xf0], r13
mov dword [rsp + 0xf8], 0x83
mov dword [rsp + 0xfc], 4
mov dword [rsp + 0x100], 0xff
mov dword [rsp + 0x180], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x108]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x20], ebx
lea r9, str.Subscribing_the_Registry_server_writer_failed._hr___0x08lx
mov r8d, ebx
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x70]
call fcn.1400c6008
nop
xor esi, esi
jmp 0x14000602f