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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
push esi
mov esi, dword [ebp + 8]
movzx eax, word [esi]
cmp eax, 0x30
jb 0x405168
cmp eax, 0x39
ja 0x405168
push esi
call fcn.0041c727
pop ecx
jmp 0x4051ed
push 0x20
pop ecx
or eax, ecx
sub eax, 0x64
je 0x4051d4
sub eax, 0xc
je 0x4051b9
sub eax, 3
je 0x40519e
dec eax
jne 0x405504
mov ax, word [esi + 2]
or ax, cx
xor ecx, ecx
cmp ax, 0x75
setne cl
lea eax, [ecx - 1]
and eax, 0xffffffef
add eax, 0x18
jmp 0x4051ed
mov ax, word [esi + 2]
or ax, cx
xor ecx, ecx
cmp ax, 0x75
setne cl
lea eax, [ecx - 1]
and eax, 0xfffffff5
add eax, 0x16
jmp 0x4051ed
mov ax, word [esi + 2]
or ax, cx
xor ecx, ecx
cmp ax, 0x75
setne cl
lea eax, [ecx - 1]
and eax, 0xffffffeb
add eax, 0x17
jmp 0x4051ed
mov ax, word [esi + 2]
or ax, cx
xor ecx, ecx
cmp ax, 0x75
setne cl
lea eax, [ecx - 1]
and eax, 0xfffffff7
add eax, 0x19
push ebx
xor ebx, ebx
jmp 0x4051fe
cmp cx, bx
je 0x405503
add esi, 2
movzx ecx, word [esi]
cmp ecx, 0x2c
jne 0x4051f2
push ebx
push eax
lea eax, [ebp - 0x27c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x405503
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401899
lea ecx, [ebp - 0x28]
call fcn.00401274
lea ecx, [ebp - 0x4c]
call fcn.00401274
lea ecx, [ebp - 0x40]
call fcn.00401274
lea ecx, [ebp - 0x58]
call fcn.00401274
lea ecx, [ebp - 0x1c]
call fcn.00401274
lea ecx, [ebp - 0x34]
call fcn.00401274
lea ecx, [ebp - 0x64]
call fcn.00401274
lea ecx, [ebp - 0x70]
call fcn.00401274
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00403831
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.004034fd
test al, al
je 0x4052d4
lea ecx, [ebp - 0x70]
call fcn.00401894
lea ecx, [ebp - 0x64]
call fcn.00401894
lea ecx, [ebp - 0x34]
call fcn.00401894
lea ecx, [ebp - 0x1c]
call fcn.00401894
lea ecx, [ebp - 0x58]
call fcn.00401894
lea ecx, [ebp - 0x40]
call fcn.00401894
lea ecx, [ebp - 0x4c]
call fcn.00401894
lea ecx, [ebp - 0x28]
call fcn.00401894
lea ecx, [ebp - 0x10]
call fcn.00401894
jmp 0x405503
push edi
lea eax, [ebp - 0x4c]
push eax
push esi
call fcn.00403831
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.00403831
lea ecx, [ebp - 0x58]
push ecx
push eax
call fcn.00403831
lea ecx, [ebp - 0x1c]
push ecx
push eax
call fcn.00403831
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.00403831
lea ecx, [ebp - 0x64]
push ecx
push eax
call fcn.00403831
lea ecx, [ebp - 0x70]
push ecx
push eax
call fcn.00403831
add esp, 0x38
lea ecx, [ebp - 0x70]
call fcn.0040a9b3
push eax
call fcn.0041c727
pop ecx
lea ecx, [ebp - 0x1c]
mov edi, eax
call fcn.004034fd
test al, al
je 0x405373
lea eax, [ebp - 0x28]
push eax
call fcn.00403968
pop ecx
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0040a9b3
lea eax, [eax + esi*2 + 2]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401000
push 0x2e
lea ecx, [ebp - 0x1c]
call fcn.00412a4b
cmp eax, ebx
jl 0x405373
push eax
lea ecx, [ebp - 0x1c]
call fcn.004018ae
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0040181b
lea ecx, [ebp - 0x40]
call fcn.004034fd
test al, al
jne 0x40539f
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x10]
call fcn.004129e8
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0040181b
lea ecx, [ebp - 0x10]
call fcn.0040a9b3
push eax
call fcn.00404fea
pop ecx
test eax, eax
je 0x4054ba
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.004129e8
push 0x424cf4
lea ecx, [ebp - 0x10]
call fcn.00412e74
lea eax, [ebp + 8]
push eax
push 0x428914
push 1
push ebx
push 0x428954
mov dword [ebp + 8], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4054ba
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov ebx, dword [esi]
lea ecx, [ebp - 0x28]
call fcn.0040a9b3
push eax
push esi
call dword [ebx + 0x50]
lea ecx, [ebp - 0x58]
call fcn.004034fd
test al, al
jne 0x405424
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
lea ecx, [ebp - 0x58]
call fcn.0040a9b3
push eax
push esi
call dword [ebx + 0x1c]
lea ecx, [ebp - 0x4c]
call fcn.004034fd
test al, al
jne 0x405442
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
lea ecx, [ebp - 0x4c]
call fcn.0040a9b3
push eax
push esi
call dword [ebx + 0x2c]
lea ecx, [ebp - 0x34]
call fcn.004034fd
test al, al
jne 0x405460
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
lea ecx, [ebp - 0x34]
call fcn.0040a9b3
push eax
push esi
call dword [ebx + 0x24]
lea ecx, [ebp - 0x64]
call fcn.004034fd
test al, al
jne 0x40547f
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
push edi
lea ecx, [ebp - 0x64]
call fcn.0040a9b3
push eax
push esi
call dword [ebx + 0x44]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x428944
push eax
call dword [ecx]
test eax, eax
js 0x4054b1
mov esi, dword [ebp - 4]
mov edi, dword [esi]
push 1
lea ecx, [ebp - 0x10]
call fcn.0040a9b3
push eax
push esi
call dword [edi + 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x70]
call fcn.00401894
lea ecx, [ebp - 0x64]
call fcn.00401894
lea ecx, [ebp - 0x34]
call fcn.00401894
lea ecx, [ebp - 0x1c]
call fcn.00401894
lea ecx, [ebp - 0x58]
call fcn.00401894
lea ecx, [ebp - 0x40]
call fcn.00401894
lea ecx, [ebp - 0x4c]
call fcn.00401894
lea ecx, [ebp - 0x28]
call fcn.00401894
lea ecx, [ebp - 0x10]
call fcn.00401894
pop edi
pop ebx
xor eax, eax
pop esi
leave
ret