Function at 0x406040
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x43f6fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x11c], 1
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.0041d0e0
add esp, 0xc
mov dword [ebp - 0x114], 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x20019
push 0
push str.SOFTWARELENOVOTPHOTKEY
push reloc.SKHidKbd.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4060c7
xor eax, eax
jmp 0x406542
cmp dword [ebp - 0x11c], 0
je 0x40610a
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40610a
cmp dword [ebp - 0x114], 1
jbe 0x40610a
mov dword [ebp - 0x128], 1
jmp 0x406114
mov dword [ebp - 0x128], 0
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4335f0
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.kcuif32.dll
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp - 0x11c], 0
je 0x406182
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x406182
mov dword [ebp - 0x12c], 1
jmp 0x40618c
mov dword [ebp - 0x12c], 0
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x11c], ecx
cmp dword [ebp - 0x11c], 0
je 0x4061cd
push str.HK_IsFnFxAvailable
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4492d8], eax
cmp dword [0x4492d8], 0
je 0x4061cd
mov dword [ebp - 0x130], 1
jmp 0x4061d7
mov dword [ebp - 0x130], 0
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x406218
push str.HK_VirtualNotifyFnFx
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4492dc], eax
cmp dword [0x4492dc], 0
je 0x406218
mov dword [ebp - 0x134], 1
jmp 0x406222
mov dword [ebp - 0x134], 0
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0x11c], edx
cmp dword [ebp - 0x11c], 0
je 0x406263
push str.HK_IsVolumeMuteControllable
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4492e0], eax
cmp dword [0x4492e0], 0
je 0x406263
mov dword [ebp - 0x138], 1
jmp 0x40626d
mov dword [ebp - 0x138], 0
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x11c], ecx
cmp dword [ebp - 0x11c], 0
je 0x4062ae
push str.HK_EnableVolumeMute
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4492e4], eax
cmp dword [0x4492e4], 0
je 0x4062ae
mov dword [ebp - 0x13c], 1
jmp 0x4062b8
mov dword [ebp - 0x13c], 0
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x4062f9
push str.HK_GetMaxVolumeLevel
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4492e8], eax
cmp dword [0x4492e8], 0
je 0x4062f9
mov dword [ebp - 0x140], 1
jmp 0x406303
mov dword [ebp - 0x140], 0
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x11c], edx
cmp dword [ebp - 0x11c], 0
je 0x406344
push str.HK_GetCurrentVolumeLevel
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4492ec], eax
cmp dword [0x4492ec], 0
je 0x406344
mov dword [ebp - 0x144], 1
jmp 0x40634e
mov dword [ebp - 0x144], 0
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x11c], ecx
cmp dword [ebp - 0x11c], 0
je 0x40638f
push str.HK_SetVolumeLevel
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4492f0], eax
cmp dword [0x4492f0], 0
je 0x40638f
mov dword [ebp - 0x148], 1
jmp 0x406399
mov dword [ebp - 0x148], 0
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x4063da
push str.HK_RunFullScreenMagnifier
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4492f4], eax
cmp dword [0x4492f4], 0
je 0x4063da
mov dword [ebp - 0x14c], 1
jmp 0x4063e4
mov dword [ebp - 0x14c], 0
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x11c], edx
cmp dword [ebp - 0x11c], 0
je 0x406425
push str.HK_GetVolumeMuteState
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4492f8], eax
cmp dword [0x4492f8], 0
je 0x406425
mov dword [ebp - 0x150], 1
jmp 0x40642f
mov dword [ebp - 0x150], 0
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x11c], ecx
cmp dword [ebp - 0x11c], 0
je 0x406470
push str.HK_GetMaxBrightnessLevel
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4492fc], eax
cmp dword [0x4492fc], 0
je 0x406470
mov dword [ebp - 0x154], 1
jmp 0x40647a
mov dword [ebp - 0x154], 0
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x4064bb
push str.HK_GetCurrentBrightnessLevel
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x449300], eax
cmp dword [0x449300], 0
je 0x4064bb
mov dword [ebp - 0x158], 1
jmp 0x4064c5
mov dword [ebp - 0x158], 0
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x11c], edx
cmp dword [ebp - 0x11c], 0
je 0x406506
push str.HK_SetBrightnessLevel
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x449304], eax
cmp dword [0x449304], 0
je 0x406506
mov dword [ebp - 0x15c], 1
jmp 0x406510
mov dword [ebp - 0x15c], 0
mov ecx, dword [ebp - 0x15c]
mov dword [ebp - 0x11c], ecx
cmp dword [ebp - 0x11c], 0
jne 0x40653c
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x120], 0
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cf4c
mov esp, ebp
pop ebp
ret