Function at 0x1000c500
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x360
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x334], eax
test byte [0x10015080], 8
jne 0x1000c678
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x30e]
mov dword [esp + 8], 0x27
lea ebx, [ebp - 0x224]
mov dword [esp + 4], edi
mov esi, dword [sym.imp.ole32.dll_StringFromGUID2]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.SOFTWAREMicrosoftCTFTIP
mov dword [esp + 8], str._s_s
mov dword [esp + 4], 0x64
mov dword [esp], ebx
call sym._swprintf_1
lea eax, [ebp - 0x32c]
mov dword [esp + 4], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x2001f
mov dword [esp + 8], 0
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x1000c66b
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], edi
mov dword [esp + 8], 0x27
mov dword [esp], eax
call esi
movzx eax, word [ebp - 0x334]
sub esp, 0xc
mov dword [esp + 0x14], edi
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.LanguageProfile
mov dword [esp + 8], str._s0x_08x_s
mov dword [esp + 4], 0x64
mov dword [ebp - 0x330], eax
call sym._swprintf_1
lea eax, [ebp - 0x324]
mov dword [esp + 4], ebx
mov edi, dword [sym.imp.advapi32.dll_RegCreateKeyExW]
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x328]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x32c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2001f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call edi
sub esp, 0x24
mov ebx, eax
test eax, eax
je 0x1000c778
mov eax, dword [ebp - 0x32c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov ebx, 0x80004005
jmp 0x1000c983
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x33c], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x1000cf18
mov eax, dword [ebp + 0x20]
shr eax, 0x10
je 0x1000c990
mov eax, dword [ebp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x338], 0x10018767
sub esp, 8
test eax, eax
jne 0x1000c9aa
cmp dword [ebp + 0x24], 0xffffffff
je 0x1000cfa0
mov eax, 0x224c
mov word [ebp - 0x15c], ax
mov eax, dword [ebp + 0x24]
lea ecx, [eax - 1]
test eax, eax
jle 0x1000cda1
mov ebx, dword [ebp + 0x20]
lea edx, [ebp - 0x15a]
lea esi, [ebp - 0x3a]
mov dword [ebp - 0x330], ebx
jmp 0x1000c735
cmp ax, 9
je 0x1000cd20
cmp ax, 0xa
jne 0x1000cd3e
mov eax, 0x6e5c
add edx, 2
mov word [edx - 2], ax
lea eax, [ecx - 1]
test ecx, ecx
jle 0x1000cdb0
cmp edx, esi
ja 0x1000cdb0
mov ecx, eax
add dword [ebp - 0x330], 2
mov eax, dword [ebp - 0x330]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x1000cd08
jbe 0x1000c700
cmp ax, 0x22
je 0x1000cd90
cmp ax, 0x5c
jne 0x1000cd31
mov ebx, 0x5c5c
add edx, 2
mov word [edx - 2], bx
jmp 0x1000c720
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0xc], 1
mov dword [ebp - 0x320], 0
add eax, eax
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], str.Description
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x328]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [ebp - 0x334], eax
call eax
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
sub esp, 0x18
lea eax, [edx + edx]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x328]
mov dword [esp + 0xc], 1
mov dword [esp], eax
mov eax, dword [ebp - 0x334]
mov dword [esp + 8], 0
mov dword [esp + 4], str.IconFile
call eax
lea eax, [ebp + 0x28]
sub esp, 0x18
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x328]
mov dword [esp + 0x14], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x334]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.IconIndex
call eax
sub esp, 0x18
cmp dword [ebp - 0x324], 1
je 0x1000cea0
mov eax, dword [ebp - 0x328]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x338], eax
call eax
mov dword [ebp - 0x318], 0
sub esp, 4
test byte [0x10015080], 8
jne 0x1000cdf0
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x2c0]
mov dword [esp + 8], 0x27
mov dword [esp + 4], edx
mov dword [esp], eax
call esi
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x272]
sub esp, 0xc
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x27
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x330]
lea ecx, [ebp - 0x272]
lea edx, [ebp - 0x2c0]
sub esp, 0xc
lea esi, [ebp - 0x15c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.LanguageProfile
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.SOFTWAREMicrosoftCTFTIP
mov dword [esp + 8], str._s_s_s0x_08x_s
mov dword [esp + 4], 0xa8
mov dword [esp], esi
call sym._swprintf_1
lea eax, [ebp - 0x318]
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x31c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0x2001f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0x80000001
call edi
sub esp, 0x24
test eax, eax
jne 0x1000c96f
cmp dword [ebp - 0x318], 1
mov eax, dword [ebp - 0x31c]
je 0x1000cfd0
mov dword [esp], eax
mov eax, dword [ebp - 0x338]
call eax
sub esp, 4
mov eax, dword [ebp - 0x32c]
mov dword [esp], eax
mov eax, dword [ebp - 0x338]
call eax
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x24
movzx eax, word [ebp + 0x20]
mov dword [esp], 0x10018771
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_5
mov dword [ebp - 0x338], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1000cf08
mov eax, dword [ebp + 0x18]
shr eax, 0x10
je 0x1000ce20
mov eax, dword [ebp + 0x1c]
mov ebx, 0x10018767
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x1000cac6
cmp dword [ebp + 0x1c], 0xffffffff
je 0x1000cf70
mov eax, 0x224c
mov word [ebp - 0x15c], ax
mov eax, dword [ebp + 0x1c]
lea ecx, [eax - 1]
test eax, eax
jle 0x1000ca8c
mov ebx, dword [ebp + 0x18]
lea edx, [ebp - 0x15a]
lea esi, [ebp - 0x3a]
mov dword [ebp - 0x330], ebx
jmp 0x1000ca4d
cmp ax, 9
je 0x1000cc60
cmp ax, 0xa
jne 0x1000cc96
mov eax, 0x6e5c
add edx, 2
mov word [edx - 2], ax
lea eax, [ecx - 1]
test ecx, ecx
jle 0x1000ca98
cmp edx, esi
ja 0x1000ca98
mov ecx, eax
add dword [ebp - 0x330], 2
mov eax, dword [ebp - 0x330]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x1000cc78
jbe 0x1000ca20
cmp ax, 0x22
je 0x1000ccf0
cmp ax, 0x5c
jne 0x1000cc89
mov ebx, 0x5c5c
add edx, 2
mov word [edx - 2], bx
jmp 0x1000ca40
mov eax, ecx
lea edx, [ebp - 0x15a]
lea esi, [esi]
mov byte [edx], 0x22
test eax, eax
jle 0x1000cf68
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x15c]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov ebx, eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1000cef8
mov eax, dword [ebp + 0x14]
shr eax, 0x10
je 0x1000ce60
mov eax, dword [ebp + 0x14]
movzx eax, byte [eax + 0xf]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x14]
movzx eax, byte [eax + 0xe]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x14]
movzx eax, byte [eax + 0xd]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x14]
movzx eax, byte [eax + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x14]
movzx eax, byte [eax + 0xb]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
movzx eax, byte [eax + 0xa]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x14]
movzx eax, byte [eax + 9]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
movzx eax, byte [eax + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
movzx eax, word [eax + 6]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
movzx eax, word [eax + 4]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], 0x10018788
call sym._wine_dbg_sprintf_5
mov esi, eax
mov eax, dword [ebp + 0xc]
movzx edi, word [ebp - 0x334]
test eax, eax
je 0x1000cee8
mov eax, dword [ebp + 0xc]
shr eax, 0x10
je 0x1000ce40
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 0xf]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 0xe]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 0xd]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 0xb]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 0xa]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 9]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 6]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 4]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], 0x10018788
call sym._wine_dbg_sprintf_5
mov ecx, dword [ebp - 0x33c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp - 0x338]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__p___s__x__s__s__s__li_n
mov dword [esp + 8], str.InputProcessorProfiles_AddLanguageProfile
mov dword [esp + 4], 0x10015080
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x1000c52c
mov eax, 0x745c
add edx, 2
mov word [edx - 2], ax
jmp 0x1000ca40
mov eax, 0x725c
add edx, 2
mov word [edx - 2], ax
jmp 0x1000ca40
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x1000ce80
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefInputProcessorProfileMgr_RegisterProfile]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefInputProcessorProfileMgr_RegisterProfile]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefInputProcessorProfileMgr_RegisterProfile]
and edi, 0xf
mov byte [edx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefInputProcessorProfileMgr_RegisterProfile]
mov byte [edx - 1], al
mov byte [edx - 2], bl
jmp 0x1000ca40
mov edi, 0x225c
add edx, 2
mov word [edx - 2], di
jmp 0x1000ca40
mov eax, 0x725c
add edx, 2
mov word [edx - 2], ax
jmp 0x1000c720
mov eax, 0x745c
add edx, 2
mov word [edx - 2], ax
jmp 0x1000c720
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x1000ce90
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefInputProcessorProfileMgr_RegisterProfile]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefInputProcessorProfileMgr_RegisterProfile]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefInputProcessorProfileMgr_RegisterProfile]
and edi, 0xf
mov byte [edx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefInputProcessorProfileMgr_RegisterProfile]
mov byte [edx - 1], al
mov byte [edx - 2], bl
jmp 0x1000c720
mov edi, 0x225c
add edx, 2
mov word [edx - 2], di
jmp 0x1000c720
mov eax, ecx
lea edx, [ebp - 0x15a]
lea esi, [esi]
mov byte [edx], 0x22
test eax, eax
jle 0x1000cf40
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x15c]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [ebp - 0x338], eax
jmp 0x1000c9aa
mov dword [esp + 0xc], 0x100189f0
mov dword [esp + 8], str.add_userkey
mov dword [esp + 4], 0x10015080
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x1000c878
movzx eax, word [ebp + 0x18]
mov dword [esp], 0x10018771
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_5
mov ebx, eax
jmp 0x1000cac6
movzx eax, word [ebp + 0xc]
mov dword [esp], 0x10018777
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_5
jmp 0x1000cc03
movzx eax, word [ebp + 0x14]
mov dword [esp], 0x10018777
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_5
mov esi, eax
jmp 0x1000cb62
mov byte [edx], al
add edx, 1
jmp 0x1000ca40
mov byte [edx], al
add edx, 1
jmp 0x1000c720
lea eax, [ebp - 0x320]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x328]
mov dword [esp + 0xc], 4
mov dword [esp], eax
mov eax, dword [ebp - 0x334]
mov dword [esp + 8], 0
mov dword [esp + 4], str.Enable
call eax
sub esp, 0x18
jmp 0x1000c848
mov eax, 0x10018760
jmp 0x1000cc03
mov esi, 0x10018760
jmp 0x1000cb62
mov ebx, 0x10018760
jmp 0x1000cac6
mov dword [ebp - 0x338], 0x10018760
jmp 0x1000c9aa
mov byte [ebp - 0x15a], 0x22
mov edx, 0x224c
mov word [ebp - 0x15c], dx
lea edx, [ebp - 0x15a]
lea eax, [edx + 1]
jmp 0x1000cdcb
mov esi, 0x224c
mov byte [ebp - 0x15a], 0x22
lea edx, [ebp - 0x15a]
mov word [ebp - 0x15c], si
lea esi, [esi]
lea eax, [edx + 1]
jmp 0x1000cab3
mov esi, dword [ebp + 0x18]
cmp word [esi], 0
je 0x1000cf48
mov edx, esi
nop
lea esi, [esi]
mov ecx, eax
lea eax, [eax + 1]
cmp word [edx + ecx*2 + 2], 0
jne 0x1000cf80
mov ebx, 0x224c
mov word [ebp - 0x15c], bx
jmp 0x1000ca08
mov esi, dword [ebp + 0x20]
cmp word [esi], 0
je 0x1000cf27
mov edx, esi
nop
mov ecx, eax
lea eax, [eax + 1]
cmp word [edx + ecx*2 + 2], 0
jne 0x1000cfb0
mov eax, 0x224c
mov word [ebp - 0x15c], ax
jmp 0x1000c6e4
lea edx, [ebp - 0x314]
mov dword [esp], eax
mov eax, dword [ebp - 0x334]
mov dword [ebp - 0x314], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Enable
call eax
mov eax, dword [ebp - 0x31c]
sub esp, 0x18
jmp 0x1000c961