Function at 0x478ad8
Capabilities:
Create directory
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52e30d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5937d0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
push ecx
mov eax, esp
mov dword [esp + 0x30], esp
lea ebx, [esi + 0x1c4]
push ebx
push str.__Installing_desktop_icon:
push eax
call fcn.00404205
add esp, 0xc
xor edi, edi
mov dword [esp + 0x4c], edi
mov eax, dword [esi]
or dword [esp + 0x4c], 0xffffffff
mov ecx, esi
call dword [eax + 0x20c]
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [ebx]
push str._:_____
push eax
call fcn.004f7d0b
pop ecx
pop ecx
cmp eax, edi
je 0x478be9
sub eax, dword [ebx]
cmp eax, edi
jle 0x478be9
push 0x51
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.CIQOfferDesktopIcon::InstallIcon
call fcn.00401769
inc edi
mov dword [esp + 0x50], edi
push str.Icon_caption_is_invalid:
lea ecx, [esp + 0x34]
call fcn.00401769
mov byte [esp + 0x50], 2
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push ebx
push eax
push ecx
call fcn.0040414a
mov byte [esp + 0x60], 3
add esp, 8
mov ecx, esp
mov dword [esp + 0x44], esp
push str.badiconcaption
call fcn.00401769
mov byte [esp + 0x58], 4
mov eax, dword [esi]
push edi
mov byte [esp + 0x5c], 5
mov ecx, esi
call dword [eax + 0x1b0]
or dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00401898
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
call fcn.00478716
mov dword [esp + 0x48], 6
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.0040184e
mov byte [esp + 0x4c], 7
mov byte [esp + 0x4c], 6
call fcn.0041260e
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
cmp eax, edi
jne 0x478cf6
push edi
push dword [esp + 0x14]
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x478c43
call ebx
mov dword [esp + 0x28], eax
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.0040184e
mov byte [esp + 0x4c], 8
mov byte [esp + 0x4c], 6
call fcn.0041260e
pop ecx
cmp eax, edi
jne 0x478cf6
push 0x64
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.CIQOfferDesktopIcon::InstallIcon
call fcn.00401769
mov byte [esp + 0x50], 9
push str.Create_icon_folder_failed:
lea ecx, [esp + 0x38]
call fcn.00401769
mov byte [esp + 0x50], 0xa
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
call fcn.0040414a
mov byte [esp + 0x60], 0xb
add esp, 8
mov ecx, esp
mov dword [esp + 0x48], esp
push str.createicondirfailed
call fcn.00401769
mov byte [esp + 0x58], 0xc
mov eax, dword [esi]
push dword [esp + 0x38]
mov byte [esp + 0x5c], 0xd
mov ecx, esi
call dword [eax + 0x1b0]
mov byte [esp + 0x48], 6
lea ecx, [esp + 0x2c]
call fcn.00401898
or dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x478bcf
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.004785eb
mov byte [esp + 0x48], 0xe
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.0040184e
mov byte [esp + 0x4c], 0xf
mov byte [esp + 0x4c], 0xe
call fcn.00412566
pop ecx
cmp eax, edi
je 0x478e50
mov dword [esi + 0x1c8], 1
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00478654
mov byte [esp + 0x48], 0x17
push dword [esp + 0x18]
mov eax, dword [esi + 0x1c0]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push eax
push 0x543614
push str.InternetShortcut
call ebx
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0047858c
mov byte [esp + 0x48], 0x18
push dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x20]
call fcn.00413c5e
mov edi, eax
pop ecx
pop ecx
test edi, edi
jge 0x478f1e
push 0x7f
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.CIQOfferDesktopIcon::InstallIcon
call fcn.00401769
mov byte [esp + 0x50], 0x19
push str.Create_icon_shortcut_failed:
lea ecx, [esp + 0x38]
call fcn.00401769
mov byte [esp + 0x50], 0x1a
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
lea edx, [esp + 0x28]
push edx
push eax
push ecx
call fcn.0040414a
mov byte [esp + 0x60], 0x1b
add esp, 8
mov ecx, esp
mov dword [esp + 0x40], esp
push str.createiconshortcutfailed
call fcn.00401769
mov byte [esp + 0x58], 0x1c
mov eax, dword [esi]
push edi
mov byte [esp + 0x5c], 0x1d
mov ecx, esi
call dword [eax + 0x1b0]
mov byte [esp + 0x48], 0x18
lea ecx, [esp + 0x2c]
call fcn.00401898
xor esi, esi
mov byte [esp + 0x48], 0x17
lea ecx, [esp + 0x1c]
call fcn.00401898
mov byte [esp + 0x48], 0xe
lea ecx, [esp + 0x18]
call fcn.00401898
mov byte [esp + 0x48], 6
lea ecx, [esp + 0x14]
call fcn.00401898
or dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00401898
mov eax, esi
jmp 0x478bd6
push 1
push edi
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call fcn.0040184e
mov byte [esp + 0x54], 0x10
mov eax, dword [esi]
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push ecx
mov ecx, esi
call dword [eax + 0x254]
mov byte [esp + 0x58], 0x11
mov byte [esp + 0x58], 0xe
call fcn.0041318f
add esp, 0x10
cmp eax, edi
jne 0x478d3a
push 0x72
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.CIQOfferDesktopIcon::InstallIcon
call fcn.00401769
mov byte [esp + 0x50], 0x12
push str.Copy_icon_file_failed:
lea ecx, [esp + 0x38]
call fcn.00401769
mov byte [esp + 0x50], 0x13
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
lea edx, [esp + 0x20]
push edx
push eax
push ecx
call fcn.0040414a
mov byte [esp + 0x60], 0x14
add esp, 8
mov ecx, esp
mov dword [esp + 0x40], esp
push str.copyiconfailed
call fcn.00401769
mov byte [esp + 0x58], 0x15
mov edi, dword [esi]
call ebx
push eax
mov byte [esp + 0x5c], 0x16
mov ecx, esi
call dword [edi + 0x1b0]
mov byte [esp + 0x48], 0xe
lea ecx, [esp + 0x2c]
call fcn.00401898
mov byte [esp + 0x48], 6
lea ecx, [esp + 0x14]
jmp 0x478ce3
lea eax, [esp + 0x24]
push eax
call fcn.004786c1
mov byte [esp + 0x48], 0x1e
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.0040184e
mov byte [esp + 0x4c], 0x1f
mov byte [esp + 0x4c], 0x1e
lea edi, [esp + 0x24]
call fcn.004137b4
pop ecx
mov byte [esp + 0x48], 0x20
mov eax, dword [esi]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call dword [eax + 0x60]
mov byte [esp + 0x48], 0x21
push dword [esp + 0x24]
mov eax, dword [eax]
push eax
push str.OfferId
push dword [esp + 0x2c]
call ebx
mov byte [esp + 0x48], 0x20
lea ecx, [esp + 0x2c]
call fcn.00401898
push dword [esp + 0x24]
push dword [esp + 0x20]
push str.Shortcut
push dword [esp + 0x2c]
call ebx
mov eax, dword [esi]
push 0x100
mov ecx, esi
call dword [eax + 0x50]
mov byte [esp + 0x48], 0x1e
mov ecx, edi
call fcn.00401898
mov byte [esp + 0x48], 0x18
lea ecx, [esp + 0x24]
call fcn.00401898
xor esi, esi
inc esi
jmp 0x478e11