Function at 0x40f710
Capabilities:
Initialize winsock library
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4551db
mov eax, dword fs:[0]
push eax
sub esp, 0x650
mov eax, dword [0x46fd08]
xor eax, esp
mov dword [esp + 0x648], eax
push ebx
push esi
push edi
mov eax, dword [0x46fd08]
xor eax, esp
push eax
lea eax, [esp + 0x660]
mov dword fs:[0], eax
lea eax, [esp + 0x4c4]
push eax
push 0x202
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor esi, esi
cmp eax, esi
je 0x40f77e
push 0xffffffffffffffff
push 0x10
push 0xbd0
call fcn.0042f3e5
jmp 0x40fbe4
push 0x40eced
call fcn.0043ab34
pop ecx
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x38], 8
mov dword [esp + 0x3c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.00434286
push esi
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
call sub.gdiplus.dll_GdiplusStartup
call fcn.00434398
mov ecx, ebx
call fcn.00433582
push esi
push str.042B0D65_EF5B_4E3F_ADFF_86C726E4F053
push esi
lea ecx, [esp + 0x38]
call fcn.0043441b
mov dword [esp + 0x668], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40f858
lea ecx, [esp + 0x10]
call fcn.00401b4c
mov byte [esp + 0x668], 1
mov edi, 0xbcb
push edi
lea ecx, [esp + 0x14]
call fcn.00401988
test eax, eax
jne 0x40f826
call fcn.0042cade
call fcn.004316a9
push dword [eax + 0x10]
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00401405
add esp, 0xc
push esi
push esi
push dword [esp + 0x18]
call fcn.0042f39c
mov byte [esp + 0x668], 0
lea ecx, [esp + 0x10]
jmp 0x40fbce
lea edi, [ebx + 0x1d0]
push edi
call fcn.00402c23
lea eax, [ebx + 0x1a4]
push eax
call fcn.00417bc0
mov edx, str.InstallerData
mov ecx, edi
call fcn.00402d59
cmp eax, esi
je 0x40f88e
lea edx, [ebx + 0x1a4]
push edx
mov ecx, eax
call fcn.00417e00
mov edx, str.BrandExtender
mov ecx, edi
call fcn.00402d59
cmp eax, esi
je 0x40f8fb
push eax
call fcn.0043080a
mov edi, eax
cmp edi, esi
jne 0x40f8af
call fcn.0042cade
mov ecx, edi
call fcn.0042d8b5
mov dword [esp + 0x14], eax
mov byte [esp + 0x668], 2
cmp eax, esi
jne 0x40f8cb
jmp fcn.0042d6c9
push eax
push 0x470f4c
call fcn.0042d93e
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
jne 0x40f8e3
call fcn.0042cade
mov dword [ebx + 0x200], edi
mov dword [esp + 0x14], esi
mov byte [esp + 0x668], 0
mov dword [esp + 0x14], esi
jmp 0x40f92f
push 4
call fcn.0042643a
pop ecx
mov dword [esp + 0x20], eax
mov byte [esp + 0x668], 3
cmp eax, esi
je 0x40f91b
mov dword [eax], vtable.CDefaultBrandExtender.0
jmp 0x40f91d
xor eax, eax
mov byte [esp + 0x668], 0
cmp eax, esi
je 0x40f8c6
mov dword [ebx + 0x200], eax
mov eax, dword [ebx + 0x200]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, esi
jl 0x40fbd3
mov edi, ebx
call fcn.0040f49b
push str.SlimWare_Utilities_Inc
mov ecx, ebx
call fcn.004344a0
call fcn.004316a9
mov eax, dword [eax + 0x10]
lea edi, [ebx + 0xbc]
push eax
mov ecx, edi
call fcn.00401634
xor eax, eax
inc eax
lea ecx, [esp + 0x1c]
mov dword [ebx + 0xa8], esi
mov dword [ebx + 0xac], eax
mov dword [ebx + 0xb0], eax
mov dword [ebx + 0xb4], eax
mov dword [ebx + 0xb8], eax
call fcn.00401b4c
mov byte [esp + 0x668], 4
push dword [edi]
lea eax, [esp + 0x20]
push str._sRegistration
push eax
call fcn.00402475
add esp, 0xc
mov dword [esp + 0x10], esi
mov byte [esp + 0x668], 5
mov dword [esp + 0x14], esi
mov byte [esp + 0x668], 6
push str.SOFTWARESlimWare_Utilities_Inc
push reloc.OLEAUT32.dll_SysReAllocString
lea edi, [esp + 0x18]
call fcn.00409bd8
test eax, eax
je 0x40f9f0
push esi
push esi
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
push dword [esp + 0x1c]
lea edi, [esp + 0x18]
push dword [esp + 0x14]
call fcn.00409bd8
test eax, eax
je 0x40fa14
push esi
push esi
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 0x10
pop edi
lea ecx, [esp + 0x18]
push ecx
lea eax, [ebx + 0xd0]
push eax
push str.MachineID
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x28], edi
call fcn.00410209
test eax, eax
jne 0x40fa40
cmp dword [esp + 0x18], edi
je 0x40fa4d
lea eax, [ebx + 0xd0]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea ecx, [esp + 0x18]
push ecx
lea eax, [ebx + 0xe0]
push eax
push str.InstallationID
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x28], edi
call fcn.00410209
test eax, eax
jne 0x40fa76
cmp dword [esp + 0x18], edi
je 0x40fa8a
mov esi, 0x45b9d4
lea edi, [ebx + 0xe0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10
xor esi, esi
pop edi
push edi
lea edi, [ebx + 0xd0]
push edi
push 3
push esi
push str.MachineID
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x40fab7
push esi
push esi
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 0x45ef44
lea ecx, [ebx + 0x1a4]
call fcn.004186c0
cmp eax, esi
mov dword [esp + 0x24], eax
jne 0x40fad7
mov dword [esp + 0x24], 0x45c10c
mov edx, str.UnifiedLogging
lea ecx, [ebx + 0x1d0]
call fcn.00402d59
cmp eax, esi
je 0x40fafc
push str.disable
push eax
call fcn.00437c6a
test eax, eax
pop ecx
pop ecx
je 0x40fb48
push 8
call fcn.0042643a
pop ecx
mov dword [esp + 0x20], eax
mov byte [esp + 0x668], 7
cmp eax, esi
je 0x40fb2b
push edi
lea eax, [ebx + 0xe0]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.00413f6d
jmp 0x40fb2d
xor eax, eax
mov byte [esp + 0x668], 6
push esi
push str.InstallerInvoked
mov ecx, eax
mov dword [ebx + 0x1a0], eax
call fcn.00414128
push esi
push esi
push esi
push esi
mov esi, 0x45d068
push esi
call fcn.0043235c
push eax
push esi
call fcn.0042d93e
pop ecx
mov dword [ebx + 0xc0], eax
pop ecx
lea eax, [esp + 0x4c]
push eax
call fcn.0040a424
mov byte [esp + 0x668], 8
lea eax, [esp + 0x4c]
mov ecx, eax
mov dword [ebx + 0x20], eax
call fcn.00427215
push dword [esp + 0x28]
call sub.gdiplus.dll_GdiplusShutdown
mov byte [esp + 0x668], 6
lea ecx, [esp + 0x4c]
call fcn.0040a511
mov byte [esp + 0x668], 5
lea ecx, [esp + 0x14]
call fcn.0040688f
mov byte [esp + 0x668], 4
lea ecx, [esp + 0x10]
call fcn.0040688f
mov byte [esp + 0x668], 0
lea ecx, [esp + 0x1c]
call fcn.00406294
or dword [esp + 0x668], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00434463
xor eax, eax
mov ecx, dword [esp + 0x660]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x648]
xor ecx, esp
call fcn.00437b68
mov esp, ebp
pop ebp
ret