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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45c2c3
mov eax, dword fs:[0]
push eax
sub esp, 0x688
mov eax, dword [0x477cb0]
xor eax, esp
mov dword [esp + 0x680], eax
push ebx
push esi
push edi
mov eax, dword [0x477cb0]
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 0x40e196
push 0xffffffffffffffff
push 0x10
push 0xbd0
call fcn.00430372
jmp 0x40e75c
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.004360f6
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.00436208
mov ecx, ebx
call fcn.00434e4e
push esi
push str.042B0D65_EF5B_4E3F_ADFF_86C726E4F053
push esi
lea ecx, [esp + 0x40]
call fcn.0043574b
mov dword [esp + 0x6a0], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40e265
lea ecx, [esp + 0x14]
call fcn.0041845d
mov byte [esp + 0x6a0], 1
mov edi, 0xbcb
push edi
lea ecx, [esp + 0x18]
call fcn.00401995
test eax, eax
jne 0x40e233
call fcn.0042ed90
call fcn.00433371
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.00430329
mov byte [esp + 0x6a0], 0
lea ecx, [esp + 0x14]
jmp 0x40e746
lea edi, [ebx + 0x1a8]
push edi
call fcn.0040284f
push ebx
call fcn.0040ea51
test al, al
jne 0x40e291
push ebx
call fcn.0040e782
test al, al
jne 0x40e291
lea eax, [ebx + 0x17c]
push eax
call fcn.004191f0
mov edx, str.InstallerData
mov ecx, edi
call fcn.004029b1
cmp eax, esi
je 0x40e2af
lea ecx, [ebx + 0x17c]
push ecx
mov ecx, eax
call fcn.00419430
mov edx, str.BrandExtender
mov ecx, edi
call fcn.004029b1
cmp eax, esi
je 0x40e31c
push eax
call fcn.004321f3
mov edi, eax
cmp edi, esi
jne 0x40e2d0
call fcn.0042ed90
mov ecx, edi
call fcn.00430012
mov dword [esp + 0x1c], eax
mov byte [esp + 0x6a0], 2
cmp eax, esi
jne 0x40e2ec
jmp fcn.0042e3af
push eax
push 0x478fdc
call fcn.0043009b
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
jne 0x40e304
call fcn.0042ed90
mov dword [ebx + 0x1d8], edi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x6a0], 0
mov dword [esp + 0x1c], esi
jmp 0x40e350
push 4
call fcn.004280fa
pop ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x6a0], 3
cmp eax, esi
je 0x40e33c
mov dword [eax], vtable.CDefaultBrandExtender.0
jmp 0x40e33e
xor eax, eax
mov byte [esp + 0x6a0], 0
cmp eax, esi
je 0x40e2e7
mov dword [ebx + 0x1d8], eax
mov eax, dword [ebx + 0x1d8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, esi
jl 0x40e74b
push str.SlimWare_Utilities_Inc
mov ecx, ebx
call fcn.004357d0
call fcn.00433371
mov eax, dword [eax + 0x10]
lea edi, [ebx + 0xb8]
push eax
mov ecx, edi
call fcn.0040160f
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.0041845d
mov byte [esp + 0x6a0], 4
push dword [edi]
lea eax, [esp + 0x30]
push str._sRegistration
push eax
call fcn.00402009
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.004089c2
test eax, eax
je 0x40e404
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.004089c2
test eax, eax
je 0x40e428
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.004110ed
test eax, eax
jne 0x40e454
cmp dword [esp + 0x20], edi
je 0x40e461
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.004110ed
test eax, eax
jne 0x40e48a
cmp dword [esp + 0x20], edi
je 0x40e49e
mov esi, 0x463224
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 0x40e4cb
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.004029b1
cmp eax, esi
je 0x40e565
push eax
call fcn.0043a7ce
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.004089c2
test eax, eax
je 0x40e520
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 0x40e554
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.00408911
push 0x465de4
lea ecx, [ebx + 0x17c]
call fcn.00419cf0
mov edi, eax
cmp edi, esi
jne 0x40e580
mov edi, 0x4637fc
mov edx, str.UnifiedLogging
lea ecx, [ebx + 0x1a8]
call fcn.004029b1
cmp eax, esi
je 0x40e5a9
push str.disable
push eax
call fcn.0043a0da
test eax, eax
pop ecx
pop ecx
je 0x40e6b7
push 8
call fcn.004280fa
pop ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x6a0], 8
cmp eax, esi
je 0x40e5db
lea eax, [ebx + 0xcc]
push eax
lea eax, [ebx + 0xdc]
push eax
push edi
push dword [esp + 0x30]
call fcn.0041513e
jmp 0x40e5dd
xor eax, eax
mov byte [esp + 0x6a0], 6
fld dword [0x468638]
sub esp, 0xc
fstp dword [esp + 8]
mov dword [ebx + 0x178], eax
fld dword [0x46863c]
lea eax, [esp + 0x60]
fstp dword [esp + 4]
fld dword [0x468640]
fstp dword [esp]
call fcn.0040fbe4
mov byte [esp + 0x6a0], 9
lea eax, [esp + 0x24]
push eax
call fcn.00416ac6
lea ecx, [esp + 0x1c]
mov dword [esp], str.NoneInstalled
call fcn.0040151c
mov byte [esp + 0x6a0], 0xa
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
or ecx, eax
je 0x40e66a
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.00402009
add esp, 0x14
push dword [esp + 0x18]
lea eax, [esp + 0x58]
push eax
mov ecx, str.msBclVersion
call fcn.00402a29
mov eax, dword [ebx + 0x178]
lea ecx, [esp + 0x54]
push ecx
push esi
push 0x4658b0
push eax
call fcn.00415325
mov byte [esp + 0x6a0], 9
lea ecx, [esp + 0x18]
call fcn.0041253c
mov byte [esp + 0x6a0], 6
lea eax, [esp + 0x54]
push eax
call fcn.0040fc2d
push esi
push esi
push esi
push esi
mov esi, 0x464198
push esi
call fcn.00434021
push eax
push esi
call fcn.0043009b
pop ecx
mov dword [ebx + 0xbc], eax
pop ecx
lea eax, [esp + 0x84]
push eax
call fcn.004090d0
mov byte [esp + 0x6a0], 0xb
lea eax, [esp + 0x84]
mov ecx, eax
mov dword [ebx + 0x20], eax
call fcn.00428bde
push dword [esp + 0x30]
call sub.gdiplus.dll_GdiplusShutdown
mov byte [esp + 0x6a0], 6
lea ecx, [esp + 0x84]
call fcn.004091bd
mov byte [esp + 0x6a0], 5
lea ecx, [esp + 0x1c]
call fcn.00408911
mov byte [esp + 0x6a0], 4
lea ecx, [esp + 0x14]
call fcn.00408911
mov byte [esp + 0x6a0], 0
lea ecx, [esp + 0x2c]
call fcn.0041253c
or dword [esp + 0x6a0], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.00435793
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.0043917f
mov esp, ebp
pop ebp
ret