Function at 0x40e470
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push str.SoftwarePkLongUniKey
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40e4b2
push 0
mov ecx, dword [ebp - 0x18]
call fcn.0040e0f0
xor eax, eax
jmp 0x40e9be
mov dword [ebp - 0x10], 4
cmp dword [ebp - 0x14], 0
jne 0x40e4e9
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 8]
push eax
push 0
push str.ShowDlg
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e4e9
mov dword [ebp - 0x1c], 0
jmp 0x40e4f0
mov dword [ebp - 0x1c], 1
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 4
cmp dword [ebp - 0x14], 0
jne 0x40e530
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 4
push ecx
lea edx, [ebp - 8]
push edx
push 0
push str.Vietnamese
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e530
mov dword [ebp - 0x20], 0
jmp 0x40e537
mov dword [ebp - 0x20], 1
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 4
cmp dword [ebp - 0x14], 0
jne 0x40e577
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
add eax, 8
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push str.CodeTable
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e577
mov dword [ebp - 0x24], 0
jmp 0x40e57e
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40e5b7
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0xc
push edx
lea eax, [ebp - 8]
push eax
push 0
push str.SwitchKey
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e5b7
mov dword [ebp - 0x28], 0
jmp 0x40e5be
mov dword [ebp - 0x28], 1
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jne 0x40e5f7
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x10
push ecx
lea edx, [ebp - 8]
push edx
push 0
push str.InputMethod
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e5f7
mov dword [ebp - 0x2c], 0
jmp 0x40e5fe
mov dword [ebp - 0x2c], 1
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jne 0x40e637
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x14
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push str.FreeMarking
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e637
mov dword [ebp - 0x30], 0
jmp 0x40e63e
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40e677
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x18
push edx
lea eax, [ebp - 8]
push eax
push 0
push str.ModernStyle
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e677
mov dword [ebp - 0x34], 0
jmp 0x40e67e
mov dword [ebp - 0x34], 1
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jne 0x40e6b7
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x1c
push ecx
lea edx, [ebp - 8]
push edx
push 0
push str.VietGUI
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e6b7
mov dword [ebp - 0x38], 0
jmp 0x40e6be
mov dword [ebp - 0x38], 1
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jne 0x40e6f7
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x20
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push str.InConvCharset
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e6f7
mov dword [ebp - 0x3c], 0
jmp 0x40e6fe
mov dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40e737
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x24
push edx
lea eax, [ebp - 8]
push eax
push 0
push str.OutConvCharset
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e737
mov dword [ebp - 0x40], 0
jmp 0x40e73e
mov dword [ebp - 0x40], 1
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jne 0x40e777
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x28
push ecx
lea edx, [ebp - 8]
push edx
push 0
push str.ClipboardConvert
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e777
mov dword [ebp - 0x44], 0
jmp 0x40e77e
mov dword [ebp - 0x44], 1
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jne 0x40e7b7
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x2c
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push str.MacroEnabled
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e7b7
mov dword [ebp - 0x48], 0
jmp 0x40e7be
mov dword [ebp - 0x48], 1
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40e7f7
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x40
push edx
lea eax, [ebp - 8]
push eax
push 0
push str.AutoNonVnRestore
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e7f7
mov dword [ebp - 0x4c], 0
jmp 0x40e7fe
mov dword [ebp - 0x4c], 1
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jne 0x40e837
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x3c
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0x427d88
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e837
mov dword [ebp - 0x50], 0
jmp 0x40e83e
mov dword [ebp - 0x50], 1
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jne 0x40e877
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x30
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push str.UseUnicodeClipboard
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e877
mov dword [ebp - 0x54], 0
jmp 0x40e87e
mov dword [ebp - 0x54], 1
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40e8b7
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x34
push edx
lea eax, [ebp - 8]
push eax
push 0
push str.AlwaysMacro
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e8b7
mov dword [ebp - 0x58], 0
jmp 0x40e8be
mov dword [ebp - 0x58], 1
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jne 0x40e8f7
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x38
push ecx
lea edx, [ebp - 8]
push edx
push 0
push str.UseIME
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e8f7
mov dword [ebp - 0x5c], 0
jmp 0x40e8fe
mov dword [ebp - 0x5c], 1
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x40e914
push 0
mov ecx, dword [ebp - 0x18]
call fcn.0040e0f0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0040eaf0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x4c], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 8]
push eax
call fcn.004026b0
add esp, 4
cmp eax, 0xffffffff
jne 0x40e947
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0xc], 2
jae 0x40e959
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xc], 0
jae 0x40e963
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x10]
push eax
call fcn.00402660
add esp, 4
cmp eax, 0xffffffff
jne 0x40e981
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x14], 0
je 0x40e99d
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x14], 1
je 0x40e99d
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x1c], 0
je 0x40e9b9
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x1c], 1
je 0x40e9b9
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x1c], 0
mov eax, 1
mov esp, ebp
pop ebp
ret