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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rsi, rcx
xor r15d, r15d
lea r14, [0x140003a40]
lea r12, [0x140003cb0]
lea r13, [0x140003a28]
lea rcx, [rbp - 0x18]
lea r8d, [r15 + 0x78]
xor edx, edx
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], r13
mov dword [rbp - 0x28], 0xa3
mov dword [rbp - 0x24], 1
mov dword [rbp - 0x20], 0xff
mov dword [rbp + 0x60], 0x1000000
call sub.msvcrt.dll_memset
mov rax, qword [rbp - 0x38]
mov dword [rsp + 0x58], r15d
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]
lea rcx, [rbp + 0x310]
mov dword [rbp - 0x7c], eax
mov eax, dword [rbp - 0x20]
mov dword [rsp + 0x54], 0xffffffff
mov dword [rsp + 0x50], r15d
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x70], r15
mov dword [rbp - 0x78], eax
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x58], r15
mov qword [rbp + 0x310], r15
call qword [sym.imp.VssTrace.DLL_Ordinal_10]
test eax, eax
js 0x140050857
lea rcx, [rsp + 0x50]
call qword [sym.imp.VssTrace.DLL_Ordinal_9]
test eax, eax
js 0x140050857
mov rax, qword [rbp + 0x310]
mov qword [rbp - 0x50], rax
test rax, rax
je 0x140050860
mov eax, dword [rax + 0x30]
inc eax
mov dword [rbp - 0x80], eax
mov ebx, dword [rbp - 0x78]
cmp ebx, 0xff
jne 0x140050452
mov ebx, RegisterTypeLib
mov edi, dword [rsp + 0x74]
call qword [sym.imp.VssTrace.DLL_Ordinal_5]
test eax, eax
jne 0x14006695a
cmp byte [rbp + 0x63], r15b
je 0x140050488
lea rbx, [rbp - 0x18]
mov edi, 0xf
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400669c5
add rbx, 8
dec rdi
jne 0x140050473
xor edx, edx
lea rcx, [rbp + 0x108]
mov qword [rbp + 0xe0], r14
lea r8d, [rdx + 0x78]
mov qword [rbp + 0xe8], r12
mov qword [rbp + 0xf0], r13
mov dword [rbp + 0xf8], 0xa4
mov dword [rbp + 0xfc], 1
mov dword [rbp + 0x100], 0xff
mov dword [rbp + 0x180], 0x1000000
call sub.msvcrt.dll_memset
mov ecx, dword [rsi + 0x20]
lea eax, [rcx - 1]
lea r8, [0x140003d00]
lea rdx, [rbp + 0xe0]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x50]
mov r9, rsi
call fcn.1400510b0
or edi, 0xffffffff
lock xadd dword [rsi + 0x20], edi
dec edi
je 0x140050618
mov rbx, r15
mov rcx, qword [rbp + rbx*8 - 0x70]
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov qword [rbp + rbx*8 - 0x70], r15
inc rbx
cmp rbx, 4
jl 0x140050513
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetTickCount]
mov r8d, dword [rbp - 0x78]
mov r9d, eax
mov eax, 0x10624dd3
sub r9d, dword [rbp - 0x7c]
mov esi, r9d
mul r9d
mov eax, 0x88888889
mov r10d, edx
shr r10d, 6
mul r10d
imul ecx, r10d, 0x3e8
mov eax, 0x45e7b273
shr edx, 5
sub esi, ecx
imul ecx, edx, 0x3c
mul r9d
mov eax, 0x88888889
mov r11d, edx
sub r10d, ecx
shr r11d, 0xe
mul r11d
mov eax, 0x95217cb1
shr edx, 5
imul ecx, edx, 0x3c
mul r9d
mov eax, 0x88888889
mov ebx, edx
sub r11d, ecx
shr ebx, 0x15
mul ebx
shr edx, 5
imul eax, edx, 0x3c
sub ebx, eax
cmp r8d, 0xff
jne 0x1400505b4
mov r8d, RegisterTypeLib
mov ecx, dword [rsp + 0x58]
lea rdx, [0x1400043d0]
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
lea r9, [0x1400043e0]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x20], ebx
call fcn.140051070
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.VssTrace.DLL_Ordinal_9]
lea r11, [rsp + 0x3e0]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
cmp byte [rsi + 0x48], r15b
je 0x140050627
lea rcx, [rsi + 0x28]
call fcn.14005cea0
xor edx, edx
lea rax, [0x140005f88]
lea r12, [0x140005f30]
lea r13, [0x1400060b0]
lea rcx, [rbp + 0x1b0]
lea r8d, [rdx + 0x78]
mov qword [rbp + 0x188], r12
mov qword [rbp + 0x198], rax
mov dword [rbp + 0x1a0], 0x29e
mov qword [rbp + 0x190], r13
mov dword [rbp + 0x1a4], reloc.VssTrace.DLL_Ordinal_11
mov dword [rbp + 0x1a8], 0xff
mov dword [rbp + 0x228], 0x1000000
call sub.msvcrt.dll_memset
lea rdx, [rbp + 0x188]
lea rcx, [rbp + 0x70]
xor r8d, r8d
call fcn.140052e50
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x1400506bb
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ebx, eax
test eax, eax
jne 0x1400669d3
mov qword [rsi + 0x30], r15
mov rcx, qword [rsi + 0x40]
test rcx, rcx
jne 0x14005084c
mov qword [rsi + 0x40], r15
mov rbx, r15
mov rcx, qword [rbp + rbx*8 + 0xb0]
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov qword [rbp + rbx*8 + 0xb0], r15
inc rbx
cmp rbx, 4
jl 0x1400506cf
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetTickCount]
mov r8d, dword [rbp + 0xa8]
mov r9d, eax
mov eax, 0x10624dd3
sub r9d, dword [rbp + 0xa4]
mov ebx, r9d
mul r9d
mov eax, 0x88888889
mov r10d, edx
shr r10d, 6
mul r10d
imul ecx, r10d, 0x3e8
shr edx, 5
sub ebx, ecx
imul eax, edx, 0x3c
sub r10d, eax
mov eax, 0x45e7b273
mul r9d
mov eax, 0x88888889
mov ecx, edx
shr ecx, 0xe
mul ecx
shr edx, 5
imul eax, edx, 0x3c
sub ecx, eax
mov eax, 0x95217cb1
mul r9d
mov eax, 0x88888889
mov r11d, edx
shr r11d, 0x15
mul r11d
shr edx, 5
imul eax, edx, 0x3c
sub r11d, eax
cmp r8d, 0xff
jne 0x14005077c
mov r8d, RegisterTypeLib
mov eax, dword [rbp + 0x78]
lea rdx, [0x1400043d0]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], ecx
lea r9, [0x1400043e0]
lea rcx, [rbp + 0x70]
mov dword [rsp + 0x20], r11d
call fcn.140051070
mov rcx, qword [rbp + 0xd0]
call qword [sym.imp.VssTrace.DLL_Ordinal_9]
mov rcx, qword [rsi + 0x40]
lea rax, [0x140001b68]
mov qword [rsi + 0x38], rax
test rcx, rcx
jne 0x140066a4e
lea rax, [0x140001e38]
mov qword [rsi + 0x40], r15
mov qword [rsi + 0x38], rax
mov r14, qword [rsi + 0x18]
test r14, r14
je 0x140050803
mov rax, qword [r14]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.14005e6a0]
mov rcx, r14
call rbx
mov r14, qword [rsi + 0x10]
test r14, r14
je 0x140050821
mov rax, qword [r14]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.14005e6a0]
mov rcx, r14
call rbx
mov r14, qword [rsi + 8]
test r14, r14
je 0x14005083f
mov rax, qword [r14]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.14005e6a0]
mov rcx, r14
call rbx
mov rcx, rsi
call fcn.14005d774
jmp 0x140050510
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
jmp 0x1400506c8
mov rax, qword [rbp - 0x50]
jmp 0x140050431
mov dword [rbp - 0x80], r15d
jmp 0x140050442
mov ecx, edi
call qword [sym.imp.VssTrace.DLL_Ordinal_7]
test eax, eax
je 0x140050464
lea rcx, [rsp + 0x50]
call fcn.140103ce0
cmp dword [rsp + 0x50], r15d
je 0x140050464
mov r9d, dword [rbp - 0x80]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], ebx
lea rax, [0x1400043c0]
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
call qword [sym.imp.VssTrace.DLL_Ordinal_3]
nop
jmp 0x140050464
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov qword [rbx], r15
jmp 0x14005047f
xor edx, edx
lea rax, [0x140005f88]
lea rcx, [rbp + 0x258]
lea r8d, [rdx + 0x78]
mov qword [rbp + 0x230], r12
mov qword [rbp + 0x238], r13
mov qword [rbp + 0x240], rax
mov dword [rbp + 0x248], 0x2a5
mov dword [rbp + 0x24c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rbp + 0x250], 0xff
mov dword [rbp + 0x2d0], 0x1000000
call sub.msvcrt.dll_memset
mov r9, qword [rsi + 0x40]
lea r8, [0x1400060e0]
lea rdx, [rbp + 0x230]
lea rcx, [rbp + 0x70]
mov dword [rsp + 0x20], ebx
call fcn.1400510b0
nop
jmp 0x1400506b7
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
nop
jmp 0x1400507d6