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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
lea eax, [ebp - 0xa8]
push eax
push 1
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x94], edi
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0x98], edi
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x88], edi
call dword [sym.imp.ole32.dll_CoGetMalloc]
mov esi, eax
cmp esi, edi
jl 0x100dc41
lea eax, [ebp - 0x98]
push eax
push edi
push edi
push 1
push 0x10085b4
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
cmp esi, edi
jl 0x100dc41
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax]
lea edx, [ebp - 0xac]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, edi
jl 0x100dc41
lea eax, [ebp - 0xa0]
push eax
push 0x100860c
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, edi
jle 0x100d93f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x100dc41
lea eax, [ebp - 0xb8]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov esi, eax
cmp esi, edi
jl 0x100dc41
push ebx
push dword [ebp - 0xb8]
lea eax, [ebp - 0x84]
push 0x1008624
push 0x30
push eax
call fcn.0100d12e
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax]
add esp, 0x10
push dword [ebp - 0xb8]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xa4], edi
cmp eax, edi
jbe 0x100dc27
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [ebp - 0x8c]
cmp eax, edi
je 0x100d9f1
cmp dword [ebp - 0x88], edi
je 0x100d9e5
push dword [ebp - 0x88]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x88], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x8c], edi
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax]
lea edx, [ebp - 0x8c]
push edx
push dword [ebp - 0xa4]
push eax
call dword [ecx + 0x10]
mov esi, eax
cmp esi, edi
jl 0x100dc40
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax]
lea edx, [ebp - 0x88]
push edx
push eax
call dword [ecx + 0xc]
mov esi, eax
cmp esi, edi
jl 0x100dc40
mov eax, dword [ebp - 0x88]
cmp dword [eax + 0x28], 5
jne 0x100dc0f
test byte [eax + 0x36], 2
je 0x100dc0f
push dword [ebp - 0x9c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x98]
push edi
push edi
push edi
lea edx, [ebp - 0x9c]
push edx
push dword [ebp - 0xa4]
mov dword [ebp - 0x9c], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov esi, eax
cmp esi, edi
jl 0x100dc40
lea eax, [ebp - 0xb4]
push eax
push dword [ebp - 0x88]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov esi, eax
cmp esi, edi
jl 0x100dc40
push dword [ebp - 0xb4]
lea eax, [ebp - 0x34]
push 0x1008624
push 0x30
push eax
call fcn.0100d12e
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax]
add esp, 0x10
push dword [ebp - 0xb4]
push eax
call dword [ecx + 0x14]
cmp dword [ebp - 0x94], edi
je 0x100dadf
push dword [ebp - 0x94]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x9c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
inc esi
inc esi
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x94], eax
cmp eax, edi
je 0x100dce9
push dword [ebp - 0x9c]
push 0x1008624
push esi
push eax
call fcn.0100de8e
add esp, 0x10
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0xa0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100dc0f
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x1008614
push dword [ebp - 0x90]
mov dword [ebp - 0xc0], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push 4
mov edi, 0x100dcf4
lea esi, [ebp - 0x54]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x100dc01
push 0x10085f4
push dword [ebp - 0x90]
call ebx
push 0x100861c
push dword [ebp - 0x90]
call ebx
push 0x1008614
push dword [ebp - 0x90]
call ebx
push 0x1008604
push dword [ebp - 0x90]
call ebx
push dword [ebp - 0x90]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0xa0]
call ebx
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0x94]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100dc0d
push 0x100860c
push dword [ebp - 0xb0]
call ebx
push dword [ebp - 0xb0]
call esi
push dword [ebp - 0x94]
push SysReAllocStringLen
call ebx
jmp 0x100dc0d
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
inc dword [ebp - 0xa4]
mov eax, dword [ebp - 0xa4]
cmp eax, dword [ebp - 0xbc]
jb 0x100d9bb
push 1
push edi
push edi
push 1
push 0x10085b4
call dword [sym.imp.OLEAUT32.dll_VarDecFix]
mov esi, eax
cmp esi, edi
jl 0x100dc40
xor esi, esi
pop ebx
mov eax, dword [ebp - 0xa8]
cmp eax, edi
je 0x100dc51
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x94], edi
je 0x100dc65
push dword [ebp - 0x94]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 0x8c]
cmp eax, edi
je 0x100dc8f
cmp dword [ebp - 0x88], edi
je 0x100dc89
push dword [ebp - 0x88]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x98]
cmp eax, edi
je 0x100dcb9
cmp dword [ebp - 0xac], edi
je 0x100dcb3
push dword [ebp - 0xac]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0xa0], edi
je 0x100dccd
push dword [ebp - 0xa0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x9c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01001375
leave
ret
mov esi, 0x8007000e
jmp 0x100dc40