Function at 0x24d99c7d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0x34]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.24d9976b
add esp, 0x24
test eax, eax
je 0x24d99d00
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0x28]
call fcn.24d99588
pop ecx
lea eax, [ebp - 0x30]
pop ecx
push eax
lea eax, [ebp - 0x134]
push 0x24d9f834
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp + 0x24]
mov esi, 0xf003f
push eax
push esi
lea eax, [ebp - 0x134]
push ebx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x24d99d07
xor eax, eax
jmp 0x24d99fa1
cmp dword [ebp + 0x38], ebx
je 0x24d99d42
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push ebx
push 0x24d9fd20
push ebx
push str.Control
push dword [ebp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
mov dword [ebp + 0x34], eax
jne 0x24d99f7d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push ebx
push 0x24d9fd24
push ebx
push str.MiscStatus
push dword [ebp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
mov dword [ebp + 0x34], eax
jne 0x24d99f7d
lea eax, [ebp - 0x134]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 2
push eax
push 1
push ebx
push ebx
mov byte [ebp - 0x134], 0x30
push dword [ebp - 4]
mov byte [ebp - 0x133], bl
call edi
cmp eax, ebx
mov dword [ebp + 0x34], eax
jne 0x24d99f7d
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push esi
push ebx
push 0x24d9fd28
push ebx
push 0x24d9f854
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
mov dword [ebp + 0x34], eax
jne 0x24d99f7d
push dword [ebp + 0x2c]
lea eax, [ebp - 0x134]
push 0x24d9f858
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x134]
push eax
push 1
push ebx
push ebx
push dword [ebp - 8]
call edi
push dword [ebp - 8]
mov dword [ebp + 0x34], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x34], ebx
jne 0x24d99f7d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x38], ebx
mov dword [ebp - 4], ebx
je 0x24d99ebb
lea eax, [ebp - 0x134]
push 0x104
push eax
push dword [0x24d9fc6c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
movzx eax, word [ebp + 0x30]
push eax
lea eax, [ebp - 0x30]
push str.___d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push ebx
push 0x24d9fd2c
push ebx
push str.ToolboxBitmap32
push dword [ebp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
mov dword [ebp + 0x34], eax
jne 0x24d99f7d
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x134]
push eax
push 1
push ebx
push ebx
push dword [ebp - 4]
call edi
cmp eax, ebx
mov dword [ebp + 0x34], eax
jne 0x24d99f7d
lea eax, [ebp + 0x1c]
push eax
push 0x24d921a0
push 1
push ebx
push 0x24d92190
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x24d99f7d
mov eax, dword [0x24d917b8]
cmp eax, ebx
jle 0x24d99f27
cmp eax, ebx
mov dword [ebp + 0x30], ebx
jle 0x24d99f13
lea edx, [ebp - 0x1d4]
mov ecx, 0x24d9f558
cmp ecx, str.AddinDesigner.HLP
jge 0x24d99f13
mov esi, dword [ecx]
mov edi, edx
movsd dword es:[edi], dword [esi]
inc dword [ebp + 0x30]
add ecx, 4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add edx, 0x10
cmp dword [ebp + 0x30], eax
movsd dword es:[edi], dword [esi]
jl 0x24d99ef5
mov ecx, dword [ebp + 0x1c]
lea esi, [ebp - 0x1d4]
push esi
push eax
push dword [ebp + 0x28]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x14]
mov eax, dword [0x24d917bc]
cmp eax, ebx
jle 0x24d99f74
cmp eax, ebx
mov dword [ebp + 0x30], ebx
jle 0x24d99f60
lea edx, [ebp - 0x1d4]
mov ecx, 0x24d9fc48
cmp ecx, 0x24d9fc70
jge 0x24d99f60
mov esi, dword [ecx]
mov edi, edx
movsd dword es:[edi], dword [esi]
inc dword [ebp + 0x30]
add ecx, 4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add edx, 0x10
cmp dword [ebp + 0x30], eax
movsd dword es:[edi], dword [esi]
jl 0x24d99f42
mov ecx, dword [ebp + 0x1c]
lea esi, [ebp - 0x1d4]
push esi
push eax
push dword [ebp + 0x28]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x1c]
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp + 0x24], ebx
je 0x24d99f8b
push dword [ebp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
je 0x24d99f99
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp + 0x34], ebx
sete al
pop edi
pop esi
pop ebx
leave
ret