Function at 0x180045574
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x70
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rdi, rcx
lea rdx, [rax - 0x30]
lea rcx, [0x180162940]
call fcn.18002ade4
mov rdx, qword [rax]
xor ebx, ebx
cmp dword [rdx - 8], ebx
sete bl
mov rdx, qword [rsp + 0x58]
add rdx, 0xfffffffffffffff4
lea r12, [0x18015f758]
or esi, 0xffffffff
cmp rdx, r12
je 0x1800455dc
mov eax, esi
lock xadd dword [rdx], eax
add eax, esi
test eax, eax
jg 0x1800455dc
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff4
call fcn.1800d1434
test ebx, ebx
je 0x1800455fa
lea rdx, str.CDataIENewTabURLEntity::RestoreEntity_____New_Tab_URL_is_empty._Not_restoring...
lea rcx, [0x18015f578]
call fcn.1800098e8
xor eax, eax
jmp 0x180045811
lea rcx, [0x180162940]
call fcn.1800049a0
test eax, eax
jne 0x180045624
lea rdx, str.CDataIENewTabURLEntity::RestoreEntry_____New_Tab_Installed_flag_is_set_to_FALSE._Not_restoring...
lea rcx, [0x18015f578]
call fcn.1800098e8
xor eax, eax
jmp 0x180045811
lea rcx, [0x180162138]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x1801620e0]
lea rcx, [0x180162138]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x180045662
lea rdx, str.CDataIENewTabURLEntity::RestoreEntity_____IE_Not_enabled._Not_restoring...
lea rcx, [0x18015f578]
call fcn.1800098e8
xor eax, eax
jmp 0x180045811
lea rdx, str._t_t_tCDataIENewTabURLEntity_:_Restoring_entity...
lea rcx, [0x18015f578]
call fcn.1800098e8
lea rdx, str.SoftwareMicrosoftInternet_ExplorerAboutURLs
lea rcx, [rsp + 0x50]
call fcn.1800041c0
nop
lea rdx, [rsp + 0xa0]
lea rcx, [0x180162940]
call fcn.18002ade4
nop
and qword [rsp + 0xa8], 0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x18004577c
mov qword [rsp + 0x28], rbx
mov rax, qword [rdi + 0x60]
mov qword [rsp + 0x20], rax
lea r9, str._t_t_tCannot_restore_entry__s._Err_:_Cannot_open_reg_key_:__s
mov r8d, 0xc3
lea rdx, str..DataIENewTabURLEntity.cpp
lea rcx, [0x18015f578]
call fcn.18000b1e8
nop
mov rcx, qword [rsp + 0xa0]
add rcx, 0xfffffffffffffff4
cmp rcx, r12
je 0x180045753
mov eax, esi
lock xadd dword [rcx], eax
add eax, esi
test eax, eax
jg 0x180045753
mov rcx, qword [rsp + 0xa0]
add rcx, 0xfffffffffffffff4
call fcn.1800d1434
nop
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff4
cmp rcx, r12
je 0x180045772
mov eax, esi
lock xadd dword [rcx], eax
add eax, esi
test eax, eax
jg 0x180045772
call fcn.1800d1434
mov eax, 0x80004005
jmp 0x180045811
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rax - 8]
lea ecx, [rcx + rcx + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.Tabs
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rsp + 0xa0]
add rcx, 0xfffffffffffffff4
cmp rcx, r12
je 0x1800457f0
mov eax, esi
lock xadd dword [rcx], eax
add eax, esi
test eax, eax
jg 0x1800457f0
mov rcx, qword [rsp + 0xa0]
add rcx, 0xfffffffffffffff4
call fcn.1800d1434
nop
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff4
cmp rcx, r12
je 0x18004580f
mov eax, esi
lock xadd dword [rcx], eax
add eax, esi
test eax, eax
jg 0x18004580f
call fcn.1800d1434
xor eax, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop r12
pop rdi
pop rsi
ret