Function at 0x100d87f
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 0x100dc45
lea eax, [ebp - 0x98]
push eax
push edi
push edi
push 1
push 0x10085bc
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
cmp esi, edi
jl 0x100dc45
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 0x100dc45
lea eax, [ebp - 0xa0]
push eax
push 0x1008614
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, edi
jle 0x100d943
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x100dc45
lea eax, [ebp - 0xb8]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov esi, eax
cmp esi, edi
jl 0x100dc45
push ebx
push dword [ebp - 0xb8]
lea eax, [ebp - 0x84]
push 0x100862c
push 0x30
push eax
call fcn.0100d132
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 0x100dc2b
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [ebp - 0x8c]
cmp eax, edi
je 0x100d9f5
cmp dword [ebp - 0x88], edi
je 0x100d9e9
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 0x100dc44
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 0x100dc44
mov eax, dword [ebp - 0x88]
cmp dword [eax + 0x28], 5
jne 0x100dc13
test byte [eax + 0x36], 2
je 0x100dc13
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 0x100dc44
lea eax, [ebp - 0xb4]
push eax
push dword [ebp - 0x88]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov esi, eax
cmp esi, edi
jl 0x100dc44
push dword [ebp - 0xb4]
lea eax, [ebp - 0x34]
push 0x100862c
push 0x30
push eax
call fcn.0100d132
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 0x100dae3
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 0x100dced
push dword [ebp - 0x9c]
push 0x100862c
push esi
push eax
call fcn.0100de92
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 0x100dc13
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x100861c
push dword [ebp - 0x90]
mov dword [ebp - 0xc0], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push 4
mov edi, 0x100dcf8
lea esi, [ebp - 0x54]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x100dc05
push 0x10085fc
push dword [ebp - 0x90]
call ebx
push 0x1008624
push dword [ebp - 0x90]
call ebx
push 0x100861c
push dword [ebp - 0x90]
call ebx
push 0x100860c
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 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100dc11
push 0x1008614
push dword [ebp - 0xb0]
call ebx
push dword [ebp - 0xb0]
call esi
push dword [ebp - 0x94]
push 0x80000000
call ebx
jmp 0x100dc11
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 0x100d9bf
push 1
push edi
push edi
push 1
push 0x10085bc
call dword [sym.imp.OLEAUT32.dll_VarDecFix]
mov esi, eax
cmp esi, edi
jl 0x100dc44
xor esi, esi
pop ebx
mov eax, dword [ebp - 0xa8]
cmp eax, edi
je 0x100dc55
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x94], edi
je 0x100dc69
push dword [ebp - 0x94]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 0x8c]
cmp eax, edi
je 0x100dc93
cmp dword [ebp - 0x88], edi
je 0x100dc8d
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 0x100dcbd
cmp dword [ebp - 0xac], edi
je 0x100dcb7
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 0x100dcd1
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 0x100dc44