Function at 0x407b70
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x427e50
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x433a70]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov dword [esp + 0x34], ecx
push str.CScrubber::Remove9XDeviceClassInstances
lea ecx, [esp + 0x3c]
call fcn.00401130
xor esi, esi
push 0xa
lea ecx, [esp + 0x4c]
mov dword [esp + 0x74], esi
call fcn.00402090
mov byte [esp + 0x70], 1
mov dword [esp + 0x20], esi
call fcn.004096a0
cmp eax, 2
je 0x407be0
call fcn.004096a0
cmp eax, 3
jne 0x407ef5
mov edi, 0x104
push edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], edi
call fcn.00409b95
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x20], esi
call fcn.00409b95
mov ecx, dword [esp + 0x18]
push ecx
mov ebx, eax
call fcn.00409b95
add esp, 0xc
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x407eca
test esi, esi
je 0x407eca
lea edx, [esp + 0x20]
push edx
push 0xf003f
push 0
push str.SystemCurrentControlSetControlDeviceClasses
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407eca
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push esi
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x407e87
add dword [esp + 0x28], 1
push esi
lea eax, [esp + 0x3c]
push str.Device_Class:__s
push eax
call fcn.00401460
mov edx, dword [esp + 0x2c]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407e5a
mov edx, dword [esp + 0x14]
xor esi, esi
lea eax, [esp + 0x40]
push eax
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
push ebx
push esi
push edx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x407e43
push ebx
lea eax, [esp + 0x3c]
push str.Device:__s
add esi, 1
push eax
mov dword [esp + 0x3c], esi
call fcn.00401460
mov edx, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push 0xf003f
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407e1a
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x10]
push eax
push ecx
push 0
push 0
push str.DeviceInstance
push edx
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407e07
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
push ecx
call fcn.00412a4c
mov edx, dword [ebp + 8]
add esp, 4
cmp dword [edx + 0xc], 0
mov dword [esp + 0x2c], 0
jle 0x407e02
lea esp, [esp]
mov eax, edi
mov esi, dword [eax + 8]
mov eax, dword [esp + 0x1c]
mov edi, dword [edi]
push esi
push eax
lea ecx, [esp + 0x40]
push str.Checking:__s_for__s
push ecx
call fcn.00401460
mov edx, dword [esp + 0x2c]
push esi
push edx
call fcn.00412936
add esp, 0x18
test eax, eax
je 0x407de7
mov eax, dword [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407d95
sub eax, edx
mov edx, eax
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407da7
sub eax, esi
lea eax, [eax + edx + 0x51]
push eax
call fcn.00409b95
mov esi, eax
add esp, 4
test esi, esi
je 0x407ec6
mov ecx, dword [esp + 0x18]
push ebx
push ecx
push str.HKEY_LOCAL_MACHINESystemCurrentControlSetControlDeviceClasses_s_s
push esi
call fcn.00413df0
add esp, 0x10
push esi
lea ecx, [esp + 0x4c]
call fcn.00406ff0
mov eax, dword [esp + 0x2c]
mov edx, dword [ebp + 8]
add eax, 1
cmp eax, dword [edx + 0xc]
mov dword [esp + 0x2c], eax
jl 0x407d60
mov esi, dword [esp + 0x30]
mov edi, 0x104
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x40]
push ecx
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
push ebx
push esi
push eax
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x407cd0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x24]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
push esi
push ecx
push edx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x407c70
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x48]
push eax
call fcn.00407740
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x407eca
mov esi, dword [esp + 0x4c]
xor edi, edi
test ecx, ecx
jle 0x407ec6
mov eax, esi
mov eax, dword [eax + 8]
test eax, eax
mov esi, dword [esi]
je 0x407ebf
push eax
call fcn.00409b90
mov ecx, dword [esp + 0x58]
add esp, 4
add edi, 1
cmp edi, ecx
jl 0x407ea7
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x407edb
push eax
call fcn.00409b90
add esp, 4
test esi, esi
je 0x407ee8
push esi
call fcn.00409b90
add esp, 4
test ebx, ebx
je 0x407ef5
push ebx
call fcn.00409b90
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x407f04
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], 0
call fcn.00402330
lea ecx, [esp + 0x38]
mov dword [esp + 0x70], 0xffffffff
call fcn.004012e0
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4