Function at 0x40d610
Capabilities:
Check if file exists
Create shortcut via ishelllink
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x46d750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [0x46eaf4]
push 0xa
lea ecx, [ebp - 0x4c]
mov ebx, eax
call fcn.00429689
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x14], esp
mov edi, esp
push eax
mov dword [ebp - 0x14], eax
call fcn.004020e0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040b770
add esp, 8
cmp eax, 4
je 0x40d6cc
lea ecx, [ebp - 0x14]
push str._CreateShortCut__Invalid_arguments__nArg_4_:
push ecx
lea ecx, [ebp + 8]
call fcn.00401eb0
mov edi, dword [eax]
xor esi, esi
add esp, 8
cmp edi, esi
jne 0x40d684
mov dword [ebp - 0xc], esi
jmp 0x40d6b2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x40d69a
mov dword [ebp - 0xc], esi
jmp 0x40d6b2
lea esi, [eax + eax]
mov eax, esi
call fcn.00440090
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00408150
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x30]
call fcn.0043920e
push 0x467390
lea eax, [ebp - 0x30]
push eax
call fcn.0043b69a
push 0
lea ecx, [ebp - 0x4c]
call fcn.00429665
test eax, eax
jne 0x40d6df
jmp fcn.004232a7
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.004020e0
add esp, 4
add eax, 0x10
push 1
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x24], eax
call fcn.00429665
test eax, eax
jne 0x40d707
jmp fcn.004232a7
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.004020e0
add esp, 4
add eax, 0x10
push 2
lea ecx, [ebp - 0x4c]
mov dword [ebp - 8], eax
call fcn.00429665
test eax, eax
jne 0x40d72f
jmp fcn.004232a7
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.004020e0
add esp, 4
add eax, 0x10
push 3
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x20], eax
call fcn.00429665
test eax, eax
jne 0x40d757
jmp fcn.004232a7
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.004020e0
mov ecx, dword [ebp - 8]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 4
mov esi, eax
push ecx
add esi, 0x10
call edi
test eax, eax
jne 0x40d834
mov ecx, dword [ebp - 8]
cmp dword [ecx - 0xc], eax
jl 0x40d7cb
push str.http:__
push ecx
call fcn.0043a679
mov ecx, dword [ebp - 8]
add esp, 8
test eax, eax
je 0x40d7a9
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x40d834
cmp dword [ecx - 0xc], 0
jl 0x40d7cb
push 0x45ff88
push ecx
call fcn.0043a679
add esp, 8
test eax, eax
je 0x40d7cb
sub eax, dword [ebp - 8]
sar eax, 1
cmp eax, 0xffffffff
jne 0x40d834
lea edx, [ebp - 0x14]
push str._CreateShortCut__Source_file_or_link_not_found:
push edx
lea ecx, [ebp + 8]
call fcn.00401eb0
mov edi, dword [eax]
xor esi, esi
add esp, 8
cmp edi, esi
jne 0x40d7ec
mov dword [ebp - 0xc], esi
jmp 0x40d81a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x40d802
mov dword [ebp - 0xc], esi
jmp 0x40d81a
lea esi, [eax + eax]
mov eax, esi
call fcn.00440090
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00408150
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x30]
call fcn.0043920e
push 0x467390
lea ecx, [ebp - 0x30]
push ecx
call fcn.0043b69a
mov ebx, dword [ebp - 0x24]
push ebx
call edi
test eax, eax
je 0x40d845
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [ebp - 0x10]
push edx
push 0x45d4a8
push 1
push 0
push 0x45d4b8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40da49
call fcn.00423381
test eax, eax
jne 0x40d880
push 0x80004005
call fcn.00402160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ecx - 0xc], 0
jl 0x40d9b9
push 0x45ff88
push ecx
call fcn.0043a679
mov ecx, dword [ebp - 8]
add esp, 8
test eax, eax
je 0x40d9b9
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x40d9b9
mov edi, dword [ecx - 0xc]
test edi, edi
jge 0x40d8ce
or eax, 0xffffffff
jmp 0x40d8ea
push 0x45ff88
push ecx
call fcn.0043a679
add esp, 8
test eax, eax
jne 0x40d8e5
or eax, 0xffffffff
jmp 0x40d8ea
sub eax, dword [ebp - 8]
sar eax, 1
sub edi, eax
push edi
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 8]
call fcn.004076d0
push eax
lea ecx, [ebp - 0xc]
call fcn.00402800
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d921
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [ebp - 0xc]
call fcn.00414240
mov edi, eax
call fcn.004142c0
mov ecx, dword [ebp - 0xc]
cmp dword [ecx - 0xc], 1
jle 0x40d945
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x2c]
call eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
jge 0x40d953
or eax, 0xffffffff
jmp 0x40d96f
push 0x45ff88
push eax
call fcn.0043a679
add esp, 8
test eax, eax
jne 0x40d96a
or eax, 0xffffffff
jmp 0x40d96f
sub eax, dword [ebp - 8]
sar eax, 1
push eax
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 8]
call fcn.00407750
push eax
lea ecx, [ebp - 8]
call fcn.00402800
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d9a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [ebp - 8]
call fcn.00414240
mov edi, eax
call fcn.004142c0
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x50]
call eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push esi
push eax
call edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 0
push eax
call edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
mov ecx, dword [eax]
push 0
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push 0x45d4f8
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x40da1f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push ebx
push eax
call edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40da49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40da6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40da8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40daa9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dac5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x4c]
call fcn.004297c1
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dae9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438dc7
mov esp, ebp
pop ebp
ret