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

Disassembly:
push ebp
sub esp, 0x21c
lea ebp, [esp - 4]
mov eax, dword [0x59d680]
xor eax, ebp
mov dword [ebp + 0x21c], eax
push 0x6c
mov eax, 0x5365e9
call fcn.0044fa84
mov eax, dword [ebp + 0x228]
mov ecx, dword [ebp + 0x22c]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
jne 0x4052c5
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x21c]
xor ecx, ebp
call fcn.0044fa75
add ebp, 0x220
leave
ret 0xc
lea eax, [ebp - 0x14]
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 0x40529e
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40530c
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40529e
mov edi, 0x208
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
cmp dword [ebp - 0x20], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
jbe 0x4053ce
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x28], edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x24]
push eax
push 0xf003f
push ebx
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4053bf
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
push ebx
push str.Target_IME
push dword [ebp - 0x24]
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x50], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4053ba
lea eax, [ebp]
push eax
call fcn.004503f9
pop ecx
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x40]
call fcn.00425805
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x54], eax
je 0x40548c
push dword [ebp - 0x24]
call esi
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jb 0x405332
mov dword [ebp - 0x10], 0x64
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x70]
call fcn.00403537
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x48]
call fcn.00403537
mov eax, dword [ebp - 0x44]
mov edi, dword [ebp - 0x48]
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x6c]
mov dword [ebp - 0x74], eax
push eax
call fcn.00404cb2
add esp, 0xc
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x5c], edi
call fcn.00403537
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0041fe07
test al, al
jne 0x40543d
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x96
jle 0x4053d5
cmp dword [ebp - 0x10], 0x96
jge 0x4054aa
push dword [ebp - 0x10]
lea eax, [ebp + 0x208]
push str._08d
push eax
call fcn.0045025e
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp + 0x208]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4054cb
push dword [ebp - 0x14]
call esi
jmp 0x4054aa
lea eax, [ebp]
push eax
call fcn.0044f427
pop ecx
push dword [ebp - 0x24]
mov edi, eax
call esi
push dword [ebp - 0x14]
call esi
cmp edi, dword [ebp + 0x230]
jle 0x4054b9
lea ecx, [ebp - 0x40]
call fcn.00403567
mov al, bl
jmp 0x4052a0
lea eax, [ebp]
push eax
push dword [ebp - 0x30]
call fcn.00450242
pop ecx
pop ecx
mov bl, 1
jmp 0x4054aa
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp - 0x1c]
push eax
push 3
push ebx
push str.Key_Modifiers
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
call edi
test eax, eax
je 0x4054f2
push dword [ebp - 0x18]
call esi
jmp 0x405485
mov eax, dword [ebp - 0x2c]
push 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 3
push ebx
push str.Target_IME
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x4054eb
push 4
lea eax, [ebp - 0x1c]
push eax
push 3
push ebx
push str.Virtual_Key
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
call edi
test eax, eax
jne 0x4054eb
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x14]
call esi
lea eax, [ebp + 0x208]
push eax
call fcn.0044f427
cmp eax, dword [ebp + 0x230]
pop ecx
jg 0x4054aa
lea eax, [ebp + 0x208]
jmp 0x4054bc