Function at 0x1401cb980
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x100
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov r12, rcx
xor esi, esi
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x34], esi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 1]
xor r8d, r8d
lea rdx, [0x14036cc70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1401cbace
call fcn.140049470
mov rbp, rax
xor edx, edx
mov r8d, 0x80
lea rbx, [0x140c48470]
mov rcx, rbx
call sub.ntdll.dll_memset
lea edx, [rsi + 0x5c]
lea rcx, [0x14036ccd8]
call qword [sym.imp.ntdll.dll_strrchr]
mov rdi, rax
test rax, rax
je 0x1401cbab3
mov byte [rsp + 0xe0], sil
xor eax, eax
mov qword [rsp + 0xe1], rax
mov word [rsp + 0xe9], ax
mov byte [rsp + 0xeb], al
mov r8d, Ordinal_672
lea rdx, [0x14036cdbc]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
movzx eax, byte [rdx]
mov byte [rcx + rdx], al
add rdx, 1
test al, al
jne 0x1401cba71
mov rdi, rbx
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdx, [rsp + 0xe0]
xor ecx, ecx
nop
nop
nop
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx - 1], al
add rcx, 1
test al, al
jne 0x1401cbaa0
mov rsi, rbx
mov rax, qword [rbp]
mov r8, rsi
lea rdx, [0x14036ccf0]
mov rcx, rbp
call qword [rax + 0x10]
xor eax, eax
jmp 0x1401cbe17
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, [0x14036cd20]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x30]
call sub.MFC80U.DLL_Ordinal_265
mov rbp, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, [0x14036cd38]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1401cbc2e
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbp
call sub.MFC80U.DLL_Ordinal_266
call fcn.140049470
mov rbp, rax
xor edx, edx
mov r8d, 0x80
lea rbx, [0x140c48470]
mov rcx, rbx
call sub.ntdll.dll_memset
mov edx, 0x5c
lea rcx, str..CheckChkdskDlg.cpp
call qword [sym.imp.ntdll.dll_strrchr]
mov rdi, rax
test rax, rax
je 0x1401cbc13
mov byte [rsp + 0xe0], sil
xor eax, eax
mov qword [rsp + 0xe1], rax
mov word [rsp + 0xe9], ax
mov byte [rsp + 0xeb], al
mov r8d, Ordinal_681
lea rdx, [0x14036cdbc]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
nop
movzx eax, byte [rdx]
mov byte [rcx + rdx], al
add rdx, 1
test al, al
jne 0x1401cbbd0
mov rdi, rbx
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdx, [rsp + 0xe0]
xor ecx, ecx
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx - 1], al
add rcx, 1
test al, al
jne 0x1401cbc00
mov rsi, rbx
mov rax, qword [rbp]
mov r8, rsi
lea rdx, [0x14036cd68]
mov rcx, rbp
call qword [rax + 0x10]
xor eax, eax
jmp 0x1401cbe17
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
lea rdx, [0x1403698d4]
lea rcx, [rsp + 0x90]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const____ptr64____ptr64]
nop
mov ebx, esi
cmp dword [rsp + 0x30], ebx
jbe 0x1401cbcc7
mov rdi, rbp
nop
nop
movzx edx, byte [rdi]
test dx, dx
jne 0x1401cbcac
cmp qword [rsp + 0xa8], 0
je 0x1401cbc95
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.1400044f0
lea rdx, [0x14036991c]
lea rcx, [rsp + 0x90]
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_PEB_W_Z]
jmp 0x1401cbcba
lea rcx, [rsp + 0x90]
call qword [reloc.MSVCP80.dll___Y__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01__W_Z]
add ebx, 2
add rdi, 2
cmp ebx, dword [rsp + 0x30]
jb 0x1401cbc70
mov rcx, rbp
call sub.MFC80U.DLL_Ordinal_266
lea rdx, [r12 + 0x6f0]
lea rcx, [rsp + 0xb8]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const____ptr64____ptr64]
nop
mov rbx, rsi
mov rbp, rsi
movabs r12, 0x6666666666666667
nop
nop
nop
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x1401cbdc4
mov rcx, qword [rsp + 0x50]
sub rcx, rdi
mov rax, r12
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbx, rdx
jae 0x1401cbdc4
cmp rbx, rdx
jb 0x1401cbd43
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rdi, qword [rsp + 0x48]
lea rdx, [rdi + rbp]
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64____ptr64]
nop
lea rdi, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 8
cmovae rdi, qword [rsp + 0xc0]
lea rax, [rsp + 0x70]
cmp qword [rsp + 0x88], 8
cmovae rax, qword [rsp + 0x70]
sub rdi, rax
movzx edx, word [rax]
movzx ecx, word [rax + rdi]
sub edx, ecx
jne 0x1401cbd97
add rax, 2
test ecx, ecx
jne 0x1401cbd84
test edx, edx
je 0x1401cbdb3
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
add rbx, 1
add rbp, 0x28
jmp 0x1401cbd00
mov esi, 1
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0xb8]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x90]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x1401cbe15
mov rbx, qword [rsp + 0x50]
cmp rdi, rbx
je 0x1401cbe0d
mov rcx, rdi
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
add rdi, 0x28
cmp rdi, rbx
jne 0x1401cbdf6
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
call sub.MFC80U.DLL_Ordinal_776
mov eax, esi
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140161080
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret