Function at 0x46c6a0
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x511946
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x56957c]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56957c]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
push str.Keyboard_LayoutSubstitutes
push SysReAllocString
mov esi, ecx
mov edi, edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebp, vtable.t_reg.0
lea ecx, [esp + 0x40]
mov dword [esp + 0x34], ebp
call fcn.004174b0
xor ebx, ebx
mov eax, str.HKEY_CURRENT_USER
lea edx, [esp + 0x40]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], VariantClear
call fcn.00417710
push 1
push 1
push str.Keyboard_LayoutSubstitutes
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x180], ebx
call fcn.00418930
test al, al
jne 0x46c77e
mov ecx, esi
call fcn.00416480
mov eax, dword [esp + 0x38]
mov dword [esp + 0x34], ebp
cmp eax, ebx
je 0x46c755
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x15c], 0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], vtable.t_str.0
jne 0x46c8e5
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x4c]
cmp eax, ecx
jmp 0x46c8da
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.0046d980
mov byte [esp + 0x170], 1
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x28]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
xor edi, edi
cmp ebp, edi
jle 0x46c86e
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x28]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x46c7db
call fcn.004f21c6
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov eax, dword [ecx + edx + 8]
lea edi, [ecx + edx]
test eax, eax
jne 0x46c83e
cmp byte [0x5762a9], al
jne 0x46c82d
push str.kernel32.dll
mov byte [0x5762a9], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x46c90f
push str.GetLocaleInfoEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46c90f
mov byte [0x5762aa], 1
jmp 0x46c83a
cmp byte [0x5762aa], 0
je 0x46c916
movzx eax, word [edi + 0xc]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x46c85e
push eax
push ecx
lea edi, [esp + 0x3c]
call fcn.0046aca0
add esp, 8
test al, al
jne 0x46c85e
mov ecx, esi
call fcn.00416480
add dword [esp + 0x18], 0x30
inc ebx
cmp ebx, ebp
jl 0x46c7b9
xor edi, edi
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x46c88a
push eax
call fcn.004ed1ab
add esp, 4
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call fcn.004ed1ab
mov eax, dword [esp + 0x3c]
add esp, 4
mov dword [esp + 0x34], vtable.t_reg.0
cmp eax, edi
je 0x46c8ba
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x15c], 0
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], vtable.t_str.0
jne 0x46c8e5
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x4c]
cmp eax, edx
je 0x46c8e5
push eax
call fcn.004ed7b6
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.004ecddb
add esp, 0x160
ret
mov byte [0x5762aa], 0
mov ecx, esi
call fcn.00416430
push str.not_IME
push 0x549858
mov edx, eax
call fcn.00417ed0
add esp, 8
jmp 0x46c85e