Function at 0x409f20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
mov ebx, 1
push ebx
xor edi, edi
push edi
push str.SoftwarePkLongUniKey
push 0x80000001
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x409fa3
mov dword [esi], ebx
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], edi
mov word [esi + 0x48], di
mov dword [esi + 0x44], edi
call fcn.00409c30
mov dword [esi + 4], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x60], edi
pop edi
mov dword [esi + 0x4c], eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebp
lea ecx, [esp + 0x10]
push ecx
push esi
lea edx, [esp + 0x20]
push edx
push edi
push str.ShowDlg
mov ebp, 4
push eax
mov dword [esp + 0x28], ebp
call ebx
neg eax
sbb eax, eax
neg eax
cmp eax, edi
mov dword [esp + 0x10], ebp
jne 0x409ff8
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esi + 4]
push edx
lea eax, [esp + 0x20]
push eax
push edi
push str.Vietnamese
push ecx
call ebx
test eax, eax
je 0x409ffd
mov eax, 1
cmp eax, edi
mov dword [esp + 0x10], ebp
jne 0x40a212
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea ebp, [esi + 8]
push ebp
lea eax, [esp + 0x20]
push eax
push edi
push str.CodeTable
push ecx
call ebx
test eax, eax
jne 0x40a212
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea eax, [esi + 0xc]
push eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
push eax
push edi
push str.SwitchKey
push ecx
call ebx
test eax, eax
jne 0x40a212
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea eax, [esi + 0x10]
push eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
push edi
push str.InputMethod
push ecx
call ebx
test eax, eax
jne 0x40a212
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea eax, [esi + 0x14]
push eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
push edi
push str.FreeMarking
push ecx
call ebx
test eax, eax
jne 0x40a212
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esi + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
push edi
push str.ModernStyle
push edx
call ebx
test eax, eax
jne 0x40a212
lea ecx, [esp + 0x10]
push ecx
lea eax, [esi + 0x1c]
push eax
lea edx, [esp + 0x20]
push edx
push edi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
push str.VietGUI
push eax
call ebx
test eax, eax
jne 0x40a212
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esi + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
push edi
push str.InConvCharset
push ecx
call ebx
test eax, eax
jne 0x40a212
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esi + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
push edi
push str.OutConvCharset
push edx
call ebx
test eax, eax
jne 0x40a212
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esi + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
push edi
push str.ClipboardConvert
push eax
call ebx
test eax, eax
jne 0x40a212
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esi + 0x2c]
push edx
lea eax, [esp + 0x20]
push eax
push edi
push str.MacroEnabled
push ecx
call ebx
test eax, eax
jne 0x40a212
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esi + 0x40]
push eax
lea ecx, [esp + 0x20]
push ecx
push edi
push str.AutoNonVnRestore
push edx
call ebx
test eax, eax
jne 0x40a212
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esi + 0x3c]
push ecx
lea edx, [esp + 0x20]
push edx
push edi
push str.SpellCheckEnabled
push eax
call ebx
test eax, eax
jne 0x40a212
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esi + 0x30]
push edx
lea eax, [esp + 0x20]
push eax
push edi
push str.UseUnicodeClipboard
push ecx
call ebx
test eax, eax
jne 0x40a212
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esi + 0x34]
push eax
lea ecx, [esp + 0x20]
push ecx
push edi
push str.AlwaysMacro
push edx
call ebx
test eax, eax
jne 0x40a212
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esi + 0x38]
push ecx
lea edx, [esp + 0x20]
push edx
push edi
push str.UseIME
push eax
call ebx
test eax, eax
je 0x40a288
lea eax, [esi + 0x10]
mov dword [esp + 0x1c], eax
mov dword [eax], edi
lea eax, [esi + 0x14]
lea ebp, [esi + 8]
lea ebx, [esi + 0xc]
mov dword [esi], 1
mov dword [ebp], edi
mov dword [ebx], edi
mov dword [esp + 0x20], eax
mov dword [eax], 1
mov dword [esi + 0x18], edi
mov word [esi + 0x48], di
mov dword [esi + 0x44], edi
call fcn.00409c30
mov ecx, 1
mov dword [esi + 0x4c], eax
lea eax, [esi + 0x1c]
mov dword [esp + 0x24], eax
mov dword [eax], ecx
mov dword [esi + 4], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x60], edi
jmp 0x40a28c
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00409c30
mov edx, dword [ebp]
push edx
mov dword [esi + 0x4c], eax
call fcn.00401f00
add esp, 4
cmp eax, 0xffffffff
jne 0x40a2b3
mov dword [ebp], edi
cmp dword [ebx], 2
pop ebp
jb 0x40a2bb
mov dword [ebx], edi
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
push eax
call fcn.00401ed0
add esp, 4
cmp eax, 0xffffffff
jne 0x40a2d1
mov dword [esi], edi
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
cmp eax, edi
je 0x40a2e2
cmp eax, 1
je 0x40a2e2
mov dword [ecx], edi
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
cmp eax, edi
je 0x40a2f3
cmp eax, 1
je 0x40a2f3
mov dword [ecx], edi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1c
ret