Function at 0x402920
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0xf003f
push dword [ebp + 8]
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKey]
mov ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, 0xffffffff
jne 0x402944
xor al, al
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
push edi
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 0x1c], eax
xor edi, edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], edi
push eax
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], ebx
push eax
push ebx
push str.LowerFilters
push ecx
call esi
test eax, eax
jne 0x402abd
lea eax, [ebp - 1]
push eax
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x30]
shr eax, 1
push eax
call fcn.00401760
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x14]
push eax
push ebx
push str.LowerFilters
push dword [ebp - 8]
call esi
mov esi, eax
test esi, esi
je 0x4029c7
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x30]
mov byte [ebp - 1], bl
call fcn.004017d0
jmp 0x402ad3
mov edx, dword [ebp - 0x30]
mov esi, edx
mov dword [ebp - 0x10], ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4029d2
sub esi, ecx
sar esi, 1
je 0x402a51
mov ebx, dword [ebp + 0xc]
mov edi, edx
mov ecx, edi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4029f0
sub ecx, edx
mov eax, ebx
sar ecx, 1
cmp dword [ebx + 0x14], 8
jb 0x402a09
mov eax, dword [ebx]
push ecx
push edi
push dword [ebx + 0x10]
push eax
call fcn.00401360
add esp, 0x10
test al, al
jne 0x402a2a
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
lea ecx, [ebp - 0x24]
call fcn.004015f0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
inc eax
add eax, esi
mov dword [ebp - 0x10], eax
lea edi, [ecx + eax*2]
mov esi, edi
lea ecx, [esi + 2]
mov edi, edi
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x402a40
sub esi, ecx
sar esi, 1
jne 0x4029e8
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00401860
mov ecx, dword [ebp - 0x3c]
add esp, 8
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp - 8]
sub eax, ecx
and eax, 0xfffffffe
push eax
push ecx
push 7
push 0
push str.LowerFilters
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x402a9b
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 1], 0
jmp 0x402a9f
mov byte [ebp - 1], 1
lea ecx, [ebp - 0x3c]
call fcn.004017d0
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
call fcn.004017d0
jmp 0x402ad3
push dword [ebp - 8]
cmp eax, 2
jne 0x402b7e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 1], 1
test edi, edi
je 0x402b74
mov esi, edi
cmp esi, ebx
je 0x402b34
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x402b1a
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x402b10
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b8d
mov eax, edx
push ecx
push eax
call fcn.0041d057
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
add esi, 0x18
cmp esi, ebx
jne 0x402ae1
mov ecx, dword [ebp - 0x10]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x402b6a
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b8d
push ecx
push edi
call fcn.0041d057
add esp, 8
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0042129f
int3