Function at 0x140002250
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
push r14
sub rsp, 0x478
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x48]
mov rdi, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x50], 0x400
mov r9d, 0x20019
lea rdx, str.SOFTWARESnailytBGMI_
xor r8d, r8d
xor r14d, r14d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002488
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea r8, str.EmulatorPath
lea rax, [rsp + 0x60]
mov qword [rsp + 0x498], rbx
mov qword [rsp + 0x28], rax
mov r9d, 2
xor edx, edx
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140002458
xorps xmm0, xmm0
mov qword [rsp + 0x4a0], rbp
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
lea rax, [rsp + 0x60]
mov qword [rdi + 0x18], r14
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x140002321
movabs rbp, 0x7ffffffffffffffe
cmp rbx, rbp
ja 0x1400024be
mov qword [rsp + 0x470], rsi
cmp rbx, 7
ja 0x140002375
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x60]
add rbx, rbx
mov qword [rdi + 0x18], 7
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rdi], r14w
jmp 0x140002422
mov rax, rbx
or rax, 7
cmp rax, rbp
jbe 0x1400023c0
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x1400023f7
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400024b8
mov rcx, rax
call fcn.140003b50
test rax, rax
je 0x1400023f0
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400023ff
mov ecx, 0xa
mov rbp, rax
cmp rax, rcx
movabs rax, 0x7fffffffffffffff
cmovb rbp, rcx
lea rcx, [rbp + 1]
cmp rcx, rax
ja 0x1400024b8
add rcx, rcx
jne 0x14000238f
mov rsi, r14
jmp 0x1400023ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003b50
mov rsi, rax
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x60]
add rbx, rbx
mov qword [rdi], rsi
mov r8, rbx
mov qword [rdi + 0x18], rbp
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rsi], r14w
mov rsi, qword [rsp + 0x470]
mov rax, rdi
mov rbp, qword [rsp + 0x4a0]
mov rbx, qword [rsp + 0x498]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140003b30
add rsp, 0x478
pop r14
pop rdi
ret
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.Unable_to_read_stored_path_from_registry__Enter_path_again
call fcn.140003390
lea rdx, [0x140003570]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, rdi
call fcn.140001fd0
mov rax, rdi
jmp 0x140002435
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.Unable_to_open_registry_key__Enter_path_again
call fcn.140003390
lea rdx, [0x140003570]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, rdi
call fcn.140001fd0
mov rax, rdi
jmp 0x14000243d
call fcn.140001110
int3
call fcn.1400011b0
int3