Function at 0x40f2ed
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45dfbb
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x47a030]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov eax, dword [0x47a030]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
cmp byte [ebx + 0xd0], 0
jne 0x40f52d
mov eax, dword [ebx + 0xb0]
test eax, eax
jne 0x40f526
lea ecx, [esp + 0x18]
call fcn.004089d6
and dword [esp + 0x80], 0
push dword [ebx + 0xc0]
lea eax, [esp + 0x1c]
push str.SOFTWARESlimWare_Utilities_Inc_sRegistration
push eax
call fcn.00401ff7
and dword [esp + 0x20], 0
add esp, 0xc
mov byte [esp + 0x80], 1
push dword [esp + 0x18]
lea edi, [esp + 0x18]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00409200
test eax, eax
jne 0x40f452
push 0x10
pop esi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x50]
push eax
push str.InstallationID
mov eax, edi
push eax
mov dword [esp + 0x20], esi
call fcn.00412928
test eax, eax
jne 0x40f3b6
cmp dword [esp + 0x10], esi
je 0x40f3c3
mov esi, 0x4648a0
lea edi, [esp + 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0xe4]
push 4
pop ecx
lea edi, [esp + 0x4c]
mov esi, eax
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x40f3de
lea esi, [esp + 0x4c]
jmp 0x40f438
push 0x466660
mov ecx, 0x480134
call fcn.00424370
test eax, eax
je 0x40f405
push 4
pop ecx
mov edi, 0x4648a0
lea esi, [ebx + 0xe4]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x40f452
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x10
lea eax, [esp + 0x64]
push eax
push 3
push 0
push str.InstallationID
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40f452
lea esi, [esp + 0x60]
lea eax, [ebx + 0xe4]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [0x480130]
test ecx, ecx
je 0x40f504
push eax
call fcn.00416807
cmp dword [0x480130], 0
je 0x40f504
fld dword [0x46ab40]
sub esp, 0xc
fstp dword [esp + 8]
lea eax, [esp + 0x28]
fld dword [0x46ab44]
fstp dword [esp + 4]
fld dword [0x46ab48]
fstp dword [esp]
call fcn.0041143d
mov byte [esp + 0x80], 2
mov eax, dword [0x480074]
mov eax, dword [eax + 0x44]
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
push eax
call dword [ecx + 0x1c]
lea eax, [esp + 0x10]
push eax
lea esi, [esp + 0x50]
call fcn.0041adfb
mov byte [esp + 0x80], 3
push dword [eax]
lea eax, [esp + 0x20]
push str.productVersion
push eax
call fcn.00402a15
mov byte [esp + 0x80], 2
lea ecx, [esp + 0x10]
call fcn.00401b20
lea eax, [esp + 0x1c]
push eax
push 1
push str.InstallerFinished
push dword [0x480130]
call fcn.004168a3
mov byte [esp + 0x80], 1
lea eax, [esp + 0x1c]
push eax
call fcn.00411486
mov byte [esp + 0x80], 0
lea ecx, [esp + 0x14]
call fcn.004091a0
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00401b20
mov byte [ebx + 0xd0], 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0043aa68
mov esp, ebp
pop ebp
ret