Function at 0x40f240
Capabilities:
Create shortcut via ishelllink
Get common file path
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48a913
push eax
mov dword fs:[0], esp
sub esp, 0x284
push esi
mov esi, dword [esp + 0x298]
movzx eax, word [esi]
cmp ax, 0x30
jb 0x40f280
cmp ax, 0x39
ja 0x40f280
push esi
call fcn.0046e1f5
add esp, 4
jmp 0x40f30a
movzx eax, ax
or eax, 0x20
add eax, 0xffffff9c
cmp eax, 0x10
ja case.0x40f299.101
movzx eax, byte [eax + 0x40f7f8]
jmp dword [eax*4 + 0x40f7e4]
mov cx, word [esi + 2]
or cx, 0x20
sub cx, 0x75
movzx eax, cx
neg eax
sbb eax, eax
and eax, 9
add eax, 0x10
jmp 0x40f30a
mov dx, word [esi + 2]
or dx, 0x20
sub dx, 0x75
movzx eax, dx
neg eax
sbb eax, eax
and eax, 0xb
add eax, 0xb
jmp 0x40f30a
mov ax, word [esi + 2]
or ax, 0x20
sub ax, 0x75
movzx eax, ax
neg eax
sbb eax, eax
and eax, 0x15
add eax, 2
jmp 0x40f30a
mov cx, word [esi + 2]
or cx, 0x20
sub cx, 0x75
movzx eax, cx
neg eax
sbb eax, eax
and eax, 0x11
add eax, 7
movzx ecx, word [esi]
push ebx
xor ebx, ebx
cmp cx, 0x2c
je 0x40f32c
cmp cx, bx
je 0x40f517
movzx ecx, word [esi + 2]
add esi, 2
cmp cx, 0x2c
jne 0x40f316
push ebx
push eax
lea edx, [esp + 0x88]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40f517
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x68]
call fcn.00404790
mov dword [esp + 0x294], ebx
push 3
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
call fcn.004010b0
mov byte [esp + 0x294], 1
push 3
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.004010b0
mov byte [esp + 0x294], 2
push 3
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.004010b0
mov byte [esp + 0x294], 3
push 3
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.004010b0
mov byte [esp + 0x294], 4
push 3
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.004010b0
mov byte [esp + 0x294], 5
push 3
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.004010b0
mov byte [esp + 0x294], 6
push 3
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.004010b0
mov byte [esp + 0x294], 7
push 3
lea ecx, [esp + 0x74]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
call fcn.004010b0
mov byte [esp + 0x294], 8
lea ecx, [esp + 0x58]
push ecx
push esi
call fcn.0040bb70
add esp, 8
cmp dword [esp + 0x5c], ebx
jne 0x40f530
mov byte [esp + 0x294], 7
mov edx, dword [esp + 0x70]
push edx
call fcn.0046d942
mov byte [esp + 0x298], 6
mov eax, dword [esp + 0x38]
push eax
call fcn.0046d942
mov byte [esp + 0x29c], 5
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0046d942
mov byte [esp + 0x2a0], 4
mov edx, dword [esp + 0x18]
push edx
call fcn.0046d942
mov byte [esp + 0x2a4], 3
mov eax, dword [esp + 0x2c]
push eax
call fcn.0046d942
mov byte [esp + 0x2a8], 2
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0046d942
mov byte [esp + 0x2ac], 1
mov edx, dword [esp + 0x40]
push edx
call fcn.0046d942
mov byte [esp + 0x2b0], bl
mov eax, dword [esp + 0x74]
push eax
call fcn.0046d942
mov dword [esp + 0x2b4], 0xffffffff
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0046d942
add esp, 0x24
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
add esp, 0x290
ret
push edi
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.0040bb70
lea ecx, [esp + 0x58]
push ecx
push eax
call fcn.0040bb70
lea edx, [esp + 0x30]
push edx
push eax
call fcn.0040bb70
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.0040bb70
lea edx, [esp + 0x64]
push edx
push eax
call fcn.0040bb70
lea ecx, [esp + 0x60]
push ecx
push eax
call fcn.0040bb70
lea edx, [esp + 0xa4]
push edx
push eax
call fcn.0040bb70
mov esi, dword [esp + 0xac]
push esi
call fcn.0046e1f5
mov edi, dword [esp + 0x98]
add esp, 0x3c
mov dword [esp + 0x80], eax
cmp dword [esp + 0x14], ebx
jne 0x40f5dd
lea eax, [esp + 0x5c]
push eax
call fcn.0040bc20
lea ecx, [edi + eax*2 + 2]
add esp, 4
push ecx
lea ecx, [esp + 0x14]
call fcn.00401320
push 0x2e
lea ecx, [esp + 0x14]
call fcn.00407560
cmp eax, ebx
jl 0x40f5dd
mov ecx, dword [esp + 0x10]
xor edx, edx
mov word [ecx + eax*2], dx
mov dword [esp + 0x14], eax
push 0x5c
lea ecx, [esp + 0x6c]
call fcn.00401490
cmp dword [esp + 0x54], ebx
je 0x40f607
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x6c]
call fcn.004013f0
push 0x5c
lea ecx, [esp + 0x6c]
call fcn.00401490
push ebp
mov ebp, dword [esp + 0x6c]
push ebp
call fcn.0040efb0
add esp, 4
test eax, eax
je 0x40f716
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x70]
call fcn.004013f0
push str..lnk
lea ecx, [esp + 0x70]
call fcn.004074d0
lea ecx, [esp + 0x10]
push ecx
push 0x4981f0
push 1
push ebx
push 0x498230
mov dword [esp + 0x24], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
mov ebp, dword [esp + 0x6c]
jl 0x40f716
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], ebx
mov edx, dword [eax]
push edi
push eax
mov eax, dword [edx + 0x50]
call eax
cmp dword [esp + 0x28], ebx
je 0x40f689
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp dword [esp + 0x34], ebx
je 0x40f6a0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
cmp dword [esp + 0x4c], ebx
je 0x40f6b7
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x48]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
cmp dword [esp + 0x40], ebx
je 0x40f6d6
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x40]
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push 0x498220
push eax
mov eax, dword [ecx]
call eax
cmp eax, ebx
jl 0x40f70a
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push ebp
push eax
call edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x29c], 7
push esi
call fcn.0046d942
mov byte [esp + 0x2a0], 6
mov eax, dword [esp + 0x40]
push eax
call fcn.0046d942
mov byte [esp + 0x2a4], 5
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0046d942
mov byte [esp + 0x2a8], 4
mov edx, dword [esp + 0x20]
push edx
call fcn.0046d942
mov byte [esp + 0x2ac], 3
mov eax, dword [esp + 0x34]
push eax
call fcn.0046d942
mov byte [esp + 0x2b0], 2
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0046d942
mov byte [esp + 0x2b4], 1
mov edx, dword [esp + 0x48]
push edx
call fcn.0046d942
mov byte [esp + 0x2b8], bl
push edi
call fcn.0046d942
mov dword [esp + 0x2bc], 0xffffffff
push ebp
call fcn.0046d942
add esp, 0x24
pop ebp
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
add esp, 0x290
ret
mov ecx, dword [esp + 0x288]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x290
ret