Function at 0x464490
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x5231e6
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x589560]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x589560]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
push str.Keyboard_LayoutSubstitutes
push 0x80000001
mov esi, ecx
mov edi, edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, vtable.t_reg.0
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], ebx
call fcn.0046a650
xor ebp, ebp
mov eax, str.HKEY_CURRENT_USER
lea edx, [esp + 0x38]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], 0x80000001
call fcn.0046a7f0
push 1
push 1
push str.Keyboard_LayoutSubstitutes
push esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x178], ebp
call fcn.00473f60
test al, al
jne 0x46458a
mov ecx, esi
call fcn.00470820
push 0x562034
push 0x551604
push eax
call fcn.0046adf0
mov eax, dword [esp + 0x3c]
add esp, 0xc
cmp eax, ebp
mov dword [esp + 0x2c], ebx
je 0x464558
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x154], 0
mov dword [esp + 0x30], ebp
mov dword [esp + 0x38], vtable.t_str.0
jne 0x464583
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x44]
cmp eax, ecx
je 0x464583
push eax
call fcn.004fdda1
add esp, 4
xor al, al
jmp 0x4646db
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.004656e0
mov byte [esp + 0x168], 1
mov edi, dword [esp + 0x20]
cmp edi, ebp
jne 0x4645aa
xor ebx, ebx
jmp 0x4645c1
mov ecx, dword [esp + 0x24]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
test ebx, ebx
jle 0x46467b
lea eax, [edi + 4]
mov dword [esp + 0x18], eax
test edi, edi
je 0x4645ef
mov ecx, dword [esp + 0x24]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x4645f4
call fcn.004fed81
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x464653
cmp byte [0x5bd8b5], al
jne 0x46463e
push 0x562270
mov byte [0x5bd8b5], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x464703
push str.GetLocaleInfoEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x464703
mov byte [0x5bd8b6], 1
jmp 0x46464b
cmp byte [0x5bd8b6], 0
je 0x46470a
mov ecx, dword [esp + 0x18]
movzx eax, word [ecx + 8]
mov ecx, dword [ecx]
test ecx, ecx
je 0x46466b
push eax
push ecx
lea edi, [esp + 0x34]
call fcn.00462a70
mov edi, dword [esp + 0x28]
add esp, 8
add dword [esp + 0x18], 0x30
add ebp, 1
cmp ebp, ebx
jl 0x4645d0
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test edi, edi
je 0x464693
push edi
call fcn.004fc79f
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x2c], vtable.t_reg.0
je 0x4646aa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x154], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], vtable.t_str.0
jne 0x4646d9
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x44]
cmp eax, edx
je 0x4646d9
push eax
call fcn.004fdda1
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.004fe05a
add esp, 0x158
ret
mov byte [0x5bd8b6], 0
mov ecx, esi
call fcn.00470820
push str.not_IME
push 0x551604
push eax
call fcn.0046adf0
add esp, 0xc
jmp 0x46466b