Function at 0x40d9c0
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 [0x46fb34]
push 0xa
lea ecx, [ebp - 0x4c]
mov ebx, eax
call fcn.00428a45
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.00402470
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040b8a0
add esp, 8
cmp eax, 4
je 0x40da7c
lea ecx, [ebp - 0x14]
push str._CreateShortCut__Invalid_arguments__nArg_4_:
push ecx
lea ecx, [ebp + 8]
call fcn.00402290
mov edi, dword [eax]
xor esi, esi
add esp, 8
cmp edi, esi
jne 0x40da34
mov dword [ebp - 0xc], esi
jmp 0x40da62
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x40da4a
mov dword [ebp - 0xc], esi
jmp 0x40da62
lea esi, [eax + eax]
mov eax, esi
call fcn.00441030
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00408280
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x30]
call fcn.0043b4a4
push 0x4686c8
lea eax, [ebp - 0x30]
push eax
call fcn.0043e342
push 0
lea ecx, [ebp - 0x4c]
call fcn.00428a21
test eax, eax
jne 0x40da8f
jmp fcn.00423abe
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.00402470
add esp, 4
add eax, 0x10
push 1
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x24], eax
call fcn.00428a21
test eax, eax
jne 0x40dab7
jmp fcn.00423abe
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.00402470
add esp, 4
add eax, 0x10
push 2
lea ecx, [ebp - 0x4c]
mov dword [ebp - 8], eax
call fcn.00428a21
test eax, eax
jne 0x40dadf
jmp fcn.00423abe
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.00402470
add esp, 4
add eax, 0x10
push 3
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x20], eax
call fcn.00428a21
test eax, eax
jne 0x40db07
jmp fcn.00423abe
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.00402470
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 0x40dbe4
mov ecx, dword [ebp - 8]
cmp dword [ecx - 0xc], eax
jl 0x40db7b
push str.http:__
push ecx
call fcn.0043b5b7
mov ecx, dword [ebp - 8]
add esp, 8
test eax, eax
je 0x40db59
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x40dbe4
cmp dword [ecx - 0xc], 0
jl 0x40db7b
push 0x461158
push ecx
call fcn.0043b5b7
add esp, 8
test eax, eax
je 0x40db7b
sub eax, dword [ebp - 8]
sar eax, 1
cmp eax, 0xffffffff
jne 0x40dbe4
lea edx, [ebp - 0x14]
push str._CreateShortCut__Source_file_or_link_not_found:
push edx
lea ecx, [ebp + 8]
call fcn.00402290
mov edi, dword [eax]
xor esi, esi
add esp, 8
cmp edi, esi
jne 0x40db9c
mov dword [ebp - 0xc], esi
jmp 0x40dbca
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x40dbb2
mov dword [ebp - 0xc], esi
jmp 0x40dbca
lea esi, [eax + eax]
mov eax, esi
call fcn.00441030
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00408280
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x30]
call fcn.0043b4a4
push 0x4686c8
lea ecx, [ebp - 0x30]
push ecx
call fcn.0043e342
mov ebx, dword [ebp - 0x24]
push ebx
call edi
test eax, eax
je 0x40dbf5
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 0x45e520
push 1
push 0
push 0x45e530
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40ddf9
call fcn.0042190e
test eax, eax
jne 0x40dc30
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 0x40dd69
push 0x461158
push ecx
call fcn.0043b5b7
mov ecx, dword [ebp - 8]
add esp, 8
test eax, eax
je 0x40dd69
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x40dd69
mov edi, dword [ecx - 0xc]
test edi, edi
jge 0x40dc7e
or eax, 0xffffffff
jmp 0x40dc9a
push 0x461158
push ecx
call fcn.0043b5b7
add esp, 8
test eax, eax
jne 0x40dc95
or eax, 0xffffffff
jmp 0x40dc9a
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.004077d0
push eax
lea ecx, [ebp - 0xc]
call fcn.004029d0
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 0x40dcd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [ebp - 0xc]
call fcn.00414820
mov edi, eax
call fcn.004148a0
mov ecx, dword [ebp - 0xc]
cmp dword [ecx - 0xc], 1
jle 0x40dcf5
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 0x40dd03
or eax, 0xffffffff
jmp 0x40dd1f
push 0x461158
push eax
call fcn.0043b5b7
add esp, 8
test eax, eax
jne 0x40dd1a
or eax, 0xffffffff
jmp 0x40dd1f
sub eax, dword [ebp - 8]
sar eax, 1
push eax
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 8]
call fcn.00407850
push eax
lea ecx, [ebp - 8]
call fcn.004029d0
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 0x40dd54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [ebp - 8]
call fcn.00414820
mov edi, eax
call fcn.004148a0
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 0x45e570
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x40ddcf
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 0x40ddf9
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 0x40de1b
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 0x40de3a
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 0x40de59
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 0x40de75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x4c]
call fcn.00428b7d
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40de99
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.00439c98
mov esp, ebp
pop ebp
ret