Function at 0x40da70
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x42d120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push edi
lea ecx, [ebp - 0x60c]
push ecx
push 0xf003f
push 0
push str.EnumPCI
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x620], eax
mov dword [ebp - 0x614], 0
call ebx
test eax, eax
jne 0x40dd12
lea edx, [ebp - 0x62c]
push edx
mov edx, dword [ebp - 0x60c]
push eax
push eax
push eax
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x204]
push ecx
push 0
push edx
mov dword [ebp - 0x61c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40dd05
mov edi, dword [ebp + 0xc]
lea ecx, [ecx]
inc dword [ebp - 0x614]
mov eax, 0x200
mov dword [ebp - 0x618], eax
mov dword [ebp - 0x624], eax
lea eax, [ebp - 0x204]
push eax
xor esi, esi
call fcn.0040d480
add esp, 4
test eax, eax
je 0x40dcc4
mov eax, dword [ebp - 0x60c]
lea ecx, [ebp - 0x608]
push ecx
push 0xf003f
push esi
lea edx, [ebp - 0x204]
push edx
push eax
call ebx
test eax, eax
jne 0x40dcc4
lea ecx, [ebp - 0x62c]
push ecx
mov ecx, dword [ebp - 0x608]
push eax
push eax
push eax
lea edx, [ebp - 0x618]
push edx
lea eax, [ebp - 0x404]
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40dc99
mov ecx, dword [ebp - 0x608]
lea edx, [ebp - 0x610]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x404]
push eax
push ecx
inc esi
call ebx
test eax, eax
jne 0x40dc5e
mov ecx, dword [ebp - 0x610]
lea edx, [ebp - 0x624]
push edx
lea eax, [ebp - 0x604]
push eax
push 0
push 0
push str.Driver
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40dbeb
mov edx, dword [ebp - 0x610]
push edx
mov dword [ebp - 0x618], 0x200
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40dc68
lea eax, [ebp - 0x604]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dbf4
sub eax, edx
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x604]
push eax
call fcn.0040e87e
mov ecx, dword [ebp - 0x620]
push ecx
push eax
call fcn.0040e842
add esp, 0x10
test eax, eax
je 0x40dc25
test edi, edi
jne 0x40dc51
mov edx, dword [ebp - 0x610]
push edx
call fcn.0040d810
mov ecx, dword [ebp - 0x608]
add esp, 4
lea eax, [ebp - 0x404]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
dec esi
test edi, edi
jne 0x40dd25
mov edx, dword [ebp - 0x610]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x618], 0x200
lea eax, [ebp - 0x62c]
push eax
mov eax, dword [ebp - 0x608]
push 0
push 0
push 0
lea ecx, [ebp - 0x618]
push ecx
lea edx, [ebp - 0x404]
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x40db83
mov ecx, dword [ebp - 0x608]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x40dcc4
mov eax, dword [ebp - 0x60c]
lea edx, [ebp - 0x204]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
dec dword [ebp - 0x614]
lea ecx, [ebp - 0x62c]
push ecx
mov ecx, dword [ebp - 0x614]
push 0
push 0
push 0
lea edx, [ebp - 0x61c]
push edx
mov edx, dword [ebp - 0x60c]
lea eax, [ebp - 0x204]
push eax
push ecx
push edx
mov dword [ebp - 0x61c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x40db00
mov eax, dword [ebp - 0x60c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ea2d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x610]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [ebp - 0x608]
push ecx
call esi
mov edx, dword [ebp - 0x60c]
push edx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040ea2d
mov esp, ebp
pop ebp
ret