Function at 0x1400511f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rbx, r8
lea rax, [rbp - 0x18]
xor esi, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rbp - 0x18], rsi
mov r9d, 0x20019
mov rdi, rdx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140051589
lea rcx, [rbx + 0xa0]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbp + 0x28]
mov dword [rbp + 0x28], 0x208
mov qword [rsp + 0x28], rcx
lea rax, [rbx + 0x208]
mov rcx, qword [rbp - 0x18]
lea r9, [rbp - 0x30]
xor r8d, r8d
mov dword [rbp - 0x30], esi
lea rdx, str.AppCmdLine
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rbp + 0x28]
mov dword [rbp + 0x28], 0x208
mov qword [rsp + 0x28], rcx
lea rax, [rbx + 0x410]
mov rcx, qword [rbp - 0x18]
lea r9, [rbp - 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AppCmdLineParameters
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.AppModulePath
mov dword [rbp + 0x28], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rbp + 0x28]
mov dword [rbp + 0x28], 0x208
mov qword [rsp + 0x28], rcx
lea rax, [rbx + 0x618]
mov rcx, qword [rbp - 0x18]
lea r9, [rbp - 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AppModernModulePath
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rbp + 0x28]
mov dword [rbp + 0x28], 0xc8
mov qword [rsp + 0x28], rcx
lea rax, [rbx + 0x140]
mov rcx, qword [rbp - 0x18]
lea r9, [rbp - 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AppClass
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rbp + 0x28]
mov dword [rbp + 0x28], 0x208
mov qword [rsp + 0x28], rcx
lea rax, [rbx + 0xacc]
mov rcx, qword [rbp - 0x18]
lea r9, [rbp - 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AppDesktop
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rbp + 0x28]
mov dword [rbp + 0x28], 0x50
mov qword [rsp + 0x28], rcx
lea rax, [rbx + 0xcd4]
mov rcx, qword [rbp - 0x18]
lea r9, [rbp - 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AppDesktopGuid
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x18]
lea r8, [rbx + 0xd50]
lea rdx, str.AppHwnd
call fcn.140059bf0
mov rcx, qword [rbp - 0x18]
lea r8, [rbx + 0xd24]
lea rdx, str.AppFlags
call fcn.140059b60
mov rcx, qword [rbp - 0x18]
lea r8, [rbx + 0xd48]
lea rdx, str.AppMonGridId
call fcn.140059b60
mov rcx, qword [rbp - 0x18]
lea r8, [rbp - 0x10]
lea rdx, [0x1400a0fb8]
call fcn.140059bf0
test al, al
je 0x140051426
movsx eax, word [rbp - 0x10]
movsx ecx, word [rbp - 0xa]
mov dword [rbx + 0xd28], eax
movsx eax, word [rbp - 0xe]
mov dword [rbx + 0xd2c], eax
movsx eax, word [rbp - 0xc]
jmp 0x14005149c
mov rcx, qword [rbp - 0x18]
lea r8, [rbp - 0x2c]
lea rdx, str.AppSX
mov dword [rbp - 0x2c], esi
mov dword [rbp - 0x28], esi
mov dword [rbp - 0x20], esi
mov dword [rbp - 0x24], esi
call fcn.140059b60
mov rcx, qword [rbp - 0x18]
lea r8, [rbp - 0x28]
lea rdx, str.AppSY
call fcn.140059b60
mov rcx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
lea rdx, str.AppExtX
call fcn.140059b60
mov rcx, qword [rbp - 0x18]
lea r8, [rbp - 0x24]
lea rdx, str.AppExtY
call fcn.140059b60
mov ecx, dword [rbp - 0x28]
mov edx, dword [rbp - 0x2c]
mov eax, dword [rbp - 0x20]
mov dword [rbx + 0xd2c], ecx
add ecx, dword [rbp - 0x24]
add eax, edx
mov dword [rbx + 0xd28], edx
mov dword [rbx + 0xd30], eax
mov dword [rbx + 0xd34], ecx
test dword [rbx + 0xd24], 0xff0
je 0x14005157f
mov rcx, qword [rbp - 0x18]
lea r8, [rbp - 0x10]
lea rdx, [0x1400a1010]
call fcn.140059bf0
test al, al
je 0x1400514fd
movsx eax, word [rbp - 0x10]
mov dword [rbx + 0xd38], eax
movsx eax, word [rbp - 0xe]
mov dword [rbx + 0xd3c], eax
movsx eax, word [rbp - 0xc]
mov dword [rbx + 0xd40], eax
movsx eax, word [rbp - 0xa]
mov dword [rbx + 0xd44], eax
jmp 0x14005157f
mov rcx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
lea rdx, str.AppMaxSX
mov dword [rbp - 0x20], esi
mov dword [rbp - 0x24], esi
mov dword [rbp - 0x28], esi
mov dword [rbp - 0x2c], esi
call fcn.140059b60
mov rcx, qword [rbp - 0x18]
lea r8, [rbp - 0x24]
lea rdx, str.AppMaxSY
call fcn.140059b60
mov rcx, qword [rbp - 0x18]
lea r8, [rbp - 0x28]
lea rdx, str.AppMaxExtX
call fcn.140059b60
mov rcx, qword [rbp - 0x18]
lea r8, [rbp - 0x2c]
lea rdx, str.AppMaxExtY
call fcn.140059b60
mov ecx, dword [rbp - 0x20]
mov edx, dword [rbp - 0x24]
mov dword [rbx + 0xd38], ecx
add ecx, dword [rbp - 0x28]
mov dword [rbx + 0xd40], ecx
mov ecx, dword [rbp - 0x2c]
add ecx, edx
mov dword [rbx + 0xd3c], edx
mov dword [rbx + 0xd44], ecx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
add rsp, 0x60
pop rbp
ret