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

Disassembly:
push 0x264
mov eax, 0x42a34e
call fcn.0040e152
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x250], ecx
test eax, eax
jne 0x4095d8
xor al, al
jmp 0x4098bb
lea eax, [ebp - 0x230]
xor ebx, ebx
push eax
push 0xf003f
push ebx
push 0x42dac8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4095d1
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 0x409630
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4095d1
mov eax, ebx
mov dword [ebp - 0x244], 0x208
mov esi, ebx
mov dword [ebp - 0x248], eax
mov ecx, ebx
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], ebx
cmp dword [ebp - 0x23c], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
jbe 0x40975e
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 0x409739
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 0x409731
lea eax, [ebp - 0x22c]
push eax
call fcn.00418c56
pop ecx
mov dword [ebp - 0x268], eax
lea ecx, [ebp - 0x25c]
lea eax, [ebp - 0x268]
push eax
call fcn.0040c753
cmp dword [ebp - 0x26c], esi
je 0x409821
push dword [ebp - 0x240]
call edi
mov eax, dword [ebp - 0x248]
inc eax
mov dword [ebp - 0x248], eax
cmp eax, dword [ebp - 0x23c]
jb 0x409674
mov ecx, dword [ebp - 0x258]
mov esi, dword [ebp - 0x25c]
push 0x64
pop edx
mov eax, esi
cmp esi, ecx
je 0x40977f
cmp dword [eax], edx
je 0x409772
add eax, 4
cmp eax, ecx
jne 0x409767
cmp eax, ecx
je 0x40977f
inc edx
cmp edx, 0x96
jle 0x409761
push 0x64
lea eax, [ebp - 0x24]
push str._08d
push eax
call fcn.0040568b
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 0x409878
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 0x409819
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 0x40984d
push dword [ebp - 0x234]
jmp 0x409876
lea eax, [ebp - 0x22c]
push eax
call fcn.004156a2
pop ecx
push dword [ebp - 0x240]
mov esi, eax
call edi
push dword [ebp - 0x230]
call edi
cmp esi, dword [ebp + 0x10]
jg 0x4098ae
lea eax, [ebp - 0x22c]
jmp 0x40989e
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 0x409882
call edi
push dword [ebp - 0x230]
call edi
jmp 0x4098ae
call edi
push dword [ebp - 0x230]
call edi
lea eax, [ebp - 0x24]
push eax
call fcn.004156a2
pop ecx
cmp eax, dword [ebp + 0x10]
jg 0x4098ae
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x250]
call fcn.004182a0
pop ecx
mov bl, 1
pop ecx
lea ecx, [ebp - 0x25c]
call fcn.00409c26
mov al, bl
call fcn.0040e10d
ret 0xc