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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x452e15
mov eax, dword fs:[0]
push eax
sub esp, 0x650
mov eax, dword [0x46cd10]
xor eax, esp
mov dword [esp + 0x648], eax
push ebx
push esi
push edi
mov eax, dword [0x46cd10]
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 0x40ddfe
push 0xffffffffffffffff
push 0x10
push 0xbd0
call fcn.0042e068
jmp 0x40e2ee
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.00432849
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.00430f7b
mov ecx, ebx
call fcn.004315f9
push esi
push str.042B0D65_EF5B_4E3F_ADFF_86C726E4F053
push esi
lea ecx, [esp + 0x38]
call fcn.00431d65
mov dword [esp + 0x668], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40decd
lea ecx, [esp + 0x10]
call fcn.00415256
mov byte [esp + 0x668], 1
mov edi, 0xbcb
push edi
lea ecx, [esp + 0x14]
call fcn.00401942
test eax, eax
jne 0x40de9b
call fcn.0042b4c9
call fcn.0042fa1b
push dword [eax + 0x10]
lea eax, [esp + 0x14]
push edi
push eax
call fcn.004013d4
add esp, 0xc
push esi
push esi
push dword [esp + 0x18]
call fcn.0042e01f
mov byte [esp + 0x668], 0
lea ecx, [esp + 0x10]
jmp 0x40e2d8
lea edi, [ebx + 0x1a8]
push edi
call fcn.004027b7
push ebx
call fcn.0040e314
test al, al
jne 0x40deef
lea eax, [ebx + 0x17c]
push eax
call fcn.00415ed0
mov edx, str.InstallerData
mov ecx, edi
call fcn.004028ed
cmp eax, esi
je 0x40df0d
lea ecx, [ebx + 0x17c]
push ecx
mov ecx, eax
call fcn.00416110
mov edx, str.BrandExtender
mov ecx, edi
call fcn.004028ed
cmp eax, esi
je 0x40df7a
push eax
call fcn.0042eb83
mov edi, eax
cmp edi, esi
jne 0x40df2e
call fcn.0042b4c9
mov ecx, edi
call fcn.0042bbda
mov dword [esp + 0x18], eax
mov byte [esp + 0x668], 2
cmp eax, esi
jne 0x40df4a
jmp fcn.0042aae5
push eax
push 0x46def0
call fcn.0042bc63
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
jne 0x40df62
call fcn.0042b4c9
mov dword [ebx + 0x1d8], edi
mov dword [esp + 0x18], esi
mov byte [esp + 0x668], 0
mov dword [esp + 0x18], esi
jmp 0x40dfae
push 4
call fcn.0042474a
pop ecx
mov dword [esp + 0x14], eax
mov byte [esp + 0x668], 3
cmp eax, esi
je 0x40df9a
mov dword [eax], vtable.CDefaultBrandExtender.0
jmp 0x40df9c
xor eax, eax
mov byte [esp + 0x668], 0
cmp eax, esi
je 0x40df45
mov dword [ebx + 0x1d8], eax
mov eax, dword [ebx + 0x1d8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, esi
jl 0x40e2dd
push str.SlimWare_Utilities_Inc
mov ecx, ebx
call fcn.00431dea
call fcn.0042fa1b
mov eax, dword [eax + 0x10]
lea edi, [ebx + 0xb8]
push eax
mov ecx, edi
call fcn.00401603
xor eax, eax
inc eax
lea ecx, [esp + 0x20]
mov dword [ebx + 0xa8], esi
mov dword [ebx + 0xac], eax
mov dword [ebx + 0xb0], eax
mov dword [ebx + 0xb4], eax
call fcn.00415256
mov byte [esp + 0x668], 4
push dword [edi]
lea eax, [esp + 0x24]
push str._sRegistration
push eax
call fcn.00401fbb
add esp, 0xc
mov dword [esp + 0x10], esi
mov byte [esp + 0x668], 5
mov dword [esp + 0x18], esi
mov byte [esp + 0x668], 6
push str.SOFTWARESlimWare_Utilities_Inc
push reloc.OLEAUT32.dll_SysReAllocString
lea edi, [esp + 0x18]
call fcn.0040840c
test eax, eax
je 0x40e062
push esi
push esi
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
push dword [esp + 0x20]
lea edi, [esp + 0x1c]
push dword [esp + 0x14]
call fcn.0040840c
test eax, eax
je 0x40e086
push esi
push esi
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 0x10
pop edi
lea ecx, [esp + 0x1c]
push ecx
lea eax, [ebx + 0xcc]
push eax
push str.MachineID
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x2c], edi
call fcn.0040ec8f
test eax, eax
jne 0x40e0b2
cmp dword [esp + 0x1c], edi
je 0x40e0bf
lea eax, [ebx + 0xcc]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea ecx, [esp + 0x1c]
push ecx
lea eax, [ebx + 0xdc]
push eax
push str.InstallationID
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x2c], edi
call fcn.0040ec8f
test eax, eax
jne 0x40e0e8
cmp dword [esp + 0x1c], edi
je 0x40e0fc
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 + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x40e129
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.004028ed
cmp eax, esi
je 0x40e1c3
push eax
call fcn.00437057
pop ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], esi
mov byte [esp + 0x668], 7
push dword [ebx + 0xb8]
lea edi, [esp + 0x28]
push dword [esp + 0x14]
call fcn.0040840c
test eax, eax
je 0x40e17e
push esi
push esi
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [esp + 0x14]
push 4
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 4
push esi
push str.BuildNumber
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x40e1b2
push esi
push esi
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov byte [esp + 0x668], 6
lea ecx, [esp + 0x24]
call fcn.00408448
push 0x45c2c4
lea ecx, [ebx + 0x17c]
call fcn.004169d0
mov edi, eax
cmp edi, esi
jne 0x40e1de
mov edi, 0x459e5c
mov edx, str.UnifiedLogging
lea ecx, [ebx + 0x1a8]
call fcn.004028ed
cmp eax, esi
je 0x40e203
push str.disable
push eax
call fcn.00436735
test eax, eax
pop ecx
pop ecx
je 0x40e252
push 8
call fcn.0042474a
pop ecx
mov dword [esp + 0x14], eax
mov byte [esp + 0x668], 8
cmp eax, esi
je 0x40e235
lea eax, [ebx + 0xcc]
push eax
lea eax, [ebx + 0xdc]
push eax
push edi
push dword [esp + 0x20]
call fcn.00412bb0
jmp 0x40e237
xor eax, eax
mov byte [esp + 0x668], 6
push esi
push 0x45bd90
mov ecx, eax
mov dword [ebx + 0x178], eax
call fcn.00412d7c
push esi
push esi
push esi
push esi
mov esi, 0x45a8a8
push esi
call fcn.004306cb
push eax
push esi
call fcn.0042bc63
pop ecx
mov dword [ebx + 0xbc], eax
pop ecx
lea eax, [esp + 0x4c]
push eax
call fcn.00408be2
mov byte [esp + 0x668], 9
lea eax, [esp + 0x4c]
mov ecx, eax
mov dword [ebx + 0x20], eax
call fcn.0042a453
push dword [esp + 0x28]
call sub.gdiplus.dll_GdiplusShutdown
mov byte [esp + 0x668], 6
lea ecx, [esp + 0x4c]
call fcn.00408ccf
mov byte [esp + 0x668], 5
lea ecx, [esp + 0x18]
call fcn.00408448
mov byte [esp + 0x668], 4
lea ecx, [esp + 0x10]
call fcn.00408448
mov byte [esp + 0x668], 0
lea ecx, [esp + 0x20]
call fcn.00410121
or dword [esp + 0x668], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00431dad
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.004357d1
mov esp, ebp
pop ebp
ret