Function at 0x140024120
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x140045028]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x78], rdx
mov rdx, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x140024165
mov rdx, qword [rcx]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14002426a
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor esi, esi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
lea r8d, [rsi + 0x14]
lea rdx, str.Registry::ReadString
lea rcx, [rsp + 0x30]
call fcn.1400027e0
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400241ce
mov r8, qword [rbx]
lea rdx, str.Failed_to_open_key__s
lea rcx, [rsp + 0x30]
call fcn.14001dc60
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14002421a
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rbx]
jb 0x140024215
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140024478
mov rcx, r8
call fcn.14002ec3c
mov byte [rbx], 0
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], rsi
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140024263
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rdi]
jb 0x14002425e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002447f
mov rcx, r8
call fcn.14002ec3c
xor al, al
jmp 0x14002444c
mov dword [rbp - 0x70], 0x104
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14002427e
mov rdx, qword [rdi]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x78]
test eax, eax
je 0x1400242f2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor esi, esi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
lea r8d, [rsi + 0x14]
lea rdx, str.Registry::ReadString
lea rcx, [rsp + 0x30]
call fcn.1400027e0
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400242e6
mov r8, qword [rbx]
lea rdx, str.Failed_to_read_string_from__s
jmp 0x1400241d5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp - 0x60]
mov rsi, 0xffffffffffffffff
mov r8, rsi
inc r8
cmp byte [rax + r8], 0
jne 0x140024306
lea rdx, [rbp - 0x60]
mov rcx, r14
call fcn.140003ff0
lea rax, [rbp - 0x60]
inc rsi
cmp byte [rax + rsi], 0
jne 0x140024320
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.1400244b0
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor esi, esi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
lea r8d, [rsi + 0x14]
lea rdx, str.Registry::ReadString
lea rcx, [rsp + 0x30]
call fcn.1400027e0
mov r9, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14002436f
mov r9, qword [rbx]
cmp qword [r14 + 0x18], 0x10
jb 0x140024379
mov r14, qword [r14]
mov r8, r14
lea rdx, str.Read__s_from__s
lea rcx, [rsp + 0x30]
call fcn.14001da20
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x1400243cf
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400243c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400243c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002ec3c
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140024405
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140024400
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140024478
mov rcx, r8
call fcn.14002ec3c
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14002444a
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140024445
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002447f
mov rcx, r8
call fcn.14002ec3c
mov al, 1
mov byte [rdi], 0
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], rsi
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14002eb10
add rsp, 0x1c0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3