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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4361db
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x442308]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x448], 0
lea eax, [ebp - 0x44]
push eax
call fcn.00417350
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x448]
push ecx
push 0xf003f
push 0
lea ecx, [ebp - 0x44]
call fcn.00401600
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4170a0
mov dword [ebp - 0x460], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401080
mov eax, dword [ebp - 0x460]
jmp 0x417334
mov edx, dword [ebp - 0x448]
push edx
lea ecx, [ebp - 0x20]
call fcn.004139a0
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x448]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x417113
mov dword [ebp - 0x464], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00413510
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401080
mov eax, dword [ebp - 0x464]
jmp 0x417334
xor edx, edx
mov word [ebp - 0x444], dx
push 0x3fe
push 0
lea eax, [ebp - 0x442]
push eax
call fcn.00423660
add esp, 0xc
mov dword [ebp - 0x10], 0x200
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 0
jmp 0x417152
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x24]
jae 0x4172c4
push 0x400
push 0
lea eax, [ebp - 0x444]
push eax
call fcn.00423660
add esp, 0xc
mov dword [ebp - 0x10], 0x200
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x444]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x448]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4172bf
mov dword [ebp - 0x44c], 0
lea edx, [ebp - 0x44c]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x444]
push eax
mov ecx, dword [ebp - 0x448]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4172bf
mov edx, dword [ebp - 0x44c]
push edx
lea ecx, [ebp - 0x450]
call fcn.004139a0
mov byte [ebp - 4], 2
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x45c], 4
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x458]
push ecx
lea edx, [ebp - 0x454]
push edx
push 0
push str.Target_IME
mov eax, dword [ebp - 0x44c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4172b0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x458]
cmp edx, dword [ecx]
jne 0x4172b0
mov dword [ebp - 0x45c], 4
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x454]
push edx
push 0
push str.Key_Modifiers
mov eax, dword [ebp - 0x44c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x45c], 4
lea ecx, [ebp - 0x45c]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x454]
push eax
push 0
push str.Virtual_Key
mov ecx, dword [ebp - 0x44c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x450]
call fcn.00413510
jmp 0x4172c4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x450]
call fcn.00413510
jmp 0x417149
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x24]
jb 0x4172f9
mov dword [ebp - 0x468], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00413510
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401080
mov eax, dword [ebp - 0x468]
jmp 0x417334
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [edx], eax
mov dword [ebp - 0x46c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00413510
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401080
mov eax, dword [ebp - 0x46c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.0042364d
mov esp, ebp
pop ebp
ret