Function at 0x405121
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 0x405147
cmp eax, 0x39
ja 0x405147
push esi
call fcn.0041c729
pop ecx
jmp 0x4051cc
push 0x20
pop ecx
or eax, ecx
sub eax, 0x64
je 0x4051b3
sub eax, 0xc
je 0x405198
sub eax, 3
je 0x40517d
dec eax
jne 0x4054e3
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 0x4051cc
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 0x4051cc
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 0x4051cc
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 0x4051dd
cmp cx, bx
je 0x4054e2
add esi, 2
movzx ecx, word [esi]
cmp ecx, 0x2c
jne 0x4051d1
push ebx
push eax
lea eax, [ebp - 0x27c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4054e2
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401885
lea ecx, [ebp - 0x28]
call fcn.00401245
lea ecx, [ebp - 0x4c]
call fcn.00401245
lea ecx, [ebp - 0x40]
call fcn.00401245
lea ecx, [ebp - 0x58]
call fcn.00401245
lea ecx, [ebp - 0x1c]
call fcn.00401245
lea ecx, [ebp - 0x34]
call fcn.00401245
lea ecx, [ebp - 0x64]
call fcn.00401245
lea ecx, [ebp - 0x70]
call fcn.00401245
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00403810
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.004034dc
test al, al
je 0x4052b3
lea ecx, [ebp - 0x70]
call fcn.00401251
lea ecx, [ebp - 0x64]
call fcn.00401251
lea ecx, [ebp - 0x34]
call fcn.00401251
lea ecx, [ebp - 0x1c]
call fcn.00401251
lea ecx, [ebp - 0x58]
call fcn.00401251
lea ecx, [ebp - 0x40]
call fcn.00401251
lea ecx, [ebp - 0x4c]
call fcn.00401251
lea ecx, [ebp - 0x28]
call fcn.00401251
lea ecx, [ebp - 0x10]
call fcn.00401251
jmp 0x4054e2
push edi
lea eax, [ebp - 0x4c]
push eax
push esi
call fcn.00403810
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.00403810
lea ecx, [ebp - 0x58]
push ecx
push eax
call fcn.00403810
lea ecx, [ebp - 0x1c]
push ecx
push eax
call fcn.00403810
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.00403810
lea ecx, [ebp - 0x64]
push ecx
push eax
call fcn.00403810
lea ecx, [ebp - 0x70]
push ecx
push eax
call fcn.00403810
add esp, 0x38
lea ecx, [ebp - 0x70]
call fcn.0040a992
push eax
call fcn.0041c729
pop ecx
lea ecx, [ebp - 0x1c]
mov edi, eax
call fcn.004034dc
test al, al
je 0x405352
lea eax, [ebp - 0x28]
push eax
call fcn.00403947
pop ecx
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0040a992
lea eax, [eax + esi*2 + 2]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401000
push 0x2e
lea ecx, [ebp - 0x1c]
call fcn.004129e3
cmp eax, ebx
jl 0x405352
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040189a
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0040180c
lea ecx, [ebp - 0x40]
call fcn.004034dc
test al, al
jne 0x40537e
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x10]
call fcn.00412980
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0040180c
lea ecx, [ebp - 0x10]
call fcn.0040a992
push eax
call fcn.00404fc9
pop ecx
test eax, eax
je 0x405499
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00412980
push 0x424cf4
lea ecx, [ebp - 0x10]
call fcn.00412e0c
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 0x405499
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov ebx, dword [esi]
lea ecx, [ebp - 0x28]
call fcn.0040a992
push eax
push esi
call dword [ebx + 0x50]
lea ecx, [ebp - 0x58]
call fcn.004034dc
test al, al
jne 0x405403
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
lea ecx, [ebp - 0x58]
call fcn.0040a992
push eax
push esi
call dword [ebx + 0x1c]
lea ecx, [ebp - 0x4c]
call fcn.004034dc
test al, al
jne 0x405421
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
lea ecx, [ebp - 0x4c]
call fcn.0040a992
push eax
push esi
call dword [ebx + 0x2c]
lea ecx, [ebp - 0x34]
call fcn.004034dc
test al, al
jne 0x40543f
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
lea ecx, [ebp - 0x34]
call fcn.0040a992
push eax
push esi
call dword [ebx + 0x24]
lea ecx, [ebp - 0x64]
call fcn.004034dc
test al, al
jne 0x40545e
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
push edi
lea ecx, [ebp - 0x64]
call fcn.0040a992
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 0x405490
mov esi, dword [ebp - 4]
mov edi, dword [esi]
push 1
lea ecx, [ebp - 0x10]
call fcn.0040a992
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.00401251
lea ecx, [ebp - 0x64]
call fcn.00401251
lea ecx, [ebp - 0x34]
call fcn.00401251
lea ecx, [ebp - 0x1c]
call fcn.00401251
lea ecx, [ebp - 0x58]
call fcn.00401251
lea ecx, [ebp - 0x40]
call fcn.00401251
lea ecx, [ebp - 0x4c]
call fcn.00401251
lea ecx, [ebp - 0x28]
call fcn.00401251
lea ecx, [ebp - 0x10]
call fcn.00401251
pop edi
pop ebx
xor eax, eax
pop esi
leave
ret