Function at 0x40926b
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 [0x5b9460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x434], ax
lea eax, [ebp - 0x432]
push esi
push eax
mov dword [ebp - 0x654], ecx
mov dword [ebp - 0x650], ebx
mov dword [ebp - 0x658], esi
call fcn.00531ed0
xor eax, eax
push 7
mov word [ebp - 0x24], ax
pop ecx
lea edi, [ebp - 0x22]
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.00532980
push 0x3e7
lea eax, [ebp - 0x434]
push str._08d
push eax
call fcn.00532980
add esp, 0x24
lea eax, [ebp - 0x640]
push eax
push 0xf003f
push esi
push str.SoftwareMicrosoftCTFDirectSwitchHotkeys
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4094d2
push 0x206
mov word [ebp - 0x22c], ax
lea eax, [ebp - 0x22a]
push esi
push eax
mov edi, esi
call fcn.00531ed0
add esp, 0xc
lea eax, [ebp - 0x22c]
push 0x104
push eax
push esi
push dword [ebp - 0x640]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4094d2
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, edi
inc edi
cmp eax, 0x28
jg 0x4094cc
and dword [ebp - 0x644], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x63c], ax
lea eax, [ebp - 0x63a]
push eax
mov dword [ebp - 0x648], 0x104
call fcn.00531ed0
add esp, 0xc
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x640]
mov dword [ebp - 0x64c], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40946b
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 0x409417
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.005351bb
pop ecx
pop ecx
test eax, eax
jne 0x409417
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x640]
call ebx
dec esi
jmp 0x4094aa
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x64c]
push eax
push 0
push 0x560c1c
push dword [ebp - 0x644]
mov dword [ebp - 0x648], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40946b
lea eax, [ebp - 0x63c]
push eax
mov eax, dword [ebp - 0x654]
add eax, 0x464
push eax
call fcn.005351bb
pop ecx
pop ecx
test eax, eax
je 0x409402
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 0x4094aa
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x434]
push 0x560274
push eax
call fcn.00532980
add esp, 0xc
push 0x104
lea eax, [ebp - 0x22c]
push eax
inc esi
push esi
push dword [ebp - 0x640]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x409359
mov ebx, dword [ebp - 0x650]
push dword [ebp - 0x640]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x434]
push eax
call fcn.005360f0
inc eax
push eax
lea eax, [ebp - 0x434]
push str._08d
push eax
call fcn.00532980
add esp, 0x10
lea eax, [ebp - 0x434]
push eax
mov ecx, ebx
call fcn.0040102b
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00532a3d
leave
ret 8