Function at 0x40f3c0
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 0x40f3f5
push 0
mov ecx, esi
call fcn.0040f8d0
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
test eax, eax
jne 0x40f6ac
lea eax, [ebp - 4]
mov dword [ebp - 4], 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
jne 0x40f6ac
lea eax, [ebp - 4]
mov dword [ebp - 4], 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 0x40f6ac
lea eax, [ebp - 4]
mov dword [ebp - 4], 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 0x40f6ac
lea eax, [ebp - 4]
mov dword [ebp - 4], 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 0x40f6ac
lea eax, [ebp - 4]
mov dword [ebp - 4], 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 0x40f6ac
lea eax, [ebp - 4]
mov dword [ebp - 4], 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 0x40f6ac
lea eax, [ebp - 4]
mov dword [ebp - 4], 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 0x40f6ac
lea eax, [ebp - 4]
mov dword [ebp - 4], 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 0x40f6ac
lea eax, [ebp - 4]
mov dword [ebp - 4], 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 0x40f6ac
lea eax, [ebp - 4]
mov dword [ebp - 4], 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 0x40f6ac
lea eax, [ebp - 4]
mov dword [ebp - 4], 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 0x40f6ac
lea eax, [ebp - 4]
mov dword [ebp - 4], 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 0x40f6ac
lea eax, [ebp - 4]
mov dword [ebp - 4], 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 0x40f6ac
lea eax, [ebp - 4]
mov dword [ebp - 4], 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 0x40f6ac
lea eax, [ebp - 4]
mov dword [ebp - 4], 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 0x40f6ac
lea eax, [ebp - 4]
mov dword [ebp - 4], 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 0x40f6ac
lea eax, [ebp - 4]
mov dword [ebp - 4], 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 0x40f6ac
xor ebx, ebx
jmp 0x40f6b1
mov ebx, 1
lea ecx, [ebp - 4]
mov dword [ebp - 4], 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 0x40f6db
mov dword [esi + 0x48], 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 4
push ecx
lea eax, [esi + 0x4c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.AutoUpcaseMacro
push dword [ebp - 8]
call edi
test eax, eax
je 0x40f705
mov dword [esi + 0x4c], 1
lea ecx, [ebp - 4]
mov dword [ebp - 4], 4
push ecx
lea eax, [esi + 0x50]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.SoundOnSwitch
push dword [ebp - 8]
call edi
test eax, eax
je 0x40f72f
mov dword [esi + 0x50], 1
lea ecx, [ebp - 4]
mov dword [ebp - 4], 4
push ecx
lea eax, [esi + 0x54]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.PerAppMode
push dword [ebp - 8]
call edi
test eax, eax
je 0x40f759
mov dword [esi + 0x54], 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0x208
push ecx
lea eax, [esi + 0x58]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.MacroPath
push dword [ebp - 8]
call edi
test eax, eax
je 0x40f788
lea eax, [esi + 0x58]
push eax
call fcn.0040f350
add esp, 4
pop edi
test ebx, ebx
pop ebx
je 0x40f797
push 0
mov ecx, esi
call fcn.0040f8d0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0040f820
push dword [esi + 8]
mov dword [esi + 0x268], eax
call fcn.004037b0
add esp, 4
cmp eax, 0xffffffff
jne 0x40f7c2
mov dword [esi + 8], 0
cmp dword [esi + 0xc], 2
jb 0x40f7cf
mov dword [esi + 0xc], 0
push dword [esi + 0x10]
call fcn.004037e0
add esp, 4
cmp eax, 0xffffffff
jne 0x40f7e6
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40f7f9
cmp eax, 1
je 0x40f7f9
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40f80c
cmp eax, 1
je 0x40f80c
mov dword [esi + 0x1c], 0
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret