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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44aeef
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x463e00]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push esi
push edi
mov eax, dword [0x463e00]
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 0x405b4c
push 0xffffffffffffffff
push 0x10
push 0xbd0
call fcn.0042517c
jmp 0x405eba
push 0x40533f
call fcn.00430bb1
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.0042a59e
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.0042a6b0
mov ecx, esi
call fcn.0042792a
push ebx
push str.042B0D65_EF5B_4E3F_ADFF_86C726E4F053
push ebx
lea ecx, [esp + 0x40]
call fcn.0042a6e9
mov dword [esp + 0x2a8], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405c25
lea ecx, [esp + 0x14]
call fcn.00401b10
mov byte [esp + 0x2a8], 1
mov esi, 0xbcb
push esi
lea ecx, [esp + 0x18]
call fcn.00401988
test eax, eax
jne 0x405bf4
call fcn.00424348
call fcn.0042715f
push dword [eax + 0x10]
lea eax, [esp + 0x18]
push esi
push eax
call fcn.0040140d
add esp, 0xc
push ebx
push ebx
push dword [esp + 0x1c]
call fcn.00425133
mov byte [esp + 0x2a8], bl
lea ecx, [esp + 0x14]
jmp 0x405ea4
push esi
call fcn.00405a72
call fcn.004057fc
push str.SlimWare_Utilities_Inc
mov ecx, esi
call fcn.00428096
call fcn.0042715f
mov eax, dword [eax + 0x10]
lea edi, [esi + 0xb8]
push eax
mov ecx, edi
call fcn.0040166e
or dword [esi + 0xac], 0xffffffff
xor eax, eax
inc eax
lea ecx, [esp + 0x24]
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], eax
mov dword [esi + 0x140], ebx
call fcn.00401b10
mov byte [esp + 0x2a8], 2
push dword [edi]
lea eax, [esp + 0x28]
push str._sRegistration
push eax
call fcn.004026c6
add esp, 0xc
mov dword [esp + 0x14], ebx
mov byte [esp + 0x2a8], 3
mov dword [esp + 0x20], ebx
mov byte [esp + 0x2a8], 4
push 0x2001f
push str.SOFTWARESlimWare_Utilities_Inc
push reloc.OLEAUT32.dll_SysReAllocString
lea edi, [esp + 0x20]
call fcn.00403ecd
test eax, eax
je 0x405cdc
push ebx
push ebx
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 0x2001f
push dword [esp + 0x28]
lea edi, [esp + 0x28]
push dword [esp + 0x1c]
call fcn.00403ecd
test eax, eax
je 0x405d05
push ebx
push ebx
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
lea ecx, [esp + 0x18]
push ecx
lea eax, [esi + 0x148]
push eax
mov edi, str.MachineID
push edi
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x28], 0x10
call fcn.00406237
test eax, eax
jne 0x405d34
cmp dword [esp + 0x18], 0x10
je 0x405d41
lea eax, [esi + 0x148]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea ecx, [esp + 0x18]
push ecx
lea eax, [esi + 0x158]
push eax
push str.InstallationID
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x28], 0x10
call fcn.00406237
test eax, eax
jne 0x405d6f
cmp dword [esp + 0x18], 0x10
je 0x405d7c
lea eax, [esi + 0x158]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x10
lea eax, [esi + 0x148]
push eax
push 3
push ebx
push edi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x405da6
push ebx
push ebx
push 1
push 0x40000015
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 4
call fcn.0041d4a6
pop ecx
mov dword [esp + 0x2c], eax
mov byte [esp + 0x2a8], 5
cmp eax, ebx
je 0x405dfb
lea eax, [esp + 0x28]
push eax
lea eax, [esi + 0x238]
push eax
call fcn.0040a839
mov byte [esp + 0x2a8], 6
mov eax, dword [eax]
lea ecx, [esi + 0x148]
push ecx
lea ecx, [esi + 0x158]
push ecx
push eax
push dword [esp + 0x38]
mov dword [esp + 0x2c], 1
call fcn.00406f89
jmp 0x405dfd
xor eax, eax
mov dword [esp + 0x2a8], 7
lea edi, [esi + 0x234]
mov dword [edi], eax
mov dword [esp + 0x2a8], 4
test byte [esp + 0x1c], 1
je 0x405e30
and dword [esp + 0x1c], 0xfffffffe
lea ecx, [esp + 0x28]
call fcn.00409dbd
mov edi, dword [edi]
push str.InstallerInvoked
push edi
call fcn.004070ec
lea eax, [esp + 0x54]
push eax
call fcn.00403fbf
mov byte [esp + 0x2a8], 8
lea eax, [esp + 0x54]
mov ecx, eax
mov dword [esi + 0x20], eax
call fcn.00423551
push dword [esp + 0x30]
call sub.gdiplus.dll_GdiplusShutdown
mov byte [esp + 0x2a8], 4
lea ecx, [esp + 0x54]
call fcn.00404095
mov byte [esp + 0x2a8], 3
lea ecx, [esp + 0x20]
call fcn.00403e7c
mov byte [esp + 0x2a8], 2
lea ecx, [esp + 0x14]
call fcn.00403e7c
mov byte [esp + 0x2a8], bl
lea ecx, [esp + 0x24]
call fcn.00409dbd
or dword [esp + 0x2a8], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.0042a731
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.0043013e
mov esp, ebp
pop ebp
ret