Function at 0x140006190
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 [0x140022218]
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, [0x14001c3c0]
lea rcx, [rsp + 0x50]
call fcn.140008180
mov qword [rbp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14000622a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14000622a
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 0x14000670c
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 0x1400062bf
cmp dword [rsp + 0x38], 4
jne 0x1400062bf
cmp dword [rsp + 0x34], 4
mov eax, dword [rsp + 0x30]
je 0x1400062c1
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.140004610
test eax, eax
je 0x140006309
test ebx, ebx
je 0x140006304
mov r8d, 0x121
lea rdx, str.Context
lea rcx, [rsp + 0x50]
call fcn.140004610
test ebx, eax
je 0x140006309
mov eax, r14d
jmp 0x14000630b
mov eax, esi
movzx eax, al
mov dword [rdi + 0x558], eax
mov r8d, r14d
lea rdx, str.Append
lea rcx, [rsp + 0x50]
call fcn.140004610
mov dword [rdi + 0x55c], eax
mov r8d, 0x1900000
lea rdx, str.MaxSize
lea rcx, [rsp + 0x50]
call fcn.140004610
mov dword [rdi + 0x560], eax
mov r8d, 5
lea rdx, str.LogLevel
lea rcx, [rsp + 0x50]
call fcn.140004610
mov dword [rdi + 0x50], eax
cmp eax, 7
jbe 0x140006371
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 0x1400063cd
cmp dword [rsp + 0x30], 4
jne 0x1400063cd
cmp dword [rsp + 0x34], 4
jne 0x1400063cd
mov r13d, dword [rsp + 0x38]
lea rsi, [0x14001c2c0]
mov rdx, rsi
lea rcx, [rbp + 0x270]
call fcn.1400081f0
mov r11d, 0xa0
mov ecx, r11d
lea rax, [rbp + 0x270]
mov r12d, 0x7ffffffe
cmp word [rax], 0
je 0x14000640a
add rax, 2
dec rcx
jne 0x1400063f3
jmp 0x140006471
test rcx, rcx
je 0x140006471
mov rax, r11
sub rax, rcx
lea rcx, [rbp + rax*2 + 0x270]
sub r11, rax
cmp r11, r14
jbe 0x140006471
test r11, r11
je 0x140006466
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 0x140006461
movzx eax, word [rcx + r8]
test ax, ax
je 0x140006461
mov word [rcx], ax
add rcx, 2
dec r11
jne 0x140006440
jmp 0x140006466
test r11, r11
jne 0x14000646a
sub rcx, 2
xor ebx, ebx
mov word [rcx], bx
jmp 0x140006473
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], 0xc6
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 0x1400064cb
cmp dword [rsp + 0x30], r14d
jne 0x1400064cb
mov eax, dword [rsp + 0x34]
shr eax, 1
inc eax
mov word [rbp + rax*2 + 0x3b0], bx
jmp 0x140006520
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 0x140006514
movzx eax, word [rcx + r8]
test ax, ax
je 0x140006514
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x1400064f0
jmp 0x140006519
test rdx, rdx
jne 0x14000651d
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 0x140006573
cmp dword [rsp + 0x30], 4
jne 0x140006573
cmp dword [rsp + 0x34], 4
mov eax, dword [rsp + 0x38]
je 0x140006575
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 0x1400065b7
movzx eax, word [rcx + rsi]
test ax, ax
je 0x1400065b7
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x140006594
jmp 0x1400065bc
test rdx, rdx
jne 0x1400065c0
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 0x1400065eb
add rax, 2
dec r11
jne 0x1400065d8
jmp 0x1400066b0
test r11, r11
je 0x1400066b0
mov rsi, rbx
sub rsi, r11
je 0x1400066ae
cmp rsi, 3
jb 0x1400066ae
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400066ae
test al, 0x10
je 0x1400066ae
cmp word [rbp + rsi*2 + 0x5e], 0x5c
je 0x1400066f3
mov rcx, rbx
lea rax, [rbp + 0x60]
cmp word [rax], 0
je 0x14000664c
add rax, 2
dec rcx
jne 0x140006638
jmp 0x1400066f3
xor esi, esi
test rcx, rcx
je 0x1400066f5
mov rax, rbx
sub rax, rcx
lea rcx, [rbp + rax*2 + 0x60]
sub rbx, rax
cmp rbx, r14
jbe 0x1400066f5
test rbx, rbx
je 0x1400066a5
sub r12, rbx
lea rdx, [0x14001ca64]
sub rdx, rcx
lea rax, [rbx + r12]
test rax, rax
je 0x1400066a0
movzx eax, word [rcx + rdx]
test ax, ax
je 0x1400066a0
mov word [rcx], ax
add rcx, 2
dec rbx
jne 0x140006680
jmp 0x1400066a5
test rbx, rbx
jne 0x1400066a9
sub rcx, 2
mov word [rcx], si
jmp 0x1400066f5
xor esi, esi
lea rcx, [rbp + 0x60]
lea rdx, [0x14001ca68]
lea rax, [rbp + 0x60]
sub rdx, rax
lea rax, [rbx + 0x7ffffefa]
test rax, rax
je 0x1400066e5
movzx eax, word [rcx + rdx]
test ax, ax
je 0x1400066e5
mov word [rcx], ax
add rcx, 2
dec rbx
jne 0x1400066c2
jmp 0x1400066ea
test rbx, rbx
jne 0x1400066ee
sub rcx, 2
mov word [rcx], si
jmp 0x1400066f5
xor esi, esi
lea r8, [rdi + 0x564]
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140008260
jmp 0x140006712
mov dword [rdi + 0x558], esi
cmp qword [rdi + 0x38], 0
jne 0x140006733
cmp dword [rdi + 0x558], 0
je 0x140006733
lea rcx, [0x14001ca70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rdi + 0x38], rax
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14000680e
cmp dword [rdi + 0x558], 0
je 0x1400067d8
lea rdx, str.InitializeLogging
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x10], rax
lea rdx, [0x14001caa4]
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 0x1400067c1
cmp qword [rdi + 0x30], 0
jne 0x1400067c1
lea rdx, [rdi + 0x564]
lea rcx, [rdi + 0x80]
call rax
mov qword [rdi + 0x30], rax
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x14000680e
lea rdx, [rbp + 0x3b0]
mov ecx, r13d
call rax
jmp 0x14000680e
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x1400067ec
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x1400067ec
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 0x140006831
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rdi
call fcn.1400068b0
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp qword [rdi + 0x40], 0xffffffffffffffff
jne 0x140006842
cmp qword [rdi + 0x30], 0
jne 0x140006842
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 0x14000686d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140006869
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.14000c410
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