Function at 0x100002280
Capabilities:
Get common file path
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub rsp, 0xa8
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x68], r15
mov rsi, rcx
mov edi, 0x20a
mov rdx, rdi
mov r12d, 0x40
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
mov rdx, rdi
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r15, rax
mov rdx, rdi
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r13, rax
mov rdx, rdi
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
mov qword [rsp + 0x48], rax
mov rdx, rdi
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x38], rax
lea rdx, [0x100001340]
mov r8, r14
sub r8, rdx
nop
nop
movzx ecx, word [rdx]
mov word [r8 + rdx], cx
add rdx, 2
test cx, cx
jne 0x100002330
mov rdi, r14
xor eax, eax
mov rbp, 0xffffffffffffffff
mov rcx, rbp
repne scasw ax, word [rdi]
mov rdx, rdi
sub rdx, 2
mov rcx, rbp
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
inc rcx
add rcx, rcx
mov rdi, rdx
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x40]
mov rdx, r14
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10000259b
xor r12d, r12d
nop
nop
nop
lea rsi, [0x1000013bc]
mov r9d, 0x105
mov r8, r15
mov edx, r12d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0xea
je 0x1000023cd
test eax, eax
jne 0x10000259b
mov rcx, r14
mov rdx, r13
sub rdx, r14
nop
nop
nop
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x1000023e0
mov rdi, r13
xor eax, eax
mov rcx, rbp
repne scasw ax, word [rdi]
mov rdx, rdi
sub rdx, 2
mov rcx, rbp
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
inc rcx
add rcx, rcx
mov rdi, rdx
rep movsb byte [rdi], byte [rsi]
mov rdi, r13
mov rcx, rbp
repne scasw ax, word [rdi]
mov rdx, rdi
sub rdx, 2
mov rcx, rbp
mov rdi, r15
repne scasw ax, word [rdi]
not rcx
dec rcx
inc rcx
add rcx, rcx
mov rdi, rdx
mov rsi, r15
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r13
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x34], 1
mov esi, 0x20a
mov dword [rsp + 0x30], esi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, [0x100001330]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov qword [rsp + 0x50], rdi
test ebx, ebx
je 0x1000024d3
inc r12d
cmp r12d, 0xff
mov rbx, qword [rsp + 0x48]
jb 0x1000023a0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r15, rdi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r13, rdi
mov rdx, rsi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r10, rax
mov qword [rsp + 0x38], rax
lea rcx, [0x1000012e0]
mov rdx, rax
sub rdx, rcx
nop
nop
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x100002530
mov rdi, r10
xor eax, eax
mov rcx, rbp
repne scasw ax, word [rdi]
mov rdx, rdi
sub rdx, 2
mov rcx, rbp
mov rbx, qword [rsp + 0x48]
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
inc rcx
add rcx, rcx
mov rdi, rdx
mov rsi, rbx
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r10
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1000025bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r12d, ax
or r12d, 0xe2070000
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x38]
jmp 0x10000281a
mov edx, 0x20
mov esi, 0x40
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], esi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, [0x1000012d0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r12d, eax
test eax, eax
je 0x100002627
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r12d, ax
or r12d, 0xe2070000
mov rdi, qword [rsp + 0x38]
jmp 0x10000281a
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r13
mov rax, qword [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor edi, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
lea rdx, [0x1000013b8]
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_wcstok]
mov rbp, rax
mov rcx, rax
call qword [sym.imp.msvcrt.dll__strupr]
mov rcx, rax
mov r8d, 3
lea rdx, [0x1000013b0]
call qword [sym.imp.msvcrt.dll_strncmp]
test eax, eax
jne 0x10000281a
mov edx, 0x20a
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
mov edx, 0x105
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov rdi, rbx
lea r8, [0x1000013a0]
xor eax, eax
mov r9, 0xffffffffffffffff
mov rcx, r9
repne scasw ax, word [rdi]
mov rdx, rdi
sub rdx, 2
mov rcx, r9
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
dec rcx
inc rcx
add rcx, rcx
mov rdi, rdx
mov rsi, r8
rep movsb byte [rdi], byte [rsi]
mov rdi, rbx
mov rcx, r9
repne scasw ax, word [rdi]
mov rdx, rdi
sub rdx, 2
mov rcx, r9
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
dec rcx
inc rcx
add rcx, rcx
mov rdi, rdx
mov rsi, rbp
rep movsb byte [rdi], byte [rsi]
mov rdi, rbx
lea rsi, [0x100001390]
mov rcx, r9
repne scasw ax, word [rdi]
mov r8, rdi
sub r8, 2
mov rcx, r9
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
inc rcx
add rcx, rcx
mov rdi, r8
rep movsb byte [rdi], byte [rsi]
mov rcx, rbx
call fcn.100001f50
mov edx, 0x105
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov rdi, rbx
xor eax, eax
mov r8, 0xffffffffffffffff
mov rcx, r8
repne scasw ax, word [rdi]
mov rdx, rdi
sub rdx, 2
mov rcx, r8
lea rsi, [0x1000013a0]
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
inc rcx
add rcx, rcx
mov rdi, rdx
rep movsb byte [rdi], byte [rsi]
mov rdi, rbx
mov rcx, r8
repne scasw ax, word [rdi]
mov rdx, rdi
sub rdx, 2
mov rcx, r8
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
dec rcx
inc rcx
add rcx, rcx
mov rdi, rdx
mov rsi, rbp
rep movsb byte [rdi], byte [rsi]
mov rdi, rbx
lea rsi, [0x100001380]
mov rcx, r8
repne scasw ax, word [rdi]
mov rdx, rdi
sub rdx, 2
mov rcx, r8
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
inc rcx
add rcx, rcx
mov rdi, rdx
rep movsb byte [rdi], byte [rsi]
mov rcx, rbx
call fcn.100001f50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x58], r13
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
mov rbx, rbp
mov rdi, rbx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x10000282a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x10000283a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r14, r14
je 0x100002848
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r15, r15
je 0x100002856
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r13, r13
je 0x100002864
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbx, rbx
je 0x100002872
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x100002880
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x10000288e
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x10000289e
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, r12d
mov rbx, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov r12, qword [rsp + 0x80]
mov r13, qword [rsp + 0x78]
mov r14, qword [rsp + 0x70]
mov r15, qword [rsp + 0x68]
add rsp, 0xa8
ret