Function at 0x403362
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x2d4
mov eax, 0x408b38
call fcn.00407a3c
cmp dword [0x40e848], 0
jne 0x4035d0
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x2d8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x40b190
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
mov dword [0x40e190], ebx
call edi
test eax, eax
jne 0x403410
lea eax, [ebp - 0x2e0]
mov dword [ebp - 0x2e0], 4
push eax
lea eax, [ebp - 0x2cc]
push eax
lea eax, [ebp - 0x2d4]
push eax
push ebx
push str.LastUILang
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x2d8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x403410
cmp dword [ebp - 0x2d4], 4
jne 0x403410
mov ecx, dword [0x40e190]
cmp dword [ebp - 0x2cc], ebx
cmovne ecx, dword [ebp - 0x2cc]
mov dword [0x40e190], ecx
jmp 0x403416
mov ecx, dword [0x40e190]
mov esi, dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
test ecx, ecx
jne 0x4034a4
push 0x55
lea eax, [ebp - 0xbc]
mov edx, str.SoftwareMicrosoftOffice16.0CommonLanguageResources
push eax
push str.UILanguageTag
call fcn.0040231d
test al, al
je 0x403454
push ebx
lea eax, [ebp - 0xbc]
push eax
call esi
mov ecx, eax
mov dword [0x40e190], ecx
jmp 0x40345a
mov ecx, dword [0x40e190]
test ecx, ecx
jne 0x4034a4
lea eax, [ebp - 0x2d4]
push eax
push 0x20019
push ebx
push 0x40aff0
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x403492
lea eax, [ebp - 0x2d4]
xor edx, edx
push eax
mov ecx, str.SKULanguage
call fcn.004022cf
mov ecx, eax
jmp 0x403494
mov ecx, ebx
test ecx, ecx
mov eax, 0x409
cmove ecx, eax
mov dword [0x40e190], ecx
cmp ecx, 0x404
jne 0x4034e2
push 0x55
lea eax, [ebp - 0xbc]
mov edx, str.SoftwareMicrosoftOffice16.0CommonLanguageResources
push eax
push str.UILanguageTag
call fcn.0040231d
test al, al
je 0x4034dc
push ebx
lea eax, [ebp - 0xbc]
push eax
call esi
mov ecx, eax
mov dword [0x40e190], ecx
jmp 0x4034e2
mov ecx, dword [0x40e190]
mov eax, dword [0x40a5e4]
mov dword [ebp - 0x2d0], eax
push ebx
push ebx
push ebx
push ebx
push ecx
lea ecx, [ebp - 0x2d0]
mov dword [ebp - 4], ebx
call fcn.004064fb
push ebx
mov ecx, str.msi.dll
mov dword [ebp - 0x2dc], 0x104
call fcn.00401909
mov esi, eax
test esi, esi
jne 0x40352a
mov dword [0], 1
jmp 0x4035c5
push str.MsiProvideQualifiedComponentW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OneNote_
lea ecx, [ebp - 0x2cc]
mov edi, eax
call fcn.004060d5
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2d0]
mov eax, dword [ecx - 4]
cdq
sub eax, edx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2cc]
call fcn.00406291
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x2c8]
push eax
push 0xfffffffffffffffe
push dword [ebp - 0x2cc]
push str.EEDBAC4F_D024_4FDD_B578_0D6CB152634C
call edi
test eax, eax
jne 0x403599
push ebx
lea ecx, [ebp - 0x2c8]
call fcn.00401909
mov dword [0x40e848], eax
lea eax, [ebp - 0x2dc]
push eax
push 0x40e8a0
push 0xfffffffffffffffe
push str.onenote.exe
push str.5812C571_53F0_4467_BEFA_0A4F47A9437C
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x2cc]
call fcn.00406999
lea ecx, [ebp - 0x2d0]
call fcn.00406999
call fcn.004079fb
ret