Function at 0x40c8de
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475f29
mov eax, dword fs:[0]
push eax
sub esp, 0xf20
mov eax, dword [0x496ab0]
xor eax, ebp
mov dword [ebp - 0x34], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x23c], ax
push 0x206
push 0
lea eax, [ebp - 0x23a]
push eax
call fcn.0044a620
add esp, 0xc
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x1c], 0x100
and dword [ebp - 0x2c], 0
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
call fcn.00419b52
push eax
lea ecx, [ebp - 0x30]
call fcn.0040f608
and dword [ebp - 4], 0
call fcn.00419b52
push eax
lea ecx, [ebp - 0x18]
call fcn.0040f608
mov byte [ebp - 4], 1
call fcn.00419b52
push eax
lea ecx, [ebp - 0x14]
call fcn.0040f608
mov byte [ebp - 4], 2
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x30]
push eax
call fcn.0040d68f
pop ecx
test eax, eax
jne 0x40c9ed
and dword [ebp - 0xe14], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
sub eax, 0x10
mov dword [ebp - 0xe30], eax
mov ecx, dword [ebp - 0xe30]
call fcn.00402855
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
sub eax, 0x10
mov dword [ebp - 0xe34], eax
mov ecx, dword [ebp - 0xe34]
call fcn.00402855
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
sub eax, 0x10
mov dword [ebp - 0xe38], eax
mov ecx, dword [ebp - 0xe38]
call fcn.00402855
mov eax, dword [ebp - 0xe14]
jmp 0x40d3f5
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push ecx
mov eax, esp
mov dword [ebp - 0xe18], esp
mov dword [ebp - 0xe3c], eax
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0xe3c]
call fcn.0040f651
call fcn.0040d40c
add esp, 0xc
mov dword [ebp - 0xf24], eax
cmp dword [ebp - 0xf24], 0
jne 0x40ca8d
and dword [ebp - 0xe1c], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
sub eax, 0x10
mov dword [ebp - 0xe40], eax
mov ecx, dword [ebp - 0xe40]
call fcn.00402855
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
sub eax, 0x10
mov dword [ebp - 0xe44], eax
mov ecx, dword [ebp - 0xe44]
call fcn.00402855
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
sub eax, 0x10
mov dword [ebp - 0xe48], eax
mov ecx, dword [ebp - 0xe48]
call fcn.00402855
mov eax, dword [ebp - 0xe1c]
jmp 0x40d3f5
call fcn.0040d72b
test eax, eax
je 0x40cab6
lea eax, [ebp - 0x2c]
push eax
push 0x20119
push 0
push str.SOFTWARESonixPCCAMSNP2UVC
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x28], eax
jmp 0x40cad4
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push 0
push str.SOFTWARESonixPCCAMSNP2UVC
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40cadf
jmp 0x40d36a
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.InstanceIndex
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d36a
xor eax, eax
mov word [ebp - 0xa4c], ax
push 0x7fe
push 0
lea eax, [ebp - 0xa4a]
push eax
call fcn.0044a620
add esp, 0xc
mov dword [ebp - 0xbe4], 1
mov dword [ebp - 0x248], 0x400
call fcn.00419b52
push eax
lea ecx, [ebp - 0x244]
call fcn.0040f608
mov byte [ebp - 4], 3
mov dword [ebp - 0x240], 0x64
and dword [ebp - 0xbdc], 0
push 0x18c
push 0
lea eax, [ebp - 0xbd8]
push eax
call fcn.0044a620
add esp, 0xc
and dword [ebp - 0xbe0], 0
and dword [ebp - 0xbe8], 0
jmp 0x40cb92
mov eax, dword [ebp - 0xbe8]
inc eax
mov dword [ebp - 0xbe8], eax
cmp dword [ebp - 0xbe8], 0x64
jge 0x40cc35
push dword [ebp - 0xbe8]
push str.ii00_02d
lea eax, [ebp - 0x244]
push eax
call fcn.0040fd5f
add esp, 0xc
mov dword [ebp - 0x248], 0x400
push dword [ebp - 0x248]
push 0
lea eax, [ebp - 0xa4c]
push eax
call fcn.0044a620
add esp, 0xc
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0xe4c], eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0xbe4]
push eax
push 0
push dword [ebp - 0xe4c]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cc30
mov eax, dword [ebp - 0xbe0]
mov ecx, dword [ebp - 0xbe8]
mov dword [ebp + eax*4 - 0xbdc], ecx
mov eax, dword [ebp - 0xbe0]
inc eax
mov dword [ebp - 0xbe0], eax
jmp 0x40cb85
and dword [ebp - 0xbec], 0
jmp 0x40cc4b
mov eax, dword [ebp - 0xbec]
inc eax
mov dword [ebp - 0xbec], eax
mov eax, dword [ebp - 0xbec]
cmp eax, dword [ebp - 0xbe0]
jge 0x40d34c
mov eax, dword [ebp - 0xbec]
push dword [ebp + eax*4 - 0xbdc]
push str.ii00_02d
lea eax, [ebp - 0x244]
push eax
call fcn.0040fd5f
add esp, 0xc
mov dword [ebp - 0x248], 0x400
push dword [ebp - 0x248]
push 0
lea eax, [ebp - 0xa4c]
push eax
call fcn.0044a620
add esp, 0xc
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0xe50], eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0xbe4]
push eax
push 0
push dword [ebp - 0xe50]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d347
lea eax, [ebp - 0xa4c]
push eax
lea ecx, [ebp - 0xbf4]
call fcn.0040ee95
mov byte [ebp - 4], 4
and dword [ebp - 0xbf0], 0
and dword [ebp - 0xbf8], 0
push 0
push str.System
lea ecx, [ebp - 0xbf4]
call fcn.0040f011
mov dword [ebp - 0xbf0], eax
push 0
push 0x47b020
lea ecx, [ebp - 0xbf4]
call fcn.0040f011
mov dword [ebp - 0xbf8], eax
mov eax, dword [ebp - 0xbf8]
sub eax, dword [ebp - 0xbf0]
dec eax
push eax
push dword [ebp - 0xbf0]
lea eax, [ebp - 0xe20]
push eax
lea ecx, [ebp - 0xbf4]
call fcn.0040f0cf
mov dword [ebp - 0xf28], eax
mov eax, dword [ebp - 0xf28]
mov dword [ebp - 0xe74], eax
mov byte [ebp - 4], 5
push dword [ebp - 0xe74]
lea ecx, [ebp - 0xbf4]
call fcn.0040f683
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xe20]
sub eax, 0x10
mov dword [ebp - 0xe78], eax
mov ecx, dword [ebp - 0xe78]
call fcn.00402855
call fcn.0040d72b
test eax, eax
je 0x40cdce
mov eax, dword [ebp - 0xbf4]
mov dword [ebp - 0xe7c], eax
lea eax, [ebp - 0x24]
push eax
push 0x20119
push 0
push dword [ebp - 0xe7c]
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x28], eax
jmp 0x40cdf9
mov eax, dword [ebp - 0xbf4]
mov dword [ebp - 0xe80], eax
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push dword [ebp - 0xe80]
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40ce40
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xbf4]
sub eax, 0x10
mov dword [ebp - 0xe84], eax
mov ecx, dword [ebp - 0xe84]
call fcn.00402855
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x244]
sub eax, 0x10
mov dword [ebp - 0xe88], eax
mov ecx, dword [ebp - 0xe88]
call fcn.00402855
jmp 0x40d36a
mov dword [ebp - 0x248], 0x400
push dword [ebp - 0x248]
push 0
lea eax, [ebp - 0xa4c]
push eax
call fcn.0044a620
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0xbe4]
push eax
push 0
push str.MatchingDeviceId
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d329
lea eax, [ebp - 0xa4c]
push eax
lea ecx, [ebp - 0xc00]
call fcn.0040ee95
mov byte [ebp - 4], 6
call fcn.00419b52
push eax
lea ecx, [ebp - 0xbfc]
call fcn.0040f608
mov byte [ebp - 4], 7
call fcn.00419b52
push eax
lea ecx, [ebp - 0xc04]
call fcn.0040f608
mov byte [ebp - 4], 8
lea eax, [ebp - 0xc04]
push eax
lea eax, [ebp - 0xbfc]
push eax
push ecx
mov eax, esp
mov dword [ebp - 0xe24], esp
mov dword [ebp - 0xe9c], eax
mov eax, dword [ebp - 0xc00]
sub eax, 0x10
mov dword [ebp - 0xe94], eax
push dword [ebp - 0xe94]
call fcn.0040fa7f
pop ecx
mov dword [ebp - 0xe98], eax
mov eax, dword [ebp - 0xe98]
add eax, 0x10
mov ecx, dword [ebp - 0xe9c]
mov dword [ecx], eax
call fcn.0040d40c
add esp, 0xc
mov dword [ebp - 0xf2c], eax
cmp dword [ebp - 0xf2c], 0
je 0x40d2cf
mov eax, dword [ebp - 0xbfc]
mov dword [ebp - 0xea0], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xea4], eax
push dword [ebp - 0xea0]
push dword [ebp - 0xea4]
call fcn.0044eb73
pop ecx
pop ecx
test eax, eax
jne 0x40d2cf
mov eax, dword [ebp - 0xc04]
mov dword [ebp - 0xea8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xeac], eax
push dword [ebp - 0xea8]
push dword [ebp - 0xeac]
call fcn.0044eb73
pop ecx
pop ecx
test eax, eax
jne 0x40d2cf
mov eax, dword [ebp - 0xbf4]
sub eax, 0x10
mov dword [ebp - 0xeb0], eax
push dword [ebp - 0xeb0]
call fcn.0040fa7f
pop ecx
mov dword [ebp - 0xeb4], eax
mov eax, dword [ebp - 0xeb4]
add eax, 0x10
mov dword [ebp - 0xe10], eax
mov byte [ebp - 4], 9
push 0x47afe8
lea ecx, [ebp - 0xe10]
call fcn.0040f712
mov dword [ebp - 0xc0c], 4
mov dword [ebp - 0xc08], 0x100
xor eax, eax
mov word [ebp - 0xe0c], ax
push 0x1fe
push 0
lea eax, [ebp - 0xe0a]
push eax
call fcn.0044a620
add esp, 0xc
call fcn.0040d72b
test eax, eax
je 0x40d045
mov eax, dword [ebp - 0xe10]
mov dword [ebp - 0xebc], eax
lea eax, [ebp - 0x20]
push eax
push 0x20119
push 0
push dword [ebp - 0xebc]
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x28], eax
jmp 0x40d070
mov eax, dword [ebp - 0xe10]
mov dword [ebp - 0xec0], eax
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
push dword [ebp - 0xec0]
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40d133
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0xe10]
sub eax, 0x10
mov dword [ebp - 0xec4], eax
mov ecx, dword [ebp - 0xec4]
call fcn.00402855
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0xc04]
sub eax, 0x10
mov dword [ebp - 0xec8], eax
mov ecx, dword [ebp - 0xec8]
call fcn.00402855
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xbfc]
sub eax, 0x10
mov dword [ebp - 0xecc], eax
mov ecx, dword [ebp - 0xecc]
call fcn.00402855
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xc00]
sub eax, 0x10
mov dword [ebp - 0xed0], eax
mov ecx, dword [ebp - 0xed0]
call fcn.00402855
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xbf4]
sub eax, 0x10
mov dword [ebp - 0xed4], eax
mov ecx, dword [ebp - 0xed4]
call fcn.00402855
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x244]
sub eax, 0x10
mov dword [ebp - 0xed8], eax
mov ecx, dword [ebp - 0xed8]
call fcn.00402855
jmp 0x40d36a
lea eax, [ebp - 0xc08]
push eax
lea eax, [ebp - 0xe0c]
push eax
lea eax, [ebp - 0xc0c]
push eax
push 0
push str.SnapShotState
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d2b1
movzx eax, word [ebp - 0xe0c]
cmp eax, 2
je 0x40d17c
movzx eax, word [ebp - 0xe0c]
cmp eax, 3
jne 0x40d2b1
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xe28], 1
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0xe10]
sub eax, 0x10
mov dword [ebp - 0xedc], eax
mov ecx, dword [ebp - 0xedc]
call fcn.00402855
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0xc04]
sub eax, 0x10
mov dword [ebp - 0xee0], eax
mov ecx, dword [ebp - 0xee0]
call fcn.00402855
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xbfc]
sub eax, 0x10
mov dword [ebp - 0xee4], eax
mov ecx, dword [ebp - 0xee4]
call fcn.00402855
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xc00]
sub eax, 0x10
mov dword [ebp - 0xee8], eax
mov ecx, dword [ebp - 0xee8]
call fcn.00402855
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xbf4]
sub eax, 0x10
mov dword [ebp - 0xeec], eax
mov ecx, dword [ebp - 0xeec]
call fcn.00402855
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x244]
sub eax, 0x10
mov dword [ebp - 0xef0], eax
mov ecx, dword [ebp - 0xef0]
call fcn.00402855
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
sub eax, 0x10
mov dword [ebp - 0xef4], eax
mov ecx, dword [ebp - 0xef4]
call fcn.00402855
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
sub eax, 0x10
mov dword [ebp - 0xef8], eax
mov ecx, dword [ebp - 0xef8]
call fcn.00402855
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
sub eax, 0x10
mov dword [ebp - 0xefc], eax
mov ecx, dword [ebp - 0xefc]
call fcn.00402855
mov eax, dword [ebp - 0xe28]
jmp 0x40d3f5
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0xe10]
sub eax, 0x10
mov dword [ebp - 0xf00], eax
mov ecx, dword [ebp - 0xf00]
call fcn.00402855
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0xc04]
sub eax, 0x10
mov dword [ebp - 0xf04], eax
mov ecx, dword [ebp - 0xf04]
call fcn.00402855
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xbfc]
sub eax, 0x10
mov dword [ebp - 0xf08], eax
mov ecx, dword [ebp - 0xf08]
call fcn.00402855
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xc00]
sub eax, 0x10
mov dword [ebp - 0xf0c], eax
mov ecx, dword [ebp - 0xf0c]
call fcn.00402855
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xbf4]
sub eax, 0x10
mov dword [ebp - 0xf10], eax
mov ecx, dword [ebp - 0xf10]
call fcn.00402855
jmp 0x40cc3e
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x244]
sub eax, 0x10
mov dword [ebp - 0xf14], eax
mov ecx, dword [ebp - 0xf14]
call fcn.00402855
cmp dword [ebp - 0x2c], 0
je 0x40d379
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24], 0
je 0x40d388
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x20], 0
je 0x40d397
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0xe2c], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
sub eax, 0x10
mov dword [ebp - 0xf18], eax
mov ecx, dword [ebp - 0xf18]
call fcn.00402855
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
sub eax, 0x10
mov dword [ebp - 0xf1c], eax
mov ecx, dword [ebp - 0xf1c]
call fcn.00402855
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
sub eax, 0x10
mov dword [ebp - 0xf20], eax
mov ecx, dword [ebp - 0xf20]
call fcn.00402855
mov eax, dword [ebp - 0xe2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.0044a605
leave
ret