Function at 0x140027810
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x20d8
call sub.ntdll.dll___chkstk
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x20c0], rax
mov r15, r9
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x54], 7
mov word [rsp + 0xc0], 0
xor edx, edx
mov r8d, 0x1ffe
lea rcx, [rsp + 0xc2]
call sub.ntdll.dll_memset
mov dword [rsp + 0x58], 0x2000
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400278bf
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x140027d10
cmp dword [rsp + 0x54], 7
je 0x1400278cd
xor al, al
jmp 0x140027d10
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_void____ptr64]
nop
xor r12d, r12d
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
movabs r13, 0x6666666666666667
movzx ebx, byte [rsp + 0x50]
nop
test r12d, r12d
jne 0x14002791d
lea rdx, [rsp + 0xc0]
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 0x140027933
lea rdx, [rsp + r12*2 + 0xc0]
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]
cmp qword [rsp + 0xa8], 0
je 0x140027ada
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x1400279c4
mov rcx, rsi
sub rcx, rdi
mov rax, r13
imul rcx
mov r8, rdx
sar r8, 4
mov rax, r8
shr rax, 0x3f
add r8, rax
mov rcx, qword [rsp + 0x48]
sub rcx, rdi
mov rax, r13
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r8, rdx
jae 0x1400279c4
xor eax, eax
mov byte [rsp + 0x28], al
mov byte [rsp + 0x20], bl
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x90]
lea edx, [rax + 1]
mov rcx, rsi
call fcn.140004e90
add rsi, 0x28
mov qword [rsp + 0x40], rsi
mov rdi, qword [rsp + 0x38]
jmp 0x140027abf
mov rbp, rsi
cmp rdi, rsi
jbe 0x1400279dc
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbp
test rdi, rdi
je 0x140027a33
mov rcx, rsi
sub rcx, rdi
mov rax, r13
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x140027a33
cmp rdi, rsi
jbe 0x140027a17
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
sub rbp, rdi
mov rax, r13
imul rbp
mov rbp, rdx
sar rbp, 4
mov rax, rbp
shr rax, 0x3f
add rbp, rax
jmp 0x140027a35
xor ebp, ebp
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x80], xmm0
lea r9, [rsp + 0x90]
mov r8d, 1
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call fcn.140004870
mov rdi, qword [rsp + 0x38]
mov r13, rdi
mov rsi, qword [rsp + 0x40]
cmp rdi, rsi
jbe 0x140027a85
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
lea rax, [rbp + rbp*4]
lea rcx, [r13 + rax*8]
cmp rcx, rsi
ja 0x140027a99
cmp rcx, rdi
jae 0x140027ab5
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
movabs r13, 0x6666666666666667
jmp 0x140027abf
movabs r13, 0x6666666666666667
mov eax, dword [rsp + 0xa8]
lea r12d, [r12 + rax + 1]
cmp r12d, 0xffe
jb 0x140027900
jmp 0x140027ae4
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
xor r12d, r12d
xor ebx, ebx
xor ebp, ebp
nop
nop
test rdi, rdi
je 0x140027b3c
mov rcx, rsi
sub rcx, rdi
mov rax, r13
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbx, rdx
jae 0x140027b3c
cmp rbx, rdx
jb 0x140027b29
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov eax, dword [rdi + rbp + 0x18]
lea r12d, [r12 + rax*2 + 2]
add rbx, 1
add rbp, 0x28
jmp 0x140027af0
add r12d, 2
mov eax, dword [r15]
cmp eax, r12d
jae 0x140027ba4
mov dword [r15], r12d
test rdi, rdi
je 0x140027b74
cmp rdi, rsi
je 0x140027b6c
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, rsi
jne 0x140027b55
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call sub.MFC80U.DLL_Ordinal_776
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
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]
xor al, al
jmp 0x140027d10
mov r8, rax
xor edx, edx
mov rcx, r14
call sub.ntdll.dll_memset
xor ebp, ebp
xor ebx, ebx
test rdi, rdi
je 0x140027cbb
mov rcx, rsi
sub rcx, rdi
mov rax, r13
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbp, rdx
jae 0x140027cbb
cmp rbp, rdx
jb 0x140027bf6
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov r13, qword [rbx + rdi + 0x18]
test rdi, rdi
je 0x140027c23
sub rsi, rdi
movabs rax, 0x6666666666666667
imul rsi
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbp, rdx
jb 0x140027c2e
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rdi, qword [rsp + 0x38]
cmp qword [rbx + rdi + 0x20], 8
jb 0x140027c3d
mov rdx, qword [rbx + rdi + 8]
jmp 0x140027c42
lea rdx, [rbx + rdi + 8]
lea r8, [r13 + r13 + 2]
mov rcx, r14
call sub.ntdll.dll_memcpy
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x140027c89
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
sub rcx, rdi
movabs r13, 0x6666666666666667
mov rax, r13
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbp, rdx
jb 0x140027ca3
jmp 0x140027c93
movabs r13, 0x6666666666666667
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov eax, dword [rbx + rdi + 0x18]
lea ecx, [rax + rax + 2]
add r14, rcx
add rbp, 1
add rbx, 0x28
jmp 0x140027bb5
mov dword [r15], r12d
test rdi, rdi
je 0x140027cef
cmp rdi, rsi
je 0x140027ce7
nop
nop
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, rsi
jne 0x140027cd0
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call sub.MFC80U.DLL_Ordinal_776
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
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]
mov al, 1
mov rcx, qword [rsp + 0x20c0]
xor rcx, rsp
call fcn.140161080
add rsp, 0x20d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret