Function at 0x24d9976b
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.24d995d3
add esp, 0x10
test eax, eax
je 0x24d99bf5
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 0x24d9f798
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 0x24d9fcf8
lea eax, [ebp - 0x138]
push esi
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x24d99bd9
cmp dword [ebp + 0x10], esi
jne 0x24d9981b
push dword [ebp + 0xc]
lea eax, [ebp - 0x138]
push 0x24d9f79c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x24d99827
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 0x24d99bd9
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x24d9fcfc
push esi
push 0x24d9f7a8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x24d99bd9
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x24]
call fcn.24d99588
pop ecx
test eax, eax
pop ecx
je 0x24d99bd9
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 0x24d99bd9
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 0x24d9fd00
push esi
push str.CurVer
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x24d99bd9
push dword [ebp + 0x14]
lea eax, [ebp - 0x138]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x24d9f7b8
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 0x24d99bd9
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 0x24d9fd04
lea eax, [ebp - 0x138]
push esi
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x24d99bd9
cmp dword [ebp + 0x10], esi
jne 0x24d99989
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 0x24d99999
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 0x24d99bd9
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x24d9fd08
push esi
push 0x24d9f7d0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x24d99bd9
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 0x24d99bd9
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.24d99588
pop ecx
test eax, eax
pop ecx
je 0x24d99bd9
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x138]
push 0x24d9f7d8
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 0x24d9fd0c
lea eax, [ebp - 0x138]
push esi
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x24d99bd9
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x24d9fd10
push esi
push str.VersionIndependentProgID
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x24d99bd9
push dword [ebp + 0xc]
lea eax, [ebp - 0x138]
push dword [ebp + 8]
push 0x24d9f800
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 0x24d99bd9
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 0x24d9fd14
push esi
push str.ProgID
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x24d99bd9
push dword [ebp + 0x14]
lea eax, [ebp - 0x138]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x24d9f810
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 0x24d99bd9
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 0x24d9fd18
push esi
push str.TypeLib
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x20]
call fcn.24d99588
pop ecx
test eax, eax
pop ecx
je 0x24d99bd9
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 0x24d99bd9
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 0x24d9fd1c
push esi
push str.Version
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
je 0x24d99bf9
cmp dword [ebp - 8], esi
je 0x24d99bf5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x24d99bf5
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x24d99c78
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 0x24d921a0
push edi
push esi
push 0x24d92190
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jl 0x24d99c66
mov eax, dword [ebp - 0xc]
push 0x24d92180
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