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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45ea43
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x650], eax
push ebx
push esi
push edi
mov eax, dword [0x47b038]
xor eax, esp
push eax
lea eax, [esp + 0x668]
mov dword fs:[0], eax
lea eax, [esp + 0x4cc]
push eax
push 0x202
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor esi, esi
cmp eax, esi
je 0x40fc77
push 0xffffffffffffffff
push 0x10
push 0xbd0
call fcn.00432134
jmp 0x4101a2
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.00437efd
push esi
lea eax, [esp + 0x48]
push eax
xor edi, edi
lea eax, [esp + 0x38]
inc edi
push eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
call sub.gdiplus.dll_GdiplusStartup
call fcn.0043800f
mov ecx, ebx
call fcn.004371fc
push esi
push str.042B0D65_EF5B_4E3F_ADFF_86C726E4F053
push esi
lea ecx, [esp + 0x40]
call fcn.00438092
mov dword [esp + 0x670], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40fd45
lea ecx, [esp + 0x14]
call fcn.0040897a
mov byte [esp + 0x670], 1
mov edi, 0xbcb
push edi
lea ecx, [esp + 0x18]
call fcn.0040191c
test eax, eax
jne 0x40fd13
call fcn.00430b52
call fcn.00435133
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.004320eb
mov byte [esp + 0x670], 0
lea ecx, [esp + 0x14]
jmp 0x41018c
lea eax, [ebx + 0x1b0]
push eax
call fcn.00402871
push ebx
mov dword [ebx + 0xa4], edi
mov dword [ebx + 0xa8], esi
call fcn.004104ea
test al, al
jne 0x40fd8b
push ebx
call fcn.004101c8
test al, al
jne 0x40fd8b
lea eax, [ebx + 0x184]
push eax
call fcn.00423df0
cmp eax, esi
jl 0x40fd85
cmp eax, edi
jne 0x40fd8b
mov dword [ebx + 0xa4], esi
lea edi, [ebx + 0x1b0]
push str.InstallerData
mov ecx, edi
call fcn.004029d3
cmp eax, esi
je 0x40fdaf
lea ecx, [ebx + 0x184]
push ecx
mov ecx, eax
call fcn.00424030
push str.BrandExtender
mov ecx, edi
call fcn.004029d3
cmp eax, esi
je 0x40fe1c
push eax
call fcn.0043429b
mov edi, eax
cmp edi, esi
jne 0x40fdd0
call fcn.00430b52
mov ecx, edi
call fcn.0043134c
mov dword [esp + 0x18], eax
mov byte [esp + 0x670], 2
cmp eax, esi
jne 0x40fdec
jmp fcn.004307a4
push eax
push 0x47c37c
call fcn.004313d5
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
jne 0x40fe04
call fcn.00430b52
mov dword [ebx + 0x1e0], edi
mov dword [esp + 0x18], esi
mov byte [esp + 0x670], 0
mov dword [esp + 0x18], esi
jmp 0x40fe50
push 4
call fcn.00429ede
pop ecx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x670], 3
cmp eax, esi
je 0x40fe3c
mov dword [eax], vtable.CDefaultBrandExtender.0
jmp 0x40fe3e
xor eax, eax
mov byte [esp + 0x670], 0
cmp eax, esi
je 0x40fde7
mov dword [ebx + 0x1e0], eax
mov eax, dword [ebx + 0x1e0]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, esi
jl 0x410191
push str.SlimWare_Utilities_Inc
mov ecx, ebx
call fcn.00436a6f
call fcn.00435133
mov eax, dword [eax + 0x10]
lea edi, [ebx + 0xc0]
push eax
mov ecx, edi
call fcn.0040157f
lea ecx, [esp + 0x28]
call fcn.0040897a
mov byte [esp + 0x670], 4
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4688a8
call fcn.004014ea
mov byte [esp + 0x674], 5
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edi
call fcn.004052fc
mov byte [esp + 0x678], 6
mov byte [esp + 0x678], 4
lea ecx, [esp + 0x30]
call fcn.00417bcf
cmp eax, esi
pop ecx
pop ecx
mov ecx, dword [esp + 0x28]
jge 0x40fee5
mov ecx, str.SLIMHTTP_1.1
call fcn.00426fe0
cmp eax, esi
jge 0x40ff05
mov ecx, dword [0x481138]
cmp ecx, esi
je 0x40ff05
push str.setDefaultUserAgent
push esi
push eax
push ecx
call fcn.00416f28
xor eax, eax
inc eax
lea ecx, [esp + 0x24]
mov dword [ebx + 0xb0], esi
mov dword [ebx + 0xb4], eax
mov dword [ebx + 0xb8], eax
mov dword [ebx + 0xbc], eax
call fcn.0040897a
mov byte [esp + 0x670], 7
push dword [edi]
lea eax, [esp + 0x28]
push str._sRegistration
push eax
call fcn.00402001
add esp, 0xc
mov dword [esp + 0x14], esi
mov byte [esp + 0x670], 8
mov dword [esp + 0x18], esi
mov byte [esp + 0x670], 9
push str.SOFTWARESlimWare_Utilities_Inc
push reloc.OLEAUT32.dll_SysReAllocString
lea edi, [esp + 0x1c]
call fcn.00409160
test eax, eax
je 0x40ff83
push esi
push esi
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
push dword [esp + 0x24]
lea edi, [esp + 0x1c]
push dword [esp + 0x18]
call fcn.00409160
test eax, eax
je 0x40ffa7
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 + 0xd4]
push eax
push str.MachineID
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x30], edi
call fcn.00412bf5
test eax, eax
jne 0x40ffd3
cmp dword [esp + 0x20], edi
je 0x40ffe0
lea eax, [ebx + 0xd4]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea ecx, [esp + 0x20]
push ecx
lea eax, [ebx + 0xe4]
push eax
push str.InstallationID
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x30], edi
call fcn.00412bf5
test eax, eax
jne 0x410009
cmp dword [esp + 0x20], edi
je 0x41001d
mov esi, 0x465898
lea edi, [ebx + 0xe4]
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 + 0xd4]
push eax
push 3
push esi
push str.MachineID
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x41004a
push esi
push esi
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
push str.BuildNumber
lea ecx, [ebx + 0x1b0]
call fcn.004029d3
cmp eax, esi
je 0x4100e4
push eax
call fcn.0043c10b
pop ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], esi
mov byte [esp + 0x670], 0xa
push dword [ebx + 0xc0]
lea edi, [esp + 0x30]
push dword [esp + 0x18]
call fcn.00409160
test eax, eax
je 0x41009f
push esi
push esi
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [esp + 0x1c]
push 4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 4
push esi
push str.BuildNumber
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x4100d3
push esi
push esi
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov byte [esp + 0x670], 9
lea ecx, [esp + 0x2c]
call fcn.00409100
cmp dword [ebx + 0xa4], esi
je 0x4100f5
push esi
push esi
mov edi, ebx
call fcn.0040f9c5
push esi
push esi
push esi
push esi
mov esi, 0x466b18
push esi
call fcn.00435eab
push eax
push esi
call fcn.004313d5
pop ecx
mov dword [ebx + 0xc4], eax
pop ecx
lea eax, [esp + 0x54]
push eax
call fcn.00409917
mov byte [esp + 0x670], 0xb
lea eax, [esp + 0x54]
mov ecx, eax
mov dword [ebx + 0x20], eax
call fcn.0042a9a4
push dword [esp + 0x30]
call sub.gdiplus.dll_GdiplusShutdown
mov byte [esp + 0x670], 9
lea ecx, [esp + 0x54]
call fcn.00409a0a
mov byte [esp + 0x670], 8
lea ecx, [esp + 0x18]
call fcn.00409100
mov byte [esp + 0x670], 7
lea ecx, [esp + 0x14]
call fcn.00409100
mov byte [esp + 0x670], 4
lea ecx, [esp + 0x24]
call fcn.00401b2a
mov byte [esp + 0x670], 0
lea ecx, [esp + 0x28]
call fcn.00401b2a
or dword [esp + 0x670], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.004380da
xor eax, eax
mov ecx, dword [esp + 0x668]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x650]
xor ecx, esp
call fcn.0043af43
mov esp, ebp
pop ebp
ret