Function at 0x1000cc54
Capabilities:
Set registry value

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
sub esp, 0x13c
push ebx
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x10], eax
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000c7f4
add esp, 0x14
test eax, eax
jne 0x1000cc8a
xor eax, eax
jmp 0x1000cf0e
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0x18]
call fcn.1000c654
add esp, 8
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x13c]
push ecx
push str.CLSID_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 8]
lea edx, [ebp - 0x13c]
push ecx
push 0xf003f
push 0
push edx
push Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000ccda
xor eax, eax
jmp 0x1000cf0e
lea eax, [ebp - 0xc]
lea ecx, [ebp - 4]
push eax
xor ebx, ebx
push ecx
mov edi, 0xf003f
push ebx
push edi
push ebx
push 0x100335ac
push ebx
push str.Control
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x1000cee9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xc]
lea ecx, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
push ecx
push ebx
push edi
push ebx
push 0x100335b8
push ebx
push str.MiscStatus
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x1000cee9
push 2
lea eax, [ebp - 0x13c]
push eax
mov byte [ebp - 0x13b], bl
mov byte [ebp - 0x13c], 0x30
push 1
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
jne 0x1000cee9
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x10]
push eax
push ecx
push ebx
push edi
push ebx
push 0x100335c8
push ebx
push 0x100335cc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x1000cee9
push dword [ebp + 0x1c]
push 0x100335d0
lea ecx, [ebp - 0x13c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea ecx, [ebp - 0x13c]
push eax
push ecx
push 1
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1000cee9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0x13c]
push eax
push dword [0x10034810]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
movzx ecx, word [ebp + 0x20]
push ecx
lea edx, [ebp - 0x38]
push str.___d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x13c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0xc]
lea edx, [ebp - 4]
push ecx
push edx
push ebx
push edi
push ebx
push 0x100335dc
push ebx
push str.ToolboxBitmap32
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x1000cee9
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea ecx, [ebp - 0x13c]
push eax
push ecx
push 1
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
jne 0x1000cee9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xc]
lea ecx, [ebp - 4]
push eax
push ecx
push ebx
push edi
push ebx
push 0x100335f0
push ebx
push str.Version
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x1000cee9
push dword [ebp + 0x10]
push str._ld.0
lea ecx, [ebp - 0x13c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea ecx, [ebp - 0x13c]
push eax
push ecx
push 1
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
cmp dword [ebp - 8], 0
je 0x1000cef8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x1000cf07
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 1
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret