Function at 0x5893a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6e6a
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x254], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x224], 0
call fcn.004b4040
mov ecx, eax
test ecx, ecx
je 0x589695
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov ecx, ebx
mov dword [ebp - 0x224], 1
call fcn.004bd3a0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
push 0x2001f
push str.Control_PanelInput_MethodHot_Keys_
push SysReAllocString
lea ecx, [ebp - 0x244]
mov dword [ebp - 4], 1
call fcn.0057b750
test eax, eax
jne 0x589589
xor ebx, ebx
mov dword [ebp - 0x24c], 4
mov dword [ebp - 0x228], ebx
push 0x20a
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x248], 0x104
push 0
push eax
call fcn.0058c8f0
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x21c]
push eax
push ebx
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test edi, edi
jne 0x58957a
xor esi, esi
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 2
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], esi
push eax
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x589557
mov esi, dword [ebp - 0x220]
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], edi
test edi, edi
jne 0x589557
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x250]
push eax
push edi
push str.Target_IME
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x589557
cmp dword [ebp - 0x250], 3
jne 0x589557
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x228], eax
je 0x5895b8
mov byte [ebp - 4], 1
test esi, esi
je 0x589570
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
inc ebx
test edi, edi
je 0x589471
mov ebx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x58959a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5895c1
mov ebx, dword [ebp - 0x22c]
lea eax, [ebp - 0x21c]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.004c0470
mov eax, dword [ebx]
mov byte [ebp - 4], 3
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x5895fd
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x589613
call fcn.004b4040
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x58969f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], 3
mov dword [ebp - 0x220], eax
mov eax, dword [ebx]
push dword [eax - 0xc]
push eax
push 0x24
lea eax, [ebp - 0x220]
push str.Control_PanelInput_MethodHot_Keys_
push eax
call fcn.004c58a0
add esp, 0x14
lea eax, [ebp - 0x220]
mov ecx, ebx
push eax
call fcn.004bfcd0
mov edx, dword [ebp - 0x220]
or eax, 0xffffffff
mov dword [ebp - 0x224], 1
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x589681
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x589589
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x589589
push 0x80004005
call fcn.004b3510
push 0x80004005
call fcn.004b3510
int3