Function at 0x406c10
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x30
jl 0x406c46
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x39
jg 0x406c46
mov ecx, dword [ebp + 8]
push ecx
call fcn.00426cbd
add esp, 4
mov dword [ebp - 0x280], eax
jmp 0x406d28
mov edx, dword [ebp + 8]
movzx eax, word [edx]
or eax, 0x20
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2a8]
sub ecx, 0x64
mov dword [ebp - 0x2a8], ecx
cmp dword [ebp - 0x2a8], 0x10
ja case.0x406c7e.1
mov edx, dword [ebp - 0x2a8]
movzx eax, byte [edx + 0x40726c]
jmp dword [eax*4 + 0x407258]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 2]
or edx, 0x20
cmp edx, 0x75
jne 0x406ca0
mov dword [ebp - 0x280], 0x10
jmp 0x406caa
mov dword [ebp - 0x280], 0x19
jmp 0x406d28
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 2]
or ecx, 0x20
cmp ecx, 0x75
jne 0x406cc7
mov dword [ebp - 0x280], 0xb
jmp 0x406cd1
mov dword [ebp - 0x280], 0x16
jmp 0x406d28
mov edx, dword [ebp + 8]
movzx eax, word [edx + 2]
or eax, 0x20
cmp eax, 0x75
jne 0x406cee
mov dword [ebp - 0x280], 2
jmp 0x406cf8
mov dword [ebp - 0x280], 0x17
jmp 0x406d28
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 2]
or edx, 0x20
cmp edx, 0x75
jne 0x406d15
mov dword [ebp - 0x280], 7
jmp 0x406d1f
mov dword [ebp - 0x280], 0x18
jmp 0x406d28
xor eax, eax
jmp 0x407252
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x2c
je 0x406d4f
mov edx, dword [ebp + 8]
movzx eax, word [edx]
test eax, eax
jne 0x406d44
xor eax, eax
jmp 0x407252
mov ecx, dword [ebp + 8]
add ecx, 2
mov dword [ebp + 8], ecx
jmp 0x406d28
push 0
mov edx, dword [ebp - 0x280]
push edx
lea eax, [ebp - 0x248]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x406d72
xor eax, eax
jmp 0x407252
lea ecx, [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00402170
lea ecx, [ebp - 0x290]
call fcn.00401140
lea ecx, [ebp - 0x270]
call fcn.00401140
lea ecx, [ebp - 0x24]
call fcn.00401140
lea ecx, [ebp - 0x264]
call fcn.00401140
lea ecx, [ebp - 0x27c]
call fcn.00401140
lea ecx, [ebp - 0x254]
call fcn.00401140
lea ecx, [ebp - 0xc]
call fcn.00401140
lea ecx, [ebp - 0x34]
call fcn.00401140
lea edx, [ebp - 0x290]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00406b00
add esp, 8
mov dword [ebp + 8], eax
lea ecx, [ebp - 0x290]
call fcn.00405320
movzx ecx, al
test ecx, ecx
je 0x406e64
mov dword [ebp - 0x29c], 0
lea ecx, [ebp - 0x34]
call fcn.00401240
lea ecx, [ebp - 0xc]
call fcn.00401240
lea ecx, [ebp - 0x254]
call fcn.00401240
lea ecx, [ebp - 0x27c]
call fcn.00401240
lea ecx, [ebp - 0x264]
call fcn.00401240
lea ecx, [ebp - 0x24]
call fcn.00401240
lea ecx, [ebp - 0x270]
call fcn.00401240
lea ecx, [ebp - 0x290]
call fcn.00401240
lea ecx, [ebp - 0x18]
call fcn.00401240
mov eax, dword [ebp - 0x29c]
jmp 0x407252
lea edx, [ebp - 0x270]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00406b00
add esp, 8
mov dword [ebp + 8], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00406b00
add esp, 8
mov dword [ebp + 8], eax
lea eax, [ebp - 0x264]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406b00
add esp, 8
mov dword [ebp + 8], eax
lea edx, [ebp - 0x27c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00406b00
add esp, 8
mov dword [ebp + 8], eax
lea ecx, [ebp - 0x254]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00406b00
add esp, 8
mov dword [ebp + 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406b00
add esp, 8
mov dword [ebp + 8], eax
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00406b00
add esp, 8
lea ecx, [ebp - 0x34]
call fcn.00412200
push eax
call fcn.00426cbd
add esp, 4
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x27c]
call fcn.00405320
movzx ecx, al
test ecx, ecx
je 0x406f7c
lea edx, [ebp - 0x290]
push edx
call fcn.004075f0
add esp, 4
mov dword [ebp - 0x294], eax
lea ecx, [ebp - 0x290]
call fcn.00412200
mov ecx, dword [ebp - 0x294]
lea edx, [eax + ecx*2 + 2]
push edx
lea ecx, [ebp - 0x27c]
call fcn.00401280
push 0x2e
lea ecx, [ebp - 0x27c]
call fcn.0041e290
mov dword [ebp - 0x294], eax
cmp dword [ebp - 0x294], 0
jl 0x406f7c
mov eax, dword [ebp - 0x294]
push eax
lea ecx, [ebp - 0x27c]
call fcn.00402190
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00402260
lea ecx, [ebp - 0x24]
call fcn.00405320
movzx ecx, al
test ecx, ecx
jne 0x406fab
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x18]
call fcn.0041e070
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00402260
lea ecx, [ebp - 0x18]
call fcn.00412200
push eax
call fcn.00406630
add esp, 4
test eax, eax
jne 0x40702c
mov dword [ebp - 0x2a0], 0
lea ecx, [ebp - 0x34]
call fcn.00401240
lea ecx, [ebp - 0xc]
call fcn.00401240
lea ecx, [ebp - 0x254]
call fcn.00401240
lea ecx, [ebp - 0x27c]
call fcn.00401240
lea ecx, [ebp - 0x264]
call fcn.00401240
lea ecx, [ebp - 0x24]
call fcn.00401240
lea ecx, [ebp - 0x270]
call fcn.00401240
lea ecx, [ebp - 0x290]
call fcn.00401240
lea ecx, [ebp - 0x18]
call fcn.00401240
mov eax, dword [ebp - 0x2a0]
jmp 0x407252
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041e070
push str..lnk
lea ecx, [ebp - 0x18]
call fcn.0041e010
mov dword [ebp - 0x284], 0
lea ecx, [ebp - 0x284]
push ecx
push 0x4334b4
push 1
push 0
push 0x4334e4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
jl 0x4071eb
mov dword [ebp - 0x298], 0
lea ecx, [ebp - 0x290]
call fcn.00412200
push eax
mov edx, dword [ebp - 0x284]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x284]
push ecx
mov edx, dword [eax + 0x50]
call edx
lea ecx, [ebp - 0x264]
call fcn.00405320
movzx eax, al
test eax, eax
jne 0x4070dc
lea ecx, [ebp - 0x264]
call fcn.00412200
push eax
mov ecx, dword [ebp - 0x284]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x284]
push eax
mov ecx, dword [edx + 0x1c]
call ecx
lea ecx, [ebp - 0x270]
call fcn.00405320
movzx edx, al
test edx, edx
jne 0x40710e
lea ecx, [ebp - 0x270]
call fcn.00412200
push eax
mov eax, dword [ebp - 0x284]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x284]
push edx
mov eax, dword [ecx + 0x2c]
call eax
lea ecx, [ebp - 0x254]
call fcn.00405320
movzx ecx, al
test ecx, ecx
jne 0x407140
lea ecx, [ebp - 0x254]
call fcn.00412200
push eax
mov edx, dword [ebp - 0x284]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x284]
push ecx
mov edx, dword [eax + 0x24]
call edx
lea ecx, [ebp - 0xc]
call fcn.00405320
movzx eax, al
test eax, eax
jne 0x407170
mov ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0xc]
call fcn.00412200
push eax
mov edx, dword [ebp - 0x284]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x284]
push ecx
mov edx, dword [eax + 0x44]
call edx
lea eax, [ebp - 0x298]
push eax
push 0x4334d4
mov ecx, dword [ebp - 0x284]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x284]
push eax
mov ecx, dword [edx]
call ecx
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
jl 0x4071d7
push 1
lea ecx, [ebp - 0x18]
call fcn.00412200
push eax
mov edx, dword [ebp - 0x298]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x298]
push ecx
mov edx, dword [eax + 0x18]
call edx
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x298]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x298]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x284]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x284]
push eax
mov ecx, dword [edx + 8]
call ecx
mov dword [ebp - 0x2a4], 0
lea ecx, [ebp - 0x34]
call fcn.00401240
lea ecx, [ebp - 0xc]
call fcn.00401240
lea ecx, [ebp - 0x254]
call fcn.00401240
lea ecx, [ebp - 0x27c]
call fcn.00401240
lea ecx, [ebp - 0x264]
call fcn.00401240
lea ecx, [ebp - 0x24]
call fcn.00401240
lea ecx, [ebp - 0x270]
call fcn.00401240
lea ecx, [ebp - 0x290]
call fcn.00401240
lea ecx, [ebp - 0x18]
call fcn.00401240
mov eax, dword [ebp - 0x2a4]
mov esp, ebp
pop ebp
ret