Function at 0x405980
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
cmp dword [ebp + 8], 1
je 0x40599c
cmp dword [ebp + 8], 2
je 0x40599c
xor eax, eax
jmp 0x405d5c
lea eax, [ebp - 0x110]
push eax
call fcn.004089c9
add esp, 4
test eax, eax
jne 0x4059b6
xor eax, eax
jmp 0x405d5c
lea ecx, [ebp - 0x148]
push ecx
push 0xf003f
push 0
lea edx, [ebp - 0x110]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4059e1
xor eax, eax
jmp 0x405d5c
cmp dword [ebp + 8], 1
jne 0x4059f0
mov dword [ebp - 0xc], str.HotKeyForIncLCDRes
jmp 0x4059f7
mov dword [ebp - 0xc], str.HotKeyForDecLCDRes
mov dword [ebp - 8], 0x32
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x144]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x148]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405d27
cmp dword [ebp - 4], 1
jne 0x405d27
cmp dword [ebp - 8], 1
jbe 0x405d27
mov edx, dword [ebp - 0x148]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.HotKey__i_definition_is__s
call fcn.00409a98
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
lea ecx, [ebp - 0x144]
push ecx
call fcn.004105c6
add esp, 4
mov dword [ebp - 0x14c], 0
mov edx, dword [ebp - 0x14c]
movsx eax, byte [ebp + edx - 0x144]
cmp eax, 0x20
jne 0x405ab0
mov ecx, dword [ebp - 0x14c]
add ecx, 1
mov dword [ebp - 0x14c], ecx
jmp 0x405a8c
mov edx, 1
test edx, edx
je 0x405c1e
push 0x4151cc
call fcn.0040b770
add esp, 4
push eax
push 0x4151d4
mov eax, dword [ebp - 0x14c]
lea ecx, [ebp + eax - 0x144]
push ecx
call fcn.0040c140
add esp, 0xc
test eax, eax
jne 0x405b13
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
or al, 2
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push str.CTRL_
call fcn.0040b770
add esp, 4
mov edx, dword [ebp - 0x14c]
add edx, eax
mov dword [ebp - 0x14c], edx
jmp 0x405ab0
push 0x4151e4
call fcn.0040b770
add esp, 4
push eax
push 0x4151ec
mov eax, dword [ebp - 0x14c]
lea ecx, [ebp + eax - 0x144]
push ecx
call fcn.0040c140
add esp, 0xc
test eax, eax
jne 0x405b6c
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
or al, 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push str.ALT_
call fcn.0040b770
add esp, 4
mov edx, dword [ebp - 0x14c]
add edx, eax
mov dword [ebp - 0x14c], edx
jmp 0x405ab0
push 0x4151fc
call fcn.0040b770
add esp, 4
push eax
push 0x415204
mov eax, dword [ebp - 0x14c]
lea ecx, [ebp + eax - 0x144]
push ecx
call fcn.0040c140
add esp, 0xc
test eax, eax
jne 0x405bc5
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
or al, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push str.SHIFT_
call fcn.0040b770
add esp, 4
mov edx, dword [ebp - 0x14c]
add edx, eax
mov dword [ebp - 0x14c], edx
jmp 0x405ab0
push 0x415214
call fcn.0040b770
add esp, 4
push eax
push 0x41521c
mov eax, dword [ebp - 0x14c]
lea ecx, [ebp + eax - 0x144]
push ecx
call fcn.0040c140
add esp, 0xc
test eax, eax
jne 0x405c1e
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
or al, 8
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push str.WIN_
call fcn.0040b770
add esp, 4
mov edx, dword [ebp - 0x14c]
add edx, eax
mov dword [ebp - 0x14c], edx
jmp 0x405ab0
mov eax, dword [ebp - 0x14c]
movsx ecx, byte [ebp + eax - 0x144]
cmp ecx, 0x46
jne 0x405cc1
mov edx, dword [ebp - 0x14c]
lea eax, [ebp + edx - 0x144]
push eax
call fcn.0040b770
add esp, 4
cmp eax, 2
jb 0x405cc1
mov ecx, dword [ebp - 0x14c]
lea edx, [ebp + ecx - 0x144]
push edx
call fcn.0040b770
add esp, 4
cmp eax, 3
ja 0x405cc1
mov eax, dword [ebp - 0x14c]
lea ecx, [ebp + eax - 0x143]
push ecx
call fcn.0040c12a
add esp, 4
cmp eax, 1
jl 0x405cc1
mov edx, dword [ebp - 0x14c]
lea eax, [ebp + edx - 0x143]
push eax
call fcn.0040c12a
add esp, 4
cmp eax, 0x14
jg 0x405cc1
mov ecx, dword [ebp - 0x14c]
lea edx, [ebp + ecx - 0x143]
push edx
call fcn.0040c12a
add esp, 4
add eax, 0x6f
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x405cef
mov edx, dword [ebp - 0x14c]
lea eax, [ebp + edx - 0x144]
push eax
call fcn.0040b770
add esp, 4
cmp eax, 1
jne 0x405cef
mov ecx, dword [ebp - 0x14c]
movsx edx, byte [ebp + ecx - 0x144]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.HotKey__i_is:_fsModifiers___u__vk___u
call fcn.00409a98
add esp, 0x10
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x405d20
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
jne 0x405d20
xor eax, eax
jmp 0x405d5c
mov eax, 1
jmp 0x405d5c
mov edx, dword [ebp - 0x148]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
cmp dword [ebp + 8], 1
jne 0x405d4e
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0x7a
jmp 0x405d57
mov edx, dword [ebp + 0x10]
mov dword [edx], 0x7b
mov eax, 1
mov esp, ebp
pop ebp
ret