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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45e4a8
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x47a030]
xor eax, esp
mov dword [esp + 0x650], eax
push ebx
push esi
push edi
mov eax, dword [0x47a030]
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 0x40fa47
push 0xffffffffffffffff
push 0x10
push 0xbd0
call fcn.00431c5a
jmp 0x40ff72
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.004370df
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.004371f1
mov ecx, ebx
call fcn.004367fe
push esi
push str.042B0D65_EF5B_4E3F_ADFF_86C726E4F053
push esi
lea ecx, [esp + 0x40]
call fcn.00437274
mov dword [esp + 0x670], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40fb15
lea ecx, [esp + 0x14]
call fcn.004089d6
mov byte [esp + 0x670], 1
mov edi, 0xbcb
push edi
lea ecx, [esp + 0x18]
call fcn.00401970
test eax, eax
jne 0x40fae3
call fcn.0043066a
call fcn.00434c59
push dword [eax + 0x10]
lea eax, [esp + 0x18]
push edi
push eax
call fcn.004013d7
add esp, 0xc
push esi
push esi
push dword [esp + 0x1c]
call fcn.00431c11
mov byte [esp + 0x670], 0
lea ecx, [esp + 0x14]
jmp 0x40ff5c
lea eax, [ebx + 0x1b0]
push eax
call fcn.00402835
push ebx
mov dword [ebx + 0xa4], edi
mov dword [ebx + 0xa8], esi
call fcn.004102ba
test al, al
jne 0x40fb5b
push ebx
call fcn.0040ff98
test al, al
jne 0x40fb5b
lea eax, [ebx + 0x184]
push eax
call fcn.00423910
cmp eax, esi
jl 0x40fb55
cmp eax, edi
jne 0x40fb5b
mov dword [ebx + 0xa4], esi
lea edi, [ebx + 0x1b0]
push str.InstallerData
mov ecx, edi
call fcn.00402997
cmp eax, esi
je 0x40fb7f
lea ecx, [ebx + 0x184]
push ecx
mov ecx, eax
call fcn.00423b50
push str.BrandExtender
mov ecx, edi
call fcn.00402997
cmp eax, esi
je 0x40fbec
push eax
call fcn.00433d7b
mov edi, eax
cmp edi, esi
jne 0x40fba0
call fcn.0043066a
mov ecx, edi
call fcn.00430e72
mov dword [esp + 0x18], eax
mov byte [esp + 0x670], 2
cmp eax, esi
jne 0x40fbbc
jmp fcn.0042fc8c
push eax
push 0x47b37c
call fcn.00430efb
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
jne 0x40fbd4
call fcn.0043066a
mov dword [ebx + 0x1e0], edi
mov dword [esp + 0x18], esi
mov byte [esp + 0x670], 0
mov dword [esp + 0x18], esi
jmp 0x40fc20
push 4
call fcn.004299fe
pop ecx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x670], 3
cmp eax, esi
je 0x40fc0c
mov dword [eax], vtable.CDefaultBrandExtender.0
jmp 0x40fc0e
xor eax, eax
mov byte [esp + 0x670], 0
cmp eax, esi
je 0x40fbb7
mov dword [ebx + 0x1e0], eax
mov eax, dword [ebx + 0x1e0]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, esi
jl 0x40ff61
push str.SlimWare_Utilities_Inc
mov ecx, ebx
call fcn.0043768b
call fcn.00434c59
mov eax, dword [eax + 0x10]
lea edi, [ebx + 0xc0]
push eax
mov ecx, edi
call fcn.00401625
lea ecx, [esp + 0x28]
call fcn.004089d6
mov byte [esp + 0x670], 4
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.2.24.1.0
call fcn.00401513
mov byte [esp + 0x674], 5
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edi
call fcn.0040524e
mov byte [esp + 0x678], 6
mov byte [esp + 0x678], 4
lea ecx, [esp + 0x30]
call fcn.004176cd
cmp eax, esi
pop ecx
pop ecx
mov ecx, dword [esp + 0x28]
jge 0x40fcb5
mov ecx, str.SLIMHTTP_1.1
call fcn.00426ac0
cmp eax, esi
jge 0x40fcd5
mov ecx, dword [0x480130]
cmp ecx, esi
je 0x40fcd5
push str.setDefaultUserAgent
push esi
push eax
push ecx
call fcn.00416a26
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.004089d6
mov byte [esp + 0x670], 7
push dword [edi]
lea eax, [esp + 0x28]
push str._sRegistration
push eax
call fcn.00401ff7
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.00409200
test eax, eax
je 0x40fd53
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.00409200
test eax, eax
je 0x40fd77
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.00412928
test eax, eax
jne 0x40fda3
cmp dword [esp + 0x20], edi
je 0x40fdb0
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.00412928
test eax, eax
jne 0x40fdd9
cmp dword [esp + 0x20], edi
je 0x40fded
mov esi, 0x4648a0
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 0x40fe1a
push esi
push esi
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
push str.BuildNumber
lea ecx, [ebx + 0x1b0]
call fcn.00402997
cmp eax, esi
je 0x40feb4
push eax
call fcn.0043bc85
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.00409200
test eax, eax
je 0x40fe6f
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 0x40fea3
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.004091a0
cmp dword [ebx + 0xa4], esi
je 0x40fec5
push esi
push esi
mov edi, ebx
call fcn.0040f795
push esi
push esi
push esi
push esi
mov esi, 0x465b18
push esi
call fcn.004359d1
push eax
push esi
call fcn.00430efb
pop ecx
mov dword [ebx + 0xc4], eax
pop ecx
lea eax, [esp + 0x54]
push eax
call fcn.004099ef
mov byte [esp + 0x670], 0xb
lea eax, [esp + 0x54]
mov ecx, eax
mov dword [ebx + 0x20], eax
call fcn.0042a4c7
push dword [esp + 0x30]
call sub.gdiplus.dll_GdiplusShutdown
mov byte [esp + 0x670], 9
lea ecx, [esp + 0x54]
call fcn.00409ae2
mov byte [esp + 0x670], 8
lea ecx, [esp + 0x18]
call fcn.004091a0
mov byte [esp + 0x670], 7
lea ecx, [esp + 0x14]
call fcn.004091a0
mov byte [esp + 0x670], 4
lea ecx, [esp + 0x24]
call fcn.00401b20
mov byte [esp + 0x670], 0
lea ecx, [esp + 0x28]
call fcn.00401b20
or dword [esp + 0x670], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.004372bc
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.0043aa68
mov esp, ebp
pop ebp
ret