Function at 0x1400023e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor edi, edi
mov r12, r9
mov dword [rax + 0x10], edi
mov r15, r8
mov dword [rax + 8], edi
mov rbp, rdx
mov ebx, edi
mov r14b, 1
test rdx, rdx
je 0x1400048f3
mov rdx, r9
call fcn.140002a50
test al, al
jne 0x1400048f3
mov rsi, qword [rsp + 0xa0]
test rsi, rsi
je 0x14000250c
lea rax, [rsp + 0x80]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x88]
mov rdx, r15
mov qword [rsp + 0x20], rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400046ea
cmp dword [rsp + 0x88], 1
jne 0x1400047c8
mov edi, dword [rsp + 0x80]
test edi, edi
je 0x1400048cb
shr edi, 1
mov eax, 2
mov r13, 0xffffffffffffffff
lea ecx, [rdi + 1]
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.140002ef0
mov rbx, rax
test rax, rax
je 0x14000250c
mov eax, edi
xor r9d, r9d
xor edi, edi
xor r8d, r8d
mov rdx, r15
mov rcx, rbp
mov word [rbx + rax*2], di
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400047f0
cmp di, word [rbx]
je 0x1400048cb
mov qword [rsi], rbx
movzx eax, r14b
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor r14b, r14b
jmp 0x1400024ed
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov r8d, eax
mov ecx, 0x1100
mov qword [rsp + 0xa0], rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov ebp, eax
test eax, eax
je 0x14000250c
lea r14d, [rax + 1]
mov r13, 0xffffffffffffffff
mov eax, 2
mul r14
cmovo rax, r13
mov rcx, rax
call fcn.140002ef0
mov rdi, rax
test rax, rax
je 0x140004774
mov r8, qword [rsp + 0xa0]
mov edx, r14d
mov rcx, rax
call fcn.140006c78
test eax, eax
jns 0x140004774
xor r14d, r14d
mov rcx, rdi
mov ebp, r14d
call sub.msvcrt.dll_free
mov edi, r14d
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebp, ebp
je 0x14000250c
mov rcx, qword [0x140015bf0]
xor edx, edx
mov qword [rsp + 0x28], rdi
mov r9, r12
mov qword [rsp + 0x20], r15
mov rax, qword [rcx]
lea r8d, [rdx + 0x16]
mov rax, qword [rax + 8]
call qword [0x14000d338]
test rdi, rdi
je 0x14000250c
mov rcx, rdi
call sub.msvcrt.dll_free
nop
jmp 0x14000250c
mov rcx, qword [0x140015bf0]
xor edx, edx
mov r9, r12
mov qword [rsp + 0x20], r15
mov rax, qword [rcx]
lea r8d, [rdx + 0x18]
mov rax, qword [rax + 8]
call qword [0x14000d338]
nop
jmp 0x14000250c
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov r8d, eax
mov ecx, 0x1100
mov qword [rsp + 0xa0], rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov ebp, eax
test eax, eax
je 0x1400048bb
lea r14d, [rax + 1]
mov eax, 2
mul r14
cmovo rax, r13
mov rcx, rax
call fcn.140002ef0
mov rdi, rax
test rax, rax
je 0x140004873
mov r8, qword [rsp + 0xa0]
mov edx, r14d
mov rcx, rax
call fcn.140006c78
test eax, eax
jns 0x140004873
xor r14d, r14d
mov rcx, rdi
mov ebp, r14d
call sub.msvcrt.dll_free
mov edi, r14d
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebp, ebp
je 0x1400048b9
mov rcx, qword [0x140015bf0]
xor edx, edx
mov qword [rsp + 0x28], rdi
mov r9, r12
mov qword [rsp + 0x20], r15
mov rax, qword [rcx]
lea r8d, [rdx + 0x16]
mov rax, qword [rax + 8]
call qword [0x14000d338]
test rdi, rdi
je 0x1400048b9
mov rcx, rdi
call sub.msvcrt.dll_free
xor edi, edi
mov rcx, rbx
call sub.msvcrt.dll_free
mov rbx, rdi
jmp 0x14000250c
mov rcx, qword [0x140015bf0]
xor edx, edx
mov r9, r12
mov qword [rsp + 0x20], r15
mov rax, qword [rcx]
lea r8d, [rdx + 0xe]
mov rax, qword [rax + 8]
call qword [0x14000d338]
nop
jmp 0x14000250c
mov rsi, qword [rsp + 0xa0]
jmp 0x14000250c