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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x1019008]
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 0x100d915
lea eax, [ebp - 0x98]
push eax
push edi
push edi
push 1
push 0x1008660
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
cmp esi, edi
jl 0x100d915
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 0x100d915
lea eax, [ebp - 0xa0]
push eax
push 0x10086b8
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, edi
jle 0x100d613
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x100d915
lea eax, [ebp - 0xb8]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov esi, eax
cmp esi, edi
jl 0x100d915
push ebx
push dword [ebp - 0xb8]
lea eax, [ebp - 0x84]
push 0x10086d0
push 0x30
push eax
call fcn.0100ce06
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]
cmp eax, edi
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xa4], edi
jbe 0x100d8fb
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [ebp - 0x8c]
cmp eax, edi
je 0x100d6c5
cmp dword [ebp - 0x88], edi
je 0x100d6b9
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 0x100d914
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 0x100d914
mov eax, dword [ebp - 0x88]
cmp dword [eax + 0x28], 5
jne 0x100d8e3
test byte [eax + 0x36], 2
je 0x100d8e3
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 0x100d914
lea eax, [ebp - 0xb4]
push eax
push dword [ebp - 0x88]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov esi, eax
cmp esi, edi
jl 0x100d914
push dword [ebp - 0xb4]
lea eax, [ebp - 0x34]
push 0x10086d0
push 0x30
push eax
call fcn.0100ce06
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 0x100d7b3
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_
cmp eax, edi
pop ecx
mov dword [ebp - 0x94], eax
je 0x100d9bd
push dword [ebp - 0x9c]
push 0x10086d0
push esi
push eax
call fcn.0100db6a
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 0x100d8e3
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x10086c0
push dword [ebp - 0x90]
mov dword [ebp - 0xc0], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push 4
mov edi, 0x100d9c8
lea esi, [ebp - 0x54]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x100d8d5
push 0x10086a0
push dword [ebp - 0x90]
call ebx
push 0x10086c8
push dword [ebp - 0x90]
call ebx
push 0x10086c0
push dword [ebp - 0x90]
call ebx
push 0x10086b0
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 0x100d8e1
push 0x10086b8
push dword [ebp - 0xb0]
call ebx
push dword [ebp - 0xb0]
call esi
push dword [ebp - 0x94]
push 0x80000000
call ebx
jmp 0x100d8e1
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 0x100d68f
push 1
push edi
push edi
push 1
push 0x1008660
call dword [sym.imp.OLEAUT32.dll_VarDecFix]
mov esi, eax
cmp esi, edi
jl 0x100d914
xor esi, esi
pop ebx
mov eax, dword [ebp - 0xa8]
cmp eax, edi
je 0x100d925
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x94], edi
je 0x100d939
push dword [ebp - 0x94]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 0x8c]
cmp eax, edi
je 0x100d963
cmp dword [ebp - 0x88], edi
je 0x100d95d
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 0x100d98d
cmp dword [ebp - 0xac], edi
je 0x100d987
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 0x100d9a1
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.01001508
leave
ret
mov esi, 0x8007000e
jmp 0x100d914