Function at 0x405070
Capabilities:
Check if file exists
Create shortcut via ishelllink
Delete file
Get common file path
Get file attributes
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x42da76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x620
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x638], ebx
mov dword [esp + 0x14], ebx
mov ebp, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push ebx
lea eax, [esp + 0x224]
push 0x1a
push eax
push ebx
mov byte [esp + 0x648], 1
call ebp
test eax, eax
jne 0x4050f9
mov eax, dword [esp + 0x14]
mov byte [esp + 0x638], bl
cmp eax, ebx
je 0x4050d5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x638], 0xffffffff
cmp eax, ebx
je 0x40528e
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor eax, eax
jmp 0x40532d
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea eax, [esp + 0x220]
push eax
push str._sMicrosoftInternet_ExplorerQuick_Launch_
lea ecx, [esp + 0x20]
push 0x104
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
add esp, 0x10
lea edx, [esp + 0x18]
push edx
call edi
cmp eax, 0xffffffff
jne 0x40518e
lea eax, [esp + 0x220]
lea ecx, [esp + 0x18]
push eax
push str._sMicrosoftInternet_ExplorerQuick_LaunchLaunch_Internet_Explorer_Browser.lnk
push 0x104
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0x18]
push edx
call edi
cmp eax, 0xffffffff
jne 0x40518e
mov eax, dword [esp + 0x14]
mov byte [esp + 0x638], bl
cmp eax, ebx
je 0x40516a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x638], 0xffffffff
cmp eax, ebx
je 0x40528e
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor eax, eax
jmp 0x40532d
push ebx
lea eax, [esp + 0x224]
push 0x26
push eax
push ebx
call ebp
test eax, eax
jne 0x4051d9
mov eax, dword [esp + 0x14]
mov byte [esp + 0x638], bl
cmp eax, ebx
je 0x4051b5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x638], 0xffffffff
cmp eax, ebx
je 0x40528e
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor eax, eax
jmp 0x40532d
lea eax, [esp + 0x220]
lea ecx, [esp + 0x428]
push eax
push str._sInternet_Exploreriexplore.exe
push 0x104
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0x10]
push edx
push 0x431fbc
push 1
push ebx
push 0x431fdc
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x405249
mov eax, dword [esp + 0x14]
mov byte [esp + 0x638], bl
cmp eax, ebx
je 0x405229
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x638], 0xffffffff
cmp eax, ebx
je 0x40528e
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor eax, eax
jmp 0x40532d
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x431fec
mov ecx, dword [eax]
push eax
call dword [ecx]
cmp eax, ebx
jge 0x405295
mov eax, dword [esp + 0x14]
mov byte [esp + 0x638], bl
cmp eax, ebx
je 0x405275
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x638], 0xffffffff
cmp eax, ebx
je 0x40528e
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor eax, eax
jmp 0x40532d
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x428]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp + 0x10]
push str.__HOMEDRIVE____HOMEPATH__
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esp + 0x10]
push 0x436868
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x428]
push ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
xor ecx, ecx
cmp eax, ebx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x638], bl
setge cl
cmp eax, ebx
mov esi, ecx
je 0x405312
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x638], 0xffffffff
cmp eax, ebx
je 0x40532b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [esp + 0x630]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x62c
ret