Function at 0x140012ff0
Capabilities:
Check for time delay via gettickcount
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rbp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x1c0], rbx
mov r15, rdx
mov rsi, rcx
lea r13, str.base_stor_vssinc_vs_str.hxx
mov qword [rbp - 0x40], r13
lea rax, str.CVssAutoString_class_CVssAutoLocalPtr_unsigned_short____::ExpandEnvironmentStringsW
mov qword [rbp - 0x38], rax
lea rax, str.INCSTRH
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x28], VarUI4FromDisp
mov dword [rbp - 0x24], reloc.VssTrace.DLL_Ordinal_11
mov dword [rbp - 0x20], 0xff
xor r12d, r12d
mov dword [rbp + 0x60], 0x1000000
lea rdi, [rbp - 0x18]
xor eax, eax
mov ebx, 0xf
mov ecx, ebx
rep stosq qword [rdi], rax
mov dword [rsp + 0x58], r12d
mov rax, qword [rbp - 0x38]
mov qword [rsp + 0x78], rax
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x60], rax
mov rax, qword [rbp - 0x30]
mov qword [rsp + 0x68], rax
mov eax, dword [rbp - 0x28]
mov dword [rsp + 0x70], eax
mov eax, dword [rbp - 0x24]
mov dword [rsp + 0x74], eax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetTickCount]
mov dword [rbp - 0x7c], eax
mov dword [rsp + 0x54], 0xffffffff
mov eax, dword [rbp - 0x20]
mov dword [rbp - 0x78], eax
mov dword [rsp + 0x50], r12d
mov qword [rbp - 0x50], r12
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x60], xmm1
mov qword [rbp + 0xd0], r12
lea rcx, [rbp + 0xd0]
call qword [sym.imp.VssTrace.DLL_Ordinal_10]
test eax, eax
js 0x14005238e
lea rcx, [rsp + 0x50]
call qword [sym.imp.VssTrace.DLL_Ordinal_9]
test eax, eax
js 0x14005238e
mov rax, qword [rbp + 0xd0]
mov qword [rbp - 0x50], rax
test rax, rax
je 0x140052397
mov eax, dword [rax + 0x30]
inc eax
mov dword [rbp - 0x80], eax
mov edi, RegisterTypeLib
cmp dword [rbp - 0x78], 0xff
cmovne edi, dword [rbp - 0x78]
mov r14d, dword [rsp + 0x74]
call qword [sym.imp.VssTrace.DLL_Ordinal_5]
test eax, eax
jne 0x1400523a0
cmp byte [rbp + 0x63], r12b
je 0x14001315a
lea rdi, [rbp - 0x18]
mov rcx, qword [rdi]
test rcx, rcx
jne 0x14005240c
add rdi, 8
sub rbx, 1
jne 0x140013144
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_ExpandEnvironmentStringsW]
mov edi, eax
test eax, eax
je 0x14005241a
mov rbx, qword [rsi + 8]
mov qword [rsi + 8], r12
mov qword [rbp + 0x70], rbx
lea rax, [0x1400f2350]
mov qword [rbp + 0x68], rax
cmp edi, 1
je 0x140052478
mov qword [rsi + 8], r12
lea eax, [rdi - 1]
lea rdx, [rax*2 + 2]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov qword [rsi + 8], rax
test rax, rax
je 0x140052492
mov r8d, edi
mov rdx, rax
mov rcx, r15
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400524bf
cmp eax, edi
ja 0x1400524bf
test rbx, rbx
jne 0x1400524b0
mov rdi, r12
mov rcx, qword [rbp + rdi*8 - 0x70]
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov qword [rbp + rdi*8 - 0x70], r12
inc rdi
cmp rdi, 4
jl 0x1400131e1
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetTickCount]
mov edi, eax
sub edi, dword [rbp - 0x7c]
mov eax, 0x10624dd3
mul edi
mov r9d, edx
shr r9d, 6
imul ecx, r9d, 0x3e8
mov r11d, edi
sub r11d, ecx
mov eax, 0x88888889
mul r9d
shr edx, 5
imul eax, edx, 0x3c
sub r9d, eax
mov eax, 0x45e7b273
mul edi
mov r10d, edx
shr r10d, 0xe
mov eax, 0x88888889
mul r10d
shr edx, 5
imul ecx, edx, 0x3c
sub r10d, ecx
mov eax, 0x95217cb1
mul edi
mov ecx, edx
shr ecx, 0x15
mov eax, 0x88888889
mul ecx
shr edx, 5
imul eax, edx, 0x3c
sub ecx, eax
mov r8d, dword [rbp - 0x78]
cmp r8d, 0xff
jne 0x14001327e
mov r8d, RegisterTypeLib
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
lea r9, str.Time_spent:__02ld:_02ld:_02ld__04ld__total:__x__HRESULT:__x
lea rdx, str.EXIT
lea rcx, [rsp + 0x50]
call fcn.14000f840
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.VssTrace.DLL_Ordinal_9]
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbp - 0x50]
jmp 0x140013106
mov dword [rbp - 0x80], r12d
jmp 0x140013117
mov ecx, r14d
call qword [sym.imp.VssTrace.DLL_Ordinal_7]
test eax, eax
je 0x14001313a
lea rcx, [rsp + 0x50]
call fcn.1400d0428
cmp dword [rsp + 0x50], r12d
je 0x14001313a
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], edi
lea rax, str.ENTER
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp - 0x80]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.VssTrace.DLL_Ordinal_3]
nop
jmp 0x14001313a
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov qword [rdi], r12
jmp 0x140013150
mov qword [rbp - 0x40], r13
lea rax, str.CVssAutoString_class_CVssAutoLocalPtr_unsigned_short____::ExpandEnvironmentStringsW
mov qword [rbp - 0x38], rax
lea rax, str.INCSTRH
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x28], VarUI4FromDisp
mov dword [rbp - 0x24], reloc.VssTrace.DLL_Ordinal_11
mov dword [rbp - 0x20], 0xff
mov dword [rbp + 0x60], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rbp - 0x18]
call sub.msvcrt.dll_memset
mov r9, r15
lea r8, str.ExpandEnvironmentString__s__NULL__0_
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x50]
call fcn.1400d020c
int3
lea rcx, [rbp + 0x68]
call fcn.14000384c
nop
lea rcx, [rsp + 0x50]
call fcn.140010ab0
nop
jmp 0x1400132bf
mov dword [rbp + 0xd0], 0x8007000e
lea rdx, [0x140156368]
lea rcx, [rbp + 0xd0]
call sub.msvcrt.dll__CxxThrowException
nop
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop
jmp 0x1400131de
lea rdx, [rbp + 0x68]
mov rcx, rsi
call fcn.140066c88
mov qword [rbp - 0x40], r13
lea rax, str.CVssAutoString_class_CVssAutoLocalPtr_unsigned_short____::ExpandEnvironmentStringsW
mov qword [rbp - 0x38], rax
lea rax, str.INCSTRH
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x28], 0x11f
mov dword [rbp - 0x24], reloc.VssTrace.DLL_Ordinal_11
mov dword [rbp - 0x20], 0xff
mov dword [rbp + 0x60], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rbp - 0x18]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x28], edi
mov rax, qword [rsi + 8]
mov qword [rsp + 0x20], rax
mov r9, r15
lea r8, str.ExpandEnvironmentString__s___p___d_
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x50]
call fcn.1400d020c
int3