Function at 0x140056890
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, reloc.MFC80U.DLL_Ordinal_632
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [r11 + 8], rbx
mov qword [r11 - 8], rsi
xor ebx, ebx
mov qword [r11 - 0x10], rdi
mov rdi, qword [rsp + reloc.MFC80U.DLL_Ordinal_672]
mov rsi, rdx
mov qword [r11 - 0x18], r12
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, Ordinal_512
mov r12, r9
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x38], ebx
mov byte [rsp + 0x50], bl
call sub.ntdll.dll_memset
test rsi, rsi
mov edx, ebx
setne dl
test edx, edx
jne 0x1400569cc
lea rsi, [0x140433ad0]
mov r8d, 0x80
mov rcx, rsi
call sub.ntdll.dll_memset
lea edx, [rbx + 0x5c]
lea rcx, str...mgrhelp.cpp
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x1400569a3
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x40]
mov r8d, Ordinal_642
mov byte [rsp + 0x40], bl
mov qword [rsp + 0x41], rax
mov word [rsp + 0x49], ax
mov byte [rsp + 0x4b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rsi
sub rcx, rdx
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x140056960
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x40]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x140056990
mov rbx, rsi
call fcn.140049470
lea r8, str.pSubKey___NULL
lea rdx, str._s_return_code:_0x_08X___s.
mov rdi, qword [rax]
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [rdi + 0x10]
jmp 0x140056b64
test rdi, rdi
setne bl
test ebx, ebx
jne 0x140056a14
lea rcx, str...mgrhelp.cpp
mov edx, Ordinal_642
call fcn.1400561f0
mov rdi, rax
call fcn.140049470
lea r8, str.Length___NULL
mov r10, qword [rax]
lea rdx, str._s_return_code:_0x_08X___s.
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x20], rdi
call qword [r10 + 0x10]
jmp 0x140056b64
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x290], rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov ebp, eax
je 0x140056abe
call fcn.140049470
lea rcx, str...mgrhelp.cpp
mov edx, Ordinal_647
mov rbx, qword [rax]
mov rdi, rax
call fcn.1400561f0
lea rdx, str._s:_RegOpenKeyEx:__d
mov r9d, ebp
mov rcx, rdi
mov r8, rax
call qword [rbx + 0x10]
lea rcx, [rsp + 0x50]
mov r8d, reloc.MFC80U.DLL_Ordinal_512
mov rdx, rsi
call qword [sym.imp.ntdll.dll_wcstombs]
call fcn.140049470
lea rcx, str...mgrhelp.cpp
mov rbx, qword [rax]
mov edx, 0x288
mov rdi, rax
call fcn.1400561f0
lea r9, [rsp + 0x50]
lea rdx, [0x1402e139c]
mov r8, rax
mov rcx, rdi
call qword [rbx + 0x10]
jmp 0x140056b5c
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x38]
lea rdx, str.Element
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov ebp, eax
je 0x140056b5c
call fcn.140049470
lea rcx, str...mgrhelp.cpp
mov edx, reloc.MFC80U.DLL_Ordinal_654
mov rbx, qword [rax]
mov rdi, rax
call fcn.1400561f0
lea rdx, str._s:_RegQueryValueEx:__d
mov r9d, ebp
mov rcx, rdi
mov r8, rax
call qword [rbx + 0x10]
lea rcx, [rsp + 0x50]
mov r8d, reloc.MFC80U.DLL_Ordinal_512
mov rdx, rsi
call qword [sym.imp.ntdll.dll_wcstombs]
call fcn.140049470
lea rcx, str...mgrhelp.cpp
mov rbx, qword [rax]
mov edx, Ordinal_660
mov rdi, rax
call fcn.1400561f0
lea r9, [rsp + 0x50]
lea rdx, [0x1402e139c]
mov r8, rax
mov rcx, rdi
call qword [rbx + 0x10]
mov rbp, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x30]
mov r12, qword [rsp + 0x260]
mov rdi, qword [rsp + 0x268]
test rcx, rcx
mov rsi, qword [rsp + 0x270]
mov rbx, qword [rsp + 0x280]
je 0x140056b94
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140161080
add rsp, reloc.MFC80U.DLL_Ordinal_632
ret