Function at 0x40f51d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45e56e
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov eax, dword [0x47b038]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
cmp byte [ebx + 0xd0], 0
jne 0x40f75d
mov eax, dword [ebx + 0xb0]
test eax, eax
jne 0x40f756
lea ecx, [esp + 0x18]
call fcn.0040897a
and dword [esp + 0x80], 0
push dword [ebx + 0xc0]
lea eax, [esp + 0x1c]
push str.SOFTWARESlimWare_Utilities_Inc_sRegistration
push eax
call fcn.00402001
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.00409160
test eax, eax
jne 0x40f682
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.00412bf5
test eax, eax
jne 0x40f5e6
cmp dword [esp + 0x10], esi
je 0x40f5f3
mov esi, 0x465898
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 0x40f60e
lea esi, [esp + 0x4c]
jmp 0x40f668
push 0x467660
mov ecx, 0x48113c
call fcn.00424850
test eax, eax
je 0x40f635
push 4
pop ecx
mov edi, 0x465898
lea esi, [ebx + 0xe4]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x40f682
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 0x40f682
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 [0x481138]
test ecx, ecx
je 0x40f734
push eax
call fcn.00416d09
cmp dword [0x481138], 0
je 0x40f734
fld dword [0x46bbb0]
sub esp, 0xc
fstp dword [esp + 8]
lea eax, [esp + 0x28]
fld dword [0x46bbb4]
fstp dword [esp + 4]
fld dword [0x46bbb8]
fstp dword [esp]
call fcn.0041166c
mov byte [esp + 0x80], 2
mov eax, dword [0x48107c]
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.0041b2d5
mov byte [esp + 0x80], 3
push dword [eax]
lea eax, [esp + 0x20]
push str.productVersion
push eax
call fcn.00402a51
mov byte [esp + 0x80], 2
lea ecx, [esp + 0x10]
call fcn.00401b2a
lea eax, [esp + 0x1c]
push eax
push 1
push str.InstallerFinished
push dword [0x481138]
call fcn.00416da5
mov byte [esp + 0x80], 1
lea eax, [esp + 0x1c]
push eax
call fcn.004116b5
mov byte [esp + 0x80], 0
lea ecx, [esp + 0x14]
call fcn.00409100
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00401b2a
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.0043af43
mov esp, ebp
pop ebp
ret