Function at 0x4012a0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x437666
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4475a8]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4475a8]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
call fcn.0040ee3a
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4012f7
push 0x80004005
call fcn.00402f90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x234], ebx
mov ecx, dword [0x44b4a8]
push ecx
lea edx, [esp + 0x18]
push 0x43dd28
push edx
call fcn.00402ed0
add esp, 0xc
cmp dword [0x44b4a8], ebx
je 0x4014c5
lea eax, [esp + 0x18]
push eax
push str.Keyboard_LayoutPreload
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4014c5
push 0xfe
lea ecx, [esp + 0x12d]
push ebx
push ecx
xor esi, esi
mov byte [esp + 0x134], bl
call fcn.00423220
push 0xfe
lea edx, [esp + 0x39]
push ebx
mov edi, 0xff
push edx
mov dword [esp + 0x3c], edi
mov byte [esp + 0x40], bl
call fcn.00423220
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
add esp, 0x18
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x20]
push ebx
push ebx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x13c]
push eax
push ebx
push ecx
mov dword [esp + 0x40], edi
call ebp
cmp eax, 0x103
je 0x40144e
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x20]
call fcn.00402c20
mov byte [esp + 0x234], 1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.00421d9e
add esp, 8
test eax, eax
je 0x40147a
mov byte [esp + 0x234], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
inc esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401422
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x20]
push ebx
push ebx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x13c]
push ecx
push esi
push edx
call ebp
cmp eax, 0x103
jne 0x4013c2
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x234], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4014e4
mov esi, dword [0x44b4a8]
push str.UnloadKeyboardLayout
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
call eax
test eax, eax
jne 0x40151a
mov byte [esp + 0x234], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4014c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x234], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4014f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004216a6
add esp, 0x224
ret
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x128]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x234], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40155f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x234], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40158a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4014f2