Function at 0x4634e0
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x4f49b6
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x545628]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x545628]
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.00410c10
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.00410e40
push 1
push 1
push esi
mov eax, str.Keyboard_LayoutSubstitutes
lea ecx, [esp + 0x40]
mov dword [esp + 0x17c], ebx
call fcn.00411e70
test al, al
jne 0x4635be
mov ecx, esi
call fcn.0040faa0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x34], ebp
cmp eax, ebx
je 0x463595
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 0x463725
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x4c]
cmp eax, ecx
jmp 0x46371a
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.004647c0
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 0x4636ae
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 0x46361b
call fcn.004d723a
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov eax, dword [ecx + edx + 8]
lea edi, [ecx + edx]
test eax, eax
jne 0x46367e
cmp byte [0x551a59], al
jne 0x46366d
push str.kernel32.dll
mov byte [0x551a59], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x46374f
push str.GetLocaleInfoEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46374f
mov byte [0x551a5a], 1
jmp 0x46367a
cmp byte [0x551a5a], 0
je 0x463756
movzx eax, word [edi + 0xc]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x46369e
push eax
push ecx
lea edi, [esp + 0x3c]
call fcn.00461ae0
add esp, 8
test al, al
jne 0x46369e
mov ecx, esi
call fcn.0040faa0
add dword [esp + 0x18], 0x30
inc ebx
cmp ebx, ebp
jl 0x4635f9
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 0x4636ca
push eax
call fcn.004d195d
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.004d195d
mov eax, dword [esp + 0x3c]
add esp, 4
mov dword [esp + 0x34], vtable.t_reg.0
cmp eax, edi
je 0x4636fa
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 0x463725
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x4c]
cmp eax, edx
je 0x463725
push eax
call fcn.004d1d15
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.004d158d
add esp, 0x160
ret
mov byte [0x551a5a], 0
mov ecx, esi
call fcn.0040fa50
push str.not_IME
push 0x52a3bc
mov edx, eax
call fcn.004114a0
add esp, 8
jmp 0x46369e