Function at 0x4014a0
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x41507c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.SoftwareIime
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0
mov dword [ebp - 0x214], 0
call fcn.00401910
add esp, 4
test eax, eax
je 0x401507
push 2
call fcn.00401910
add esp, 4
test eax, eax
mov eax, str.D:_A_OICI_KRKWKX___AU__A_OICI_KA___BA__A_OICI_KA___SY__A_OICI_KA___WD__A_OICI_KA___AC_
jne 0x4014f5
mov eax, str.D:_A_OICI_KRKWKX____AU__A_OICI_KA___BA__A_OICI_KA___SY__A_OICI_KA___WD_
push 0
lea ecx, [ebp - 0x214]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
mov edx, dword [ebp - 0x214]
push 0
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x220]
push ecx
push 0xf003f
push 0
push 0
push 0
push str.SoftwareIime
push 0x80000001
mov dword [ebp - 0x220], 0xc
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x401570
lea esi, [ebp + 8]
call fcn.00401720
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408d89
mov esp, ebp
pop ebp
ret
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x214], 0
mov word [ebp - 0x20c], dx
call fcn.0040ca90
mov edx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp + 0xc]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
call fcn.00401040
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x14
lea edx, [ebp - 0x20c]
push edx
call edi
mov ecx, dword [ebp - 0x210]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add eax, eax
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push str.Clsid
push ecx
call esi
test eax, eax
jne 0x4016d9
mov ecx, dword [ebp + 0x18]
lea edx, [ebp - 0x20c]
push edx
mov edx, dword [ebp + 0x1c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x20]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x24]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.00401040
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call edi
mov edx, dword [ebp - 0x210]
add eax, eax
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 1
push 0
push str.Guid
push edx
call esi
test eax, eax
jne 0x4016d9
mov eax, dword [ebp + 0x28]
mov edi, 8
cmp dword [ebp + 0x3c], edi
jae 0x401664
lea eax, [ebp + 0x28]
mov ecx, dword [ebp + 0x38]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp - 0x210]
push 1
push 0
push str.SetupLocation
push eax
call esi
test eax, eax
jne 0x4016d9
mov eax, dword [ebp + 0x44]
cmp dword [ebp + 0x58], edi
jae 0x40168d
lea eax, [ebp + 0x44]
mov ecx, dword [ebp + 0x54]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp - 0x210]
push 1
push 0
push str.IMEFileName
push eax
call esi
test eax, eax
jne 0x4016d9
mov eax, dword [ebp + 0x60]
cmp dword [ebp + 0x74], edi
jae 0x4016b6
lea eax, [ebp + 0x60]
mov ecx, dword [ebp + 0x70]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp - 0x210]
push 1
push 0
push str.SwitchHotkey
push eax
call esi
mov edi, 1
test eax, eax
je 0x4016df
mov edi, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x401700
push str.SoftwareIime
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea esi, [ebp + 8]
call fcn.00401720
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00408d89
mov esp, ebp
pop ebp
ret