Function at 0x405960
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x420a2c
xor ebx, ebx
push 1
push ebx
push 0x41e388
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
mov eax, dword [ebp - 4]
jl 0x4059bc
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0xc], ebx
mov ecx, dword [eax]
push 0x41e398
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
cmp esi, ebx
jge 0x4059d6
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x4059b9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x4059c8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov edi, dword [ebp + 0x18]
cmp edi, ebx
je 0x405a40
cmp word [edi], bx
je 0x405a40
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4059f5
xor eax, eax
jmp 0x405a0f
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00411340
mov esi, esp
mov edx, 3
mov ecx, ebx
mov eax, edi
call fcn.00401070
mov ebx, eax
lea edi, [ebp + 0x18]
call fcn.00401300
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 0x39]
mov eax, dword [eax + 0x10]
add ecx, 0xffffffc7
mov edx, edi
push edx
call eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x18]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov ecx, edi
call fcn.00401fb0
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x405aab
cmp word [ebx], 0
je 0x405aab
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x405a60
xor eax, eax
jmp 0x405a7a
lea edi, [eax + eax]
mov eax, edi
call fcn.00411340
mov esi, esp
mov edx, 3
mov ecx, edi
mov eax, ebx
call fcn.00401070
mov ebx, eax
lea edi, [ebp + 0x18]
call fcn.00401300
mov ecx, dword [ebp + 8]
mov edx, dword [ecx - 0x39]
mov edx, dword [edx + 0x10]
add ecx, 0xffffffc7
mov eax, edi
push eax
call edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x18]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov ecx, edi
call fcn.00401fb0
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
je 0x405b16
cmp word [ebx], 0
je 0x405b16
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x405acb
xor eax, eax
jmp 0x405ae5
lea edi, [eax + eax]
mov eax, edi
call fcn.00411340
mov esi, esp
mov edx, 3
mov ecx, edi
mov eax, ebx
call fcn.00401070
mov ebx, eax
lea edi, [ebp + 0x18]
call fcn.00401300
mov ecx, dword [ebp + 8]
mov edx, dword [ecx - 0x39]
mov edx, dword [edx + 0x10]
add ecx, 0xffffffc7
mov eax, edi
push eax
call edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x18]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov ecx, edi
call fcn.00401fb0
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x405b81
cmp word [ebx], 0
je 0x405b81
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x405b36
xor eax, eax
jmp 0x405b50
lea edi, [eax + eax]
mov eax, edi
call fcn.00411340
mov esi, esp
mov edx, 3
mov ecx, edi
mov eax, ebx
call fcn.00401070
mov ebx, eax
lea edi, [ebp + 0x18]
call fcn.00401300
mov ecx, dword [ebp + 8]
mov edx, dword [ecx - 0x39]
mov edx, dword [edx + 0x10]
add ecx, 0xffffffc7
mov eax, edi
push eax
call edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x18]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, edi
call fcn.00401fb0
mov ebx, dword [ebp + 0x20]
test ebx, ebx
je 0x405bff
cmp word [ebx], 0
je 0x405bff
cmp word [ebp + 0x24], 0
jge 0x405b9c
mov dword [ebp + 0x24], 0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x405baf
xor eax, eax
jmp 0x405bc9
lea edi, [eax + eax]
mov eax, edi
call fcn.00411340
mov esi, esp
mov edx, 3
mov ecx, edi
mov eax, ebx
call fcn.00401070
mov ebx, eax
lea edi, [ebp + 0x18]
call fcn.00401300
mov ecx, dword [ebp + 8]
mov edx, dword [ecx - 0x39]
mov edx, dword [edx + 0x10]
add ecx, 0xffffffc7
mov eax, edi
push eax
call edx
movsx edx, word [ebp + 0x24]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edx
mov edx, dword [ebp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
mov ecx, edi
call fcn.00401fb0
movsx edx, word [ebp + 0x28]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x2c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x34]
call eax
mov edi, eax
test edi, edi
jl 0x405dfe
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x405c33
xor eax, eax
jmp 0x405c60
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x405c46
xor eax, eax
jmp 0x405c60
lea edi, [eax + eax]
mov eax, edi
call fcn.00411340
mov esi, esp
mov edx, 3
mov ecx, edi
mov eax, ebx
call fcn.00401070
mov ebx, eax
lea edi, [ebp + 0x24]
call fcn.00401300
mov ebx, dword [ebp + 8]
mov edx, dword [ebx - 0x39]
mov edx, dword [edx + 0x10]
add ebx, 0xffffffc7
mov eax, edi
push eax
mov ecx, ebx
mov dword [ebp + 0x10], ebx
call edx
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push 0x14
push ecx
mov ecx, ebx
call edx
mov eax, dword [ebp + 0x24]
push ebx
call fcn.004029e0
mov eax, dword [ebp + 0x24]
mov eax, dword [eax - 8]
mov esi, 4
cmp eax, esi
mov dword [ebp - 8], 1
jge 0x405cb0
mov esi, eax
mov ecx, dword [0x424d88]
sub eax, esi
push eax
lea edx, [ebp + 0x24]
push edx
lea edi, [ebp + 0x18]
mov dword [ebp + 0x18], ecx
call fcn.00401fe0
mov eax, dword [ebp + 0x18]
push str..lnk
push eax
call fcn.0040b3ac
add esp, 8
test eax, eax
je 0x405d26
mov ecx, dword [ebp + 0x24]
mov eax, dword [ecx - 8]
mov esi, 4
cmp eax, esi
mov dword [ebp - 8], 3
jge 0x405cf5
mov esi, eax
mov edx, dword [0x424d88]
sub eax, esi
push eax
lea eax, [ebp + 0x24]
push eax
lea edi, [ebp + 8]
mov dword [ebp + 8], edx
call fcn.00401fe0
mov ecx, dword [ebp + 8]
push str..pif
push ecx
call fcn.0040b3ac
add esp, 8
mov byte [ebp + 0x2b], 1
test eax, eax
jne 0x405d2a
mov byte [ebp + 0x2b], 0
test byte [ebp - 8], 2
je 0x405d3c
and dword [ebp - 8], 0xfffffffd
lea ecx, [ebp + 8]
call fcn.00401fb0
test byte [ebp - 8], 1
je 0x405d4a
lea ecx, [ebp + 0x18]
call fcn.00401fb0
cmp byte [ebp + 0x2b], 0
je 0x405d70
push str..lnk
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x405d70
mov esi, eax
push str..lnk
lea eax, [ebp + 0x24]
call fcn.00402110
mov edi, edi
mov eax, dword [ebp + 0x24]
mov edi, dword [ebp - 0xc]
test eax, eax
je 0x405d8c
mov ebx, eax
call fcn.004010a0
mov esi, eax
test esi, esi
je 0x405dba
mov ebx, dword [ebp + 0x10]
jmp 0x405d8e
xor esi, esi
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
push 1
push esi
push edi
call eax
push esi
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jge 0x405dc4
mov edx, dword [ebx]
mov eax, dword [ebp + 0x24]
mov edx, dword [edx + 0x1c]
push edi
push eax
mov ecx, ebx
call edx
test al, al
jne 0x405d70
jmp 0x405dd3
push 0x8007000e
call fcn.00401100
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebx]
mov edx, dword [eax + 8]
push ecx
push 3
mov ecx, ebx
call edx
mov eax, dword [ebp + 0x24]
lea ecx, [eax - 0xc]
cmp ecx, 0x424d78
je 0x405dfe
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x405dfe
mov edx, dword [ebp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.0040b07a
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x405e0d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 4]
test eax, eax
je 0x405e1c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28