Function at 0x1400192c0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4b8]
sub rsp, 0x590
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14002f198]
xor rax, rsp
mov qword [rbp + 0x480], rax
mov rdi, rcx
xor esi, esi
mov dword [rcx + 0x558], esi
lea r13d, [rsi + 0xa]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rdi + 0x76c], eax
lea r8, [rdi + 0x80]
lea rdx, [0x14002b8e0]
lea rcx, [rsp + 0x50]
call fcn.14001ad70
mov qword [rbp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14001935a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14001935a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rbp + 0x50], rsi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r11, [rbp + 0x50]
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
mov r14d, 1
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14001983c
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x38], esi
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.RotateTime
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400193ef
cmp dword [rsp + 0x38], 4
jne 0x1400193ef
cmp dword [rsp + 0x34], 4
mov eax, dword [rsp + 0x30]
je 0x1400193f1
mov eax, esi
mov dword [rdi + 0x778], eax
mov ebx, dword [rdi + 0x774]
xor r8d, r8d
lea rdx, str.Enabled
lea rcx, [rsp + 0x50]
call fcn.140017740
test eax, eax
je 0x140019439
test ebx, ebx
je 0x140019434
mov r8d, 0x121
lea rdx, str.Context
lea rcx, [rsp + 0x50]
call fcn.140017740
test ebx, eax
je 0x140019439
mov eax, r14d
jmp 0x14001943b
mov eax, esi
movzx eax, al
mov dword [rdi + 0x558], eax
mov r8d, r14d
lea rdx, str.Append
lea rcx, [rsp + 0x50]
call fcn.140017740
mov dword [rdi + 0x55c], eax
mov r8d, 0x1900000
lea rdx, str.MaxSize
lea rcx, [rsp + 0x50]
call fcn.140017740
mov dword [rdi + 0x560], eax
mov r8d, 5
lea rdx, str.LogLevel
lea rcx, [rsp + 0x50]
call fcn.140017740
mov dword [rdi + 0x50], eax
cmp eax, 7
jbe 0x1400194a1
mov dword [rdi + 0x50], 7
mov word [rdi + 0x350], si
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x30], esi
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.ExtMaxFiles
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400194fd
cmp dword [rsp + 0x30], 4
jne 0x1400194fd
cmp dword [rsp + 0x34], 4
jne 0x1400194fd
mov r13d, dword [rsp + 0x38]
lea rsi, [0x14002b7e4]
mov rdx, rsi
lea rcx, [rbp + 0x270]
call fcn.14001ade0
mov r11d, 0xa0
mov ecx, r11d
lea rax, [rbp + 0x270]
mov r12d, 0x7ffffffe
cmp word [rax], 0
je 0x14001953a
add rax, 2
dec rcx
jne 0x140019523
jmp 0x1400195a1
test rcx, rcx
je 0x1400195a1
mov rax, r11
sub rax, rcx
lea rcx, [rbp + rax*2 + 0x270]
sub r11, rax
cmp r11, r14
jbe 0x1400195a1
test r11, r11
je 0x140019596
mov rdx, r12
sub rdx, r11
lea r8, str.ExtMaxSize
sub r8, rcx
nop word [rax + rax]
lea rax, [r11 + rdx]
test rax, rax
je 0x140019591
movzx eax, word [rcx + r8]
test ax, ax
je 0x140019591
mov word [rcx], ax
add rcx, 2
dec r11
jne 0x140019570
jmp 0x140019596
test r11, r11
jne 0x14001959a
sub rcx, 2
xor ebx, ebx
mov word [rcx], bx
jmp 0x1400195a3
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], MsiSourceListClearAllW
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3b0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [rbp + 0x270]
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400195fb
cmp dword [rsp + 0x30], r14d
jne 0x1400195fb
mov eax, dword [rsp + 0x34]
shr eax, 1
inc eax
mov word [rbp + rax*2 + 0x3b0], bx
jmp 0x140019650
mov word [rbp + 0x3b0], bx
mov edx, 0x64
lea rcx, [rbp + 0x3b0]
lea r8, str.16MB
lea rax, [rbp + 0x3b0]
sub r8, rax
nop
lea rax, [rdx + 0x7fffff9a]
test rax, rax
je 0x140019644
movzx eax, word [rcx + r8]
test ax, ax
je 0x140019644
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x140019620
jmp 0x140019649
test rdx, rdx
jne 0x14001964d
sub rcx, 2
mov word [rcx], bx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.EventNamesEnabled
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400196a3
cmp dword [rsp + 0x30], 4
jne 0x1400196a3
cmp dword [rsp + 0x34], 4
mov eax, dword [rsp + 0x38]
je 0x1400196a5
mov eax, ebx
cmp eax, r14d
sete al
mov byte [rdi + 0xd], al
mov word [rbp + 0x60], bx
mov ebx, 0x104
mov edx, ebx
lea rcx, [rbp + 0x60]
lea rax, [rbp + 0x60]
sub rsi, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400196e7
movzx eax, word [rcx + rsi]
test ax, ax
je 0x1400196e7
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x1400196c4
jmp 0x1400196ec
test rdx, rdx
jne 0x1400196f0
sub rcx, 2
xor esi, esi
mov word [rcx], si
lea rdx, [rbp + 0x60]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r11, rbx
lea rax, [rbp + 0x60]
cmp word [rax], si
je 0x14001971b
add rax, 2
dec r11
jne 0x140019708
jmp 0x1400197e0
test r11, r11
je 0x1400197e0
mov rsi, rbx
sub rsi, r11
je 0x1400197de
cmp rsi, 3
jb 0x1400197de
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400197de
test al, 0x10
je 0x1400197de
cmp word [rbp + rsi*2 + 0x5e], 0x5c
je 0x140019823
mov rcx, rbx
lea rax, [rbp + 0x60]
cmp word [rax], 0
je 0x14001977c
add rax, 2
dec rcx
jne 0x140019768
jmp 0x140019823
xor esi, esi
test rcx, rcx
je 0x140019825
mov rax, rbx
sub rax, rcx
lea rcx, [rbp + rax*2 + 0x60]
sub rbx, rax
cmp rbx, r14
jbe 0x140019825
test rbx, rbx
je 0x1400197d5
sub r12, rbx
lea rdx, [0x14002bf84]
sub rdx, rcx
lea rax, [rbx + r12]
test rax, rax
je 0x1400197d0
movzx eax, word [rcx + rdx]
test ax, ax
je 0x1400197d0
mov word [rcx], ax
add rcx, 2
dec rbx
jne 0x1400197b0
jmp 0x1400197d5
test rbx, rbx
jne 0x1400197d9
sub rcx, 2
mov word [rcx], si
jmp 0x140019825
xor esi, esi
lea rcx, [rbp + 0x60]
lea rdx, [0x14002bf88]
lea rax, [rbp + 0x60]
sub rdx, rax
lea rax, [rbx + 0x7ffffefa]
test rax, rax
je 0x140019815
movzx eax, word [rcx + rdx]
test ax, ax
je 0x140019815
mov word [rcx], ax
add rcx, 2
dec rbx
jne 0x1400197f2
jmp 0x14001981a
test rbx, rbx
jne 0x14001981e
sub rcx, 2
mov word [rcx], si
jmp 0x140019825
xor esi, esi
lea r8, [rdi + 0x564]
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14001ae50
jmp 0x140019842
mov dword [rdi + 0x558], esi
cmp qword [rdi + 0x38], 0
jne 0x140019863
cmp dword [rdi + 0x558], 0
je 0x140019863
lea rcx, [0x14002bf90]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rdi + 0x38], rax
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14001993e
cmp dword [rdi + 0x558], 0
je 0x140019908
lea rdx, str.InitializeLogging
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x10], rax
lea rdx, [0x14002bfc4]
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x18], rax
lea rdx, str.DestroyLogging
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x20], rax
lea rdx, str.ConfigureLog
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x28], rax
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1400198f1
cmp qword [rdi + 0x30], 0
jne 0x1400198f1
lea rdx, [rdi + 0x564]
lea rcx, [rdi + 0x80]
call rax
mov qword [rdi + 0x30], rax
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x14001993e
lea rdx, [rbp + 0x3b0]
mov ecx, r13d
call rax
jmp 0x14001993e
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x14001991c
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x14001991c
call rax
mov qword [rdi + 0x30], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
mov qword [rdi + 0x20], rsi
mov qword [rdi + 0x28], rsi
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rdi + 0x38], rsi
cmp qword [rdi + 0x38], 0
jne 0x140019961
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rdi
call fcn.1400199e0
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp qword [rdi + 0x40], 0xffffffffffffffff
jne 0x140019972
cmp qword [rdi + 0x30], 0
jne 0x140019972
mov r14d, esi
mov byte [rdi + 0xc], r14b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14001999d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140019999
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rbp + 0x50], rsi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.14001cea0
lea r11, [rsp + 0x590]
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