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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436019
mov eax, dword fs:[0]
push eax
sub esp, 0x4d8
mov eax, dword [0x442308]
xor eax, ebp
mov dword [ebp - 0x38], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x458], 0
lea eax, [ebp - 0x54]
push eax
call fcn.00417350
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x458]
push ecx
push 0xf003f
push 0
lea ecx, [ebp - 0x54]
call fcn.00401600
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4154e2
mov dword [ebp - 0x48c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00401080
mov eax, dword [ebp - 0x48c]
jmp 0x4157fe
mov edx, dword [ebp - 0x458]
push edx
lea ecx, [ebp - 0x14]
call fcn.004139a0
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x458]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x415555
mov dword [ebp - 0x490], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00413510
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00401080
mov eax, dword [ebp - 0x490]
jmp 0x4157fe
lea ecx, [ebp - 0x30]
call fcn.004099e0
mov byte [ebp - 4], 2
xor edx, edx
mov word [ebp - 0x454], dx
push 0x3fe
push 0
lea eax, [ebp - 0x452]
push eax
call fcn.00423660
add esp, 0xc
mov dword [ebp - 0x10], 0x200
mov dword [ebp - 0x45c], 0
jmp 0x4155a2
mov ecx, dword [ebp - 0x45c]
add ecx, 1
mov dword [ebp - 0x45c], ecx
mov edx, dword [ebp - 0x45c]
cmp edx, dword [ebp - 0x34]
jae 0x4156db
push 0x400
push 0
lea eax, [ebp - 0x454]
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 - 0x454]
push edx
mov eax, dword [ebp - 0x45c]
push eax
mov ecx, dword [ebp - 0x458]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4156d6
mov dword [ebp - 0x460], 0
lea edx, [ebp - 0x460]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x454]
push eax
mov ecx, dword [ebp - 0x458]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4156d6
mov edx, dword [ebp - 0x460]
push edx
lea ecx, [ebp - 0x470]
call fcn.004139a0
mov byte [ebp - 4], 3
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x46c], 4
lea eax, [ebp - 0x46c]
push eax
lea ecx, [ebp - 0x468]
push ecx
lea edx, [ebp - 0x464]
push edx
push 0
push str.Target_IME
mov eax, dword [ebp - 0x460]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4156c7
mov ecx, dword [ebp - 0x468]
cmp ecx, dword [ebp + 8]
jne 0x4156c7
lea edx, [ebp - 0x454]
push edx
lea ecx, [ebp - 0x4ac]
call fcn.00401550
mov byte [ebp - 4], 4
lea eax, [ebp - 0x4ac]
push eax
lea ecx, [ebp - 0x30]
call fcn.00401610
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4ac]
call fcn.00401080
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x470]
call fcn.00413510
jmp 0x415593
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x47c], ecx
lea edx, [ebp - 0x4b4]
push edx
mov ecx, dword [ebp - 0x47c]
call fcn.004019f0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x478], ecx
mov dword [ebp - 0x474], edx
lea eax, [ebp - 0x4bc]
push eax
mov ecx, dword [ebp - 0x47c]
call fcn.00409ac0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x484], ecx
mov dword [ebp - 0x480], edx
jmp 0x415737
lea ecx, [ebp - 0x484]
call fcn.00409b30
lea eax, [ebp - 0x478]
push eax
lea ecx, [ebp - 0x484]
call fcn.00409ba0
movzx ecx, al
test ecx, ecx
je 0x41577b
lea ecx, [ebp - 0x484]
call fcn.0040a770
mov dword [ebp - 0x488], eax
mov ecx, dword [ebp - 0x488]
call fcn.00401600
push eax
mov edx, dword [ebp - 0x458]
push edx
call fcn.00407780
jmp 0x41572c
push 0x10
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x4d8]
push ecx
call fcn.00404540
add esp, 8
mov dword [ebp - 0x4e0], eax
mov edx, dword [ebp - 0x4e0]
mov dword [ebp - 0x4e4], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x4e4]
call fcn.00401600
push eax
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4d8]
call fcn.00401080
mov dword [ebp - 0x4dc], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00409a60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00413510
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00401080
mov eax, dword [ebp - 0x4dc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x38]
xor ecx, ebp
call fcn.0042364d
mov esp, ebp
pop ebp
ret