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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44a1c8
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x461de0]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push esi
push edi
mov eax, dword [0x461de0]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
lea eax, [esp + 0x104]
push eax
xor esi, esi
push 0x202
mov ebx, ecx
mov dword [esp + 0x24], esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, esi
je 0x4048e8
push 0xffffffffffffffff
push 0x10
push 0xbd0
call fcn.00424f4f
jmp 0x404c61
push 0x404062
call fcn.0043109b
pop ecx
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.004298a4
push esi
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
call sub.gdiplus.dll_GdiplusStartup
call fcn.004299b6
mov ecx, ebx
call fcn.00427713
push esi
push str.042B0D65_EF5B_4E3F_ADFF_86C726E4F053
push esi
lea ecx, [esp + 0x40]
call fcn.00426595
mov dword [esp + 0x2a8], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4049c2
lea ecx, [esp + 0x14]
call fcn.00401b37
mov byte [esp + 0x2a8], 1
mov edi, 0xbcb
push edi
lea ecx, [esp + 0x18]
call fcn.0040197e
test eax, eax
jne 0x404990
call fcn.004235cc
call fcn.004263d5
push dword [eax + 0x10]
lea eax, [esp + 0x18]
push edi
push eax
call fcn.0040140f
add esp, 0xc
push esi
push esi
push dword [esp + 0x1c]
call fcn.00424f06
mov byte [esp + 0x2a8], 0
lea ecx, [esp + 0x14]
jmp 0x404c4b
push ebx
call fcn.0040480e
mov edi, ebx
call fcn.00404575
push str.SlimWare_Utilities_Inc
mov ecx, ebx
call fcn.00427e7f
call fcn.004263d5
mov eax, dword [eax + 0x10]
lea edi, [ebx + 0xb8]
push eax
mov ecx, edi
call fcn.0040163f
xor eax, eax
inc eax
lea ecx, [esp + 0x24]
mov dword [ebx + 0xa8], esi
mov dword [ebx + 0xac], eax
mov dword [ebx + 0xb0], eax
mov dword [ebx + 0xb4], eax
call fcn.00401b37
mov byte [esp + 0x2a8], 2
push dword [edi]
lea eax, [esp + 0x28]
push str._sRegistration
push eax
call fcn.00402c6b
add esp, 0xc
mov dword [esp + 0x14], esi
mov byte [esp + 0x2a8], 3
mov dword [esp + 0x20], esi
mov byte [esp + 0x2a8], 4
push str.SOFTWARESlimWare_Utilities_Inc
push reloc.OLEAUT32.dll_SysReAllocString
lea edi, [esp + 0x1c]
call fcn.00404fbe
test eax, eax
je 0x404a6f
push esi
push esi
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
push dword [esp + 0x24]
lea edi, [esp + 0x24]
push dword [esp + 0x18]
call fcn.00404fbe
test eax, eax
je 0x404a93
push esi
push esi
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 0x10
pop edi
lea ecx, [esp + 0x18]
push ecx
lea eax, [ebx + 0xcc]
push eax
push str.MachineID
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x28], edi
call fcn.00404f5d
test eax, eax
jne 0x404abf
cmp dword [esp + 0x18], edi
je 0x404acc
lea eax, [ebx + 0xcc]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea ecx, [esp + 0x18]
push ecx
lea eax, [ebx + 0xdc]
push eax
push str.InstallationID
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x28], edi
call fcn.00404f5d
test eax, eax
jne 0x404af5
cmp dword [esp + 0x18], edi
je 0x404b09
mov esi, 0x450cac
lea edi, [ebx + 0xdc]
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
xor esi, esi
pop edi
push edi
lea edi, [ebx + 0xcc]
push edi
push 3
push esi
push str.MachineID
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x404b36
push esi
push esi
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 8
call fcn.0041c6f6
pop ecx
mov dword [esp + 0x2c], eax
mov byte [esp + 0x2a8], 5
cmp eax, esi
je 0x404b84
lea eax, [esp + 0x28]
push eax
lea ecx, [ebx + 0x1bc]
call fcn.00409c5d
mov byte [esp + 0x2a8], 6
mov eax, dword [eax]
push edi
lea ecx, [ebx + 0xdc]
push ecx
push eax
push dword [esp + 0x38]
mov dword [esp + 0x2c], 1
call fcn.00405fa6
jmp 0x404b86
xor eax, eax
mov dword [esp + 0x2a8], 7
lea edi, [ebx + 0x1b8]
mov dword [edi], eax
mov dword [esp + 0x2a8], 4
test byte [esp + 0x1c], 1
je 0x404bb9
and dword [esp + 0x1c], 0xfffffffe
lea ecx, [esp + 0x28]
call fcn.00401b6e
mov ecx, dword [edi]
push str.InstallerInvoked
call fcn.00406161
push esi
push esi
push esi
push esi
mov esi, 0x454acc
push esi
call fcn.00427093
push eax
push esi
call fcn.004241f0
pop ecx
mov dword [ebx + 0xbc], eax
pop ecx
lea eax, [esp + 0x54]
push eax
call fcn.00402f0c
mov byte [esp + 0x2a8], 8
lea eax, [esp + 0x54]
mov ecx, eax
mov dword [ebx + 0x20], eax
call fcn.00422735
push dword [esp + 0x30]
call sub.gdiplus.dll_GdiplusShutdown
mov byte [esp + 0x2a8], 4
lea ecx, [esp + 0x54]
call fcn.00402fe2
mov byte [esp + 0x2a8], 3
lea ecx, [esp + 0x20]
call fcn.00402c4f
mov byte [esp + 0x2a8], 2
lea ecx, [esp + 0x14]
call fcn.00402c4f
mov byte [esp + 0x2a8], 0
lea ecx, [esp + 0x24]
call fcn.00401b6e
or dword [esp + 0x2a8], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.004265dd
xor eax, eax
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.0042f39b
mov esp, ebp
pop ebp
ret