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

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x59d680]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x48
mov eax, 0x536621
call fcn.0044fa84
lea eax, [ebp - 0x18]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str.Control_PanelInput_MethodHot_Keys
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4056ed
xor eax, eax
jmp 0x4058d1
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x405716
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4056e6
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x30], 0x208
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
cmp dword [ebp - 0x24], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
jbe 0x405876
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x30], 0x208
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push ebx
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405867
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push str.Target_IME
push dword [ebp - 0x14]
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], 4
call edi
test eax, eax
jne 0x4057ea
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp + 0x21c]
jne 0x4057ea
push dword [ebp - 0x14]
inc dword [ebp - 0x10]
call esi
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x34]
call fcn.00403c1d
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.0040564a
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00402fff
jmp 0x40586a
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push str.Key_Modifiers
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 4
call edi
test eax, eax
je 0x405811
push dword [ebp - 0x14]
jmp 0x405836
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push str.Virtual_Key
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 4
call edi
test eax, eax
push dword [ebp - 0x14]
je 0x40583d
inc dword [ebp - 0x10]
call esi
jmp 0x40586a
call esi
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp + 0x218]
jne 0x405867
mov eax, dword [ebp + 0x214]
cmp eax, dword [ebp - 0x28]
jne 0x405867
push 0x10
lea eax, [ebp]
push ebx
push eax
call fcn.004508de
add esp, 0xc
mov dword [ebp - 0x40], eax
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x24]
jb 0x405741
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x2c]
call fcn.00403537
jmp 0x4058a2
lea ecx, [ebp - 0x2c]
call fcn.00402e2a
push dword [eax]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x2c]
call fcn.00404c8e
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x48]
lea ecx, [ebp - 0x3c]
call fcn.00403537
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041fe07
test al, al
je 0x405887
push dword [ebp - 0x18]
call esi
lea ecx, [ebp - 0x50]
call fcn.00405000
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0044fa75
add ebp, 0x20c
leave
ret 0xc