Function at 0x40ccb9
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0x264
mov eax, 0x58910c
call fcn.0042d04f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x250], ecx
test eax, eax
jne 0x40cce5
xor al, al
jmp 0x40cfd1
lea eax, [ebp - 0x230]
xor ebx, ebx
push eax
push 0xf003f
push ebx
push str.Control_PanelInput_MethodHot_Keys
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ccde
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], ebx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40cd3d
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ccde
mov eax, ebx
mov dword [ebp - 0x244], 0x208
mov esi, ebx
mov dword [ebp - 0x248], eax
mov edx, ebx
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], edx
mov dword [ebp - 0x254], ebx
cmp dword [ebp - 0x23c], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
jbe 0x40ce6b
mov esi, dword [ebp - 0x24c]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x244], 0x208
push ecx
lea ecx, [ebp - 0x22c]
push ecx
push eax
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x240]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ce46
lea eax, [ebp - 0x260]
mov dword [ebp - 0x264], 3
push eax
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x260], 4
push eax
lea eax, [ebp - 0x264]
push eax
push ebx
push str.Target_IME
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ce3e
lea eax, [ebp - 0x22c]
push eax
call fcn.00569dbe
pop ecx
mov dword [ebp - 0x268], eax
lea ecx, [ebp - 0x25c]
lea eax, [ebp - 0x268]
push eax
call fcn.0041ebf0
cmp dword [ebp - 0x26c], esi
je 0x40cf37
push dword [ebp - 0x240]
call edi
mov eax, dword [ebp - 0x248]
inc eax
mov dword [ebp - 0x248], eax
cmp eax, dword [ebp - 0x23c]
jb 0x40cd81
mov edx, dword [ebp - 0x258]
mov esi, dword [ebp - 0x25c]
push 0x64
pop eax
mov ecx, esi
cmp esi, edx
je 0x40ce8b
cmp dword [ecx], eax
je 0x40ce7f
add ecx, 4
cmp ecx, edx
jne 0x40ce74
cmp ecx, edx
je 0x40ce8b
inc eax
cmp eax, 0x96
jle 0x40ce6e
cmp eax, 0x96
jge 0x40cfc4
push eax
lea eax, [ebp - 0x24]
push str._08d
push eax
call fcn.00404cc4
add esp, 0xc
mov dword [ebp - 0x234], ebx
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x234]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40cf8e
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x238]
push 4
push eax
push 3
push ebx
push str.Key_Modifiers
push dword [ebp - 0x234]
mov dword [ebp - 0x238], ebx
call esi
test eax, eax
jne 0x40cf2f
mov eax, dword [ebp - 0x24c]
push 4
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x238]
push eax
push 3
push ebx
push str.Target_IME
push dword [ebp - 0x234]
call esi
test eax, eax
je 0x40cf63
push dword [ebp - 0x234]
jmp 0x40cf8c
lea eax, [ebp - 0x22c]
push eax
call fcn.00564eaf
pop ecx
push dword [ebp - 0x240]
mov esi, eax
call edi
push dword [ebp - 0x230]
call edi
cmp esi, dword [ebp + 0x10]
jg 0x40cfc4
lea eax, [ebp - 0x22c]
jmp 0x40cfb4
push 4
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], ebx
push eax
push 3
push ebx
push str.Virtual_Key
push dword [ebp - 0x234]
call esi
push dword [ebp - 0x234]
test eax, eax
je 0x40cf98
call edi
push dword [ebp - 0x230]
call edi
jmp 0x40cfc4
call edi
push dword [ebp - 0x230]
call edi
lea eax, [ebp - 0x24]
push eax
call fcn.00564eaf
pop ecx
cmp eax, dword [ebp + 0x10]
jg 0x40cfc4
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x250]
call fcn.00564e8d
pop ecx
mov bl, 1
pop ecx
lea ecx, [ebp - 0x25c]
call fcn.00414da9
mov al, bl
call fcn.0042cff9
ret 0xc