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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4545af
mov eax, dword fs:[0]
push eax
sub esp, 0x688
mov eax, dword [0x46fd08]
xor eax, esp
mov dword [esp + 0x680], eax
push ebx
push esi
push edi
mov eax, dword [0x46fd08]
xor eax, esp
push eax
lea eax, [esp + 0x698]
mov dword fs:[0], eax
lea eax, [esp + 0x4fc]
push eax
push 0x202
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor esi, esi
cmp eax, esi
je 0x40df26
push 0xffffffffffffffff
push 0x10
push 0xbd0
call fcn.0042f6e0
jmp 0x40e4e1
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], 8
mov dword [esp + 0x44], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.00433454
push esi
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
call sub.gdiplus.dll_GdiplusStartup
call fcn.00433566
mov ecx, ebx
call fcn.00432b75
push esi
push str.042B0D65_EF5B_4E3F_ADFF_86C726E4F053
push esi
lea ecx, [esp + 0x40]
call fcn.004335e9
mov dword [esp + 0x6a0], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40dff5
lea ecx, [esp + 0x14]
call fcn.0041611a
mov byte [esp + 0x6a0], 1
mov edi, 0xbcb
push edi
lea ecx, [esp + 0x18]
call fcn.0040196f
test eax, eax
jne 0x40dfc3
call fcn.0042cb46
call fcn.00431098
push dword [eax + 0x10]
lea eax, [esp + 0x18]
push edi
push eax
call fcn.004013d7
add esp, 0xc
push esi
push esi
push dword [esp + 0x1c]
call fcn.0042f697
mov byte [esp + 0x6a0], 0
lea ecx, [esp + 0x14]
jmp 0x40e4cb
lea edi, [ebx + 0x1a8]
push edi
call fcn.0040280f
push ebx
call fcn.0040e507
test al, al
jne 0x40e017
lea eax, [ebx + 0x17c]
push eax
call fcn.00416ed0
mov edx, str.InstallerData
mov ecx, edi
call fcn.00402945
cmp eax, esi
je 0x40e035
lea ecx, [ebx + 0x17c]
push ecx
mov ecx, eax
call fcn.00417110
mov edx, str.BrandExtender
mov ecx, edi
call fcn.00402945
cmp eax, esi
je 0x40e0a2
push eax
call fcn.004301b4
mov edi, eax
cmp edi, esi
jne 0x40e056
call fcn.0042cb46
mov ecx, edi
call fcn.0042d257
mov dword [esp + 0x1c], eax
mov byte [esp + 0x6a0], 2
cmp eax, esi
jne 0x40e072
jmp fcn.0042c169
push eax
push 0x470ee0
call fcn.0042d2e0
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
jne 0x40e08a
call fcn.0042cb46
mov dword [ebx + 0x1d8], edi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x6a0], 0
mov dword [esp + 0x1c], esi
jmp 0x40e0d6
push 4
call fcn.00425dca
pop ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x6a0], 3
cmp eax, esi
je 0x40e0c2
mov dword [eax], vtable.CDefaultBrandExtender.0
jmp 0x40e0c4
xor eax, eax
mov byte [esp + 0x6a0], 0
cmp eax, esi
je 0x40e06d
mov dword [ebx + 0x1d8], eax
mov eax, dword [ebx + 0x1d8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, esi
jl 0x40e4d0
push str.SlimWare_Utilities_Inc
mov ecx, ebx
call fcn.0043366e
call fcn.00431098
mov eax, dword [eax + 0x10]
lea edi, [ebx + 0xb8]
push eax
mov ecx, edi
call fcn.00401625
xor eax, eax
inc eax
lea ecx, [esp + 0x2c]
mov dword [ebx + 0xa8], esi
mov dword [ebx + 0xac], eax
mov dword [ebx + 0xb0], eax
mov dword [ebx + 0xb4], eax
call fcn.0041611a
mov byte [esp + 0x6a0], 4
push dword [edi]
lea eax, [esp + 0x30]
push str._sRegistration
push eax
call fcn.00401fc9
add esp, 0xc
mov dword [esp + 0x14], esi
mov byte [esp + 0x6a0], 5
mov dword [esp + 0x1c], esi
mov byte [esp + 0x6a0], 6
push str.SOFTWARESlimWare_Utilities_Inc
push reloc.OLEAUT32.dll_SysReAllocString
lea edi, [esp + 0x1c]
call fcn.004085f0
test eax, eax
je 0x40e18a
push esi
push esi
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
push dword [esp + 0x2c]
lea edi, [esp + 0x20]
push dword [esp + 0x18]
call fcn.004085f0
test eax, eax
je 0x40e1ae
push esi
push esi
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 0x10
pop edi
lea ecx, [esp + 0x20]
push ecx
lea eax, [ebx + 0xcc]
push eax
push str.MachineID
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x30], edi
call fcn.0040edc6
test eax, eax
jne 0x40e1da
cmp dword [esp + 0x20], edi
je 0x40e1e7
lea eax, [ebx + 0xcc]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea ecx, [esp + 0x20]
push ecx
lea eax, [ebx + 0xdc]
push eax
push str.InstallationID
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x30], edi
call fcn.0040edc6
test eax, eax
jne 0x40e210
cmp dword [esp + 0x20], edi
je 0x40e224
mov esi, 0x45b9cc
lea edi, [ebx + 0xdc]
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
pop edi
xor esi, esi
push edi
lea eax, [ebx + 0xcc]
push eax
push 3
push esi
push str.MachineID
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x40e251
push esi
push esi
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov edx, str.BuildNumber
lea ecx, [ebx + 0x1a8]
call fcn.00402945
cmp eax, esi
je 0x40e2eb
push eax
call fcn.00438499
pop ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], esi
mov byte [esp + 0x6a0], 7
push dword [ebx + 0xb8]
lea edi, [esp + 0x1c]
push dword [esp + 0x18]
call fcn.004085f0
test eax, eax
je 0x40e2a6
push esi
push esi
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [esp + 0x24]
push 4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push 4
push esi
push str.BuildNumber
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x40e2da
push esi
push esi
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov byte [esp + 0x6a0], 6
lea ecx, [esp + 0x18]
call fcn.0040862c
push 0x45e39c
lea ecx, [ebx + 0x17c]
call fcn.004179d0
mov edi, eax
cmp edi, esi
jne 0x40e306
mov edi, 0x45be5c
mov edx, str.UnifiedLogging
lea ecx, [ebx + 0x1a8]
call fcn.00402945
cmp eax, esi
je 0x40e32f
push str.disable
push eax
call fcn.00437da5
test eax, eax
pop ecx
pop ecx
je 0x40e43c
push 8
call fcn.00425dca
pop ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x6a0], 8
cmp eax, esi
je 0x40e361
lea eax, [ebx + 0xcc]
push eax
lea eax, [ebx + 0xdc]
push eax
push edi
push dword [esp + 0x30]
call fcn.00412e7f
jmp 0x40e363
xor eax, eax
mov byte [esp + 0x6a0], 6
fld dword [0x460950]
sub esp, 0xc
fstp dword [esp + 8]
mov dword [ebx + 0x178], eax
fld dword [0x460954]
lea eax, [esp + 0x60]
fstp dword [esp + 4]
fld dword [0x460958]
fstp dword [esp]
call fcn.00408453
mov byte [esp + 0x6a0], 9
lea eax, [esp + 0x24]
push eax
call fcn.0041453c
lea ecx, [esp + 0x1c]
mov dword [esp], str.NoneInstalled
call fcn.00401513
mov byte [esp + 0x6a0], 0xa
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
or ecx, eax
je 0x40e3f0
movzx ecx, word [esp + 0x24]
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
lea eax, [esp + 0x24]
push str._d._d._d
push eax
call fcn.00401fc9
add esp, 0x14
push dword [esp + 0x18]
lea eax, [esp + 0x58]
push eax
mov ecx, str.msBclVersion
call fcn.004029a5
mov ecx, dword [ebx + 0x178]
lea eax, [esp + 0x54]
push eax
push esi
push 0x45de68
call fcn.00413066
mov byte [esp + 0x6a0], 9
lea ecx, [esp + 0x18]
call fcn.00410215
mov byte [esp + 0x6a0], 6
lea eax, [esp + 0x54]
push eax
call fcn.0040849c
push esi
push esi
push esi
push esi
mov esi, 0x45c908
push esi
call fcn.00431d4b
push eax
push esi
call fcn.0042d2e0
pop ecx
mov dword [ebx + 0xbc], eax
pop ecx
lea eax, [esp + 0x84]
push eax
call fcn.00408d5e
mov byte [esp + 0x6a0], 0xb
lea eax, [esp + 0x84]
mov ecx, eax
mov dword [ebx + 0x20], eax
call fcn.0042bad7
push dword [esp + 0x30]
call sub.gdiplus.dll_GdiplusShutdown
mov byte [esp + 0x6a0], 6
lea ecx, [esp + 0x84]
call fcn.00408e4b
mov byte [esp + 0x6a0], 5
lea ecx, [esp + 0x1c]
call fcn.0040862c
mov byte [esp + 0x6a0], 4
lea ecx, [esp + 0x14]
call fcn.0040862c
mov byte [esp + 0x6a0], 0
lea ecx, [esp + 0x2c]
call fcn.00410215
or dword [esp + 0x6a0], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.00433631
xor eax, eax
mov ecx, dword [esp + 0x698]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x680]
xor ecx, esp
call fcn.00436e4b
mov esp, ebp
pop ebp
ret