Function at 0x40f4d0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ec5d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5e6000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], edx
mov edi, ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x5ba4f4
push 0x17
push 0
push 0x5ba858
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40f6c0
call fcn.0041f881
mov ecx, eax
test ecx, ecx
je 0x40f6df
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test edi, edi
je 0x40f575
test edi, 0xffff0000
jne 0x40f55f
movzx eax, di
lea ecx, [ebp - 0x10]
push eax
call fcn.00407a20
jmp 0x40f581
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f564
sub ecx, edx
sar ecx, 1
jmp 0x40f577
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.00402c30
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.0055e3be
add esp, 8
test eax, eax
jne 0x40f59f
or eax, 0xffffffff
jmp 0x40f5a3
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402510
mov byte [ebp - 4], 2
lea ebx, [esi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x40f609
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x40f5fa
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x40f5fa
push edx
call fcn.00402880
add esp, 4
mov dword [ebp - 0x1c], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40f5f2
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
jmp 0x40f609
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00402c30
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x20]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f62a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x14]
push dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x14]
push 0
push dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x14]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push 0x5ba7a4
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x40f684
mov eax, dword [ebp - 0x18]
push 1
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40f6a9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5ef70c], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402be0
int3