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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push 0xf003f
push dword [ebp + 8]
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKey]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x401ce2
xor al, al
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
xor esi, esi
lea ecx, [ebp - 0x14]
push ecx
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 8], esi
push ecx
push esi
push str.LowerFilters
xor ebx, ebx
mov dword [ebp - 0x2c], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edi, edi
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], edi
call esi
test eax, eax
jne 0x40211e
lea eax, [ebp - 1]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x40]
shr eax, 1
push eax
call fcn.00401760
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x24]
push eax
push edi
push str.LowerFilters
push dword [ebp - 0x10]
call esi
mov esi, eax
test esi, esi
je 0x401d68
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x40]
mov byte [ebp - 1], bl
call fcn.004017d0
jmp 0x402194
mov edx, dword [ebp - 0x40]
mov esi, edx
mov dword [ebp - 0x1c], ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x401d73
sub esi, ecx
sar esi, 1
je 0x401f45
xor ebx, ebx
mov dword [ebp - 0x20], edx
lea ecx, [ecx]
cmp ebx, dword [ebp - 8]
je 0x401dd0
mov ecx, edx
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
lea edi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401db0
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00402320
lea edi, [ebx + 0x18]
jmp 0x401f0d
mov ecx, ebx
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0xc]
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp edi, 0xaaaaaaa
je 0x402251
mov ecx, dword [ebp - 8]
lea eax, [edi + 1]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov eax, 0x2aaaaaab
imul ecx
mov eax, 0xaaaaaaa
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, ecx
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x401e25
mov eax, 0xaaaaaaa
jmp 0x401e30
lea eax, [ecx + edx]
lea ecx, [edi + 1]
cmp eax, ecx
cmovb eax, ecx
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], eax
call fcn.004022c0
lea ecx, [edi + edi*2]
mov dword [ebp - 8], eax
mov edi, dword [ebp - 0x20]
mov edx, edi
mov dword [eax + ecx*8], 0
lea ecx, [eax + ecx*8]
mov dword [ecx + 0x10], 0
lea eax, [edx + 2]
mov dword [ecx + 0x14], 7
mov dword [ebp - 0x20], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x401e65
sub edx, dword [ebp - 0x20]
sar edx, 1
push edx
push edi
call fcn.00402320
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp - 0xc]
call fcn.004013b0
mov edi, dword [ebp - 0x34]
add esp, 0x10
test edi, edi
je 0x401eea
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x30]
push edi
call fcn.00401150
mov ecx, dword [ebp - 0x2c]
mov eax, 0x2aaaaaab
sub ecx, edi
add esp, 0xc
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 0x401ee0
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402256
push ecx
push edi
call fcn.0041d047
add esp, 8
mov ecx, dword [ebp - 8]
mov eax, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
lea eax, [eax + eax*2]
lea edi, [ecx + eax*8]
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
mov dword [ebp - 8], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov ebx, edi
mov ecx, dword [ebp - 0x40]
inc eax
add eax, esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x1c], eax
lea edx, [ecx + eax*2]
mov esi, edx
mov dword [ebp - 0x20], edx
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x401f30
sub esi, ecx
sar esi, 1
jne 0x401d90
mov esi, dword [ebp - 0xc]
cmp esi, ebx
je 0x401f82
mov edi, dword [ebp + 0xc]
nop
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x401f5a
mov eax, dword [edi]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x401f64
mov ecx, dword [esi]
push dword [edi + 0x10]
push eax
push dword [esi + 0x10]
push ecx
call fcn.00401360
add esp, 0x10
test al, al
jne 0x401f7f
add esi, 0x18
cmp esi, ebx
jne 0x401f50
mov edi, dword [ebp - 0x30]
cmp esi, edi
jne 0x4020b2
mov esi, dword [ebp - 8]
cmp edi, esi
je 0x401fac
push dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push edi
push eax
call fcn.00401440
add esp, 0xc
add edi, 0x18
mov dword [ebp - 0x30], edi
jmp 0x4020b2
mov ebx, dword [ebp - 0xc]
mov ecx, edi
sub ecx, ebx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x28], eax
cmp eax, 0xaaaaaaa
je 0x402251
lea ecx, [eax + 1]
sub esi, ebx
mov eax, 0x2aaaaaab
mov dword [ebp - 0x1c], ecx
imul esi
mov esi, 0xaaaaaaa
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
shr edx, 1
sub esi, edx
cmp eax, esi
jbe 0x402001
mov esi, 0xaaaaaaa
jmp 0x402009
lea esi, [eax + edx]
cmp esi, ecx
cmovb esi, ecx
push esi
lea ecx, [ebp - 0x34]
call fcn.004022c0
mov ecx, dword [ebp - 0x28]
push dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
lea ecx, [ecx + ecx*2]
lea ecx, [eax + ecx*8]
push ecx
lea eax, [ebp - 0x34]
push eax
call fcn.00401440
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x20]
push edi
push ebx
call fcn.004013b0
mov edi, dword [ebp - 0x34]
add esp, 0x1c
test edi, edi
je 0x402097
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x30]
push edi
call fcn.00401150
mov ecx, dword [ebp - 0x2c]
mov eax, 0x2aaaaaab
sub ecx, edi
add esp, 0xc
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 0x40208d
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402256
push ecx
push edi
call fcn.0041d047
add esp, 8
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], ecx
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
mov dword [ebp - 0x30], eax
lea eax, [esi + esi*2]
lea eax, [ecx + eax*8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00401860
mov ecx, dword [ebp - 0x4c]
add esp, 8
mov eax, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x10]
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 0x4020fc
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 1], 0
jmp 0x402100
mov byte [ebp - 1], 1
lea ecx, [ebp - 0x4c]
call fcn.004017d0
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 8], eax
call fcn.004017d0
jmp 0x402194
cmp eax, 2
jne 0x40223f
push dword [ebp + 0xc]
lea ecx, [ebp - 0x34]
call fcn.004014e0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00401860
mov ecx, dword [ebp - 0x4c]
add esp, 8
mov eax, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x10]
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 0x40217c
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 1], 0
jmp 0x402180
mov byte [ebp - 1], 1
lea ecx, [ebp - 0x4c]
call fcn.004017d0
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 8], eax
test ebx, ebx
je 0x402235
mov esi, ebx
cmp esi, edi
je 0x4021f5
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x4021db
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4021d1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402256
mov eax, edx
push ecx
push eax
call fcn.0041d047
add esp, 8
xor ecx, ecx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], cx
add esi, 0x18
cmp esi, edi
jne 0x4021a2
mov ecx, dword [ebp - 8]
mov eax, 0x2aaaaaab
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, ebx
shl ecx, 3
cmp ecx, 0x1000
jb 0x40222b
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402256
push ecx
push ebx
call fcn.0041d047
add esp, 8
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00401cb0
call fcn.0042128f
int3