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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45c7f1
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x477fc0]
xor eax, esp
mov dword [esp + 0x650], eax
push ebx
push esi
push edi
mov eax, dword [0x477fc0]
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 0x40f700
push 0xffffffffffffffff
push 0x10
push 0xbd0
call fcn.00430610
jmp 0x40fc26
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.00436261
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
mov ecx, ebx
call fcn.00435229
push esi
push str.042B0D65_EF5B_4E3F_ADFF_86C726E4F053
push esi
lea ecx, [esp + 0x40]
call fcn.00434a1a
mov dword [esp + 0x670], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40f7c9
lea ecx, [esp + 0x14]
call fcn.00401a99
mov byte [esp + 0x670], 1
mov edi, 0xbcb
push edi
lea ecx, [esp + 0x18]
call fcn.0040194e
test eax, eax
jne 0x40f797
call fcn.0042ed20
call fcn.00433676
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.004305c7
mov byte [esp + 0x670], 0
lea ecx, [esp + 0x14]
jmp 0x40fc10
lea eax, [ebx + 0x1ac]
push eax
call fcn.004028a3
push ebx
mov dword [ebx + 0xa4], edi
mov dword [ebx + 0xa8], esi
call fcn.0040ff6e
test al, al
jne 0x40f80f
push ebx
call fcn.0040fc4c
test al, al
jne 0x40f80f
lea eax, [ebx + 0x180]
push eax
call fcn.004222d0
cmp eax, esi
jl 0x40f809
cmp eax, edi
jne 0x40f80f
mov dword [ebx + 0xa4], esi
lea edi, [ebx + 0x1ac]
push str.InstallerData
mov ecx, edi
call fcn.00402a05
cmp eax, esi
je 0x40f833
lea ecx, [ebx + 0x180]
push ecx
mov ecx, eax
call fcn.00422510
push str.BrandExtender
mov ecx, edi
call fcn.00402a05
cmp eax, esi
je 0x40f8a0
push eax
call fcn.0043278a
mov edi, eax
cmp edi, esi
jne 0x40f854
call fcn.0042ed20
mov ecx, edi
call fcn.0042f828
mov dword [esp + 0x18], eax
mov byte [esp + 0x670], 2
cmp eax, esi
jne 0x40f870
jmp fcn.0042e972
push eax
push 0x47930c
call fcn.0042f8b1
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
jne 0x40f888
call fcn.0042ed20
mov dword [ebx + 0x1dc], edi
mov dword [esp + 0x18], esi
mov byte [esp + 0x670], 0
mov dword [esp + 0x18], esi
jmp 0x40f8d4
push 4
call fcn.004283be
pop ecx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x670], 3
cmp eax, esi
je 0x40f8c0
mov dword [eax], vtable.CDefaultBrandExtender.0
jmp 0x40f8c2
xor eax, eax
mov byte [esp + 0x670], 0
cmp eax, esi
je 0x40f86b
mov dword [ebx + 0x1dc], eax
mov eax, dword [ebx + 0x1dc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, esi
jl 0x40fc15
push str.SlimWare_Utilities_Inc
mov ecx, ebx
call fcn.00434a9f
call fcn.00433676
mov eax, dword [eax + 0x10]
lea edi, [ebx + 0xc0]
push eax
mov ecx, edi
call fcn.004015d3
lea ecx, [esp + 0x28]
call fcn.00401a99
mov byte [esp + 0x670], 4
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x466620
call fcn.0040153e
mov byte [esp + 0x674], 5
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edi
call fcn.004052c6
mov byte [esp + 0x678], 6
mov byte [esp + 0x678], 4
lea ecx, [esp + 0x30]
call fcn.0041698f
cmp eax, esi
pop ecx
pop ecx
mov ecx, dword [esp + 0x28]
jge 0x40f969
mov ecx, str.SLIMHTTP_1.1
call fcn.004254d0
cmp eax, esi
jge 0x40f989
mov ecx, dword [0x47e044]
cmp ecx, esi
je 0x40f989
push str.setDefaultUserAgent
push esi
push eax
push ecx
call fcn.00415b84
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.00401a99
mov byte [esp + 0x670], 7
push dword [edi]
lea eax, [esp + 0x28]
push str._sRegistration
push eax
call fcn.00402048
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.0040932e
test eax, eax
je 0x40fa07
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.0040932e
test eax, eax
je 0x40fa2b
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 + 0xd0]
push eax
push str.MachineID
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x30], edi
call fcn.00412614
test eax, eax
jne 0x40fa57
cmp dword [esp + 0x20], edi
je 0x40fa64
lea eax, [ebx + 0xd0]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea ecx, [esp + 0x20]
push ecx
lea eax, [ebx + 0xe0]
push eax
push str.InstallationID
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x30], edi
call fcn.00412614
test eax, eax
jne 0x40fa8d
cmp dword [esp + 0x20], edi
je 0x40faa1
mov esi, 0x4637f8
lea edi, [ebx + 0xe0]
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 + 0xd0]
push eax
push 3
push esi
push str.MachineID
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x40face
push esi
push esi
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
push str.BuildNumber
lea ecx, [ebx + 0x1ac]
call fcn.00402a05
cmp eax, esi
je 0x40fb68
push eax
call fcn.0043a2df
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.0040932e
test eax, eax
je 0x40fb23
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 0x40fb57
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.004092ce
push esi
push esi
push esi
push esi
mov edi, 0x464a80
push edi
call fcn.004343ee
push eax
push edi
call fcn.0042f8b1
cmp dword [ebx + 0xa4], esi
pop ecx
pop ecx
mov dword [ebx + 0xc4], eax
je 0x40fb97
push esi
push esi
mov edi, ebx
call fcn.0040f42b
lea eax, [esp + 0x54]
push eax
call fcn.00409a6a
mov byte [esp + 0x670], 0xb
lea eax, [esp + 0x54]
mov ecx, eax
mov dword [ebx + 0x20], eax
call fcn.00428b69
push dword [esp + 0x30]
call sub.gdiplus.dll_GdiplusShutdown
mov byte [esp + 0x670], 9
lea ecx, [esp + 0x54]
call fcn.00409b5d
mov byte [esp + 0x670], 8
lea ecx, [esp + 0x18]
call fcn.004092ce
mov byte [esp + 0x670], 7
lea ecx, [esp + 0x14]
call fcn.004092ce
mov byte [esp + 0x670], 4
lea ecx, [esp + 0x24]
call fcn.00401b86
mov byte [esp + 0x670], 0
lea ecx, [esp + 0x28]
call fcn.00401b86
or dword [esp + 0x670], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.00434a62
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.004390c2
mov esp, ebp
pop ebp
ret