Function at 0x140005d90
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 [0x140022218]
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 0x140006158
lock cmpxchg dword [rdi + 0x76c], r11d
jne 0x140006158
lea r8, [rdi + 0x80]
lea rdx, [0x14001c3c0]
lea rcx, [rsp + 0x70]
call fcn.140008180
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 0x140005e3f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140005e3f
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 0x140006129
mov ebx, dword [rdi + 0x774]
xor r8d, r8d
lea rdx, str.Enabled
lea rcx, [rsp + 0x70]
call fcn.140004610
test eax, eax
je 0x1400060bf
test ebx, ebx
je 0x140005ec2
mov r8d, 0x121
lea rdx, str.Context
lea rcx, [rsp + 0x70]
call fcn.140004610
test ebx, eax
je 0x1400060bf
cmp byte [rdi + 0xc], 0
je 0x1400060ab
mov r8d, 0x1900000
lea rdx, str.MaxSize
lea rcx, [rsp + 0x70]
call fcn.140004610
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.140004610
mov ebx, eax
mov eax, 7
cmp ebx, eax
cmova ebx, eax
cmp esi, ebx
je 0x140005f9a
lea r14, str.Log_level_changed_from__u_to__u
jbe 0x140005f5b
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.140006f60
mov dword [rdi + 0x50], ebx
cmp esi, ebx
jae 0x140005f9a
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.140006f60
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 0x140005fef
cmp dword [rsp + 0x60], 4
jne 0x140005fef
cmp dword [rsp + 0x58], 4
mov eax, dword [rsp + 0x64]
je 0x140005ff2
mov eax, r13d
cmp eax, dword [rdi + 0x778]
je 0x140006129
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 0x14000605d
cmp dword [rsp + 0x50], 4
jne 0x14000605d
cmp dword [rsp + 0x54], 4
mov ebx, dword [rsp + 0x5c]
je 0x140006060
mov ebx, r13d
cmp ebx, dword [rdi + 0x778]
je 0x14000611e
mov dword [rdi + 0x778], ebx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x3a98
jae 0x14000611e
lea rdx, str._r_n____Continued_from_old_log_because_of_user_request_____r_n_r_n
mov rcx, rdi
call fcn.140008030
test al, al
je 0x14000611e
lea rcx, [rdi + 0x350]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14000611e
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rdi
call fcn.140006190
jmp 0x14000611e
cmp byte [rdi + 0xc], 0
je 0x140006129
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.140006f60
mov dword [rdi + 0x558], r13d
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rdi
call fcn.140005ca0
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 0x140006150
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14000614c
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.14000c410
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