Function at 0x24ddb711
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
push edi
xor esi, esi
push dword [ebp + 0x28]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
push dword [ebp + 0x24]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.24ddb579
add esp, 0x10
test eax, eax
je 0x24ddbb9b
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x138]
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x138]
push 0x24de580c
push eax
call edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x138]
push eax
call edi
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x2001f
push esi
push 0x24de5cb0
lea eax, [ebp - 0x138]
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x24ddbb7f
cmp dword [ebp + 0x10], esi
jne 0x24ddb7c1
push dword [ebp + 0xc]
lea eax, [ebp - 0x138]
push 0x24de5810
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x24ddb7cd
push dword [ebp + 0x10]
lea eax, [ebp - 0x138]
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x138]
push eax
call edi
inc eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
lea eax, [ebp - 0x138]
push eax
push 1
push esi
push esi
push dword [ebp - 8]
call ebx
cmp eax, esi
jne 0x24ddbb7f
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x24de5cb4
push esi
push 0x24de581c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x24ddbb7f
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x24]
call fcn.24ddb52e
pop ecx
test eax, eax
pop ecx
je 0x24ddbb7f
lea eax, [ebp - 0x34]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x34]
push eax
push 1
push esi
push esi
push dword [ebp - 4]
call ebx
cmp eax, esi
jne 0x24ddbb7f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x24de5cb8
push esi
push str.CurVer
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x24ddbb7f
push dword [ebp + 0x14]
lea eax, [ebp - 0x138]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x24de582c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x138]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x138]
push eax
push 1
push esi
push esi
push dword [ebp - 4]
call ebx
cmp eax, esi
jne 0x24ddbb7f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x2001f
push esi
push 0x24de5cbc
lea eax, [ebp - 0x138]
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x24ddbb7f
cmp dword [ebp + 0x10], esi
jne 0x24ddb92f
push dword [ebp + 0xc]
lea eax, [ebp - 0x138]
push str._s_Object
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x24ddb93f
push dword [ebp + 0x10]
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x138]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x138]
push eax
push 1
push esi
push esi
push dword [ebp - 8]
call ebx
cmp eax, esi
jne 0x24ddbb7f
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x24de5cc0
push esi
push 0x24de5844
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x24ddbb7f
lea eax, [ebp - 0x34]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x34]
push eax
push 1
push esi
push esi
push dword [ebp - 4]
call ebx
cmp eax, esi
jne 0x24ddbb7f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x24]
call fcn.24ddb52e
pop ecx
test eax, eax
pop ecx
je 0x24ddbb7f
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x138]
push 0x24de584c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x2001f
push esi
push 0x24de5cc4
lea eax, [ebp - 0x138]
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x24ddbb7f
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x24de5cc8
push esi
push str.VersionIndependentProgID
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x24ddbb7f
push dword [ebp + 0xc]
lea eax, [ebp - 0x138]
push dword [ebp + 8]
push 0x24de5874
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x138]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x138]
push eax
push 1
push esi
push esi
push dword [ebp - 4]
call ebx
cmp eax, esi
jne 0x24ddbb7f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x24de5ccc
push esi
push str.ProgID
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x24ddbb7f
push dword [ebp + 0x14]
lea eax, [ebp - 0x138]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x24de5884
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x138]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x138]
push eax
push 1
push esi
push esi
push dword [ebp - 4]
call ebx
cmp eax, esi
jne 0x24ddbb7f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x24de5cd0
push esi
push 0x24de5890
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x20]
call fcn.24ddb52e
pop ecx
test eax, eax
pop ecx
je 0x24ddbb7f
lea eax, [ebp - 0x34]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x34]
push eax
push 1
push esi
push esi
push dword [ebp - 4]
call ebx
cmp eax, esi
jne 0x24ddbb7f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push 0x24de5cd4
push esi
push str.Version
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
je 0x24ddbb9f
cmp dword [ebp - 8], esi
je 0x24ddbb9b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x24ddbb9b
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x24ddbc1e
push dword [ebp + 0x1c]
lea eax, [ebp - 0x138]
push dword [ebp + 0x18]
push str._ld._ld
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x138]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x138]
push eax
push 1
pop edi
push edi
push esi
push esi
push dword [ebp - 4]
call ebx
lea eax, [ebp - 0xc]
push eax
push 0x24de4510
push edi
push esi
push 0x24de4500
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jl 0x24ddbc0c
mov eax, dword [ebp - 0xc]
push 0x24de44f0
push edi
push dword [ebp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret