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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [ebp + 8]
mov dword [ebp - 0x114], eax
jmp 0x402666
mov ecx, dword [ebp - 0x114]
add ecx, 1
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x114]
cmp edx, dword [ebp + 0xc]
jge 0x4028a8
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [str.Enum_]
push edx
push str._s_schild00_02X
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [ebp - 0x108]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00401c82
add esp, 8
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [str.EnumMF_]
push eax
push str._sChild00_02X_s
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [ebp - 0x230]
push edx
lea eax, [ebp - 0x108]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40270e
xor eax, eax
jmp 0x4028ad
mov dword [ebp - 0x10c], 0x14
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x22c]
push edx
push 0
push 0
mov eax, dword [str.Driver]
push eax
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402775
lea edx, [ebp - 0x22c]
push edx
mov eax, dword [str.SystemCurrentControlSetServicesClass_]
push eax
push 0x40e4a8
lea ecx, [ebp - 0x334]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x334]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [str.EnumMF_]
push edx
push str._sChild00_02X
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x110], 0
mov edx, dword [ebp - 0x110]
mov dword [ebp - 4], edx
push 0x103
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x338], ecx
mov edx, dword [ebp - 0x338]
push edx
mov eax, dword [ebp - 0x230]
push eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x40282c
mov edx, dword [ebp - 0x110]
add edx, 1
mov dword [ebp - 0x110], edx
jmp 0x40282e
jmp 0x402837
mov eax, 1
test eax, eax
jne 0x4027e5
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x110], 0
jne 0x4028a3
mov edx, dword [ebp - 0x114]
push edx
push str.Child00_02X
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [str.EnumMF_]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [ebp - 0x230]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402657
mov eax, 1
mov esp, ebp
pop ebp
ret