Function at 0x140088970
Capabilities:
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0x778]
sub rsp, 0x878
mov r9d, 1
lea rdx, str.CKnownFolders::InitUsers_Enter
mov rdi, rcx
mov r8d, r9d
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
lea r8, [rbp + 0x7a0]
mov rcx, 0xffffffff80000002
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x1400889cc
xor eax, eax
add rsp, 0x878
pop rdi
pop rbp
ret
mov r9d, 1
mov qword [rsp + 0x870], rbx
mov r8d, r9d
lea rdx, str.AddDefaultUser
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
movups xmm0, xmmword [str.Default]
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x208
movaps xmmword [rsp + 0x30], xmm0
call fcn.140249b10
mov rcx, qword [rbp + 0x7a0]
lea rax, [rbp + 0x798]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
lea rax, [rbp + 0x350]
mov dword [rbp + 0x798], 0x206
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140088a7c
mov r8d, 0x104
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x350]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea r8, [rbp + 0x140]
mov rcx, rdi
lea rdx, [rsp + 0x30]
call fcn.1400816f0
mov r9d, 1
lea rdx, str.AddPublicUser
mov r8d, r9d
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
mov eax, dword [0x140299b08]
lea rcx, [rbp + 0x140]
movsd xmm0, qword [str.Public]
xor edx, edx
mov dword [rsp + 0x38], eax
mov r8d, 0x208
movzx eax, word [0x140299b0c]
mov word [rsp + 0x3c], ax
movsd qword [rsp + 0x30], xmm0
mov dword [rbp + 0x798], 0x206
call fcn.140249b10
mov rcx, qword [rbp + 0x7a0]
lea rax, [rbp + 0x798]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
lea rax, [rbp + 0x350]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140088b3c
mov r8d, 0x104
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x350]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea r8, [rbp + 0x140]
mov rcx, rdi
lea rdx, [rsp + 0x30]
call fcn.1400816f0
movups xmm0, xmmword [str.ProfilesDirectory]
mov eax, dword [0x140299b30]
xor edx, edx
movups xmm1, xmmword [0x140299b20]
mov r8d, 0x208
lea rcx, [rbp + 0x140]
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x40], xmm1
mov dword [rsp + 0x50], eax
mov dword [rbp + 0x798], 0x206
call fcn.140249b10
mov rcx, qword [rbp + 0x7a0]
lea rax, [rbp + 0x798]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
lea rax, [rbp + 0x350]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebx, ebx
test eax, eax
jne 0x140088cc6
mov r9d, 1
lea rdx, str.AddProfilesFolder
mov r8d, r9d
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
mov r8d, 0x104
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x350]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea r9, [rbp + 0x140]
mov dword [rsp + 0x28], ebx
lea r8, str.PROFILESFOLDER
mov qword [rsp + 0x20], rbx
lea rdx, str._UserProfiles_
mov rcx, rdi
call fcn.14007e9e0
mov r9d, 1
lea rdx, str.AddDefaultUserProfile
mov r8d, r9d
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
mov rcx, qword [rbp + 0x7a0]
lea rax, [rbp + 0x798]
mov qword [rsp + 0x28], rax
lea rdx, str.DefaultUserProfile
lea rax, [rsp + 0x30]
mov dword [rbp + 0x798], 0x40e
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140088cc6
lea r8, [rbp + 0x140]
mov edx, 0x208
lea rcx, [rbp + 0x350]
call fcn.140251ec0
lea r8, [0x140287d80]
mov edx, 0x208
lea rcx, [rbp + 0x350]
call fcn.140251e40
lea r8, [rsp + 0x30]
mov edx, 0x208
lea rcx, [rbp + 0x350]
call fcn.140251e40
lea r8, [rbp + 0x350]
mov rcx, rdi
lea rdx, [rsp + 0x30]
call fcn.1400816f0
mov r9d, 1
lea rdx, str.AddProgramData
mov r8d, r9d
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
movups xmm0, xmmword [str.ProgramData]
lea rcx, [rbp + 0x140]
xor edx, edx
movsd xmm1, qword [0x140299bf0]
mov r8d, 0x208
movaps xmmword [rsp + 0x30], xmm0
movsd qword [rsp + 0x40], xmm1
mov dword [rbp + 0x798], 0x206
call fcn.140249b10
mov rcx, qword [rbp + 0x7a0]
lea rax, [rbp + 0x798]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
lea rax, [rbp + 0x350]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140088d8e
mov r8d, 0x104
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x350]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea r9, [rbp + 0x140]
mov dword [rsp + 0x28], ebx
lea r8, str.PROGRAMDATA
mov qword [rsp + 0x20], rbx
lea rdx, str._ProgramData_
mov rcx, rdi
call fcn.14007e9e0
mov r9d, 1
lea rdx, str.AddUserSIDs
mov r8d, r9d
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
mov rcx, qword [rbp + 0x7a0]
lea r8, [rbp + 0x560]
mov r9d, 0x104
mov dword [rbp + 0x798], 0x104
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x140088ee4
nop dword [rax + rax]
mov rcx, qword [rbp + 0x7a0]
lea r8, [rbp + 0x7a8]
lea rdx, [rbp + 0x560]
inc ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140088eb6
mov r9d, 0x104
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x560]
mov rcx, rdi
call fcn.1400b21e0
test eax, eax
je 0x140088ea9
xor edx, edx
mov dword [rbp + 0x798], 0x206
mov r8d, 0x208
lea rcx, [rbp + 0x140]
call fcn.140249b10
mov rcx, qword [rbp + 0x7a8]
lea rax, [rbp + 0x798]
mov qword [rsp + 0x28], rax
lea rdx, [0x140299c40]
lea rax, [rbp + 0x350]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140088ea9
mov r8d, 0x104
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x350]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea r8, [rbp + 0x140]
mov rcx, rdi
lea rdx, [rsp + 0x30]
call fcn.1400816f0
mov rcx, qword [rbp + 0x7a8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x7a0]
lea r8, [rbp + 0x560]
mov r9d, 0x104
mov dword [rbp + 0x798], 0x104
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x140088de0
mov rcx, qword [rbp + 0x7a0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, 1
lea rdx, str.CKnownFolders::InitUsers_Exit
mov r8d, r9d
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
mov rbx, qword [rsp + 0x870]
mov eax, 1
add rsp, 0x878
pop rdi
pop rbp
ret