Function at 0x140051acc
Capabilities:
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, 0x568
mov qword [rsp + 0xd0], 0xfffffffffffffffe
mov rax, qword [0x1403c86e8]
xor rax, rsp
mov qword [rsp + 0x550], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0x400
lea r8, [0x140364dec]
mov rdx, qword [rsp + 0x578]
lea rcx, [rsp + 0x130]
call fcn.1400584e4
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov r8, qword [rsp + 0x580]
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x110]
call fcn.140046710
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x130]
call fcn.14001196c
nop
lea rax, [rsp + 0x110]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x18], 0x10
jb 0x140051bbf
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
jmp 0x140051bc9
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x98]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x140051c41
mov rcx, qword [rsp + 0x570]
call fcn.140010b30
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x110]
call fcn.14001196c
nop
mov rax, qword [rsp + 0x570]
jmp 0x140051e66
mov rax, qword [rsp + 0x588]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0x18], 0x10
jb 0x140051c86
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
jmp 0x140051c90
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x150]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x38], eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x38], 0
jne 0x140051cf6
mov eax, dword [rsp + 0x34]
cmp rax, 0x400
ja 0x140051cf6
cmp dword [rsp + 0x34], 0
jne 0x140051d2e
mov rcx, qword [rsp + 0x570]
call fcn.140010b30
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x110]
call fcn.14001196c
nop
mov rax, qword [rsp + 0x570]
jmp 0x140051e66
mov eax, dword [rsp + 0x34]
dec rax
mov r8, rax
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0xf0]
call fcn.140011e9c
nop
lea rax, [rsp + 0xf0]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
add rax, 0x10
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x140051e10
lea rax, [rsp + 0xf0]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
cmp qword [rax + 0x18], 0x10
jb 0x140051ddf
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
jmp 0x140051de9
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
movsx eax, byte [rax - 1]
test eax, eax
jne 0x140051e10
mov rax, qword [rsp + 0x40]
dec rax
mov qword [rsp + 0x40], rax
jmp 0x140051d92
mov r9, qword [rsp + 0x40]
xor r8d, r8d
mov rdx, qword [rsp + 0x570]
lea rcx, [rsp + 0xf0]
call fcn.1400562f0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xf0]
call fcn.14001196c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x110]
call fcn.14001196c
nop
mov rax, qword [rsp + 0x570]
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.140286010
add rsp, 0x568
ret