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

Disassembly:
push 0x248
mov eax, 0x42a31b
call fcn.0040e152
lea eax, [ebp - 0x220]
xor ebx, ebx
push eax
push 0xf003f
push ebx
push 0x42dac8
push 0x80000001
mov dword [ebp - 0x23c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4091bd
xor eax, eax
jmp 0x40940a
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 0x4091f2
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4091b6
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 0x4093ed
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 0x4093b5
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 0x409311
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x24c], eax
jne 0x409311
push dword [ebp - 0x21c]
call edi
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00408ef8
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x248]
call fcn.00409c83
mov ecx, dword [ebp - 0x234]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.004099f8
jmp 0x4093b5
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 0x40934a
push dword [ebp - 0x21c]
jmp 0x409381
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 0x409385
call edi
jmp 0x4093b5
call edi
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x250], eax
jne 0x4093b5
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x254]
jne 0x4093b5
push 0x10
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00419f45
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 0x409234
mov esi, dword [ebp - 0x244]
mov ebx, dword [ebp - 0x248]
jmp 0x4093ed
push dword [ebx]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add ebx, 4
cmp ebx, esi
jne 0x4093dc
push dword [ebp - 0x220]
call edi
lea ecx, [ebp - 0x248]
call fcn.00409c4f
mov eax, dword [ebp - 0x23c]
call fcn.0040e10d
ret 0xc