Function at 0x478dd0
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x5228f6
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x58057c]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58057c]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
push str.Keyboard_LayoutSubstitutes
push 0x80000001
mov esi, ecx
mov edi, edx
call dword [0x53105c]
mov ebp, vtable.t_reg.0
lea ecx, [esp + 0x40]
mov dword [esp + 0x34], ebp
call fcn.00418990
xor ebx, ebx
mov eax, str.HKEY_CURRENT_USER
lea edx, [esp + 0x40]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0x80000001
call fcn.00418b90
push 1
push 1
push str.Keyboard_LayoutSubstitutes
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x180], ebx
call fcn.00419dc0
test al, al
jne 0x478eae
mov ecx, esi
call fcn.00417c50
mov eax, dword [esp + 0x38]
mov dword [esp + 0x34], ebp
cmp eax, ebx
je 0x478e85
push eax
call dword [0x531050]
cmp byte [esp + 0x15c], 0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], vtable.t_str.0
jne 0x479015
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x4c]
cmp eax, ecx
jmp 0x47900a
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.0047a0b0
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 0x478f9e
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 0x478f0b
call fcn.00503036
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov eax, dword [ecx + edx + 8]
lea edi, [ecx + edx]
test eax, eax
jne 0x478f6e
cmp byte [0x58d7f1], al
jne 0x478f5d
push str.kernel32.dll
mov byte [0x58d7f1], 1
call dword [0x531394]
test eax, eax
je 0x47903f
push str.GetLocaleInfoEx
push eax
call dword [0x531390]
test eax, eax
je 0x47903f
mov byte [0x58d7f2], 1
jmp 0x478f6a
cmp byte [0x58d7f2], 0
je 0x479046
movzx eax, word [edi + 0xc]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x478f8e
push eax
push ecx
lea edi, [esp + 0x3c]
call fcn.004773d0
add esp, 8
test al, al
jne 0x478f8e
mov ecx, esi
call fcn.00417c50
add dword [esp + 0x18], 0x30
inc ebx
cmp ebx, ebp
jl 0x478ee9
xor edi, edi
mov eax, dword [esp + 0x38]
push eax
call dword [0x531008]
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x478fba
push eax
call fcn.004fdffb
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.004fdffb
mov eax, dword [esp + 0x3c]
add esp, 4
mov dword [esp + 0x34], vtable.t_reg.0
cmp eax, edi
je 0x478fea
push eax
call dword [0x531050]
cmp byte [esp + 0x15c], 0
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], vtable.t_str.0
jne 0x479015
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x4c]
cmp eax, edx
je 0x479015
push eax
call fcn.004fe606
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.004fdc2b
add esp, 0x160
ret
mov byte [0x58d7f2], 0
mov ecx, esi
call fcn.00417c00
push str.not_IME
push 0x55e008
mov edx, eax
call fcn.00419360
add esp, 8
jmp 0x478f8e