Function at 0x1400a9158
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r15, rdx
mov r14, rcx
lea rsi, [0x1400f3190]
lea r13, str._4
mov rcx, qword [0x1400f3190]
cmp rcx, rsi
je 0x1400a91b9
test byte [rcx + 0x1c], 1
je 0x1400a91b9
cmp byte [rcx + 0x19], 5
jb 0x1400a91b9
mov edx, 0x3f
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.1400035e4
xor r12d, r12d
mov dword [rbp + 0x50], r12d
mov dword [rbp + 0x40], r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_RegQueryInfoKeyW]
mov edi, eax
mov r10, qword [0x1400f3190]
cmp r10, rsi
je 0x1400a923c
test byte [r10 + 0x1c], 2
je 0x1400a923c
cmp byte [r10 + 0x19], 4
jb 0x1400a923c
lea edx, [r12 + 0x40]
mov r9d, eax
mov r8, r13
mov rcx, qword [r10 + 0x10]
call fcn.1400036a8
mov r10, qword [0x1400f3190]
inc dword [rbp + 0x40]
test edi, edi
jne 0x1400a93f8
mov rax, qword [0x1400f6030]
lea rcx, [0x1400f6030]
mov rax, qword [rax + 0x18]
call qword [str.__f_]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x20], rbx
mov rcx, qword [0x1400f3190]
cmp rcx, rsi
je 0x1400a9292
test byte [rcx + 0x1c], 2
je 0x1400a9292
cmp byte [rcx + 0x19], 4
jb 0x1400a9292
lea edx, [rdi + 0x41]
mov r9d, dword [rbp + 0x50]
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.1400036a8
mov esi, r12d
cmp dword [rbp + 0x50], r12d
jbe 0x1400a93c9
test edi, edi
jne 0x1400a93c9
movsxd rdi, dword [rbp + 0x40]
mov dword [rbp + 0x58], edi
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400a92ce
mov edx, edi
lea rcx, [rbp - 0x20]
call fcn.140004f6c
mov rbx, qword [rbp - 0x20]
test edi, edi
js 0x1400a9455
cmp edi, dword [rbx - 0xc]
jg 0x1400a9455
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], r12w
lea rax, [rbp - 0x10]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x58]
mov r8, rbx
mov edx, esi
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
mov rcx, qword [0x1400f3190]
lea rax, [0x1400f3190]
cmp rcx, rax
je 0x1400a9346
test byte [rcx + 0x1c], 2
je 0x1400a9346
cmp byte [rcx + 0x19], 4
jb 0x1400a9346
mov edx, 0x42
mov r9d, edi
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.1400036a8
mov eax, r12d
test edi, edi
cmove eax, dword [rbp + 0x58]
cmp eax, 0xffffffff
jne 0x1400a9362
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r12w
jne 0x1400a9358
test eax, eax
js 0x1400a944a
cmp eax, dword [rbx - 0xc]
jg 0x1400a944a
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r12w
test edi, edi
jne 0x1400a93be
lea rdx, [rbp - 0x20]
mov rcx, r15
call fcn.140014a8c
mov rcx, qword [0x1400f3190]
lea rax, [0x1400f3190]
cmp rcx, rax
je 0x1400a93be
test byte [rcx + 0x1c], 2
je 0x1400a93be
cmp byte [rcx + 0x19], 4
jb 0x1400a93be
lea edx, [rdi + 0x43]
mov r9, rbx
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140003608
inc esi
cmp esi, dword [rbp + 0x50]
jb 0x1400a929f
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a93ea
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__f_]
lea rsi, [0x1400f3190]
mov r10, qword [0x1400f3190]
cmp r10, rsi
je 0x1400a942d
test byte [r10 + 0x1c], 1
je 0x1400a942d
movzx edx, byte [r10 + 0x19]
mov eax, edi
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jb 0x1400a942d
mov edx, 0x44
mov r9d, edi
mov r8, r13
mov rcx, qword [r10 + 0x10]
call fcn.1400036a8
mov eax, edi
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80070057
call fcn.1400051a4
int3
mov ecx, 0x80070057
call fcn.1400051a4
int3