Function at 0x40e330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push esi
push eax
push 1
push 0
push str.SoftwarePkLongUniKey
push 0x80000001
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e365
push 0
mov ecx, esi
call fcn.0040e720
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 4
push eax
push 0
push str.ShowDlg
push dword [ebp - 8]
call edi
neg eax
mov dword [ebp - 4], 4
sbb eax, eax
neg eax
jne 0x40e3b4
lea eax, [ebp - 4]
push eax
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.Vietnamese
push dword [ebp - 8]
call edi
test eax, eax
je 0x40e3b9
mov eax, 1
mov dword [ebp - 4], 4
test eax, eax
jne 0x40e5b8
lea eax, [ebp - 4]
push eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.CodeTable
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40e5b8
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.SwitchKey
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40e5b8
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.InputMethod
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40e5b8
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.FreeMarking
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40e5b8
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.ModernStyle
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40e5b8
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.VietGUI
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40e5b8
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.InConvCharset
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40e5b8
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.OutConvCharset
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40e5b8
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.ClipboardConvert
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40e5b8
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.MacroEnabled
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40e5b8
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x40]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.AutoNonVnRestore
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40e5b8
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x3c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.SpellCheckEnabled
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40e5b8
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.UseUnicodeClipboard
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40e5b8
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x34]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.AlwaysMacro
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40e5b8
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x38]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.UseIME
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40e5b8
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x44]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.AutoUpdate
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40e5b8
xor ebx, ebx
jmp 0x40e5bd
mov ebx, 1
lea ecx, [ebp - 4]
push ecx
lea eax, [esi + 0x48]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.Notification
push dword [ebp - 8]
call edi
test eax, eax
je 0x40e5e0
mov dword [esi + 0x48], 0
pop edi
test ebx, ebx
pop ebx
je 0x40e5ef
push 0
mov ecx, esi
call fcn.0040e720
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0040e670
push dword [esi + 8]
mov dword [esi + 0x54], eax
call fcn.00403150
add esp, 4
cmp eax, 0xffffffff
jne 0x40e617
mov dword [esi + 8], 0
cmp dword [esi + 0xc], 2
jb 0x40e624
mov dword [esi + 0xc], 0
push dword [esi + 0x10]
call fcn.00403180
add esp, 4
cmp eax, 0xffffffff
jne 0x40e63b
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40e64e
cmp eax, 1
je 0x40e64e
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40e661
cmp eax, 1
je 0x40e661
mov dword [esi + 0x1c], 0
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret