Function at 0x14000ce60
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x14005f020]
xor rax, rsp
mov qword [rbp + 0x88], rax
mov rax, r8
mov ebx, edx
mov dword [rbp + 0x80], r9d
xor edi, edi
mov qword [rbp + 0x70], rdi
lea rdx, [0x14005fd20]
cmp qword [0x14005fd38], 8
cmovae rdx, qword [0x14005fd20]
mov r9d, ebx
or r9d, 0x20006
lea rcx, [rbp + 0x70]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rbp + 0x78], eax
test eax, eax
jne 0x14000cf1f
lea rdx, [0x14005fd40]
cmp qword [0x14005fd58], 8
cmovae rdx, qword [0x14005fd40]
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x80]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 4]
xor r8d, r8d
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rbp + 0x78], eax
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rbp + 0x78]
test eax, 0xfffffffd
je 0x14000d11f
mov rax, qword [0x1400621e0]
test rax, rax
je 0x14000cf47
call qword [case.0x14001392e.0]
cmp eax, 0x12c
jg 0x14000d11f
lea rdx, str.OutlookAddinStatus::WriteOutlookRegKey__:_Setting_state_for_CU_in__1__bit_view._Result_code_is__2_.
lea rcx, [rsp + 0x60]
call fcn.1400145b0
nop
mov ecx, 0x20
mov edx, 0x40
cmp ebx, 0x100
cmove ecx, edx
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rcx
lea rcx, [fcn.14000d7b0]
mov qword [rsp + 0x40], rcx
lea rcx, [0x14000d7e0]
mov qword [rsp + 0x48], rcx
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.14000d650
lea rcx, [rbp + 0x78]
mov qword [rsp + 0x38], rcx
lea rcx, [fcn.14000d7b0]
mov qword [rsp + 0x40], rcx
lea rcx, [0x14000d7d0]
mov qword [rsp + 0x48], rcx
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.14000d650
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.140014da0
mov rcx, rax
mov rax, qword [0x1400621d8]
test rax, rax
je 0x14000cff5
mov edx, 0x12c
call qword [case.0x14001392e.0]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14000d038
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d032
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d13f
call fcn.14001f790
nop
cmp byte [rbp + 0x50], 0
je 0x14000d074
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x14000d070
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14001392e.0]
mov r8, rax
test rax, rax
je 0x14000d070
mov rcx, qword [rax]
mov rax, qword [rcx]
mov edx, 1
mov rcx, r8
call qword [case.0x14001392e.0]
mov byte [rbp + 0x50], 0
lea rcx, [rbp - 0x30]
call fcn.1400142f0
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x14000d0bd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d0b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d139
call fcn.14001f790
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], di
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000d115
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d103
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d139
call fcn.14001f790
mov qword [rsp + 0x78], rdi
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x80], xmm0
lea rcx, [rsp + 0x60]
call fcn.14000d400
mov rcx, qword [rbp + 0x88]
xor rcx, rsp
call fcn.14001f770
add rsp, 0x190
pop rdi
pop rbx
pop rbp
ret
call fcn.14002b368
nop
call fcn.14002b368
nop
int3