Function at 0x40bf30
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x493688
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
mov eax, dword [0x4b7a40]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x20], ebx
cmp esi, ebx
je 0x40c205
cmp dword [esp + 0x34], ebx
je 0x40c205
push ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x14]
push eax
push 0x49d5e4
push 1
push ebx
push 0x49d614
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40c1c8
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
cmp eax, ebx
jl 0x40c1c8
push esi
lea ecx, [esp + 0x14]
call fcn.00401bc0
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x10]
push 0x5c
push eax
call fcn.00460967
add esp, 8
or ebp, 0xffffffff
cmp eax, ebx
jne 0x40bfdc
mov eax, ebp
jmp 0x40bfe2
sub eax, dword [esp + 0x10]
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.004057e0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.00401f70
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c023
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
cmp eax, ebx
jge 0x40c04a
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], ebp
call fcn.00401f50
jmp 0x40c1c8
cmp edi, ebx
je 0x40c123
call fcn.00442d9a
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40c06c
push 0x80004005
call fcn.004010b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x2c], 2
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x40c0a7
push 0x104
lea ecx, [esp + 0x1c]
call fcn.00402310
mov esi, dword [esp + 0x18]
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004602bb
add esp, 8
cmp eax, ebx
jl 0x40c14b
cmp eax, dword [esi - 8]
jg 0x40c14b
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push ebx
push esi
push eax
mov eax, dword [edx + 0x44]
call eax
cmp eax, ebx
jge 0x40c104
lea ecx, [esp + 0x18]
call fcn.00401f50
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], ebp
call fcn.00401f50
jmp 0x40c1c8
lea eax, [esi - 0x10]
mov byte [esp + 0x2c], bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c123
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
je 0x40c155
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x2c]
call eax
cmp eax, ebx
jge 0x40c155
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], ebp
call fcn.00401f50
jmp 0x40c1c8
push 0x80070057
call fcn.004010b0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push 0x49d644
push eax
mov eax, dword [ecx]
call eax
cmp eax, ebx
jge 0x40c17d
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], ebp
call fcn.00401f50
jmp 0x40c1c8
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
cmp eax, ebx
mov dword [esp + 0x2c], ebp
jge 0x40c1a3
lea ecx, [esp + 0x10]
call fcn.00401f50
jmp 0x40c1c8
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x20], 1
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40c1c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40c1d8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40c1e8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x20
ret