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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45eba0
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x47b040]
xor eax, esp
mov dword [esp + 0x650], eax
push ebx
push esi
push edi
mov eax, dword [0x47b040]
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 0x40fd2c
push 0xffffffffffffffff
push 0x10
push 0xbd0
call fcn.00432211
jmp 0x410257
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.00437abc
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.00437bce
mov ecx, ebx
call fcn.00436db8
push esi
push str.042B0D65_EF5B_4E3F_ADFF_86C726E4F053
push esi
lea ecx, [esp + 0x40]
call fcn.00437c51
mov dword [esp + 0x670], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40fdfa
lea ecx, [esp + 0x14]
call fcn.00401a8d
mov byte [esp + 0x670], 1
mov edi, 0xbcb
push edi
lea ecx, [esp + 0x18]
call fcn.00401942
test eax, eax
jne 0x40fdc8
call fcn.00430906
call fcn.00435210
push dword [eax + 0x10]
lea eax, [esp + 0x18]
push edi
push eax
call fcn.004013f6
add esp, 0xc
push esi
push esi
push dword [esp + 0x1c]
call fcn.004321c8
mov byte [esp + 0x670], 0
lea ecx, [esp + 0x14]
jmp 0x410241
lea eax, [ebx + 0x1b0]
push eax
call fcn.00402853
push ebx
mov dword [ebx + 0xa4], edi
mov dword [ebx + 0xa8], esi
call fcn.0041059f
test al, al
jne 0x40fe40
push ebx
call fcn.0041027d
test al, al
jne 0x40fe40
lea eax, [ebx + 0x184]
push eax
call fcn.00423ed0
cmp eax, esi
jl 0x40fe3a
cmp eax, edi
jne 0x40fe40
mov dword [ebx + 0xa4], esi
lea edi, [ebx + 0x1b0]
push str.InstallerData
mov ecx, edi
call fcn.004029b5
cmp eax, esi
je 0x40fe64
lea ecx, [ebx + 0x184]
push ecx
mov ecx, eax
call fcn.00424110
push str.BrandExtender
mov ecx, edi
call fcn.004029b5
cmp eax, esi
je 0x40fed1
push eax
call fcn.00434331
mov edi, eax
cmp edi, esi
jne 0x40fe85
call fcn.00430906
mov ecx, edi
call fcn.00431429
mov dword [esp + 0x18], eax
mov byte [esp + 0x670], 2
cmp eax, esi
jne 0x40fea1
jmp fcn.00430558
push eax
push 0x47c38c
call fcn.004314b2
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
jne 0x40feb9
call fcn.00430906
mov dword [ebx + 0x1e0], edi
mov dword [esp + 0x18], esi
mov byte [esp + 0x670], 0
mov dword [esp + 0x18], esi
jmp 0x40ff05
push 4
call fcn.00429fbe
pop ecx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x670], 3
cmp eax, esi
je 0x40fef1
mov dword [eax], vtable.CDefaultBrandExtender.0
jmp 0x40fef3
xor eax, eax
mov byte [esp + 0x670], 0
cmp eax, esi
je 0x40fe9c
mov dword [ebx + 0x1e0], eax
mov eax, dword [ebx + 0x1e0]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, esi
jl 0x410246
push str.SlimWare_Utilities_Inc
mov ecx, ebx
call fcn.00438068
call fcn.00435210
mov eax, dword [eax + 0x10]
lea edi, [ebx + 0xc0]
push eax
mov ecx, edi
call fcn.004015ad
lea ecx, [esp + 0x28]
call fcn.00401a8d
mov byte [esp + 0x670], 4
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4688e0
call fcn.00401518
mov byte [esp + 0x674], 5
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edi
call fcn.00405244
mov byte [esp + 0x678], 6
mov byte [esp + 0x678], 4
lea ecx, [esp + 0x30]
call fcn.00417ca6
cmp eax, esi
pop ecx
pop ecx
mov ecx, dword [esp + 0x28]
jge 0x40ff9a
mov ecx, str.SLIMHTTP_1.1
call fcn.004270d0
cmp eax, esi
jge 0x40ffba
mov ecx, dword [0x481158]
cmp ecx, esi
je 0x40ffba
push str.setDefaultUserAgent
push esi
push eax
push ecx
call fcn.00416fff
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.00401a8d
mov byte [esp + 0x670], 7
push dword [edi]
lea eax, [esp + 0x28]
push str._sRegistration
push eax
call fcn.00402014
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.0040918c
test eax, eax
je 0x410038
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.0040918c
test eax, eax
je 0x41005c
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.00412c09
test eax, eax
jne 0x410088
cmp dword [esp + 0x20], edi
je 0x410095
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.00412c09
test eax, eax
jne 0x4100be
cmp dword [esp + 0x20], edi
je 0x4100d2
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 0x4100ff
push esi
push esi
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
push str.BuildNumber
lea ecx, [ebx + 0x1b0]
call fcn.004029b5
cmp eax, esi
je 0x410199
push eax
call fcn.0043c240
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.0040918c
test eax, eax
je 0x410154
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 0x410188
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.0040912c
cmp dword [ebx + 0xa4], esi
je 0x4101aa
push esi
push esi
mov edi, ebx
call fcn.0040fa7a
push esi
push esi
push esi
push esi
mov esi, 0x466b40
push esi
call fcn.00435f8b
push eax
push esi
call fcn.004314b2
pop ecx
mov dword [ebx + 0xc4], eax
pop ecx
lea eax, [esp + 0x54]
push eax
call fcn.00409970
mov byte [esp + 0x670], 0xb
lea eax, [esp + 0x54]
mov ecx, eax
mov dword [ebx + 0x20], eax
call fcn.0042a76a
push dword [esp + 0x30]
call sub.gdiplus.dll_GdiplusShutdown
mov byte [esp + 0x670], 9
lea ecx, [esp + 0x54]
call fcn.00409a63
mov byte [esp + 0x670], 8
lea ecx, [esp + 0x18]
call fcn.0040912c
mov byte [esp + 0x670], 7
lea ecx, [esp + 0x14]
call fcn.0040912c
mov byte [esp + 0x670], 4
lea ecx, [esp + 0x24]
call fcn.004089bb
mov byte [esp + 0x670], 0
lea ecx, [esp + 0x28]
call fcn.004089bb
or dword [esp + 0x670], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.00437c99
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.0043b023
mov esp, ebp
pop ebp
ret