Function at 0x40753c
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 [0x630f50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x650], eax
xor eax, eax
mov esi, 0x206
xor ebx, ebx
push esi
mov word [ebp - 0x434], ax
lea eax, [ebp - 0x432]
push ebx
push eax
mov dword [ebp - 0x654], ecx
mov dword [ebp - 0x658], ebx
call fcn.005534a0
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.00554d64
push 0x3e7
lea eax, [ebp - 0x434]
push str._08d
push eax
call fcn.00554d64
add esp, 0x24
lea eax, [ebp - 0x640]
push eax
push 0xf003f
push ebx
push str.SoftwareMicrosoftCTFDirectSwitchHotkeys
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40778c
push esi
mov word [ebp - 0x22c], ax
lea eax, [ebp - 0x22a]
push ebx
push eax
call fcn.005534a0
add esp, 0xc
lea eax, [ebp - 0x22c]
push 0x104
push eax
push ebx
push dword [ebp - 0x640]
mov esi, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
call ebx
test eax, eax
jne 0x40778c
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
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.005534a0
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 0x40772f
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 0x4076db
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00553cb5
pop ecx
pop ecx
test eax, eax
jne 0x4076db
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x640]
call edi
dec esi
jmp 0x40776e
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x64c]
push eax
push 0
push 0x5bf674
push dword [ebp - 0x644]
mov dword [ebp - 0x648], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40772f
lea eax, [ebp - 0x63c]
push eax
mov eax, dword [ebp - 0x654]
add eax, 0x464
push eax
call fcn.00553cb5
pop ecx
pop ecx
test eax, eax
je 0x4076c6
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 0x40776e
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x434]
push 0x5bf428
push eax
call fcn.00554d64
add esp, 0xc
push 0x104
lea eax, [ebp - 0x22c]
push eax
inc esi
push esi
push dword [ebp - 0x640]
call ebx
test eax, eax
je 0x407629
push dword [ebp - 0x640]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x434]
push eax
call fcn.00554e95
inc eax
push eax
lea eax, [ebp - 0x434]
push str._08d
push eax
call fcn.00554d64
mov ecx, dword [ebp - 0x650]
add esp, 0x10
lea eax, [ebp - 0x434]
push eax
call fcn.00401338
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x650]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00553d0c
leave
ret 8