Function at 0x40a2c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
mov edi, 1
push edi
xor ebx, ebx
push ebx
push str.SoftwarePkLongUniKey
push Ordinal_5
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40a340
mov dword [esi], edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], ebx
mov word [esi + 0x44], bx
mov dword [esi + 0x40], ebx
call fcn.0040a000
mov dword [esi + 0x1c], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
pop edi
mov dword [esi + 0x48], eax
mov dword [esi + 4], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x5c], ebx
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push ecx
push esi
lea edx, [esp + 0x1c]
push edx
push ebx
push str.ShowDlg
push eax
mov dword [esp + 0x24], 4
call edi
neg eax
sbb eax, eax
neg eax
cmp eax, ebx
mov dword [esp + 0xc], 4
jne 0x40a397
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 4]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push str.Vietnamese
push ecx
call edi
test eax, eax
je 0x40a39c
mov eax, 1
cmp eax, ebx
mov dword [esp + 0xc], 4
jne 0x40a582
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.CodeTable
push edx
call edi
test eax, eax
jne 0x40a582
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esi + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push str.SwitchKey
push eax
call edi
test eax, eax
jne 0x40a582
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push str.InputMethod
push ecx
call edi
test eax, eax
jne 0x40a582
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esi + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.FreeMarking
push edx
call edi
test eax, eax
jne 0x40a582
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esi + 0x18]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push str.ModernStyle
push eax
call edi
test eax, eax
jne 0x40a582
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push str.VietGUI
push ecx
call edi
test eax, eax
jne 0x40a582
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esi + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.InConvCharset
push edx
call edi
test eax, eax
jne 0x40a582
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esi + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push str.OutConvCharset
push eax
call edi
test eax, eax
jne 0x40a582
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0x28]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push str.ClipboardConvert
push ecx
call edi
test eax, eax
jne 0x40a582
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esi + 0x2c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.MacroEnabled
push edx
call edi
test eax, eax
jne 0x40a582
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esi + 0x3c]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push str.SpellCheckDisabled
push eax
call edi
test eax, eax
jne 0x40a582
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0x30]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push str.UseUnicodeClipboard
push ecx
call edi
test eax, eax
jne 0x40a582
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esi + 0x34]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.AlwaysMacro
push edx
call edi
test eax, eax
jne 0x40a582
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esi + 0x38]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push str.UseIME
push eax
call edi
test eax, eax
je 0x40a58a
push ebx
mov ecx, esi
call fcn.0040a080
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0040a000
mov edx, dword [esi + 8]
push edx
mov dword [esi + 0x48], eax
call fcn.00401eb0
add esp, 4
cmp eax, 0xffffffff
jne 0x40a5b1
mov dword [esi + 8], ebx
cmp dword [esi + 0xc], 2
jb 0x40a5ba
mov dword [esi + 0xc], ebx
mov eax, dword [esi + 0x10]
push eax
call fcn.00401e80
add esp, 4
cmp eax, 0xffffffff
jne 0x40a5ce
mov dword [esi + 0x10], ebx
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x40a5dd
cmp eax, 1
je 0x40a5dd
mov dword [esi + 0x14], ebx
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x40a5ec
cmp eax, 1
je 0x40a5ec
mov dword [esi + 0x1c], ebx
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret