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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4533b2
mov eax, dword fs:[0]
push eax
sub esp, 0x688
mov eax, dword [0x46cd08]
xor eax, esp
mov dword [esp + 0x680], eax
push ebx
push esi
push edi
mov eax, dword [0x46cd08]
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 0x40de2a
push 0xffffffffffffffff
push 0x10
push 0xbd0
call fcn.0042e633
jmp 0x40e3e5
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.00432af3
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.00432c05
mov ecx, ebx
call fcn.00431df2
push esi
push str.042B0D65_EF5B_4E3F_ADFF_86C726E4F053
push esi
lea ecx, [esp + 0x40]
call fcn.00432c88
mov dword [esp + 0x6a0], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40def9
lea ecx, [esp + 0x14]
call fcn.0041578f
mov byte [esp + 0x6a0], 1
mov edi, 0xbcb
push edi
lea ecx, [esp + 0x18]
call fcn.00401932
test eax, eax
jne 0x40dec7
call fcn.0042ba8e
call fcn.0042ffe0
push dword [eax + 0x10]
lea eax, [esp + 0x18]
push edi
push eax
call fcn.004013d4
add esp, 0xc
push esi
push esi
push dword [esp + 0x1c]
call fcn.0042e5ea
mov byte [esp + 0x6a0], 0
lea ecx, [esp + 0x14]
jmp 0x40e3cf
lea edi, [ebx + 0x1a8]
push edi
call fcn.004027cf
push ebx
call fcn.0040e40b
test al, al
jne 0x40df1b
lea eax, [ebx + 0x17c]
push eax
call fcn.004164a0
mov edx, str.InstallerData
mov ecx, edi
call fcn.00402905
cmp eax, esi
je 0x40df39
lea ecx, [ebx + 0x17c]
push ecx
mov ecx, eax
call fcn.004166e0
mov edx, str.BrandExtender
mov ecx, edi
call fcn.00402905
cmp eax, esi
je 0x40dfa6
push eax
call fcn.0042f14e
mov edi, eax
cmp edi, esi
jne 0x40df5a
call fcn.0042ba8e
mov ecx, edi
call fcn.0042c19f
mov dword [esp + 0x1c], eax
mov byte [esp + 0x6a0], 2
cmp eax, esi
jne 0x40df76
jmp fcn.0042b0b0
push eax
push 0x46def0
call fcn.0042c228
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
jne 0x40df8e
call fcn.0042ba8e
mov dword [ebx + 0x1d8], edi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x6a0], 0
mov dword [esp + 0x1c], esi
jmp 0x40dfda
push 4
call fcn.00424d0a
pop ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x6a0], 3
cmp eax, esi
je 0x40dfc6
mov dword [eax], vtable.CDefaultBrandExtender.0
jmp 0x40dfc8
xor eax, eax
mov byte [esp + 0x6a0], 0
cmp eax, esi
je 0x40df71
mov dword [ebx + 0x1d8], eax
mov eax, dword [ebx + 0x1d8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, esi
jl 0x40e3d4
push str.SlimWare_Utilities_Inc
mov ecx, ebx
call fcn.00432d0d
call fcn.0042ffe0
mov eax, dword [eax + 0x10]
lea edi, [ebx + 0xb8]
push eax
mov ecx, edi
call fcn.004015e9
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.0041578f
mov byte [esp + 0x6a0], 4
push dword [edi]
lea eax, [esp + 0x30]
push str._sRegistration
push eax
call fcn.00401fd3
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.00408446
test eax, eax
je 0x40e08e
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.00408446
test eax, eax
je 0x40e0b2
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.0040edcf
test eax, eax
jne 0x40e0de
cmp dword [esp + 0x20], edi
je 0x40e0eb
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.0040edcf
test eax, eax
jne 0x40e114
cmp dword [esp + 0x20], edi
je 0x40e128
mov esi, 0x4599c4
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 0x40e155
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.00402905
cmp eax, esi
je 0x40e1ef
push eax
call fcn.00437617
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.00408446
test eax, eax
je 0x40e1aa
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 0x40e1de
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.00408482
push 0x45c1cc
lea ecx, [ebx + 0x17c]
call fcn.00416fa0
mov edi, eax
cmp edi, esi
jne 0x40e20a
mov edi, 0x459e5c
mov edx, str.UnifiedLogging
lea ecx, [ebx + 0x1a8]
call fcn.00402905
cmp eax, esi
je 0x40e233
push str.disable
push eax
call fcn.00436cf5
test eax, eax
pop ecx
pop ecx
je 0x40e340
push 8
call fcn.00424d0a
pop ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x6a0], 8
cmp eax, esi
je 0x40e265
lea eax, [ebx + 0xcc]
push eax
lea eax, [ebx + 0xdc]
push eax
push edi
push dword [esp + 0x30]
call fcn.00412cc2
jmp 0x40e267
xor eax, eax
mov byte [esp + 0x6a0], 6
fld dword [0x45e5e0]
sub esp, 0xc
fstp dword [esp + 8]
mov dword [ebx + 0x178], eax
fld dword [0x45e5e4]
lea eax, [esp + 0x60]
fstp dword [esp + 4]
fld dword [0x45e5e8]
fstp dword [esp]
call fcn.0040e9eb
mov byte [esp + 0x6a0], 9
lea eax, [esp + 0x24]
push eax
call fcn.004141b2
lea ecx, [esp + 0x1c]
mov dword [esp], str.NoneInstalled
call fcn.004014f6
mov byte [esp + 0x6a0], 0xa
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
or ecx, eax
je 0x40e2f4
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.00401fd3
add esp, 0x14
push dword [esp + 0x18]
lea eax, [esp + 0x58]
push eax
mov ecx, str.msBclVersion
call fcn.00402965
mov ecx, dword [ebx + 0x178]
lea eax, [esp + 0x54]
push eax
push esi
push 0x45bc98
call fcn.00412e8e
mov byte [esp + 0x6a0], 9
lea ecx, [esp + 0x18]
call fcn.00401af6
mov byte [esp + 0x6a0], 6
lea eax, [esp + 0x54]
push eax
call fcn.0040ea34
push esi
push esi
push esi
push esi
mov esi, 0x45a7b0
push esi
call fcn.00430c90
push eax
push esi
call fcn.0042c228
pop ecx
mov dword [ebx + 0xbc], eax
pop ecx
lea eax, [esp + 0x84]
push eax
call fcn.00408c00
mov byte [esp + 0x6a0], 0xb
lea eax, [esp + 0x84]
mov ecx, eax
mov dword [ebx + 0x20], eax
call fcn.0042aa1e
push dword [esp + 0x30]
call sub.gdiplus.dll_GdiplusShutdown
mov byte [esp + 0x6a0], 6
lea ecx, [esp + 0x84]
call fcn.00408ced
mov byte [esp + 0x6a0], 5
lea ecx, [esp + 0x1c]
call fcn.00408482
mov byte [esp + 0x6a0], 4
lea ecx, [esp + 0x14]
call fcn.00408482
mov byte [esp + 0x6a0], 0
lea ecx, [esp + 0x2c]
call fcn.00401af6
or dword [esp + 0x6a0], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.00432cd0
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.00435d90
mov esp, ebp
pop ebp
ret