Function at 0x408be3
Capabilities:
Set registry value

Disassembly:
push 0x78
mov eax, 0x5a9741
call fcn.00553ddb
mov ebx, ecx
movzx esi, word [ebp + 8]
lea eax, [ebx + 0x464]
cmp eax, 0x5bf400
je 0x408dff
push 7
xor eax, eax
pop ecx
mov word [ebp - 0x30], ax
lea edi, [ebp - 0x2e]
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push str._08x
push eax
call fcn.00554d64
add esp, 0xc
lea eax, [ebp - 0x78]
push esi
push eax
mov ecx, ebx
call fcn.0040753c
lea eax, [ebp - 0x80]
push eax
mov esi, 0xf003f
push esi
xor edi, edi
push edi
push str.SoftwareMicrosoftCTFDirectSwitchHotkeys
push reloc.WSOCK32.dll_accept
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408df4
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 0x408c93
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408df4
xor eax, eax
mov esi, str.0000c002
push esi
mov dword [ebp - 0x4c], 7
mov dword [ebp - 0x50], edi
mov word [ebp - 0x60], ax
call fcn.00553cf3
pop ecx
push eax
push esi
lea ecx, [ebp - 0x60]
call fcn.00402120
push edi
xor eax, eax
push 0x5bf400
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
call fcn.00402120
mov esi, str.0CF4A7BD_4337_479D_871E_7F9146C4F367
push esi
mov byte [ebp - 4], 2
call fcn.00553cf3
pop ecx
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00402120
lea esi, [ebx + 0x464]
push esi
call fcn.00553cf3
pop ecx
add eax, eax
push eax
push esi
push 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x5bf674
push dword [ebp - 0x7c]
call edi
lea esi, [ebx + 0x122]
push esi
call fcn.00553cf3
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]
cmovae eax, dword [ebp - 0x60]
lea esi, [ebp - 0x60]
cmovae esi, dword [ebp - 0x60]
push eax
call fcn.00553cf3
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]
cmovae eax, dword [ebp - 0x48]
lea esi, [ebp - 0x48]
cmovae esi, dword [ebp - 0x48]
push eax
call fcn.00553cf3
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.00553cf3
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.00553cf3
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
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00402004
push edi
push 1
lea ecx, [ebp - 0x60]
call fcn.00402004
push edi
push 1
lea ecx, [ebp - 0x78]
call fcn.00402004
call fcn.00553d8a
ret 4