Function at 0x140054110
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x290
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x208], 0xfffffffffffffffe
mov qword [rbp + 0x48], r9
mov qword [rbp + 0x50], r8
mov rax, rdx
mov rdx, qword [rbp + 0x48]
mov qword [rbp + 0x80], rax
mov rax, rcx
mov rcx, qword [rbp + 0x50]
mov qword [rbp + 0x58], rax
mov qword [rbp + 0x60], rax
call fcn.140021470
mov qword [rbp + 0x68], rax
mov r8, rdx
mov rdx, qword [rbp + 0x68]
lea rcx, [rbp + 0xc8]
mov qword [rbp + 0x70], rcx
call fcn.140025450
mov rdx, qword [rbp + 0x70]
mov word [rbp + 0xe2], 0
mov word [rbp + 0xe0], 1
mov r8w, word [rbp + 0xe0]
mov r9w, word [rbp + 0xe2]
lea rcx, [rbp + 0xa8]
mov qword [rbp + 0x78], rcx
call fcn.1400103c0
mov rdx, qword [rbp + 0x78]
lea rcx, [rbp + 0x90]
call fcn.140049520
mov rcx, qword [rbp + 0x80]
mov dword [rbp + 0xe4], 0
mov dword [rbp + 0xe8], 0
call fcn.140053f10
mov qword [rbp + 0x88], rax
jmp 0x1400541df
lea rcx, [rbp + 0x90]
call fcn.14003b6f0
mov qword [rbp + 0x40], rax
jmp 0x1400541f1
mov rdx, qword [rbp + 0x40]
mov rcx, qword [rbp + 0x88]
mov qword [rbp + 0x1f0], 0
mov rax, qword [rbp + 0x1f0]
mov qword [rbp + 0x1e8], rax
mov r8, qword [rbp + 0x1e8]
mov qword [rbp + 0x200], 0
mov rax, qword [rbp + 0x200]
mov qword [rbp + 0x1f8], rax
mov r9, qword [rbp + 0x1f8]
mov rax, rsp
lea r10, [rbp + 0xe4]
mov qword [rax + 0x28], r10
mov qword [rax + 0x20], r9
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea r9, [rbp + 0xe8]
call rax
mov dword [rbp + 0x3c], eax
jmp 0x140054263
mov eax, dword [rbp + 0x3c]
cmp eax, 0
jne 0x140054276
cmp dword [rbp + 0xe8], 1
jne 0x140054297
jmp 0x140054287
mov ecx, dword [rbp + 0x3c]
call fcn.140040730
mov qword [rbp + 0x30], rax
jmp 0x140054666
mov eax, dword [rbp + 0xe4]
and eax, 1
cmp eax, 0
je 0x1400542bf
jmp 0x1400542dd
mov byte [rbp + 0xef], 0x27
mov cl, byte [rbp + 0xef]
lea rdx, str.registry_key_wasnt_a_stringmsvcmsbuilddevenvC:UsersTimSa.cargo_registry_srcindex.crates.io_6f17d22bba15001fcc_1.0.83_srcwindows_registry.rs15.014.012.0LIBPATHINCLUDEVSCMD_ARG_TGT_ARCH_x86_64aarch64i686i586thumbv7aarmx86arm64x64VCINSTALLDIRVSINSTALLDIR
mov r8d, 0x1c
call fcn.140040760
mov qword [rbp + 0x28], rax
jmp 0x14005464b
mov eax, dword [rbp + 0xe4]
shr eax, 1
mov r8d, eax
xor eax, eax
mov dx, ax
lea rcx, [rbp + 0x130]
call fcn.14003ba00
jmp 0x140054345
lea rax, [rbp + 0xe4]
mov qword [rbp + 0x1a8], rax
lea rax, [fcn.140094b00]
mov qword [rbp + 0x1b0], rax
mov rcx, qword [rbp + 0x1a8]
mov rax, qword [rbp + 0x1b0]
mov qword [rbp + 0x120], rcx
mov qword [rbp + 0x128], rax
mov rax, rsp
mov qword [rax + 0x20], 1
lea rdx, str.impossible_wide_string_size:__bytes
lea rcx, [rbp + 0xf0]
mov r8d, 2
lea r9, [rbp + 0x120]
call fcn.14000f6e0
jmp 0x140054633
mov rcx, qword [rbp + 0x80]
call fcn.140053f10
mov qword [rbp + 0x20], rax
jmp 0x140054357
lea rcx, [rbp + 0x90]
call fcn.14003b6f0
mov qword [rbp + 0x18], rax
jmp 0x140054369
mov qword [rbp + 0x1e0], 0
mov rax, qword [rbp + 0x1e0]
mov qword [rbp + 0x1d8], rax
mov rax, qword [rbp + 0x1d8]
mov qword [rbp], rax
mov qword [rbp + 0x1d0], 0
mov rax, qword [rbp + 0x1d0]
mov qword [rbp + 0x1c8], rax
mov rax, qword [rbp + 0x1c8]
mov qword [rbp + 8], rax
lea rcx, [rbp + 0x130]
call fcn.14003a3b0
mov qword [rbp + 0x10], rax
jmp 0x1400543c3
mov r9, qword [rbp + 8]
mov r8, qword [rbp]
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x20]
mov r10, qword [rbp + 0x10]
mov rax, rsp
lea r11, [rbp + 0xe4]
mov qword [rax + 0x28], r11
mov qword [rax + 0x20], r10
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call rax
mov dword [rbp - 4], eax
jmp 0x1400543f7
mov eax, dword [rbp - 4]
cmp eax, 0
jne 0x14005440f
mov eax, dword [rbp + 0xe4]
and eax, 1
cmp eax, 0
je 0x140054420
jmp 0x14005443e
mov ecx, dword [rbp - 4]
call fcn.140040730
mov qword [rbp - 0x10], rax
jmp 0x1400545ff
mov eax, dword [rbp + 0xe4]
shr eax, 1
mov qword [rbp - 0x20], rax
lea rcx, [rbp + 0x130]
call fcn.14003b1f0
mov qword [rbp - 0x18], rax
jmp 0x1400544a6
lea rax, [rbp + 0xe4]
mov qword [rbp + 0x1b8], rax
lea rax, [fcn.140094b00]
mov qword [rbp + 0x1c0], rax
mov rcx, qword [rbp + 0x1b8]
mov rax, qword [rbp + 0x1c0]
mov qword [rbp + 0x178], rcx
mov qword [rbp + 0x180], rax
mov rax, rsp
mov qword [rax + 0x20], 1
lea rdx, str.impossible_wide_string_size:__bytes
lea rcx, [rbp + 0x148]
mov r8d, 2
lea r9, [rbp + 0x178]
call fcn.14000f6e0
jmp 0x1400545e7
mov rax, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x18]
cmp rax, rcx
jbe 0x1400544cd
lea rcx, str.assertion_failed:_actual_len___v.len__C:UsersTimSa.cargo_registry_srcindex.crates.io_6f17d22bba15001fcc_1.0.83_src_registry.rs
lea r8, [0x14009dd20]
mov edx, 0x27
call fcn.140096ac0
jmp 0x1400544df
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp + 0x130]
call fcn.14003b9a0
jmp 0x1400544e1
ud2
lea rcx, [rbp + 0x130]
call fcn.14003b970
mov byte [rbp - 0x21], al
jmp 0x1400544f2
mov al, byte [rbp - 0x21]
test al, 1
jne 0x14005450d
jmp 0x1400544fb
lea rcx, [rbp + 0x130]
call fcn.14003b1f0
mov qword [rbp - 0x30], rax
jmp 0x140054523
lea rcx, [rbp + 0x130]
call fcn.14003c190
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x38], rax
jmp 0x140054594
mov rax, qword [rbp - 0x30]
mov rcx, rax
sub rcx, 1
mov qword [rbp - 0x48], rcx
cmp rax, 1
setb al
test al, 1
jne 0x14005455a
mov rdx, qword [rbp - 0x48]
lea r8, [0x14009dd78]
lea rcx, [rbp + 0x130]
call fcn.14003c460
mov qword [rbp - 0x50], rax
jmp 0x140054577
lea rcx, str.attempt_to_subtract_with_overflow
lea r8, [0x14009dd38]
mov edx, 0x21
call fcn.140096ac0
jmp 0x1400544df
mov rax, qword [rbp - 0x50]
cmp word [rax], 0
jne 0x14005450d
lea rcx, [rbp + 0x130]
call fcn.14003b200
jmp 0x14005458f
jmp 0x14005450d
mov r8, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp + 0x188]
call fcn.1400728c0
jmp 0x1400545aa
mov rax, qword [rbp + 0x58]
mov rcx, qword [rbp + 0x188]
mov qword [rax], rcx
mov rcx, qword [rbp + 0x190]
mov qword [rax + 8], rcx
mov rcx, qword [rbp + 0x198]
mov qword [rax + 0x10], rcx
mov rcx, qword [rbp + 0x1a0]
mov qword [rax + 0x18], rcx
lea rcx, [rbp + 0x130]
call fcn.140009e50
jmp 0x14005461a
lea rdx, [0x14009ddd8]
lea rcx, [rbp + 0x148]
call fcn.1400969f0
jmp 0x1400544df
mov rax, qword [rbp + 0x58]
mov rcx, qword [rbp - 0x10]
mov qword [rax + 8], rcx
movabs rcx, 0x8000000000000000
mov qword [rax], rcx
jmp 0x1400545d9
lea rcx, [rbp + 0x90]
call fcn.140009e50
mov rax, qword [rbp + 0x60]
add rsp, 0x290
pop rbp
ret
lea rdx, [0x14009ddf0]
lea rcx, [rbp + 0xf0]
call fcn.1400969f0
jmp 0x1400544df
mov rax, qword [rbp + 0x58]
mov rcx, qword [rbp + 0x28]
mov qword [rax + 8], rcx
movabs rcx, 0x8000000000000000
mov qword [rax], rcx
jmp 0x14005461a
mov rax, qword [rbp + 0x58]
mov rcx, qword [rbp + 0x30]
mov qword [rax + 8], rcx
movabs rcx, 0x8000000000000000
mov qword [rax], rcx
jmp 0x14005461a