Function at 0x217ac805
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.217ac666
add esp, 0x10
test eax, eax
je 0x217acc77
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 0x217b3860
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 0x217b3aac
lea eax, [ebp - 0x138]
push esi
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x217acc5b
cmp dword [ebp + 0x10], esi
jne 0x217acc7e
push dword [ebp + 0xc]
lea eax, [ebp - 0x138]
push 0x217b3864
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
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 0x217acc5b
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x217b3ab0
push esi
push 0x217b3870
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x217acc5b
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x24]
call fcn.217ac61b
pop ecx
test eax, eax
pop ecx
je 0x217acc5b
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 0x217acc5b
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 0x217b3ab4
push esi
push str.CurVer
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x217acc5b
push dword [ebp + 0x14]
lea eax, [ebp - 0x138]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x217b3880
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 0x217acc5b
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 0x217b3ab8
lea eax, [ebp - 0x138]
push esi
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x217acc5b
cmp dword [ebp + 0x10], esi
jne 0x217acc8f
push dword [ebp + 0xc]
lea eax, [ebp - 0x138]
push str._s_Object
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
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 0x217acc5b
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x217b3abc
push esi
push 0x217b3898
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x217acc5b
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 0x217acc5b
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.217ac61b
pop ecx
test eax, eax
pop ecx
je 0x217acc5b
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x138]
push 0x217b38a0
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 0x217b3ac0
lea eax, [ebp - 0x138]
push esi
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x217acc5b
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x217b3ac4
push esi
push str.VersionIndependentProgID
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x217acc5b
push dword [ebp + 0xc]
lea eax, [ebp - 0x138]
push dword [ebp + 8]
push 0x217b38c8
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 0x217acc5b
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 0x217b3ac8
push esi
push str.ProgID
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x217acc5b
push dword [ebp + 0x14]
lea eax, [ebp - 0x138]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x217b38d8
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 0x217acc5b
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 0x217b3acc
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.217ac61b
pop ecx
test eax, eax
pop ecx
je 0x217acc5b
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 0x217acc5b
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 0x217b3ad0
push esi
push str.Version
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
je 0x217acca4
cmp dword [ebp - 8], esi
je 0x217acc77
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x217acc77
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp + 0x10]
lea eax, [ebp - 0x138]
push eax
call ebx
jmp 0x217ac8b7
push dword [ebp + 0x10]
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x217aca1b
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 0x217a7a08
push edi
push esi
push 0x217a79f8
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jl 0x217acd11
mov eax, dword [ebp - 0xc]
push 0x217a79e8
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
jmp 0x217acc79