Function at 0x14000c7e0
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 0x14000c89f
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 0x14000ca9f
mov rax, qword [0x1400622b0]
test rax, rax
je 0x14000c8c7
call qword [case.0x1400132ae.0]
cmp eax, 0x12c
jg 0x14000ca9f
lea rdx, str.OutlookAddinStatus::WriteOutlookRegKey__:_Setting_state_for_CU_in__1__bit_view._Result_code_is__2_.
lea rcx, [rsp + 0x60]
call fcn.140013f30
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.14000d130]
mov qword [rsp + 0x40], rcx
lea rcx, [0x14000d160]
mov qword [rsp + 0x48], rcx
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.14000cfd0
lea rcx, [rbp + 0x78]
mov qword [rsp + 0x38], rcx
lea rcx, [fcn.14000d130]
mov qword [rsp + 0x40], rcx
lea rcx, [0x14000d150]
mov qword [rsp + 0x48], rcx
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.14000cfd0
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.140014750
mov rcx, rax
mov rax, qword [0x1400622a8]
test rax, rax
je 0x14000c975
mov edx, 0x12c
call qword [case.0x1400132ae.0]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14000c9b8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c9b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000cabf
call fcn.14001f130
nop
cmp byte [rbp + 0x50], 0
je 0x14000c9f4
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x14000c9f0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400132ae.0]
mov r8, rax
test rax, rax
je 0x14000c9f0
mov rcx, qword [rax]
mov rax, qword [rcx]
mov edx, 1
mov rcx, r8
call qword [case.0x1400132ae.0]
mov byte [rbp + 0x50], 0
lea rcx, [rbp - 0x30]
call fcn.140013c70
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x14000ca3d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ca38
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000cab9
call fcn.14001f130
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], di
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000ca95
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ca83
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000cab9
call fcn.14001f130
mov qword [rsp + 0x78], rdi
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x80], xmm0
lea rcx, [rsp + 0x60]
call fcn.14000cd80
mov rcx, qword [rbp + 0x88]
xor rcx, rsp
call fcn.14001f110
add rsp, 0x190
pop rdi
pop rbx
pop rbp
ret
call fcn.14002ad18
nop
call fcn.14002ad18
nop
int3