Function at 0x1402b8060
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x180
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_376], rax
mov r15, rcx
mov qword [rsp + 0xa0], rcx
xor r12d, r12d
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x60], r12d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9d, [r12 + 3]
xor r8d, r8d
lea rdx, [0x14037cff0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1402b81cd
call fcn.140049470
mov rbx, rax
xor edx, edx
mov r8d, 0x80
lea rsi, [0x140c49250]
mov rcx, rsi
call sub.ntdll.dll_memset
lea edx, [r12 + 0x5c]
lea rcx, [0x14037d058]
call qword [sym.imp.ntdll.dll_strrchr]
mov rdi, rax
test rax, rax
je 0x1402b81b3
mov byte [rsp + 0x168], r12b
xor eax, eax
mov qword [rsp + 0x169], rax
mov word [rsp + reloc.MFC80U.DLL_Ordinal_369], ax
mov byte [rsp + 0x173], al
lea r8d, [r12 + 0x7a]
lea rdx, [0x14037d484]
lea rcx, [rsp + 0x168]
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rsi
sub rcx, rdx
nop
nop
movzx eax, byte [rdx]
mov byte [rcx + rdx], al
add rdx, 1
test al, al
jne 0x1402b8170
mov rdi, rsi
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdx, [rsp + 0x168]
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 0x1402b81a0
mov r12, rsi
mov rax, qword [rbx]
mov r8, r12
lea rdx, str._s:_Failed_to_RegOpenKeyExW_in_UpdateRegistry.
mov rcx, rbx
call qword [rax + 0x10]
xor eax, eax
jmp 0x1402b8ea1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, [0x14037d0a0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1402b829e
nop
cmp eax, 2
jne 0x1402b8231
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
mov r9d, 7
xor r8d, r8d
lea rdx, [0x14037d0b8]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1402b8260
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, [0x14037d0a0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1402b829e
jmp 0x1402b8200
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.140049470
mov rdi, rax
mov rbx, qword [rax]
mov edx, 0x88
lea rcx, [0x14037d0d0]
call fcn.1402b7780
mov r8, rax
lea rdx, str._s:_Failed_to_RegSetValueEx_in_UpdateRegistry.
mov rcx, rdi
call qword [rbx + 0x10]
xor eax, eax
jmp 0x1402b8ea1
mov ecx, dword [rsp + 0x30]
call sub.MFC80U.DLL_Ordinal_265
mov rsi, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, [0x14037d118]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1402b831d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call sub.MFC80U.DLL_Ordinal_266
call fcn.140049470
mov rdi, rax
mov rbx, qword [rax]
mov edx, 0x9a
lea rcx, [0x14037d130]
call fcn.1402b7780
mov r8, rax
lea rdx, str._s:_Failed_to_RegQueryValueExW_in_UpdateRegistry.
mov rcx, rdi
call qword [rbx + 0x10]
xor eax, eax
jmp 0x1402b8ea1
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
lea rdx, [0x140377d4c]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_280]
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, r12d
cmp dword [rsp + 0x30], ebx
jbe 0x1402b83a7
mov rdi, rsi
nop
movzx edx, byte [rdi]
test dx, dx
jne 0x1402b838c
cmp qword [rsp + 0x130], 0
je 0x1402b8375
lea rdx, [rsp + reloc.MFC80U.DLL_Ordinal_280]
lea rcx, [rsp + 0x38]
call fcn.1400044f0
lea rdx, [0x140377d6c]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_280]
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_PEB_W_Z]
jmp 0x1402b839a
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_280]
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 0x1402b8350
mov rcx, rsi
call sub.MFC80U.DLL_Ordinal_266
lea rdx, [r15 + 0xb90]
lea rcx, [rsp + 0xf0]
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 rbp, r12
mov r13, r12
movabs rax, 0x6666666666666667
nop
nop
nop
mov r14d, 1
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x1402b863c
mov rcx, rsi
sub rcx, rbx
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbp, rdx
jae 0x1402b85bf
cmp rbp, rdx
jb 0x1402b8429
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rbx, qword [rsp + 0x40]
lea rdx, [rbx + r13]
lea rcx, [rsp + 0xc8]
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 + 0xf8]
cmp qword [rsp + 0x110], 8
cmovae rdi, qword [rsp + 0xf8]
lea rax, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 8
cmovae rax, qword [rsp + 0xd0]
sub rdi, rax
movzx edx, word [rax]
movzx ecx, word [rax + rdi]
sub edx, ecx
jne 0x1402b8486
add rax, 2
test ecx, ecx
jne 0x1402b8473
test edx, edx
je 0x1402b84af
lea rcx, [rsp + 0xc8]
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 rbp, 1
add r13, 0x28
movabs rax, 0x6666666666666667
jmp 0x1402b83e0
lea rcx, [rsp + 0xc8]
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 rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x1402b85b0
mov rcx, qword [rsp + 0x48]
sub rcx, rbx
movabs r13, 0x6666666666666667
mov rax, r13
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1402b871a
lea rdi, [rsp + 0xf8]
cmp qword [rsp + 0x110], 8
cmovae rdi, qword [rsp + 0xf8]
test rdx, rdx
jne 0x1402b851c
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rbx, qword [rsp + 0x40]
cmp qword [rbx + 0x20], 8
jb 0x1402b852e
mov rcx, qword [rbx + 8]
jmp 0x1402b8537
mov rcx, qword [rsp + 0x40]
add rcx, 8
mov rdx, rdi
call qword [sym.imp.ntdll.dll_wcsstr]
test rax, rax
je 0x1402b871a
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0xf0]
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 + reloc.MFC80U.DLL_Ordinal_280]
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 + 0x40]
test rdi, rdi
je 0x1402b85a6
mov rbx, qword [rsp + 0x48]
cmp rdi, rbx
je 0x1402b859e
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 0x1402b8587
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call sub.MFC80U.DLL_Ordinal_776
mov eax, 1
jmp 0x1402b8ea1
movabs r13, 0x6666666666666667
jmp 0x1402b871a
mov rcx, rsi
sub rcx, rbx
movabs r13, 0x6666666666666667
mov rax, r13
imul rcx
mov rdi, rdx
sar rdi, 4
mov rax, rdi
shr rax, 0x3f
add rdi, rax
mov rcx, qword [rsp + 0x50]
sub rcx, rbx
mov rax, r13
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdi, rdx
jae 0x1402b8646
xor eax, eax
mov byte [rsp + 0x28], al
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x38]
lea r8, [rsp + 0xf0]
mov rdx, r14
mov rcx, rsi
call fcn.140004e90
lea rdx, [rsi + 0x28]
mov qword [rsp + 0x48], rdx
jmp 0x1402b871a
movabs r13, 0x6666666666666667
mov rdi, rsi
cmp rbx, rsi
jbe 0x1402b865e
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rdi
test rbx, rbx
je 0x1402b86bb
mov rcx, rsi
sub rcx, rbx
mov rax, r13
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1402b86bb
cmp rbx, rsi
jbe 0x1402b869f
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
sub rdi, rbx
mov rax, r13
imul rdi
mov rdi, rdx
sar rdi, 4
mov rax, rdi
shr rax, 0x3f
add rdi, rax
jmp 0x1402b86be
mov rdi, r12
movaps xmm0, xmmword [rsp + 0x90]
movdqa xmmword [rsp + 0x90], xmm0
lea r9, [rsp + 0xf0]
mov r8, r14
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x38]
call fcn.140004870
mov rbx, qword [rsp + 0x40]
cmp rbx, qword [rsp + 0x48]
jbe 0x1402b86fe
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea rax, [rdi + rdi*4]
lea rcx, [rbx + rax*8]
cmp rcx, qword [rsp + 0x48]
ja 0x1402b8714
cmp rcx, qword [rsp + 0x40]
jae 0x1402b871a
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x80], r12
mov edi, r12d
mov rbx, qword [rsp + 0x40]
cmp rbx, qword [rsp + 0x48]
jbe 0x1402b8741
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rsi, qword [rsp + 0x48]
cmp qword [rsp + 0x40], rsi
jbe 0x1402b8753
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp rbx, rsi
je 0x1402b87df
cmp rbx, qword [rsp + 0x48]
jb 0x1402b8769
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rdx, rbx
lea rcx, [rsp + 0xc8]
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]
lea rdx, [rsp + 0xf8]
cmp qword [rsp + 0x110], 8
cmovae rdx, qword [rsp + 0xf8]
lea rcx, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 8
cmovae rcx, qword [rsp + 0xd0]
call qword [sym.imp.ntdll.dll_wcsstr]
test rax, rax
cmovne edi, r14d
lea rcx, [rsp + 0xc8]
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]
cmp rbx, qword [rsp + 0x48]
jb 0x1402b87d6
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add rbx, 0x28
jmp 0x1402b8741
test edi, edi
je 0x1402b894c
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x1402b886c
mov rcx, rsi
sub rcx, rbx
mov rax, r13
imul rcx
mov rdi, rdx
sar rdi, 4
mov rax, rdi
shr rax, 0x3f
add rdi, rax
mov rcx, qword [rsp + 0x80]
sub rcx, rbx
mov rax, r13
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdi, rdx
jae 0x1402b886c
xor eax, eax
mov byte [rsp + 0x28], al
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x68]
lea r8, [rsp + 0xf0]
mov rdx, r14
mov rcx, rsi
call fcn.140004e90
lea rdx, [rsi + 0x28]
mov qword [rsp + 0x78], rdx
jmp 0x1402b894c
mov rdi, rsi
cmp rbx, rsi
jbe 0x1402b8884
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rdi
test rbx, rbx
je 0x1402b88e1
mov rcx, rsi
sub rcx, rbx
mov rax, r13
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1402b88e1
cmp rbx, rsi
jbe 0x1402b88c5
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
sub rdi, rbx
mov rax, r13
imul rdi
mov rdi, rdx
sar rdi, 4
mov rax, rdi
shr rax, 0x3f
add rdi, rax
jmp 0x1402b88e4
mov rdi, r12
movaps xmm0, xmmword [rsp + 0x90]
movdqa xmmword [rsp + 0x90], xmm0
lea r9, [rsp + 0xf0]
mov r8, r14
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x68]
call fcn.140004870
mov r11, qword [rsp + 0x70]
mov rbx, r11
mov rcx, qword [rsp + 0x78]
cmp r11, rcx
jbe 0x1402b8934
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rcx, qword [rsp + 0x78]
mov r11, qword [rsp + 0x70]
lea rax, [rdi + rdi*4]
lea rdx, [rbx + rax*8]
cmp rdx, rcx
ja 0x1402b8946
cmp rdx, r11
jae 0x1402b894c
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rbx, qword [rsp + 0x40]
cmp rbx, qword [rsp + 0x48]
jbe 0x1402b895e
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
movzx edi, byte [rsp + 0x34]
mov rsi, qword [rsp + 0x48]
cmp qword [rsp + 0x40], rsi
jbe 0x1402b8975
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp rbx, rsi
je 0x1402b8bc2
cmp rbx, qword [rsp + 0x48]
jb 0x1402b898b
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rdx, rbx
lea rcx, [rsp + 0xc8]
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 rdx, [rsp + 0xf8]
cmp qword [rsp + 0x110], 8
cmovae rdx, qword [rsp + 0xf8]
lea rcx, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 8
cmovae rcx, qword [rsp + 0xd0]
call qword [sym.imp.ntdll.dll_wcsstr]
test rax, rax
jne 0x1402b8b9e
lea rdx, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 8
cmovae rdx, qword [rsp + 0xd0]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_320]
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 rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
test rsi, rsi
je 0x1402b8a8a
mov rcx, rbp
sub rcx, rsi
mov rax, r13
imul rcx
mov r8, rdx
sar r8, 4
mov rax, r8
shr rax, 0x3f
add r8, rax
mov rcx, qword [rsp + 0x80]
sub rcx, rsi
mov rax, r13
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r8, rdx
jae 0x1402b8a8a
xor eax, eax
mov byte [rsp + 0x28], al
mov byte [rsp + 0x20], dil
lea r9, [rsp + 0x68]
lea r8, [rsp + reloc.MFC80U.DLL_Ordinal_320]
mov rdx, r14
mov rcx, rbp
call fcn.140004e90
lea r11, [rbp + 0x28]
mov qword [rsp + 0x78], r11
jmp 0x1402b8b8f
mov r13, rbp
cmp rsi, rbp
jbe 0x1402b8aa2
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], r13
test rsi, rsi
je 0x1402b8b0d
mov rcx, rbp
sub rcx, rsi
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1402b8b0d
cmp rsi, rbp
jbe 0x1402b8aea
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
sub r13, rsi
movabs rax, 0x6666666666666667
imul r13
mov rsi, rdx
sar rsi, 4
mov rax, rsi
shr rax, 0x3f
add rsi, rax
jmp 0x1402b8b10
mov rsi, r12
movaps xmm0, xmmword [rsp + 0x90]
movdqa xmmword [rsp + 0xb0], xmm0
lea r9, [rsp + reloc.MFC80U.DLL_Ordinal_320]
mov r8, r14
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x68]
call fcn.140004870
mov r11, qword [rsp + 0x70]
mov rbp, r11
mov rcx, qword [rsp + 0x78]
cmp r11, rcx
jbe 0x1402b8b60
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rcx, qword [rsp + 0x78]
mov r11, qword [rsp + 0x70]
lea rax, [rsi + rsi*4]
lea rdx, [rbp + rax*8]
cmp rdx, rcx
ja 0x1402b8b73
cmp rdx, r11
jae 0x1402b8b85
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
movabs r13, 0x6666666666666667
jmp 0x1402b8b8f
movabs r13, 0x6666666666666667
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_320]
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 + 0xc8]
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]
cmp rbx, qword [rsp + 0x48]
jb 0x1402b8bb9
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add rbx, 0x28
jmp 0x1402b8963
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x38]
call fcn.140004220
nop
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x1402b8c05
mov rbx, qword [rsp + 0x78]
cmp rdi, rbx
je 0x1402b8bfd
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 0x1402b8be6
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
call sub.MFC80U.DLL_Ordinal_776
mov dword [rsp + 0x30], r12d
mov rbx, r12
mov rsi, r12
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x1402b8c88
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 rbx, rdx
jae 0x1402b8c88
cmp rbx, rdx
jb 0x1402b8c4b
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rdi, qword [rsp + 0x40]
lea rdx, [rdi + rsi]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_320]
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]
mov edx, dword [rsp + 0x30]
mov eax, dword [rsp + 0x158]
lea ecx, [rdx + rax + 1]
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_320]
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 rsi, 0x28
jmp 0x1402b8c10
mov eax, dword [rsp + 0x30]
add eax, eax
mov dword [rsp + 0x30], eax
mov ecx, eax
call sub.MFC80U.DLL_Ordinal_265
mov r13, rax
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call sub.ntdll.dll_memset
mov ebx, r12d
mov ebp, r12d
movabs r15, 0x6666666666666667
nop
nop
mov r8, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
test rdi, rdi
jne 0x1402b8cd4
mov rdx, r12
jmp 0x1402b8cee
mov rcx, r8
sub rcx, rdi
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movsxd rsi, ebp
cmp rsi, rdx
jae 0x1402b8d9e
test rdi, rdi
je 0x1402b8d1b
sub r8, rdi
mov rax, r15
imul r8
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rsi, rdx
jb 0x1402b8d26
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rdi, qword [rsp + 0x40]
lea rax, [rsi + rsi*4]
lea rdx, [rdi + rax*8]
lea rcx, [rsp + 0xc8]
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]
lea rdx, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 8
cmovae rdx, qword [rsp + 0xd0]
movsxd rax, ebx
lea rcx, [r13 + rax*2]
nop
movzx eax, word [rdx]
mov word [rcx], ax
add rdx, 2
add rcx, 2
test ax, ax
jne 0x1402b8d60
add ebx, dword [rsp + 0xe0]
movsxd rax, ebx
mov word [r13 + rax*2], 0
add ebx, 1
lea rcx, [rsp + 0xc8]
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 ebp, 1
jmp 0x1402b8cc0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
mov r9d, dword [rsp + 0x60]
xor r8d, r8d
lea rdx, [0x14037d180]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r13
call sub.MFC80U.DLL_Ordinal_266
test edi, edi
mov r15, qword [rsp + 0xa0]
je 0x1402b8e43
lea rcx, [rsp + 0xf0]
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 + reloc.MFC80U.DLL_Ordinal_280]
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 + 0x40]
test rdi, rdi
je 0x1402b8e3f
mov rbx, qword [rsp + 0x48]
cmp rdi, rbx
je 0x1402b8e37
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, rbx
jne 0x1402b8e20
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call sub.MFC80U.DLL_Ordinal_776
xor eax, eax
jmp 0x1402b8ea1
mov rcx, r15
call fcn.1402b7b20
mov esi, eax
lea rcx, [rsp + 0xf0]
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 + reloc.MFC80U.DLL_Ordinal_280]
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 + 0x40]
test rdi, rdi
je 0x1402b8e9f
mov rbx, qword [rsp + 0x48]
cmp rdi, rbx
je 0x1402b8e97
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, rbx
jne 0x1402b8e80
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call sub.MFC80U.DLL_Ordinal_776
mov eax, esi
mov rcx, qword [rsp + reloc.MFC80U.DLL_Ordinal_376]
xor rcx, rsp
call fcn.140161080
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret