Function at 0x14000d160
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x14005d020]
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, [0x14005dcc0]
cmp qword [0x14005dcd8], 8
cmovae rdx, qword [0x14005dcc0]
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 0x14000d21f
lea rdx, [0x14005dce0]
cmp qword [0x14005dcf8], 8
cmovae rdx, qword [0x14005dce0]
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 0x14000d41f
mov rax, qword [0x1400601a0]
test rax, rax
je 0x14000d247
call qword [case.0x140013bae.0]
cmp eax, 0x12c
jg 0x14000d41f
lea rdx, str.OutlookAddinStatus::WriteOutlookRegKey__:_Setting_state_for_CU_in__1__bit_view._Result_code_is__2_.
lea rcx, [rsp + 0x60]
call fcn.140014830
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.14000dab0]
mov qword [rsp + 0x40], rcx
lea rcx, [0x14000dae0]
mov qword [rsp + 0x48], rcx
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.14000d950
lea rcx, [rbp + 0x78]
mov qword [rsp + 0x38], rcx
lea rcx, [fcn.14000dab0]
mov qword [rsp + 0x40], rcx
lea rcx, [0x14000dad0]
mov qword [rsp + 0x48], rcx
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.14000d950
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.140015030
mov rcx, rax
mov rax, qword [0x140060198]
test rax, rax
je 0x14000d2f5
mov edx, 0x12c
call qword [case.0x140013bae.0]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14000d338
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d332
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d43f
call fcn.14001f834
nop
cmp byte [rbp + 0x50], 0
je 0x14000d374
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x14000d370
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140013bae.0]
mov r8, rax
test rax, rax
je 0x14000d370
mov rcx, qword [rax]
mov rax, qword [rcx]
mov edx, 1
mov rcx, r8
call qword [case.0x140013bae.0]
mov byte [rbp + 0x50], 0
lea rcx, [rbp - 0x30]
call fcn.140014570
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x14000d3bd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d3b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d439
call fcn.14001f834
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], di
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000d415
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d403
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d439
call fcn.14001f834
mov qword [rsp + 0x78], rdi
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x80], xmm0
lea rcx, [rsp + 0x60]
call fcn.14000d700
mov rcx, qword [rbp + 0x88]
xor rcx, rsp
call fcn.14001f810
add rsp, 0x190
pop rdi
pop rbx
pop rbp
ret
call fcn.1400293c8
nop
call fcn.1400293c8
nop
int3