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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bb3e8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x64ef64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], edx
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
jb 0x40504c
mov eax, dword [esi]
jmp 0x40504e
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40507f
cmp dword [esi + 0x14], 8
jb 0x405063
mov eax, dword [esi]
jmp 0x405065
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp dword [esi + 0x14], 8
jb 0x405076
mov eax, dword [esi]
jmp 0x405078
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x4050ad
lea eax, [ebp - 0x20]
push eax
push 0x6000f0
push 1
push 0
push 0x600120
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4050b4
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
jmp 0x405231
push dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x48]
call fcn.00407d00
add esp, 4
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 8
jb 0x4050d6
mov edx, dword [edx]
mov eax, dword [ebp - 0x20]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
cmp eax, 8
jb 0x4050fc
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.00408aa0
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x14], 8
jb 0x405107
mov edx, dword [edx]
mov eax, dword [ebp - 0x20]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
cmp dword [ebx + 0x10], 0
je 0x405129
cmp dword [ebx + 0x14], 8
jb 0x40511f
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x20]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x14], 8
jb 0x405134
mov edx, dword [edx]
mov eax, dword [ebp - 0x20]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp dword [edi + 0x10], 0
je 0x4051ee
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push 0x60bcf8
lea ecx, [ebp - 0x60]
movq qword [ebp - 0x1c], xmm0
call fcn.004089c0
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 1
push eax
mov edx, edi
lea ecx, [ebp - 0x1c]
call fcn.00415f30
add esp, 4
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00405540
mov ecx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
mov ebx, dword [ebp - 0x1c]
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x4051cb
cmp dword [ebx + 0x2c], 8
lea eax, [ebx + 0x18]
jb 0x4051b1
mov eax, dword [eax]
push eax
call fcn.005a1448
mov edx, dword [ebp - 0x1c]
add esp, 4
mov edi, eax
cmp dword [edx + 0x14], 8
jb 0x4051c7
mov edx, dword [edx]
push edi
push edx
jmp 0x4051d6
cmp dword [edi + 0x14], 8
jb 0x4051d3
mov edi, dword [edi]
push 0
push edi
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00407270
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x24]
push edx
push 0x600170
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x405220
cmp dword [esi + 0x14], 8
jb 0x40520b
mov esi, dword [esi]
mov eax, dword [ebp - 0x24]
push 1
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054af65
mov esp, ebp
pop ebp
ret