Function at 0x140165af0
Capabilities:
Delete registry key

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x120
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov r12, r8
mov qword [rsp + 0xa0], r8
mov qword [r11 - 0x40], r8
xor r13d, r13d
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov rdx, r8
lea rcx, [r11 - 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]
mov r8, rax
mov rdx, 0xffffffff80000002
lea rcx, [0x140c461a0]
call fcn.140164460
test al, al
jne 0x140165bce
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x140165baf
mov rdi, qword [rsp + 0x60]
cmp rbx, rdi
je 0x140165ba7
nop
nop
mov rcx, rbx
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, 0x28
cmp rbx, rdi
jne 0x140165b90
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call sub.MFC80U.DLL_Ordinal_776
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov rcx, r12
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 0x1401665bf
lea rdx, [rsp + 0x50]
lea rcx, [0x140c461a0]
call fcn.1401658e0
test al, al
jne 0x140165c80
cmp byte [0x140c471b0], al
je 0x140165c14
lea r8, [0x140c461b0]
mov edx, 4
mov rcx, qword [0x140c461a0]
call qword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
je 0x140165c14
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [0x140c461a0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140165c2e
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x140165c61
mov rdi, qword [rsp + 0x60]
cmp rbx, rdi
je 0x140165c59
mov rcx, rbx
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, 0x28
cmp rbx, rdi
jne 0x140165c42
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call sub.MFC80U.DLL_Ordinal_776
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov rcx, r12
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 0x1401665bf
mov rcx, qword [0x140c461a0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140165c99
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
mov rbx, r13
mov rdi, r13
movabs rbp, 0x6666666666666667
nop
nop
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140165d90
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rbp
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbx, rdx
jae 0x140165d90
mov rdx, r12
lea rcx, [rsp + 0xe0]
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, [0x140362ca4]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
mov r11, qword [rsp + 0x58]
test r11, r11
je 0x140165d45
mov rcx, qword [rsp + 0x60]
sub rcx, r11
mov rax, rbp
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbx, rdx
jb 0x140165d50
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov r11, qword [rsp + 0x58]
lea rdx, [rdi + r11]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64____ptr64]
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x30]
call fcn.1400044f0
nop
lea rcx, [rsp + 0xe0]
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 rdi, 0x28
jmp 0x140165cc0
mov r14, r13
mov r15, r13
movzx ebx, byte [rsp + 0x70]
nop
nop
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
test r8, r8
je 0x140166287
mov rcx, r9
sub rcx, r8
mov rax, rbp
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r14, rdx
jae 0x14016626b
cmp r14, rdx
jb 0x140165de6
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov r8, qword [rsp + 0x38]
lea rdx, [r15 + r8]
lea rcx, [rsp + 0xe0]
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 rdi, rax
mov qword [rsp + 0x98], rax
mov qword [0x140c461a0], r13
cmp qword [rax + 0x20], 8
jb 0x140165e1a
lea rsi, [rax + 8]
mov rdx, qword [rsi]
jmp 0x140165e21
lea rsi, [rax + 8]
mov rdx, rsi
lea r8, [0x140c461a0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x140165e50
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
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]
jmp 0x14016625e
mov qword [0x140c461a8], 0xffffffff80000002
mov rdx, rdi
lea rcx, [0x140c471b8]
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_AEBV01__Z]
lea rcx, [0x140c461a0]
call fcn.140163c00
mov byte [0x140c471b0], al
test al, al
je 0x140165eca
mov rcx, qword [0x140c461a0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rdi + 0x20], 8
jb 0x140165e98
mov rsi, qword [rsi]
lea r8, [0x140c461a0]
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x140165eca
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
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]
jmp 0x14016625e
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]
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x90], r13
lea rdx, [rsp + 0x78]
lea rcx, [0x140c461a0]
call fcn.1401658e0
test al, al
jne 0x140165f97
cmp byte [0x140c471b0], al
je 0x140165f31
lea r8, [0x140c461b0]
mov edx, 4
mov rcx, qword [0x140c461a0]
call qword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
je 0x140165f31
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [0x140c461a0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140165f4b
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rdi, qword [rsp + 0x80]
test rdi, rdi
je 0x14016625e
mov rsi, qword [rsp + 0x88]
cmp rdi, rsi
je 0x140165f8a
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 0x140165f70
mov rdi, qword [rsp + 0x80]
mov rcx, rdi
call sub.MFC80U.DLL_Ordinal_776
jmp 0x14016625e
mov r12, r13
nop
nop
mov rsi, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x80]
test rdi, rdi
je 0x14016622a
mov rcx, rsi
sub rcx, rdi
mov rax, rbp
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r12, rdx
jae 0x14016622a
mov r8, qword [rsp + 0x38]
test r8, r8
je 0x140166007
mov rcx, qword [rsp + 0x40]
sub rcx, r8
mov rax, rbp
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r14, rdx
jb 0x140166012
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov r8, qword [rsp + 0x38]
lea rdx, [r15 + r8]
lea rcx, [rsp + 0xe0]
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, [0x140362cd4]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
mov r11, qword [rsp + 0x80]
test r11, r11
je 0x14016606b
mov rcx, qword [rsp + 0x88]
sub rcx, r11
mov rax, rbp
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r12, rdx
jb 0x140166079
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov r11, qword [rsp + 0x80]
lea rdx, [r13 + r11]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64____ptr64]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x140166109
mov rcx, rsi
sub rcx, rdi
mov rax, rbp
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, rbp
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r8, rdx
jae 0x140166109
xor eax, eax
mov byte [rsp + 0x28], al
mov byte [rsp + 0x20], bl
lea r9, [rsp + 0x30]
lea r8, [rsp + 0xe0]
lea edx, [rax + 1]
mov rcx, rsi
call fcn.140004e90
lea r11, [rsi + 0x28]
mov qword [rsp + 0x40], r11
jmp 0x14016620f
mov rbp, rsi
cmp rdi, rsi
jbe 0x140166121
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 + 0xb0], rax
mov qword [rsp + 0xb8], rbp
test rdi, rdi
je 0x14016618c
mov rcx, rsi
sub rcx, rdi
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x14016618c
cmp rdi, rsi
jbe 0x140166169
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
sub rbp, rdi
movabs rax, 0x6666666666666667
imul rbp
mov rdi, rdx
sar rdi, 4
mov rax, rdi
shr rax, 0x3f
add rdi, rax
jmp 0x14016618e
xor edi, edi
movaps xmm0, xmmword [rsp + 0xb0]
movdqa xmmword [rsp + 0xd0], xmm0
lea r9, [rsp + 0xe0]
mov r8d, 1
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x30]
call fcn.140004870
mov r11, qword [rsp + 0x38]
mov rsi, r11
mov rcx, qword [rsp + 0x40]
cmp r11, rcx
jbe 0x1401661e1
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rcx, qword [rsp + 0x40]
mov r11, qword [rsp + 0x38]
lea rax, [rdi + rdi*4]
lea rdx, [rsi + rax*8]
cmp rdx, rcx
ja 0x1401661f3
cmp rdx, r11
jae 0x140166205
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
movabs rbp, 0x6666666666666667
jmp 0x14016620f
movabs rbp, 0x6666666666666667
lea rcx, [rsp + 0xe0]
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 r12, 1
add r13, 0x28
jmp 0x140165fa0
test rdi, rdi
je 0x14016625b
cmp rdi, rsi
je 0x14016624e
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 0x140166234
mov rdi, qword [rsp + 0x80]
mov rcx, rdi
call sub.MFC80U.DLL_Ordinal_776
xor r13d, r13d
jmp 0x14016625e
xor r13d, r13d
add r14, 1
add r15, 0x28
jmp 0x140165da0
mov rcx, r9
sub rcx, r8
mov rax, rbp
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jmp 0x14016628a
mov rdx, r13
lea rbp, [rdx - 1]
cmp rbp, 0xffffffffffffffff
je 0x14016645a
lea rsi, [rbp + rbp*4]
shl rsi, 3
test r8, r8
je 0x1401662ce
sub r9, r8
movabs r12, 0x6666666666666667
mov rax, r12
imul r9
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbp, rdx
jb 0x1401662e3
jmp 0x1401662d8
movabs r12, 0x6666666666666667
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov r8, qword [rsp + 0x38]
lea rdx, [rsi + r8]
lea rcx, [rsp + 0xe0]
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 rbx, rax
mov qword [rsp + 0x98], rax
mov qword [0x140c461a0], r13
cmp qword [rax + 0x20], 8
jb 0x140166317
lea rdi, [rax + 8]
mov rdx, qword [rdi]
jmp 0x14016631e
lea rdi, [rax + 8]
mov rdx, rdi
lea r8, [0x140c461a0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x14016634d
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, rbx
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]
jmp 0x1401663cd
mov qword [0x140c461a8], 0xffffffff80000002
mov rdx, rbx
lea rcx, [0x140c471b8]
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_AEBV01__Z]
lea rcx, [0x140c461a0]
call fcn.140163c00
mov byte [0x140c471b0], al
test al, al
je 0x1401663c4
mov rcx, qword [0x140c461a0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbx + 0x20], 8
jb 0x140166395
mov rdi, qword [rdi]
lea r8, [0x140c461a0]
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1401663c4
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, rbx
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]
jmp 0x1401663cd
mov rcx, rbx
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 rcx, qword [0x140c461a0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1401663e6
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8, qword [rsp + 0x38]
test r8, r8
je 0x140166411
mov rcx, qword [rsp + 0x40]
sub rcx, r8
mov rax, r12
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbp, rdx
jb 0x14016641c
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov r8, qword [rsp + 0x38]
cmp qword [rsi + r8 + 0x20], 8
jb 0x14016642b
mov rdx, qword [rsi + r8 + 8]
jmp 0x140166430
lea rdx, [rsi + r8 + 8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
sub rbp, 1
sub rsi, 0x28
cmp rbp, 0xffffffffffffffff
je 0x14016645a
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
jmp 0x1401662a1
mov r12, qword [rsp + 0xa0]
cmp qword [r12 + 0x20], 8
jb 0x140166471
mov rdx, qword [r12 + 8]
jmp 0x140166476
lea rdx, [r12 + 8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x140166530
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x1401664cf
mov rdi, qword [rsp + 0x40]
cmp rbx, rdi
je 0x1401664c7
nop
nop
mov rcx, rbx
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, 0x28
cmp rbx, rdi
jne 0x1401664b0
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call sub.MFC80U.DLL_Ordinal_776
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x140166511
mov rdi, qword [rsp + 0x60]
cmp rbx, rdi
je 0x140166509
mov rcx, rbx
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, 0x28
cmp rbx, rdi
jne 0x1401664f2
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call sub.MFC80U.DLL_Ordinal_776
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov rcx, r12
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 0x1401665bf
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140166563
mov rdi, qword [rsp + 0x40]
cmp rbx, rdi
je 0x14016655b
mov rcx, rbx
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, 0x28
cmp rbx, rdi
jne 0x140166544
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call sub.MFC80U.DLL_Ordinal_776
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x1401665a5
mov rdi, qword [rsp + 0x60]
cmp rbx, rdi
je 0x14016659d
mov rcx, rbx
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, 0x28
cmp rbx, rdi
jne 0x140166586
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call sub.MFC80U.DLL_Ordinal_776
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov rcx, r12
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 + 0x110]
xor rcx, rsp
call fcn.140161080
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret