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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45e432
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 0x40f874
push 0xffffffffffffffff
push 0x10
push 0xbd0
call fcn.00431bf6
jmp 0x40fd98
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.00437207
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.00437319
mov ecx, ebx
call fcn.00436929
push esi
push str.042B0D65_EF5B_4E3F_ADFF_86C726E4F053
push esi
lea ecx, [esp + 0x40]
call fcn.0043739c
mov dword [esp + 0x670], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40f942
lea ecx, [esp + 0x14]
call fcn.004088aa
mov byte [esp + 0x670], 1
mov edi, 0xbcb
push edi
lea ecx, [esp + 0x18]
call fcn.00401991
test eax, eax
jne 0x40f910
call fcn.00430606
call fcn.00434bf5
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.00431bad
mov byte [esp + 0x670], 0
lea ecx, [esp + 0x14]
jmp 0x40fd82
lea eax, [ebx + 0x1ac]
push eax
call fcn.00402840
push ebx
mov dword [ebx + 0xa4], edi
call fcn.004100e0
test al, al
jne 0x40f982
push ebx
call fcn.0040fdbe
test al, al
jne 0x40f982
lea eax, [ebx + 0x180]
push eax
call fcn.00423890
cmp eax, esi
jl 0x40f97c
cmp eax, edi
jne 0x40f982
mov dword [ebx + 0xa4], esi
lea edi, [ebx + 0x1ac]
push str.InstallerData
mov ecx, edi
call fcn.004029a2
cmp eax, esi
je 0x40f9a6
lea ecx, [ebx + 0x180]
push ecx
mov ecx, eax
call fcn.00423ad0
push str.BrandExtender
mov ecx, edi
call fcn.004029a2
cmp eax, esi
je 0x40fa13
push eax
call fcn.00433d17
mov edi, eax
cmp edi, esi
jne 0x40f9c7
call fcn.00430606
mov ecx, edi
call fcn.00430e0e
mov dword [esp + 0x18], eax
mov byte [esp + 0x670], 2
cmp eax, esi
jne 0x40f9e3
jmp fcn.0042fc28
push eax
push 0x47b37c
call fcn.00430e97
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
jne 0x40f9fb
call fcn.00430606
mov dword [ebx + 0x1dc], edi
mov dword [esp + 0x18], esi
mov byte [esp + 0x670], 0
mov dword [esp + 0x18], esi
jmp 0x40fa47
push 4
call fcn.0042999e
pop ecx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x670], 3
cmp eax, esi
je 0x40fa33
mov dword [eax], vtable.CDefaultBrandExtender.0
jmp 0x40fa35
xor eax, eax
mov byte [esp + 0x670], 0
cmp eax, esi
je 0x40f9de
mov dword [ebx + 0x1dc], eax
mov eax, dword [ebx + 0x1dc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, esi
jl 0x40fd87
push str.SlimWare_Utilities_Inc
mov ecx, ebx
call fcn.004377b3
call fcn.00434bf5
mov eax, dword [eax + 0x10]
lea edi, [ebx + 0xbc]
push eax
mov ecx, edi
call fcn.00401631
lea ecx, [esp + 0x28]
call fcn.004088aa
mov byte [esp + 0x670], 4
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x467778
call fcn.0040151f
mov byte [esp + 0x674], 5
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edi
call fcn.0040524f
mov byte [esp + 0x678], 6
mov byte [esp + 0x678], 4
lea ecx, [esp + 0x30]
call fcn.0041764b
cmp eax, esi
pop ecx
pop ecx
mov ecx, dword [esp + 0x28]
jge 0x40fadc
mov ecx, str.SLIMHTTP_1.1
call fcn.00426a60
cmp eax, esi
jge 0x40fafc
mov ecx, dword [0x48012c]
cmp ecx, esi
je 0x40fafc
push str.setDefaultUserAgent
push esi
push eax
push ecx
call fcn.004169a4
xor eax, eax
inc eax
lea ecx, [esp + 0x24]
mov dword [ebx + 0xac], esi
mov dword [ebx + 0xb0], eax
mov dword [ebx + 0xb4], eax
mov dword [ebx + 0xb8], eax
call fcn.004088aa
mov byte [esp + 0x670], 7
push dword [edi]
lea eax, [esp + 0x28]
push str._sRegistration
push eax
call fcn.00401fdb
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.004090c5
test eax, eax
je 0x40fb7a
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.004090c5
test eax, eax
je 0x40fb9e
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.0041274d
test eax, eax
jne 0x40fbca
cmp dword [esp + 0x20], edi
je 0x40fbd7
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.0041274d
test eax, eax
jne 0x40fc00
cmp dword [esp + 0x20], edi
je 0x40fc14
mov esi, 0x4648a0
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 0x40fc41
push esi
push esi
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
push str.BuildNumber
lea ecx, [ebx + 0x1ac]
call fcn.004029a2
cmp eax, esi
je 0x40fcdb
push eax
call fcn.0043bbcd
pop ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], esi
mov byte [esp + 0x670], 0xa
push dword [ebx + 0xbc]
lea edi, [esp + 0x30]
push dword [esp + 0x18]
call fcn.004090c5
test eax, eax
je 0x40fc96
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 0x40fcca
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.00409065
cmp dword [ebx + 0xa4], esi
je 0x40fceb
push esi
mov ecx, ebx
call fcn.0040f647
push esi
push esi
push esi
push esi
mov esi, 0x465a20
push esi
call fcn.0043596d
push eax
push esi
call fcn.00430e97
pop ecx
mov dword [ebx + 0xc0], eax
pop ecx
lea eax, [esp + 0x54]
push eax
call fcn.004098b4
mov byte [esp + 0x670], 0xb
lea eax, [esp + 0x54]
mov ecx, eax
mov dword [ebx + 0x20], eax
call fcn.0042a467
push dword [esp + 0x30]
call sub.gdiplus.dll_GdiplusShutdown
mov byte [esp + 0x670], 9
lea ecx, [esp + 0x54]
call fcn.004099a7
mov byte [esp + 0x670], 8
lea ecx, [esp + 0x18]
call fcn.00409065
mov byte [esp + 0x670], 7
lea ecx, [esp + 0x14]
call fcn.00409065
mov byte [esp + 0x670], 4
lea ecx, [esp + 0x24]
call fcn.004088d4
mov byte [esp + 0x670], 0
lea ecx, [esp + 0x28]
call fcn.004088d4
or dword [esp + 0x670], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.004373e4
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.0043aa05
mov esp, ebp
pop ebp
ret