Function at 0x4109ba
Capabilities:
Set registry value

Disassembly:
push 0x78
mov eax, 0x5892f5
call fcn.0042d04f
mov ebx, ecx
movzx esi, word [ebp + 8]
lea eax, [ebx + 0x464]
cmp eax, 0x58ed00
je 0x410bd6
push 7
xor eax, eax
lea edi, [ebp - 0x2e]
pop ecx
mov word [ebp - 0x30], ax
rep stosd dword es:[edi], eax
push esi
push str._08x
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
call fcn.00404cc4
add esp, 0xc
lea eax, [ebp - 0x78]
mov ecx, ebx
push esi
push eax
call fcn.0040f36e
lea eax, [ebp - 0x80]
mov esi, 0xf003f
push eax
push esi
xor edi, edi
push edi
push str.SoftwareMicrosoftCTFDirectSwitchHotkeys
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410bcb
cmp dword [ebp - 0x64], 8
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push edi
push esi
push edi
push edi
lea eax, [ebp - 0x78]
cmovae eax, dword [ebp - 0x78]
push edi
push eax
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x410a6a
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410bcb
xor eax, eax
mov dword [ebp - 0x4c], 7
mov esi, str.0000c002
mov dword [ebp - 0x50], edi
push esi
mov word [ebp - 0x60], ax
call fcn.00564eaf
pop ecx
push eax
push esi
lea ecx, [ebp - 0x60]
call fcn.0040475c
push edi
xor eax, eax
mov byte [ebp - 4], 1
push 0x58ed00
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
call fcn.0040475c
mov esi, str.3B09F8DC_6114_43A5_98F3_C5CA414C4633
mov byte [ebp - 4], 2
push esi
call fcn.00564eaf
pop ecx
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.0040475c
lea esi, [ebx + 0x464]
push esi
call fcn.00564eaf
pop ecx
add eax, eax
push eax
push esi
push 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.CLSID
push dword [ebp - 0x7c]
call edi
lea esi, [ebx + 0x122]
push esi
call fcn.00564eaf
pop ecx
add eax, eax
push eax
push esi
push 1
push 0
push str.LangId
push dword [ebp - 0x7c]
call edi
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
lea esi, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
cmovae esi, dword [ebp - 0x60]
push eax
call fcn.00564eaf
pop ecx
add eax, eax
push eax
push esi
push 1
push 0
push str.Modifiers
push dword [ebp - 0x7c]
call edi
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
lea esi, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
cmovae esi, dword [ebp - 0x48]
push eax
call fcn.00564eaf
pop ecx
add eax, eax
push eax
push esi
push 1
push 0
push str.PreservedKeyId
push dword [ebp - 0x7c]
call edi
lea esi, [ebx + 0x52c]
push esi
call fcn.00564eaf
pop ecx
add eax, eax
push eax
push esi
push 1
push 0
push str.Profile
push dword [ebp - 0x7c]
call edi
lea eax, [ebp - 0x30]
push eax
call fcn.00564eaf
pop ecx
add eax, eax
push eax
lea eax, [ebp - 0x30]
push eax
push 1
push 0
push str.VirtualKey
push dword [ebp - 0x7c]
call edi
push dword [ebp - 0x7c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x80]
call esi
xor edi, edi
lea ecx, [ebp - 0x48]
push edi
push 1
call fcn.004044a8
push edi
push 1
lea ecx, [ebp - 0x60]
call fcn.004044a8
push edi
push 1
lea ecx, [ebp - 0x78]
call fcn.004044a8
call fcn.0042cff9
ret 4