Function at 0x40f5d2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45e6e6
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x47b040]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov eax, dword [0x47b040]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
cmp byte [ebx + 0xd0], 0
jne 0x40f812
mov eax, dword [ebx + 0xb0]
test eax, eax
jne 0x40f80b
lea ecx, [esp + 0x18]
call fcn.00401a8d
and dword [esp + 0x80], 0
push dword [ebx + 0xc0]
lea eax, [esp + 0x1c]
push str.SOFTWARESlimWare_Utilities_Inc_sRegistration
push eax
call fcn.00402014
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.0040918c
test eax, eax
jne 0x40f737
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.00412c09
test eax, eax
jne 0x40f69b
cmp dword [esp + 0x10], esi
je 0x40f6a8
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 0x40f6c3
lea esi, [esp + 0x4c]
jmp 0x40f71d
push 0x467688
mov ecx, 0x48115c
call fcn.00424930
test eax, eax
je 0x40f6ea
push 4
pop ecx
mov edi, 0x465898
lea esi, [ebx + 0xe4]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x40f737
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 0x40f737
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 [0x481158]
test ecx, ecx
je 0x40f7e9
push eax
call fcn.00416de0
cmp dword [0x481158], 0
je 0x40f7e9
fld dword [0x46bbe8]
sub esp, 0xc
fstp dword [esp + 8]
lea eax, [esp + 0x28]
fld dword [0x46bbec]
fstp dword [esp + 4]
fld dword [0x46bbf0]
fstp dword [esp]
call fcn.00411721
mov byte [esp + 0x80], 2
mov eax, dword [0x48109c]
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.0041b3ae
mov byte [esp + 0x80], 3
push dword [eax]
lea eax, [esp + 0x20]
push str.productVersion
push eax
call fcn.00402a33
mov byte [esp + 0x80], 2
lea ecx, [esp + 0x10]
call fcn.004089bb
lea eax, [esp + 0x1c]
push eax
push 1
push str.InstallerFinished
push dword [0x481158]
call fcn.00416e7c
mov byte [esp + 0x80], 1
lea eax, [esp + 0x1c]
push eax
call fcn.0041176a
mov byte [esp + 0x80], 0
lea ecx, [esp + 0x14]
call fcn.0040912c
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004089bb
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.0043b023
mov esp, ebp
pop ebp
ret