Function at 0x3000d3a5
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x30004d84]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x11c], edi
je 0x3000d6d8
push 0x30004d28
push eax
call fcn.3000be32
test eax, eax
pop ecx
pop ecx
jne 0x3000d6d8
lea eax, [ebp - 0x11c]
push eax
push 0x30004aac
push 1
push edi
push 0x30004d18
call fcn.30010501
test eax, eax
jge 0x3000d416
mov eax, dword [ebp - 0x11c]
cmp eax, edi
jmp 0x3000d6d0
cmp dword [esi], edi
mov ebx, esi
je 0x3000d486
cmp dword [ebp + 0x10], 0
mov esi, dword [ebx + 4]
mov eax, dword [ebp - 0x11c]
lea edi, [ebp - 0x114]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x114]
push edx
movsd dword es:[edi], dword [esi]
push 1
push dword [ebp - 0x118]
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
push eax
je 0x3000d471
cmp dword [ebx], 1
jne 0x3000d451
call dword [ecx + 0x14]
jmp 0x3000d454
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jge 0x3000d47e
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x3000d46a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x3000d6da
cmp dword [ebx], 1
jne 0x3000d47b
call dword [ecx + 0x18]
jmp 0x3000d47e
call dword [ecx + 0x20]
add ebx, 8
cmp dword [ebx], 0
jne 0x3000d41c
cmp dword [ebp + 0x10], 0
jne 0x3000d6c8
push 0x40
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x118]
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [0x30012428]
and dword [ebp - 0x124], 0
mov edi, eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x120]
push eax
call fcn.300058d4
add esp, 0xc
test eax, eax
jl 0x3000d6bd
mov esi, dword [ebp - 0x120]
cmp esi, 0x400
jg 0x3000d506
push esi
call fcn.30005aa7
test al, al
pop ecx
je 0x3000d506
mov eax, esi
call fcn.30010947
mov eax, esp
jmp 0x3000d512
push esi
lea ecx, [ebp - 0x124]
call fcn.30005b6a
push edi
push esi
lea ecx, [ebp - 0x104]
push ecx
push eax
call fcn.3000595c
test eax, eax
mov dword [ebp - 0x128], eax
je 0x3000d6bd
mov ebx, dword [sym.imp.MSVCR80.dll_strcpy_s]
push 0x30004aa4
mov esi, 0x80
lea eax, [ebp - 0x84]
push esi
push eax
call ebx
push eax
call fcn.300059ba
push dword [ebp - 0x128]
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.3000c004
push 0x30004a8c
lea eax, [ebp - 0x84]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_strcat_s]
push eax
call fcn.300059ba
and dword [ebp - 0x118], 0
and dword [ebp - 0x120], 0
add esp, 0x2c
push 0x20019
lea eax, [ebp - 0x84]
mov edi, SysReAllocString
push eax
push edi
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x130], edi
call fcn.3000c2fe
test eax, eax
jne 0x3000d601
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea ecx, [ebp - 0x120]
push ecx
push eax
push eax
push eax
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x12c], eax
call fcn.3000c299
cmp dword [ebp - 0x12c], 0
jne 0x3000d601
cmp dword [ebp - 0x120], 0
jne 0x3000d601
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x30004aa4
lea eax, [ebp - 0x84]
push esi
push eax
call ebx
push eax
call fcn.300059ba
push dword [ebp - 0x128]
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.3000c004
push 0x30004a74
lea eax, [ebp - 0x84]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_strcat_s]
push eax
call fcn.300059ba
add esp, 0x2c
push 0x20019
lea eax, [ebp - 0x84]
push eax
push edi
lea ecx, [ebp - 0x118]
call fcn.3000c2fe
test eax, eax
jne 0x3000d6a7
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x120]
push eax
push esi
push esi
push esi
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x118]
mov ebx, eax
call fcn.3000c299
cmp ebx, esi
jne 0x3000d6a7
cmp dword [ebp - 0x120], esi
jne 0x3000d6a7
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x118]
call fcn.3000c299
lea ecx, [ebp - 0x130]
call fcn.3000c299
lea ecx, [ebp - 0x124]
call fcn.30005a1f
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x3000d6d8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
lea esp, [ebp - 0x13c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.3000ffc4
leave
ret 0xc