Function at 0x45afa0
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x4ca996
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50a4c0]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
push str.Keyboard_LayoutSubstitutes
push reloc.WS2_32.dll_accept
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.00430920
xor ebx, ebx
mov eax, str.CURRENT_USER
lea edx, [esp + 0x40]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], reloc.WS2_32.dll_accept
call fcn.00430b00
push 1
push 1
push 1
push str.Keyboard_LayoutSubstitutes
push esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x184], ebx
call fcn.00431bf0
test al, al
jne 0x45b080
mov ecx, esi
call fcn.0042c9e0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x34], ebp
cmp eax, ebx
je 0x45b057
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 0x45b1e7
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x4c]
cmp eax, ecx
jmp 0x45b1dc
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.0045c2d0
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 0x45b170
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 0x45b0dd
call fcn.004a68c5
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov eax, dword [ecx + edx + 8]
lea edi, [ecx + edx]
test eax, eax
jne 0x45b140
cmp byte [0x51bfe9], al
jne 0x45b12f
push str.kernel32.dll
mov byte [0x51bfe9], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45b211
push str.GetLocaleInfoEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45b211
mov byte [0x51bfea], 1
jmp 0x45b13c
cmp byte [0x51bfea], 0
je 0x45b218
movzx eax, word [edi + 0xc]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x45b160
push eax
push ecx
lea edi, [esp + 0x3c]
call fcn.00458a00
add esp, 8
test al, al
jne 0x45b160
mov ecx, esi
call fcn.0042c9e0
add dword [esp + 0x18], 0x30
inc ebx
cmp ebx, ebp
jl 0x45b0bb
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 0x45b18c
push eax
call fcn.004a4a1a
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.004a4a1a
mov eax, dword [esp + 0x3c]
add esp, 4
mov dword [esp + 0x34], vtable.t_reg.0
cmp eax, edi
je 0x45b1bc
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 0x45b1e7
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x4c]
cmp eax, edx
je 0x45b1e7
push eax
call fcn.004a4a7f
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.004a4a25
add esp, 0x160
ret
mov byte [0x51bfea], 0
mov ecx, esi
call fcn.0042c990
push str.not_IME
push 0x4f0ffc
mov edx, eax
call fcn.00430eb0
add esp, 8
jmp 0x45b160