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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x453542
mov eax, dword fs:[0]
push eax
sub esp, 0x688
mov eax, dword [0x46dd08]
xor eax, esp
mov dword [esp + 0x680], eax
push ebx
push esi
push edi
mov eax, dword [0x46dd08]
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 0x40df05
push 0xffffffffffffffff
push 0x10
push 0xbd0
call fcn.0042e7d3
jmp 0x40e4c0
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.0043255e
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.00432670
mov ecx, ebx
call fcn.00431c80
push esi
push str.042B0D65_EF5B_4E3F_ADFF_86C726E4F053
push esi
lea ecx, [esp + 0x40]
call fcn.004326f3
mov dword [esp + 0x6a0], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40dfd4
lea ecx, [esp + 0x14]
call fcn.0041596f
mov byte [esp + 0x6a0], 1
mov edi, 0xbcb
push edi
lea ecx, [esp + 0x18]
call fcn.0040194e
test eax, eax
jne 0x40dfa2
call fcn.0042bc47
call fcn.00430198
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.0042e78a
mov byte [esp + 0x6a0], 0
lea ecx, [esp + 0x14]
jmp 0x40e4aa
lea edi, [ebx + 0x1a8]
push edi
call fcn.004027f5
push ebx
call fcn.0040e4e6
test al, al
jne 0x40dff6
lea eax, [ebx + 0x17c]
push eax
call fcn.00416660
mov edx, str.InstallerData
mov ecx, edi
call fcn.0040292b
cmp eax, esi
je 0x40e014
lea ecx, [ebx + 0x17c]
push ecx
mov ecx, eax
call fcn.004168a0
mov edx, str.BrandExtender
mov ecx, edi
call fcn.0040292b
cmp eax, esi
je 0x40e081
push eax
call fcn.0042f2a7
mov edi, eax
cmp edi, esi
jne 0x40e035
call fcn.0042bc47
mov ecx, edi
call fcn.0042c34a
mov dword [esp + 0x1c], eax
mov byte [esp + 0x6a0], 2
cmp eax, esi
jne 0x40e051
jmp fcn.0042b269
push eax
push 0x46eef0
call fcn.0042c3d3
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
jne 0x40e069
call fcn.0042bc47
mov dword [ebx + 0x1d8], edi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x6a0], 0
mov dword [esp + 0x1c], esi
jmp 0x40e0b5
push 4
call fcn.00424eda
pop ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x6a0], 3
cmp eax, esi
je 0x40e0a1
mov dword [eax], vtable.CDefaultBrandExtender.0
jmp 0x40e0a3
xor eax, eax
mov byte [esp + 0x6a0], 0
cmp eax, esi
je 0x40e04c
mov dword [ebx + 0x1d8], eax
mov eax, dword [ebx + 0x1d8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, esi
jl 0x40e4af
push str.SlimWare_Utilities_Inc
mov ecx, ebx
call fcn.00432778
call fcn.00430198
mov eax, dword [eax + 0x10]
lea edi, [ebx + 0xb8]
push eax
mov ecx, edi
call fcn.004015dd
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.0041596f
mov byte [esp + 0x6a0], 4
push dword [edi]
lea eax, [esp + 0x30]
push str._sRegistration
push eax
call fcn.00401fc7
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.0040856f
test eax, eax
je 0x40e169
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.0040856f
test eax, eax
je 0x40e18d
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.0040ee4b
test eax, eax
jne 0x40e1b9
cmp dword [esp + 0x20], edi
je 0x40e1c6
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.0040ee4b
test eax, eax
jne 0x40e1ef
cmp dword [esp + 0x20], edi
je 0x40e203
mov esi, 0x45a9cc
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 0x40e230
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.0040292b
cmp eax, esi
je 0x40e2ca
push eax
call fcn.00437637
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.0040856f
test eax, eax
je 0x40e285
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 0x40e2b9
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.004085ab
push 0x45d314
lea ecx, [ebx + 0x17c]
call fcn.00417160
mov edi, eax
cmp edi, esi
jne 0x40e2e5
mov edi, 0x45ae5c
mov edx, str.UnifiedLogging
lea ecx, [ebx + 0x1a8]
call fcn.0040292b
cmp eax, esi
je 0x40e30e
push str.disable
push eax
call fcn.00436eb5
test eax, eax
pop ecx
pop ecx
je 0x40e41b
push 8
call fcn.00424eda
pop ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x6a0], 8
cmp eax, esi
je 0x40e340
lea eax, [ebx + 0xcc]
push eax
lea eax, [ebx + 0xdc]
push eax
push edi
push dword [esp + 0x30]
call fcn.00412d10
jmp 0x40e342
xor eax, eax
mov byte [esp + 0x6a0], 6
fld dword [0x45f720]
sub esp, 0xc
fstp dword [esp + 8]
mov dword [ebx + 0x178], eax
fld dword [0x45f724]
lea eax, [esp + 0x60]
fstp dword [esp + 4]
fld dword [0x45f728]
fstp dword [esp]
call fcn.0040eac8
mov byte [esp + 0x6a0], 9
lea eax, [esp + 0x24]
push eax
call fcn.0041420c
lea ecx, [esp + 0x1c]
mov dword [esp], str.NoneInstalled
call fcn.004014ea
mov byte [esp + 0x6a0], 0xa
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
or ecx, eax
je 0x40e3cf
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.00401fc7
add esp, 0x14
push dword [esp + 0x18]
lea eax, [esp + 0x58]
push eax
mov ecx, str.msBclVersion
call fcn.0040298b
mov ecx, dword [ebx + 0x178]
lea eax, [esp + 0x54]
push eax
push esi
push 0x45cde0
call fcn.00412eee
mov byte [esp + 0x6a0], 9
lea ecx, [esp + 0x18]
call fcn.004102dc
mov byte [esp + 0x6a0], 6
lea eax, [esp + 0x54]
push eax
call fcn.0040eb11
push esi
push esi
push esi
push esi
mov esi, 0x45b8a8
push esi
call fcn.00430e48
push eax
push esi
call fcn.0042c3d3
pop ecx
mov dword [ebx + 0xbc], eax
pop ecx
lea eax, [esp + 0x84]
push eax
call fcn.00408d1f
mov byte [esp + 0x6a0], 0xb
lea eax, [esp + 0x84]
mov ecx, eax
mov dword [ebx + 0x20], eax
call fcn.0042abd7
push dword [esp + 0x30]
call sub.gdiplus.dll_GdiplusShutdown
mov byte [esp + 0x6a0], 6
lea ecx, [esp + 0x84]
call fcn.00408e0c
mov byte [esp + 0x6a0], 5
lea ecx, [esp + 0x1c]
call fcn.004085ab
mov byte [esp + 0x6a0], 4
lea ecx, [esp + 0x14]
call fcn.004085ab
mov byte [esp + 0x6a0], 0
lea ecx, [esp + 0x2c]
call fcn.004102dc
or dword [esp + 0x6a0], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.0043273b
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.00435f5a
mov esp, ebp
pop ebp
ret