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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x449491
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x460df0]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push esi
push edi
mov eax, dword [0x460df0]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
lea eax, [esp + 0x104]
push eax
xor ebx, ebx
push 0x202
mov esi, ecx
mov dword [esp + 0x24], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
je 0x4048ce
push 0xffffffffffffffff
push 0x10
push 0xbd0
call fcn.00424396
jmp 0x404c4a
push 0x4041ad
call fcn.0042f1a5
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.00428da5
push ebx
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call sub.gdiplus.dll_GdiplusStartup
call fcn.00425e8f
mov ecx, esi
call fcn.004264de
push ebx
push str.042B0D65_EF5B_4E3F_ADFF_86C726E4F053
push ebx
lea ecx, [esp + 0x40]
call fcn.00426c4a
mov dword [esp + 0x2a8], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4049a7
lea ecx, [esp + 0x14]
call fcn.00401b22
mov byte [esp + 0x2a8], 1
mov esi, 0xbcb
push esi
lea ecx, [esp + 0x18]
call fcn.00401988
test eax, eax
jne 0x404976
call fcn.00422c67
call fcn.0042581c
push dword [eax + 0x10]
lea eax, [esp + 0x18]
push esi
push eax
call fcn.0040140f
add esp, 0xc
push ebx
push ebx
push dword [esp + 0x1c]
call fcn.0042434d
mov byte [esp + 0x2a8], bl
lea ecx, [esp + 0x14]
jmp 0x404c34
push esi
call fcn.004047f4
mov edi, esi
call fcn.0040457c
push str.SlimWare_Utilities_Inc
mov ecx, esi
call fcn.00426ccf
call fcn.0042581c
mov eax, dword [eax + 0x10]
lea edi, [esi + 0xb8]
push eax
mov ecx, edi
call fcn.0040165e
xor eax, eax
inc eax
lea ecx, [esp + 0x24]
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], eax
call fcn.00401b22
mov byte [esp + 0x2a8], 2
push dword [edi]
lea eax, [esp + 0x28]
push str._sRegistration
push eax
call fcn.00402b41
add esp, 0xc
mov dword [esp + 0x14], ebx
mov byte [esp + 0x2a8], 3
mov dword [esp + 0x20], ebx
mov byte [esp + 0x2a8], 4
push str.SOFTWARESlimWare_Utilities_Inc
push reloc.OLEAUT32.dll_SysReAllocString
lea edi, [esp + 0x1c]
call fcn.00402b8e
test eax, eax
je 0x404a54
push ebx
push ebx
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.00402b8e
test eax, eax
je 0x404a78
push ebx
push ebx
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
lea ecx, [esp + 0x18]
push ecx
lea eax, [esi + 0xc8]
push eax
mov edi, str.MachineID
push edi
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x28], 0x10
call fcn.00404f46
test eax, eax
jne 0x404aa7
cmp dword [esp + 0x18], 0x10
je 0x404ab4
lea eax, [esi + 0xc8]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea ecx, [esp + 0x18]
push ecx
lea eax, [esi + 0xd8]
push eax
push str.InstallationID
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x28], 0x10
call fcn.00404f46
test eax, eax
jne 0x404ae2
cmp dword [esp + 0x18], 0x10
je 0x404aef
lea eax, [esi + 0xd8]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x10
lea eax, [esi + 0xc8]
push eax
push 3
push ebx
push edi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x404b19
push ebx
push ebx
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 4
call fcn.0041bae6
pop ecx
mov dword [esp + 0x2c], eax
mov byte [esp + 0x2a8], 5
cmp eax, ebx
je 0x404b6d
lea eax, [esp + 0x28]
push eax
lea ecx, [esi + 0x1b8]
call fcn.00409890
mov byte [esp + 0x2a8], 6
mov eax, dword [eax]
lea ecx, [esi + 0xc8]
push ecx
lea ecx, [esi + 0xd8]
push ecx
push eax
push dword [esp + 0x38]
mov dword [esp + 0x2c], 1
call fcn.00405f2b
jmp 0x404b6f
xor eax, eax
mov dword [esp + 0x2a8], 7
lea edi, [esi + 0x1b4]
mov dword [edi], eax
mov dword [esp + 0x2a8], 4
test byte [esp + 0x1c], 1
je 0x404ba2
and dword [esp + 0x1c], 0xfffffffe
lea ecx, [esp + 0x28]
call fcn.00401b59
mov edi, dword [edi]
push str.InstallerInvoked
push edi
call fcn.0040608e
push ebx
push ebx
push ebx
push ebx
mov edi, 0x453674
push edi
call fcn.004278d7
push eax
push edi
call fcn.00423637
pop ecx
mov dword [esi + 0xbc], eax
pop ecx
lea eax, [esp + 0x54]
push eax
call fcn.00403056
mov byte [esp + 0x2a8], 8
lea eax, [esp + 0x54]
mov ecx, eax
mov dword [esi + 0x20], eax
call fcn.0041c50a
push dword [esp + 0x30]
call sub.gdiplus.dll_GdiplusShutdown
mov byte [esp + 0x2a8], 4
lea ecx, [esp + 0x54]
call fcn.0040312c
mov byte [esp + 0x2a8], 3
lea ecx, [esp + 0x20]
call fcn.00402bca
mov byte [esp + 0x2a8], 2
lea ecx, [esp + 0x14]
call fcn.00402bca
mov byte [esp + 0x2a8], bl
lea ecx, [esp + 0x24]
call fcn.00401b59
or dword [esp + 0x2a8], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.00426c92
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.0042e0d5
mov esp, ebp
pop ebp
ret