Function at 0x1401cbec0
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 + 0xa0], 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 + 0x170], rax
mov rbp, 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, [0x14036c9a0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1401cc02d
call fcn.140049470
mov rbx, rax
xor edx, edx
mov r8d, 0x80
lea rsi, [0x140c48470]
mov rcx, rsi
call sub.ntdll.dll_memset
lea edx, [r12 + 0x5c]
lea rcx, [0x14036ca08]
call qword [sym.imp.ntdll.dll_strrchr]
mov rdi, rax
test rax, rax
je 0x1401cc013
mov byte [rsp + 0x160], r12b
xor eax, eax
mov qword [rsp + 0x161], rax
mov word [rsp + 0x169], ax
mov byte [rsp + 0x16b], al
mov r8d, Ordinal_424
lea rdx, [0x14036cdbc]
lea rcx, [rsp + 0x160]
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rsi
sub rcx, rdx
nop
nop
nop
nop
movzx eax, byte [rdx]
mov byte [rcx + rdx], al
add rdx, 1
test al, al
jne 0x1401cbfd0
mov rdi, rsi
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdx, [rsp + 0x160]
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 0x1401cc000
mov r12, rsi
mov rax, qword [rbx]
mov r8, r12
lea rdx, [0x14036ca20]
mov rcx, rbx
call qword [rax + 0x10]
xor eax, eax
jmp 0x1401ccc97
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, [0x14036ca50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1401cc0fe
nop
cmp eax, 2
jne 0x1401cc091
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
mov r9d, 7
xor r8d, r8d
lea rdx, [0x14036ca68]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1401cc0c0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, [0x14036ca50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1401cc0fe
jmp 0x1401cc060
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.140049470
mov rdi, rax
mov rbx, qword [rax]
mov edx, Ordinal_438
lea rcx, [0x14036ca80]
call fcn.1401cb120
mov r8, rax
lea rdx, [0x14036ca98]
mov rcx, rdi
call qword [rbx + 0x10]
xor eax, eax
jmp 0x1401ccc97
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, [0x14036cac8]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1401cc17d
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, 0x1c5
lea rcx, [0x14036cae0]
call fcn.1401cb120
mov r8, rax
lea rdx, [0x14036caf8]
mov rcx, rdi
call qword [rbx + 0x10]
xor eax, eax
jmp 0x1401ccc97
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
lea rdx, [0x14036984c]
lea rcx, [rsp + 0x110]
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 0x1401cc207
mov rdi, rsi
nop
movzx edx, byte [rdi]
test dx, dx
jne 0x1401cc1ec
cmp qword [rsp + reloc.MFC80U.DLL_Ordinal_296], 0
je 0x1401cc1d5
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x38]
call fcn.1400044f0
lea rdx, [0x14036988c]
lea rcx, [rsp + 0x110]
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_PEB_W_Z]
jmp 0x1401cc1fa
lea rcx, [rsp + 0x110]
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 0x1401cc1b0
mov rcx, rsi
call sub.MFC80U.DLL_Ordinal_266
lea rdx, [rbp + 0x6f0]
lea rcx, [rsp + 0xe8]
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 r15, 0x6666666666666667
nop
nop
nop
mov r14d, 1
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x1401cc47c
mov rcx, rsi
sub rcx, rbx
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbp, rdx
jae 0x1401cc409
cmp rbp, rdx
jb 0x1401cc28c
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rbx, qword [rsp + 0x40]
lea rdx, [rbx + r13]
lea rcx, [rsp + 0xc0]
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 + 0xf0]
cmp qword [rsp + 0x108], 8
cmovae rdi, qword [rsp + 0xf0]
lea rax, [rsp + 0xc8]
cmp qword [rsp + 0xe0], 8
cmovae rax, qword [rsp + 0xc8]
sub rdi, rax
nop
nop
nop
movzx edx, word [rax]
movzx ecx, word [rax + rdi]
sub edx, ecx
jne 0x1401cc2f3
add rax, 2
test ecx, ecx
jne 0x1401cc2e0
test edx, edx
je 0x1401cc312
lea rcx, [rsp + 0xc0]
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
jmp 0x1401cc240
lea rcx, [rsp + 0xc0]
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 0x1401cc550
mov rcx, qword [rsp + 0x48]
sub rcx, rbx
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1401cc550
lea rdi, [rsp + 0xf0]
cmp qword [rsp + 0x108], 8
cmovae rdi, qword [rsp + 0xf0]
test rdx, rdx
jne 0x1401cc375
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rbx, qword [rsp + 0x40]
cmp qword [rbx + 0x20], 8
jb 0x1401cc387
mov rcx, qword [rbx + 8]
jmp 0x1401cc390
mov rcx, qword [rsp + 0x40]
add rcx, 8
mov rdx, rdi
call qword [sym.imp.ntdll.dll_wcsstr]
test rax, rax
je 0x1401cc550
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0xe8]
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 + 0x110]
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 0x1401cc3ff
mov rbx, qword [rsp + 0x48]
cmp rdi, rbx
je 0x1401cc3f7
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 0x1401cc3e0
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call sub.MFC80U.DLL_Ordinal_776
mov eax, 1
jmp 0x1401ccc97
mov rcx, rsi
sub rcx, rbx
mov rax, r15
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, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdi, rdx
jae 0x1401cc47c
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 + 0xe8]
mov rdx, r14
mov rcx, rsi
call fcn.140004e90
lea rdx, [rsi + 0x28]
mov qword [rsp + 0x48], rdx
jmp 0x1401cc550
mov rdi, rsi
cmp rbx, rsi
jbe 0x1401cc494
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 0x1401cc4f1
mov rcx, rsi
sub rcx, rbx
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1401cc4f1
cmp rbx, rsi
jbe 0x1401cc4d5
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
sub rdi, rbx
mov rax, r15
imul rdi
mov rdi, rdx
sar rdi, 4
mov rax, rdi
shr rax, 0x3f
add rdi, rax
jmp 0x1401cc4f4
mov rdi, r12
movaps xmm0, xmmword [rsp + 0x90]
movdqa xmmword [rsp + 0x90], xmm0
lea r9, [rsp + 0xe8]
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 0x1401cc534
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 0x1401cc54a
cmp rcx, qword [rsp + 0x40]
jae 0x1401cc550
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 0x1401cc580
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
nop
nop
nop
mov rsi, qword [rsp + 0x48]
cmp qword [rsp + 0x40], rsi
jbe 0x1401cc592
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp rbx, rsi
je 0x1401cc61e
cmp rbx, qword [rsp + 0x48]
jb 0x1401cc5a8
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rdx, rbx
lea rcx, [rsp + 0xc0]
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 + 0xf0]
cmp qword [rsp + 0x108], 8
cmovae rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0xc8]
cmp qword [rsp + 0xe0], 8
cmovae rcx, qword [rsp + 0xc8]
call qword [sym.imp.ntdll.dll_wcsstr]
test rax, rax
cmovne edi, r14d
lea rcx, [rsp + 0xc0]
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 0x1401cc615
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add rbx, 0x28
jmp 0x1401cc580
test edi, edi
je 0x1401cc78b
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x1401cc6ab
mov rcx, rsi
sub rcx, rbx
mov rax, r15
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, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdi, rdx
jae 0x1401cc6ab
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 + 0xe8]
mov rdx, r14
mov rcx, rsi
call fcn.140004e90
lea rdx, [rsi + 0x28]
mov qword [rsp + 0x78], rdx
jmp 0x1401cc78b
mov rdi, rsi
cmp rbx, rsi
jbe 0x1401cc6c3
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 0x1401cc720
mov rcx, rsi
sub rcx, rbx
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1401cc720
cmp rbx, rsi
jbe 0x1401cc704
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
sub rdi, rbx
mov rax, r15
imul rdi
mov rdi, rdx
sar rdi, 4
mov rax, rdi
shr rax, 0x3f
add rdi, rax
jmp 0x1401cc723
mov rdi, r12
movaps xmm0, xmmword [rsp + 0x90]
movdqa xmmword [rsp + 0x90], xmm0
lea r9, [rsp + 0xe8]
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 0x1401cc773
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 0x1401cc785
cmp rdx, r11
jae 0x1401cc78b
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rbx, qword [rsp + 0x40]
cmp rbx, qword [rsp + 0x48]
jbe 0x1401cc79d
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 0x1401cc7b4
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp rbx, rsi
je 0x1401cc9de
cmp rbx, qword [rsp + 0x48]
jb 0x1401cc7ca
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rdx, rbx
lea rcx, [rsp + 0xc0]
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 + 0xf0]
cmp qword [rsp + 0x108], 8
cmovae rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0xc8]
cmp qword [rsp + 0xe0], 8
cmovae rcx, qword [rsp + 0xc8]
call qword [sym.imp.ntdll.dll_wcsstr]
test rax, rax
jne 0x1401cc9ba
lea rdx, [rsp + 0xc8]
cmp qword [rsp + 0xe0], 8
cmovae rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x138]
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 0x1401cc8c9
mov rcx, rbp
sub rcx, rsi
mov rax, r15
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, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r8, rdx
jae 0x1401cc8c9
xor eax, eax
mov byte [rsp + 0x28], al
mov byte [rsp + 0x20], dil
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x138]
mov rdx, r14
mov rcx, rbp
call fcn.140004e90
lea r11, [rbp + 0x28]
mov qword [rsp + 0x78], r11
jmp 0x1401cc9ab
mov r13, rbp
cmp rsi, rbp
jbe 0x1401cc8e1
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 0x1401cc93e
mov rcx, rbp
sub rcx, rsi
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1401cc93e
cmp rsi, rbp
jbe 0x1401cc922
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
sub r13, rsi
mov rax, r15
imul r13
mov rsi, rdx
sar rsi, 4
mov rax, rsi
shr rax, 0x3f
add rsi, rax
jmp 0x1401cc941
mov rsi, r12
movaps xmm0, xmmword [rsp + 0x90]
movdqa xmmword [rsp + 0xb0], xmm0
lea r9, [rsp + 0x138]
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 0x1401cc991
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 0x1401cc9a4
cmp rdx, r11
jae 0x1401cc9ab
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
nop
lea rcx, [rsp + 0x138]
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 + 0xc0]
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 0x1401cc9d5
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add rbx, 0x28
jmp 0x1401cc7a2
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x38]
call fcn.140004220
nop
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x1401cca21
mov rbx, qword [rsp + 0x78]
cmp rdi, rbx
je 0x1401cca19
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 0x1401cca02
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
nop
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x1401ccaa8
mov rcx, qword [rsp + 0x48]
sub rcx, rdi
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbx, rdx
jae 0x1401ccaa8
cmp rbx, rdx
jb 0x1401cca6b
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rdi, qword [rsp + 0x40]
lea rdx, [rdi + rsi]
lea rcx, [rsp + 0x138]
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 + reloc.MFC80U.DLL_Ordinal_336]
lea ecx, [rdx + rax + 1]
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x138]
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 0x1401cca30
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
mov r8, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
test rdi, rdi
jne 0x1401ccae5
mov rdx, r12
jmp 0x1401ccaff
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 0x1401ccbae
test rdi, rdi
je 0x1401ccb2c
sub r8, rdi
mov rax, r15
imul r8
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rsi, rdx
jb 0x1401ccb37
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 + 0xc0]
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 + 0xc8]
cmp qword [rsp + 0xe0], 8
cmovae rdx, qword [rsp + 0xc8]
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 0x1401ccb70
add ebx, dword [rsp + 0xd8]
movsxd rax, ebx
mov word [r13 + rax*2], 0
add ebx, 1
lea rcx, [rsp + 0xc0]
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 0x1401ccad1
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, [0x14036cb30]
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
je 0x1401ccc43
lea rcx, [rsp + 0xe8]
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 + 0x110]
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 0x1401ccc3f
mov rbx, qword [rsp + 0x48]
cmp rdi, rbx
je 0x1401ccc37
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 0x1401ccc20
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call sub.MFC80U.DLL_Ordinal_776
xor eax, eax
jmp 0x1401ccc97
lea rcx, [rsp + 0xe8]
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 + 0x110]
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 0x1401ccc94
mov rbx, qword [rsp + 0x48]
cmp rdi, rbx
je 0x1401ccc8c
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 0x1401ccc75
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call sub.MFC80U.DLL_Ordinal_776
mov eax, r14d
mov rcx, qword [rsp + 0x170]
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