Function at 0x40f36e
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x658
mov eax, dword [0x60c254]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, 0x208
mov dword [ebp - 0x654], eax
xor ebx, ebx
mov dword [ebp - 0x650], ecx
push esi
lea eax, [ebp - 0x434]
mov dword [ebp - 0x658], ebx
push ebx
push eax
call fcn.0055d8e0
xor eax, eax
lea edi, [ebp - 0x22]
push 7
mov word [ebp - 0x24], ax
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, word [ebp + 0xc]
push eax
lea eax, [ebp - 0x24]
push str._08x
push eax
call fcn.00404cc4
push 0x3e7
lea eax, [ebp - 0x434]
push str._08d
push eax
call fcn.00404cc4
add esp, 0x24
lea eax, [ebp - 0x640]
push eax
push 0xf003f
push ebx
push str.SoftwareMicrosoftCTFDirectSwitchHotkeys
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f5a6
push esi
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.0055d8e0
add esp, 0xc
lea eax, [ebp - 0x22c]
mov esi, ebx
push 0x104
push eax
push ebx
push dword [ebp - 0x640]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
call ebx
test eax, eax
jne 0x40f5a6
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and dword [ebp - 0x644], 0
lea eax, [ebp - 0x63c]
push 0x208
push 0
push eax
mov dword [ebp - 0x648], 0x104
call fcn.0055d8e0
add esp, 0xc
mov dword [ebp - 0x64c], 1
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x640]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40f549
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x64c]
push eax
push 0
push str.VirtualKey
push dword [ebp - 0x644]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f4f5
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00568b1b
pop ecx
pop ecx
test eax, eax
jne 0x40f4f5
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x640]
call edi
dec esi
jmp 0x40f588
lea eax, [ebp - 0x648]
mov dword [ebp - 0x648], 0x104
push eax
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x64c]
push eax
push 0
push str.CLSID
push dword [ebp - 0x644]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f549
lea eax, [ebp - 0x63c]
push eax
mov eax, dword [ebp - 0x650]
add eax, 0x464
push eax
call fcn.00568b1b
pop ecx
pop ecx
test eax, eax
je 0x40f4e0
push dword [ebp - 0x644]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jns 0x40f588
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x434]
push 0x58f24c
push eax
call fcn.00404cc4
add esp, 0xc
push 0x104
lea eax, [ebp - 0x22c]
inc esi
push eax
push esi
push dword [ebp - 0x640]
call ebx
test eax, eax
je 0x40f44b
push dword [ebp - 0x640]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x434]
push eax
call fcn.00569dbe
inc eax
push eax
lea eax, [ebp - 0x434]
push str._08d
push eax
call fcn.00404cc4
mov ecx, dword [ebp - 0x654]
lea eax, [ebp - 0x434]
add esp, 0x10
push eax
call fcn.00403875
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x654]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret 8