Function at 0x40c90b
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0x248
mov eax, 0x5890d9
call fcn.0042d04f
lea eax, [ebp - 0x220]
xor ebx, ebx
push eax
push 0xf003f
push ebx
push str.Control_PanelInput_MethodHot_Keys
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x23c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40c94a
xor eax, eax
jmp 0x40cb97
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], ebx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40c97f
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c943
mov eax, ebx
mov dword [ebp - 0x230], 0x208
mov esi, ebx
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x240], ebx
cmp dword [ebp - 0x22c], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
jbe 0x40cb7a
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x230], 0x208
push ecx
lea ecx, [ebp - 0x218]
push ecx
push eax
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x21c]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cb42
lea eax, [ebp - 0x224]
mov dword [ebp - 0x228], 3
push eax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x224], 4
push eax
lea eax, [ebp - 0x228]
push eax
push ebx
push str.Target_IME
push dword [ebp - 0x21c]
call esi
test eax, eax
jne 0x40ca9e
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x24c], eax
jne 0x40ca9e
push dword [ebp - 0x21c]
call edi
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.0040b0d8
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x248]
call fcn.0040d330
mov ecx, dword [ebp - 0x234]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.0040c1a5
jmp 0x40cb42
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 4
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x228]
push eax
push ebx
push str.Key_Modifiers
push dword [ebp - 0x21c]
call esi
test eax, eax
je 0x40cad7
push dword [ebp - 0x21c]
jmp 0x40cb0e
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 4
push eax
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x228]
push eax
push ebx
push str.Virtual_Key
push dword [ebp - 0x21c]
call esi
push dword [ebp - 0x21c]
test eax, eax
je 0x40cb12
call edi
jmp 0x40cb42
call edi
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x250], eax
jne 0x40cb42
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x254]
jne 0x40cb42
push 0x10
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0056f3b8
add esp, 0xc
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x238]
inc eax
mov dword [ebp - 0x238], eax
cmp eax, dword [ebp - 0x22c]
jb 0x40c9c1
mov esi, dword [ebp - 0x244]
mov ebx, dword [ebp - 0x248]
jmp 0x40cb7a
push dword [ebx]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add ebx, 4
cmp ebx, esi
jne 0x40cb69
push dword [ebp - 0x220]
call edi
lea ecx, [ebp - 0x248]
call fcn.0040d2fc
mov eax, dword [ebp - 0x23c]
call fcn.0042cff9
ret 0xc