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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x46e780]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [0x46fb44]
push 0xa
lea ecx, [ebp - 0x4c]
mov ebx, eax
call fcn.00428c5c
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.00402490
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040bb40
add esp, 8
cmp eax, 4
je 0x40dd1c
lea ecx, [ebp - 0x14]
push str._CreateShortCut__Invalid_arguments__nArg_4_:
push ecx
lea ecx, [ebp + 8]
call fcn.004022b0
mov edi, dword [eax]
xor esi, esi
add esp, 8
cmp edi, esi
jne 0x40dcd4
mov dword [ebp - 0xc], esi
jmp 0x40dd02
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x40dcea
mov dword [ebp - 0xc], esi
jmp 0x40dd02
lea esi, [eax + eax]
mov eax, esi
call fcn.004411d0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00408520
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x30]
call fcn.0043a782
push 0x468880
lea eax, [ebp - 0x30]
push eax
call fcn.0043e4e2
push 0
lea ecx, [ebp - 0x4c]
call fcn.00428c38
test eax, eax
jne 0x40dd2f
jmp fcn.00423c33
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.00402490
add esp, 4
add eax, 0x10
push 1
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x24], eax
call fcn.00428c38
test eax, eax
jne 0x40dd57
jmp fcn.00423c33
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.00402490
add esp, 4
add eax, 0x10
push 2
lea ecx, [ebp - 0x4c]
mov dword [ebp - 8], eax
call fcn.00428c38
test eax, eax
jne 0x40dd7f
jmp fcn.00423c33
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.00402490
add esp, 4
add eax, 0x10
push 3
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x20], eax
call fcn.00428c38
test eax, eax
jne 0x40dda7
jmp fcn.00423c33
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.00402490
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 0x40de84
mov ecx, dword [ebp - 8]
cmp dword [ecx - 0xc], eax
jl 0x40de1b
push str.http:__
push ecx
call fcn.0043a895
mov ecx, dword [ebp - 8]
add esp, 8
test eax, eax
je 0x40ddf9
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x40de84
cmp dword [ecx - 0xc], 0
jl 0x40de1b
push 0x461318
push ecx
call fcn.0043a895
add esp, 8
test eax, eax
je 0x40de1b
sub eax, dword [ebp - 8]
sar eax, 1
cmp eax, 0xffffffff
jne 0x40de84
lea edx, [ebp - 0x14]
push str._CreateShortCut__Source_file_or_link_not_found:
push edx
lea ecx, [ebp + 8]
call fcn.004022b0
mov edi, dword [eax]
xor esi, esi
add esp, 8
cmp edi, esi
jne 0x40de3c
mov dword [ebp - 0xc], esi
jmp 0x40de6a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x40de52
mov dword [ebp - 0xc], esi
jmp 0x40de6a
lea esi, [eax + eax]
mov eax, esi
call fcn.004411d0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00408520
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x30]
call fcn.0043a782
push 0x468880
lea ecx, [ebp - 0x30]
push ecx
call fcn.0043e4e2
mov ebx, dword [ebp - 0x24]
push ebx
call edi
test eax, eax
je 0x40de95
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 0x45e528
push 1
push 0
push 0x45e538
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40e099
call fcn.00421a7e
test eax, eax
jne 0x40ded0
push 0x80004005
call fcn.00401350
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 0x40e009
push 0x461318
push ecx
call fcn.0043a895
mov ecx, dword [ebp - 8]
add esp, 8
test eax, eax
je 0x40e009
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x40e009
mov edi, dword [ecx - 0xc]
test edi, edi
jge 0x40df1e
or eax, 0xffffffff
jmp 0x40df3a
push 0x461318
push ecx
call fcn.0043a895
add esp, 8
test eax, eax
jne 0x40df35
or eax, 0xffffffff
jmp 0x40df3a
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.00407970
push eax
lea ecx, [ebp - 0xc]
call fcn.004029f0
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 0x40df71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [ebp - 0xc]
call fcn.00407b50
mov edi, eax
call fcn.00407bd0
mov ecx, dword [ebp - 0xc]
cmp dword [ecx - 0xc], 1
jle 0x40df95
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 0x40dfa3
or eax, 0xffffffff
jmp 0x40dfbf
push 0x461318
push eax
call fcn.0043a895
add esp, 8
test eax, eax
jne 0x40dfba
or eax, 0xffffffff
jmp 0x40dfbf
sub eax, dword [ebp - 8]
sar eax, 1
push eax
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 8]
call fcn.004079f0
push eax
lea ecx, [ebp - 8]
call fcn.004029f0
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 0x40dff4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [ebp - 8]
call fcn.00407b50
mov edi, eax
call fcn.00407bd0
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 0x45e578
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x40e06f
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 0x40e099
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 0x40e0bb
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 0x40e0da
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 0x40e0f9
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 0x40e115
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x4c]
call fcn.00428d94
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e139
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.00439e3e
mov esp, ebp
pop ebp
ret