Function at 0x140003c10
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x2e8]
sub rsp, 0x3e0
mov rax, qword [0x140010008]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
cmp qword [0x140010af8], 0
jne 0x140003e9f
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftOffice16.0OneNoteOptions
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 0x55
test eax, eax
jne 0x140003cd3
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.UILanguageForQNote
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140003cd3
cmp dword [rsp + 0x38], 4
jne 0x140003cd3
mov ebx, dword [rsp + 0x3c]
test ebx, ebx
jne 0x140003d0b
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x60]
lea r8, str.UILanguageTag
lea rdx, str.SoftwareMicrosoftOffice16.0CommonLanguageResources
call fcn.1400027e0
test al, al
je 0x140003d06
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
mov ebx, eax
test eax, eax
jne 0x140003d0b
mov ebx, 0x409
cmp ebx, 0x404
jne 0x140003d40
mov dword [rsp + 0x20], edi
lea r9, [rbp + 0x10]
lea r8, str.UILanguageTag
lea rdx, str.SoftwareMicrosoftOffice16.0CommonLanguageResources
call fcn.1400027e0
test al, al
je 0x140003d40
xor edx, edx
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
mov ebx, eax
lea rax, [0x14000c8bc]
mov qword [rsp + 0x40], rax
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140006f54
mov dword [rsp + 0x30], 0x104
xor r8d, r8d
lea rcx, str.msi.dll
call fcn.140001b90
mov rdi, rax
test rax, rax
jne 0x140003d87
mov dword [0], 1
jmp 0x140003e79
lea rdx, str.MsiProvideQualifiedComponentW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
lea rcx, str.OneNote_
call fcn.1400070f0
mov edx, eax
lea rcx, str.OneNote_
call fcn.140007040
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx - 4]
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.140006de0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xc0]
mov r8d, 0xfffffffe
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
lea rcx, str.EEDBAC4F_D024_4FDD_B578_0D6CB152634C
mov rax, rsi
call qword [0x14000b538]
test eax, eax
jne 0x140003e1f
xor r8d, r8d
lea rcx, [rbp + 0xc0]
call fcn.140001b90
mov qword [0x140010af8], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x140010b80]
mov r8d, 0xfffffffe
lea rdx, str.onenote.exe
lea rcx, [0x14000c530]
mov rax, rsi
call qword [0x14000b538]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rcx, [rbx - 0xc]
cmp dword [rcx + 4], 0
je 0x140003e79
cmp dword [rcx], 1
je 0x140003e72
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140003e79
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp dword [rcx + 4], 0
je 0x140003e9f
cmp dword [rcx], 1
je 0x140003e99
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140003e9f
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140008c20
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret