Function at 0x1000d180
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a8
mov eax, dword [0x1002db00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x28]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x3a0], eax
mov eax, dword [ebp + 0x24]
push eax
push ebx
lea edx, [ebp - 0x194]
mov dword [ebp - 0x3a4], eax
push edx
lea eax, [ebp - 0x294]
push eax
mov dword [ebp - 0x3a8], ecx
call fcn.1000cdb0
add esp, 0x10
push 0x104
lea ecx, [ebp - 0x398]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.CLSID_
lea edx, [ebp - 0x3c]
push 0x37
push edx
call fcn.10010436
mov eax, dword [ebp - 0x3a0]
push eax
lea ecx, [ebp - 0x3c]
push 0x37
push ecx
call fcn.10010495
push ebx
lea edx, [ebp - 0x3c]
push 0
push edx
call fcn.1000d0a0
add esp, 0x24
test eax, eax
jne 0x1000d552
lea eax, [ebp - 0x398]
push eax
lea ecx, [ebp - 0x3c]
push str.InprocServer32
push ecx
call fcn.1000d0a0
add esp, 0xc
test eax, eax
jne 0x1000d552
lea edx, [ebp - 0x194]
push edx
lea eax, [ebp - 0x3c]
push str.ProgID
push eax
call fcn.1000d0a0
add esp, 0xc
test eax, eax
jne 0x1000d552
lea ecx, [ebp - 0x294]
push ecx
lea edx, [ebp - 0x3c]
push str.VersionIndependentProgID
push edx
call fcn.1000d0a0
add esp, 0xc
test eax, eax
jne 0x1000d552
push 0x27
lea eax, [ebp - 0x94]
push eax
push 0x100256a8
call fcn.1000cf30
lea ecx, [ebp - 0x94]
push ecx
lea edx, [ebp - 0x3c]
push str.TypeLib
push edx
call fcn.1000d0a0
add esp, 0x18
test eax, eax
jne 0x1000d552
mov eax, dword [ebp + 0x14]
push eax
push 0x10025728
lea ecx, [ebp - 0x4c]
push 0x10
push ecx
call fcn.100105e6
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x3c]
push str.Icon
push eax
call fcn.1000d0a0
add esp, 0x1c
test eax, eax
jne 0x1000d552
push 0x1002571c
lea ecx, [ebp - 0x398]
push 0x104
push ecx
call fcn.10010495
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x398]
push 0x104
push eax
call fcn.10010495
lea ecx, [ebp - 0x398]
push ecx
lea edx, [ebp - 0x3c]
push str.ToolboxBitmap32
push edx
call fcn.1000d0a0
add esp, 0x24
test eax, eax
jne 0x1000d552
movzx eax, word [ebp + 0x1c]
movzx ecx, word [ebp + 0x18]
push eax
push ecx
push str._d._d
lea edx, [ebp - 0x6c]
push 0x20
push edx
call fcn.100105e6
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x3c]
push str.Version
push ecx
call fcn.1000d0a0
add esp, 0x20
test eax, eax
jne 0x1000d552
lea edx, [ebp - 0x39c]
push edx
push 0xf003f
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000d552
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000d390
mov ecx, dword [ebp - 0x39c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub eax, edx
inc eax
push eax
push edi
push 1
push 0
push str.Database
push ecx
call esi
mov edi, eax
test edi, edi
je 0x1000d3da
mov edx, dword [ebp - 0x39c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ed3f
mov esp, ebp
pop ebp
ret
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000d3e0
sub eax, edx
inc eax
push eax
mov eax, dword [ebp - 0x39c]
push ebx
push 1
push 0
push str.Name
push eax
call esi
mov edi, eax
test edi, edi
je 0x1000d424
mov ecx, dword [ebp - 0x39c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ed3f
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x3a4]
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000d430
sub eax, edx
mov edx, dword [ebp - 0x39c]
inc eax
push eax
push edi
push 1
push 0
push str.ObjectGroup
push edx
call esi
mov edi, eax
test edi, edi
je 0x1000d474
mov eax, dword [ebp - 0x39c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ed3f
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x3a8]
test edi, edi
je 0x1000d4c7
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000d483
mov ecx, dword [ebp - 0x39c]
sub eax, edx
inc eax
push eax
push edi
push 1
push 0
push str.ObjectManufacturer
push ecx
call esi
mov esi, eax
test esi, esi
je 0x1000d4c7
mov edx, dword [ebp - 0x39c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ed3f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x39c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea ecx, [ebp - 0x294]
push 0
push ecx
call fcn.1000d0a0
add esp, 0xc
test eax, eax
jne 0x1000d552
mov esi, dword [ebp - 0x3a0]
push esi
lea edx, [ebp - 0x294]
push str.CLSID
push edx
call fcn.1000d0a0
add esp, 0xc
test eax, eax
jne 0x1000d552
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp - 0x294]
push str.CurVer
push ecx
call fcn.1000d0a0
add esp, 0xc
test eax, eax
jne 0x1000d552
push ebx
push eax
lea edx, [ebp - 0x194]
push edx
call fcn.1000d0a0
add esp, 0xc
test eax, eax
jne 0x1000d552
push esi
lea eax, [ebp - 0x194]
push str.CLSID
push eax
call fcn.1000d0a0
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000ed3f
mov esp, ebp
pop ebp
ret