Function at 0x408600
Capabilities:
Copy file
Create directory
Create shortcut via ishelllink
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44d958
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4628d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x24]
call fcn.00403980
mov dword [esp + 0x38], 0
call fcn.004108c4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40865d
push 0x80004005
call fcn.004037e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
push str.Creating_icons...
lea ecx, [ebp + 0x244]
mov byte [esp + 0x3c], 1
call fcn.0041a281
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4086a8
push 0x104
lea ecx, [esp + 0x18]
call fcn.00403760
mov edi, dword [esp + 0x14]
test ebp, ebp
jne 0x4086b0
xor eax, eax
jmp 0x4086b3
mov eax, dword [ebp + 0x20]
push 1
push 0x17
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.0042c4f9
add esp, 8
test eax, eax
jl 0x4088ba
cmp eax, dword [edi - 8]
jg 0x4088ba
xor ecx, ecx
mov dword [edi - 0xc], eax
push 1
lea edx, [esp + 0x44]
mov word [edi + eax*2], cx
push edx
lea ecx, [esp + 0x1c]
call fcn.004055a0
push 0x4510b4
push eax
call fcn.004050b0
mov bl, al
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408726
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40873e
push 1
push 0x4510b4
lea ecx, [esp + 0x1c]
call fcn.00405830
mov edi, dword [esp + 0x14]
mov ecx, dword [ebp + 0xdc]
mov eax, dword [ecx - 0xc]
lea esi, [ebp + 0xdc]
xor ebx, ebx
cmp eax, ebx
je 0x408894
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jl 0x408778
push 0x4510b4
push eax
call fcn.0042c196
add esp, 8
cmp eax, ebx
je 0x408778
sub eax, dword [esi]
sar eax, 1
mov edi, eax
jns 0x4087e2
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00405830
mov ecx, dword [esi]
mov edi, dword [ecx - 0x10]
cmp dword [ecx - 0xc], ebx
lea eax, [ecx - 0x10]
je 0x408869
cmp dword [eax + 0xc], ebx
lea edx, [eax + 0xc]
jge 0x4087b9
cmp dword [ecx - 8], ebx
jl 0x4088ba
mov dword [ecx - 0xc], ebx
mov edx, dword [esi]
xor eax, eax
mov word [edx], ax
jmp 0x408869
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4087cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
add eax, 0x10
mov dword [esi], eax
jmp 0x408869
push edi
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.00405620
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 2
call fcn.00405830
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x38], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408829
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
push edi
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.00405950
push eax
mov ecx, esi
mov byte [esp + 0x3c], 3
call fcn.00403dd0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x38], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408869
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x4510b4
lea ecx, [esp + 0x1c]
call fcn.00405830
mov edx, dword [esi]
cmp dword [edx - 0xc], ebx
jne 0x408757
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00403dd0
call fcn.004108c4
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4088c4
push 0x80004005
call fcn.004037e0
push 0x80070057
call fcn.004037e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 4
call fcn.00403dd0
mov eax, dword [ebp + 0xb8]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.00405830
push 4
push str..lnk
lea ecx, [esp + 0x2c]
call fcn.00405830
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.004108c4
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x408928
push 0x80004005
call fcn.004037e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x1c]
push ecx
push 0x45703c
push 1
push ebx
push 0x45709c
mov byte [esp + 0x4c], 5
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, dword [esp + 0x24]
test eax, eax
jne 0x408a58
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
push ecx
push eax
call edx
mov eax, dword [ebp + 0xb8]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x1c]
push ecx
call eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ecx, dword [eax]
push 0
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 1
push eax
call edx
mov eax, dword [esp + 0x20]
push 0x5c
push eax
call fcn.0042c1f7
add esp, 8
test eax, eax
jne 0x4089be
or eax, 0xffffffff
jmp 0x4089c4
sub eax, dword [esp + 0x20]
sar eax, 1
push eax
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x28]
call fcn.00405620
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 6
call fcn.00403dd0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x38], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408a07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
push 0x45705c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x408a4c
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push ebx
push eax
call edx
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
push 2
push 0x4516c4
lea ecx, [esp + 0x20]
call fcn.00403830
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea ecx, [esp + 0x20]
call fcn.00405830
push 1
push 0x4516c0
lea ecx, [esp + 0x20]
call fcn.00405830
mov ebp, dword [esp + 0x44]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp]
mov edx, dword [eax + 0x54]
push ecx
mov ecx, ebp
call edx
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x408ac5
push 0x104
lea ecx, [esp + 0x18]
call fcn.00403760
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x20]
push 1
push 0x19
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.0042c4f9
add esp, 8
test eax, eax
jl 0x4088ba
cmp eax, dword [edi - 8]
jg 0x4088ba
xor ecx, ecx
mov dword [edi - 0xc], eax
push 1
lea edx, [esp + 0x48]
mov word [edi + eax*2], cx
push edx
lea ecx, [esp + 0x1c]
call fcn.004055a0
push 0x4510b4
push eax
call fcn.004050b0
mov byte [esp + 0x48], al
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408b41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x40], 0
je 0x408b58
push 1
push 0x4510b4
lea ecx, [esp + 0x1c]
call fcn.00405830
mov eax, dword [esi + 0xb8]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00405830
push 4
push str..lnk
lea ecx, [esp + 0x1c]
call fcn.00405830
mov esi, dword [esp + 0x14]
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 2
push 0x4516c4
lea ecx, [esp + 0x20]
call fcn.00403830
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.00405830
push 1
push 0x4516c0
lea ecx, [esp + 0x20]
call fcn.00405830
mov edx, dword [ebp]
mov edi, dword [esp + 0x18]
mov eax, dword [edx + 0x54]
push edi
mov ecx, ebp
call eax
mov ecx, dword [esp + 0x28]
call fcn.00404d80
lea eax, [edi - 0x10]
mov byte [esp + 0x38], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408bf1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [esp + 0x38], 1
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c12
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
add esi, 0xfffffff0
mov byte [esp + 0x38], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408c33
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8