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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov qword [rsp + 0x30], 0
lea rax, str.CRegistryEx::GetString
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 8
lea r9, [0x1400b7be0]
mov r8d, 0x113
mov edx, dword [0x1400ec2f0]
lea rcx, [rsp + 0x90]
call fcn.14008f230
nop
mov rax, qword [rsp + 0xf0]
cmp qword [rsp + 0xe0], rax
jne 0x140078a60
mov r8d, 0x115
lea rdx, [0x1400b7c10]
lea rcx, str.pszValue___pszDefaultValue
call fcn.14008ef30
mov dword [rsp + 0x44], 0
cmp qword [rsp + 0xd8], 0
je 0x140078a89
cmp qword [rsp + 0xe0], 0
je 0x140078a89
cmp qword [rsp + 0xe8], 0
jne 0x140078aa7
mov dword [rsp + 0x74], 0
lea rcx, [rsp + 0x90]
call fcn.14008f210
mov eax, dword [rsp + 0x74]
jmp 0x140078d09
mov rax, qword [rsp + 0xd0]
cmp qword [rax + 0x10], 0
jne 0x140078abb
jmp 0x140078c6a
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xe8]
mov eax, dword [rax]
mov dword [rsp + 0x44], eax
cmp qword [rsp + 0xf8], 0
je 0x140078b1b
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0xf8]
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140078b1b
jmp 0x140078c6a
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x70], eax
cmp qword [rsp + 0xf8], 0
je 0x140078b6a
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x40], 2
jne 0x140078c1c
mov eax, dword [rsp + 0x44]
mov qword [rsp + 0x80], rax
mov eax, 2
mov rcx, qword [rsp + 0x80]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140024b64
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140078c1c
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xe0]
call fcn.140055850
mov rcx, qword [rsp + 0xe0]
call fcn.140055618
mov rcx, qword [rsp + 0xe8]
mov dword [rcx], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x88]
call fcn.140024b5c
cmp dword [rsp + 0x70], 0
je 0x140078c25
jmp 0x140078c6a
cmp dword [rsp + 0x40], 1
je 0x140078c44
cmp dword [rsp + 0x40], 7
je 0x140078c44
cmp dword [rsp + 0x40], 2
je 0x140078c44
mov dword [rsp + 0x48], 0
jmp 0x140078c4c
mov dword [rsp + 0x48], 1
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x90]
call fcn.14008f210
mov eax, dword [rsp + 0x68]
jmp 0x140078d09
cmp qword [rsp + 0xf0], 0
je 0x140078cf0
mov rcx, qword [rsp + 0xf0]
call fcn.140055618
lea rax, [rax + rax + 2]
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x4c], eax
ja 0x140078cd5
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xe0]
call fcn.140055850
mov rax, qword [rsp + 0xe8]
mov ecx, dword [rsp + 0x4c]
mov dword [rax], ecx
mov dword [rsp + 0x78], 1
lea rcx, [rsp + 0x90]
call fcn.14008f210
mov eax, dword [rsp + 0x78]
jmp 0x140078d09
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x90]
call fcn.14008f210
mov eax, dword [rsp + 0x58]
jmp 0x140078d09
mov dword [rsp + 0x6c], 0
lea rcx, [rsp + 0x90]
call fcn.14008f210
mov eax, dword [rsp + 0x6c]
add rsp, 0xc8
ret