Function at 0x245669ad
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.24566815
add esp, 0x10
test eax, eax
je 0x24566e37
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 0x24570264
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 0x245705bc
lea eax, [ebp - 0x138]
push esi
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x24566e1b
cmp dword [ebp + 0x10], esi
jne 0x24566a5d
push dword [ebp + 0xc]
lea eax, [ebp - 0x138]
push 0x24570268
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x24566a69
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 0x24566e1b
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x245705c0
push esi
push 0x24570274
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x24566e1b
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x24]
call fcn.245667ca
pop ecx
test eax, eax
pop ecx
je 0x24566e1b
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 0x24566e1b
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 0x245705c4
push esi
push str.CurVer
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x24566e1b
push dword [ebp + 0x14]
lea eax, [ebp - 0x138]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x24570284
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 0x24566e1b
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 0x245705c8
lea eax, [ebp - 0x138]
push esi
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x24566e1b
cmp dword [ebp + 0x10], esi
jne 0x24566bcb
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 0x24566bdb
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 0x24566e1b
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x245705cc
push esi
push 0x2457029c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x24566e1b
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 0x24566e1b
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.245667ca
pop ecx
test eax, eax
pop ecx
je 0x24566e1b
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x138]
push 0x245702a4
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 0x245705d0
lea eax, [ebp - 0x138]
push esi
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x24566e1b
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x245705d4
push esi
push str.VersionIndependentProgID
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x24566e1b
push dword [ebp + 0xc]
lea eax, [ebp - 0x138]
push dword [ebp + 8]
push 0x245702cc
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 0x24566e1b
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 0x245705d8
push esi
push str.ProgID
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x24566e1b
push dword [ebp + 0x14]
lea eax, [ebp - 0x138]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x245702dc
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 0x24566e1b
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 0x245705dc
push esi
push 0x245702e8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x20]
call fcn.245667ca
pop ecx
test eax, eax
pop ecx
je 0x24566e1b
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 0x24566e1b
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 0x245705e0
push esi
push str.Version
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
je 0x24566e3b
cmp dword [ebp - 8], esi
je 0x24566e37
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x24566e37
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x24566eba
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 0x2456eeb8
push edi
push esi
push 0x2456eea8
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jl 0x24566ea8
mov eax, dword [ebp - 0xc]
push 0x2456ee98
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