Function at 0x140087240
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x14010bcf8]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r15, rdx
lea rax, [rsp + 0x68]
mov r14, rcx
mov qword [rsp + 0x20], rax
xor r12d, r12d
lea rdx, [0x1400ddab0]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x68], r12
mov r9d, 0x20019
xor r8d, r8d
mov edi, r12d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test eax, eax
je 0x1400872d9
mov ecx, eax
call fcn.140086b90
mov r9d, ebx
mov qword [rsp + 0x20], rax
lea r8, [0x1400ddab0]
xor ecx, ecx
lea rdx, [0x1400ddb00]
call fcn.140082080
lea eax, [r12 - 1]
jmp 0x1400874ff
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], r12
xor r9d, r9d
mov qword [rsp + 0x50], r12
xor r8d, r8d
mov qword [rsp + 0x48], r12
xor edx, edx
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], r12d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ebx, eax
test eax, eax
je 0x140087349
mov ecx, eax
call fcn.140086b90
mov r9, rax
lea rdx, [0x1400ddb48]
mov r8d, ebx
xor ecx, ecx
call fcn.140082080
mov edi, 0xffffffff
jmp 0x1400874d1
mov eax, dword [rsp + 0x60]
lea r9, [0x1400ddbb8]
mov dword [rsp + 0x30], eax
lea rdx, [0x1400dd6f8]
lea rax, [0x1400ddb88]
mov dword [rsp + 0x28], r12d
mov r8d, 0xec
mov qword [rsp + 0x20], rax
mov ecx, 4
call fcn.140082160
mov ebx, r12d
cmp dword [rsp + 0x60], ebx
jbe 0x1400874d1
mov qword [rsp + 0x2d0], rsi
nop word [rax + rax]
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0xff
call fcn.1400b1300
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x38], r12
lea r8, [rbp - 0x80]
mov qword [rsp + 0x30], r12
mov edx, ebx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x70], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
test eax, eax
je 0x140087414
mov ecx, eax
call fcn.140086b90
mov r9d, dword [rsp + 0x60]
lea rdx, [0x1400ddbd0]
mov qword [rsp + 0x28], rax
mov r8d, ebx
xor ecx, ecx
mov dword [rsp + 0x20], esi
call fcn.140082080
jmp 0x14008749f
lea rdx, [0x1400ddc18]
lea rcx, [rbp - 0x80]
call fcn.1400b8200
test eax, eax
je 0x14008749f
lea rdx, [0x1400ddc28]
lea rcx, [rbp - 0x80]
call fcn.1400b8200
test eax, eax
je 0x14008749f
xor edx, edx
lea rcx, [rbp + 0x80]
mov r8d, 0xff
call fcn.1400b1300
lea rax, [rbp - 0x80]
mov edx, 0xff
lea r9, [0x1400ddab0]
mov qword [rsp + 0x20], rax
lea r8, [0x1400ddc34]
lea rcx, [rbp + 0x80]
call fcn.140082280
movsxd rax, edi
lea rcx, [rbp + 0x80]
imul r8, rax, 0x130
mov rdx, r14
add r8, r15
call fcn.140087650
test al, al
je 0x14008749f
inc edi
cmp edi, 0x20
jge 0x1400874ad
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x1400873a0
jmp 0x1400874c9
mov r8d, dword [rsp + 0x60]
lea rdx, [0x1400ddc40]
sub r8d, ebx
mov r9d, 0x20
xor ecx, ecx
call fcn.140082080
mov rsi, qword [rsp + 0x2d0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
test eax, eax
je 0x1400874fd
mov ecx, eax
call fcn.140086b90
mov r9, rax
lea rdx, [0x1400ddc98]
mov r8d, ebx
xor ecx, ecx
call fcn.140082080
mov eax, edi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400b06c0
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x290
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret