Function at 0x40a7f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c4c0
mov eax, dword fs:[0]
push eax
sub esp, 0xa88
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
push 0
lea eax, [ebp - 0x628]
push eax
call fcn.0040fb70
add esp, 0xc
lea ecx, [ebp - 0x628]
push ecx
call fcn.0040a700
add esp, 4
test eax, eax
jne 0x40a84b
jmp 0x40abbb
mov dword [ebp - 0xa94], 0
mov dword [ebp - 0xa3c], 0
mov ecx, 0x15
mov esi, str.SoftwareMicrosoftCTFDirectSwitchHotkeys
lea edi, [ebp - 0x420]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x1b2
push 0
lea edx, [ebp - 0x3ca]
push edx
call fcn.0040fb70
add esp, 0xc
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0xa3c]
push edx
lea eax, [ebp - 0xa94]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x420]
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40a8d3
jmp 0x40abbb
mov dword [ebp - 0xa90], 0
xor edx, edx
mov word [ebp - 0xa8c], dx
xor eax, eax
mov word [ebp - 0xa8a], ax
xor ecx, ecx
mov dword [ebp - 0xa88], ecx
mov dword [ebp - 0xa84], ecx
xor edx, edx
mov dword [ebp - 0xa80], edx
mov dword [ebp - 0xa7c], edx
mov dword [ebp - 0xa78], edx
mov dword [ebp - 0xa74], edx
lea ecx, [ebp - 0xa70]
call fcn.004044e0
lea ecx, [ebp - 0xa58]
call fcn.004044e0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0xa40], eax
lea ecx, [ebp - 0xa90]
push ecx
call fcn.0040a1c0
add esp, 4
push 0x208
push 0
lea edx, [ebp - 0x830]
push edx
call fcn.0040fb70
add esp, 0xc
lea eax, [ebp - 0x830]
push eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp - 0xa90]
mov dword [ecx], edx
mov eax, dword [ebp - 0xa8c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xa88]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0xa84]
mov dword [ecx + 0xc], eax
call fcn.0040aff0
add esp, 0x14
push 0x208
push 0
lea ecx, [ebp - 0xa38]
push ecx
call fcn.0040fb70
add esp, 0xc
lea edx, [ebp - 0xa38]
push edx
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0xa80]
mov dword [eax], ecx
mov edx, dword [ebp - 0xa7c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xa78]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0xa74]
mov dword [eax + 0xc], edx
call fcn.0040aff0
add esp, 0x14
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.0040fb70
add esp, 0xc
lea ecx, [ebp - 0x830]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x218]
push edx
push 1
push 0
push str.CLSID
mov eax, dword [ebp - 0xa94]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0xa38]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x218]
push edx
push 1
push 0
push str.Profile
mov eax, dword [ebp - 0xa94]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.E6299A56_7778_11E9_AE31_C85B763978EB
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 1
push 0
push str.PreservedKeyId
mov edx, dword [ebp - 0xa94]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x804
push 0x424350
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push str.LangId
mov ecx, dword [ebp - 0xa94]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx edx, word [ebp + 8]
push edx
push str.0000C_03X
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push str.Modifiers
mov ecx, dword [ebp - 0xa94]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp + 0xc]
push edx
push str._08X
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push str.VirtualKey
mov ecx, dword [ebp - 0xa94]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0xa94]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa90]
call fcn.00402ab0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e852
mov esp, ebp
pop ebp
ret