Function at 0x403f70
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x524
push esi
push edi
lea eax, [ebp - 0x30c]
push eax
push str.SYSTEMCurrentControlSetControlClass
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
jne 0x40424c
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x30c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x308], eax
mov dword [ebp - 0x414], 0
jmp 0x403ff0
mov ecx, dword [ebp - 0x414]
add ecx, 1
mov dword [ebp - 0x414], ecx
mov edx, dword [ebp - 0x414]
cmp edx, dword [ebp - 4]
jae 0x40424c
push 0xff
lea eax, [ebp - 0x204]
push eax
mov ecx, dword [ebp - 0x414]
push ecx
mov edx, dword [ebp - 0x30c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
jne 0x404247
push str.SYSTEMCurrentControlSetControlClass_
lea eax, [ebp - 0x304]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x204]
push ecx
lea edx, [ebp - 0x304]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x304]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
jne 0x40423a
lea edx, [ebp - 0x520]
push edx
push 0
lea eax, [ebp - 0x524]
push eax
push 0
push str.Class
mov ecx, dword [ebp - 0x410]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
jne 0x40423a
lea edx, [ebp - 0x520]
push edx
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push str.Class
mov ecx, dword [ebp - 0x410]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.DiskDrive
lea edx, [ebp - 0x104]
push edx
call fcn.0040b0b0
add esp, 8
test eax, eax
jne 0x40423a
lea eax, [ebp - 0x520]
push eax
push 0
lea ecx, [ebp - 0x524]
push ecx
push 0
push str.UpperFilters
mov edx, dword [ebp - 0x410]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
jne 0x40423a
lea eax, [ebp - 0x520]
push eax
lea ecx, [ebp - 0x518]
push ecx
push 0
push 0
push str.UpperFilters
mov edx, dword [ebp - 0x410]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x51c]
push eax
lea ecx, [ebp - 0x304]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [ebp - 0x520]
push edx
lea eax, [ebp - 0x518]
push eax
push 7
push 0
push str.Filtersdata
mov ecx, dword [ebp - 0x51c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [ebp + 8]
lea edx, [ebp - 0x40c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x520]
lea esi, [ebp - 0x518]
lea edi, [ebp - 0x408]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x520]
add eax, 4
mov dword [ebp - 0x520], eax
mov ecx, dword [ebp - 0x520]
push ecx
lea edx, [ebp - 0x40c]
push edx
push 7
push 0
push str.UpperFilters
mov eax, dword [ebp - 0x51c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x51c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x410]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x30c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x40425b
mov ecx, dword [ebp - 0x410]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403fe1
mov edx, dword [ebp - 0x30c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret