Function at 0x140018ec0
Capabilities:
Check for time delay via gettickcount
Delete file
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0xb8]
sub rsp, 0x190
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14002f198]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r11d, eax
mov eax, dword [rdi + 0x76c]
mov ecx, r11d
sub ecx, eax
cmp ecx, 0xbb8
jb 0x140019288
lock cmpxchg dword [rdi + 0x76c], r11d
jne 0x140019288
lea r8, [rdi + 0x80]
lea rdx, [0x14002b8e0]
lea rcx, [rsp + 0x70]
call fcn.14001ad70
xor r13d, r13d
mov qword [rbp + 0x70], r13
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x140018f6f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140018f6f
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rbp + 0x70], r13
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r11, [rbp + 0x70]
mov qword [rsp + 0x20], r11
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareCenterToolsTraceLog
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop
cmp qword [rbp + 0x70], 0
je 0x140019259
mov ebx, dword [rdi + 0x774]
xor r8d, r8d
lea rdx, str.Enabled
lea rcx, [rsp + 0x70]
call fcn.140017740
test eax, eax
je 0x1400191ef
test ebx, ebx
je 0x140018ff2
mov r8d, 0x121
lea rdx, str.Context
lea rcx, [rsp + 0x70]
call fcn.140017740
test ebx, eax
je 0x1400191ef
cmp byte [rdi + 0xc], 0
je 0x1400191db
mov r8d, 0x1900000
lea rdx, str.MaxSize
lea rcx, [rsp + 0x70]
call fcn.140017740
mov dword [rdi + 0x560], eax
mov esi, dword [rdi + 0x50]
mov r12d, 5
mov r8d, r12d
lea rdx, str.LogLevel
lea rcx, [rsp + 0x70]
call fcn.140017740
mov ebx, eax
mov eax, 7
cmp ebx, eax
cmova ebx, eax
cmp esi, ebx
je 0x1400190ca
lea r14, str.Log_level_changed_from__u_to__u
jbe 0x14001908b
mov ecx, r12d
cmp esi, ecx
cmovb ecx, esi
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea rdx, str.LogConfigChange
mov rcx, rdi
call fcn.14001a090
mov dword [rdi + 0x50], ebx
cmp esi, ebx
jae 0x1400190ca
cmp ebx, r12d
cmovb r12d, ebx
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea rdx, str.LogConfigChange
mov rcx, rdi
call fcn.14001a090
mov dword [rsp + 0x64], r13d
mov dword [rsp + 0x58], 4
mov dword [rsp + 0x60], r13d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.RotateTime
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001911f
cmp dword [rsp + 0x60], 4
jne 0x14001911f
cmp dword [rsp + 0x58], 4
mov eax, dword [rsp + 0x64]
je 0x140019122
mov eax, r13d
cmp eax, dword [rdi + 0x778]
je 0x140019259
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [rsp + 0x5c], r13d
mov dword [rsp + 0x54], 4
mov dword [rsp + 0x50], r13d
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.RotateTime
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001918d
cmp dword [rsp + 0x50], 4
jne 0x14001918d
cmp dword [rsp + 0x54], 4
mov ebx, dword [rsp + 0x5c]
je 0x140019190
mov ebx, r13d
cmp ebx, dword [rdi + 0x778]
je 0x14001924e
mov dword [rdi + 0x778], ebx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x3a98
jae 0x14001924e
lea rdx, str._r_n____Continued_from_old_log_because_of_user_request_____r_n_r_n
mov rcx, rdi
call fcn.14001ac20
test al, al
je 0x14001924e
lea rcx, [rdi + 0x350]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14001924e
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rdi
call fcn.1400192c0
jmp 0x14001924e
cmp byte [rdi + 0xc], 0
je 0x140019259
mov eax, dword [rdi + 0x50]
mov r12d, 5
cmp eax, r12d
cmovb r12d, eax
lea rax, str.Logging_was_disabled
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea rdx, str.LogConfigChange
mov rcx, rdi
call fcn.14001a090
mov dword [rdi + 0x558], r13d
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rdi
call fcn.140018dd0
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x140019280
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14001927c
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rbp + 0x70], r13
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14001cea0
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret