Function at 0x405050
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0x28]
push esi
push edi
lea ecx, [esp + 0x14]
push ecx
push 0x49b5bc
xor esi, esi
push 1
mov eax, ebx
shr eax, 1
push esi
mov dword [esp + 0x2c], esi
and al, 1
push 0x496a9c
mov byte [esp + 0x27], al
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4052ab
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [esp + 0x18]
push ecx
push 0x49b5cc
push eax
call edx
test eax, eax
js 0x4052ab
cmp byte [esp + 0x13], 0
jne 0x4050d5
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
push 2
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
js 0x4052ab
mov ecx, dword [ebp + 8]
cmp ecx, esi
jne 0x4050e3
cmp byte [esp + 0x13], 0
je 0x4050f8
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x50]
call eax
test eax, eax
js 0x4052ab
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
je 0x405114
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x24]
call eax
test eax, eax
js 0x4052ab
mov ecx, dword [ebp + 0x14]
cmp ecx, esi
je 0x405130
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x2c]
call eax
test eax, eax
js 0x4052ab
mov ecx, dword [ebp + 0x18]
cmp ecx, esi
je 0x40514c
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x1c]
call eax
test eax, eax
js 0x4052ab
mov ecx, dword [ebp + 0x1c]
cmp ecx, esi
je 0x40516c
mov eax, dword [esp + 0x14]
mov edi, dword [ebp + 0x20]
mov edx, dword [eax]
push edi
push ecx
push eax
mov eax, dword [edx + 0x44]
call eax
test eax, eax
js 0x4052ab
mov edi, dword [ebp + 0x24]
and bl, 1
cmp edi, esi
jne 0x40517e
test bl, bl
je 0x405216
call fcn.00413010
cmp eax, 4
jl 0x405216
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
push 0x49b5dc
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x40529b
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4052d4
test edi, edi
je 0x4051f9
mov edx, edi
mov edi, esi
call fcn.0041bab0
test al, al
jne 0x4051f5
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4051da
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4051ea
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x4052c1
mov esi, dword [esp + 0x1c]
test bl, bl
je 0x40520a
call fcn.0041bb20
test al, al
je 0x4051ca
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x405216
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x40526d
xor edi, edi
cmp esi, edi
jl 0x40526d
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x40524b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40525f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], edi
push edi
push edi
push edi
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, dword [esp + 0x18]
test esi, esi
setns bl
test eax, eax
je 0x405282
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x405292
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x4052ab
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x4052bb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x4052cb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x4052ab