Function at 0x405870
Capabilities:
Check if file exists
Create directory
Create shortcut via ishelllink
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84c
mov eax, dword [0x46ad0c]
push ebx
push esi
mov dword [esp + 0x850], eax
mov eax, dword [0x46c230]
mov ebx, ecx
mov ecx, dword [eax + 4]
push edi
push ecx
lea edx, [esp + 0x74c]
push 0x45d948
push edx
mov dword [esp + 0x20], ebx
call fcn.0044b73f
add esp, 0xc
lea eax, [esp + 0x748]
push eax
push str.http:__www.wn51.com_
push 0x45d92c
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov byte [esp + 0x120], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x121]
rep stosd dword es:[edi], eax
push 0
push 0x17
lea ecx, [esp + 0x128]
stosw word es:[edi], ax
push ecx
push 0
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x405912
mov ecx, dword [esp + 0x854]
call fcn.0044b7c8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edi, [esp + 0x120]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405920
mov edx, dword [0x45d90c]
mov eax, dword [0x45d910]
mov cx, word [0x45d914]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [edi], edx
push 0
lea edx, [esp + 0x124]
mov dword [edi + 4], eax
push edx
mov word [edi + 8], cx
call esi
lea edi, [esp + 0x120]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405960
mov eax, dword [0x45d8fc]
mov ecx, dword [0x45d900]
mov edx, dword [0x45d904]
mov dword [edi], eax
mov eax, dword [0x45d908]
mov dword [edi + 4], ecx
push 0
lea ecx, [esp + 0x124]
mov dword [edi + 8], edx
push ecx
mov dword [edi + 0xc], eax
call esi
lea edx, [esp + 0x120]
push edx
lea eax, [esp + 0x1c]
push 0x45d8ec
push eax
call fcn.0044b73f
mov ecx, dword [0x46c230]
mov edx, dword [ecx + 4]
add edx, 0x104
push edx
lea eax, [esp + 0x238]
push 0x45d8d4
push eax
call fcn.0044b73f
push str.__twnwbwg__mUpdate
lea ecx, [esp + 0x554]
push 0x45c28c
push ecx
call fcn.0044b73f
add esp, 0x24
lea edx, [esp + 0x538]
push edx
push 0
push 0
push 1
push 0
lea eax, [esp + 0x23c]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebx
call fcn.00405720
lea edx, [esp + 0x120]
push edx
lea eax, [esp + 0x1c]
push 0x45d8a8
push eax
call fcn.0044b73f
mov ecx, dword [0x46c230]
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0x238]
push str._swnwbIMETool.exe
push eax
call fcn.0044b73f
mov esi, dword [sym.imp.ole32.dll_CoInitialize]
add esp, 0x18
push 0
call esi
test eax, eax
mov edi, dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jl 0x405af6
lea ecx, [esp + 0xc]
push ecx
push 0x464d8c
push 1
push 0
push 0x464d9c
call edi
test eax, eax
jl 0x405af0
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
lea ecx, [esp + 0x228]
push ecx
push eax
call dword [edx + 0x50]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push 1
push eax
call dword [edx + 0x3c]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x464dac
push eax
call dword [ecx]
test eax, eax
jl 0x405ae6
push 0x104
lea eax, [esp + 0x334]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
call ebx
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push 0
lea ecx, [esp + 0x334]
push ecx
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea edx, [esp + 0x120]
push edx
lea eax, [esp + 0x1c]
push 0x45d888
push eax
call fcn.0044b73f
mov ecx, dword [0x46c230]
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0x238]
push str._swnwbwnbhelp.chm
push eax
call fcn.0044b73f
add esp, 0x18
push 0
call esi
test eax, eax
jl 0x405bce
lea ecx, [esp + 0xc]
push ecx
push 0x464d8c
push 1
push 0
push 0x464d9c
call edi
test eax, eax
jl 0x405bc8
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
lea ecx, [esp + 0x228]
push ecx
push eax
call dword [edx + 0x50]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push 1
push eax
call dword [edx + 0x3c]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x464dac
push eax
call dword [ecx]
test eax, eax
jl 0x405bbe
push 0x104
lea eax, [esp + 0x334]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
call ebx
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push 0
lea ecx, [esp + 0x334]
push ecx
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea edx, [esp + 0x120]
push edx
lea eax, [esp + 0x1c]
push 0x45d864
push eax
call fcn.0044b73f
mov ecx, dword [0x46c230]
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0x238]
push 0x45d948
push eax
call fcn.0044b73f
add esp, 0x18
push 0
call esi
test eax, eax
jl 0x405ca6
lea ecx, [esp + 0xc]
push ecx
push 0x464d8c
push 1
push 0
push 0x464d9c
call edi
test eax, eax
jl 0x405ca0
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
lea ecx, [esp + 0x228]
push ecx
push eax
call dword [edx + 0x50]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push 1
push eax
call dword [edx + 0x3c]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x464dac
push eax
call dword [ecx]
test eax, eax
jl 0x405c96
push 0x104
lea eax, [esp + 0x334]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
call ebx
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push 0
lea ecx, [esp + 0x334]
push ecx
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea edx, [esp + 0x120]
push edx
lea eax, [esp + 0x1c]
push 0x45d848
push eax
call fcn.0044b73f
mov ecx, dword [0x46c230]
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0x238]
push str._suninst.exe
push eax
call fcn.0044b73f
add esp, 0x18
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x405d0b
mov ecx, dword [esp + 0x14]
push str.wnwg_wn51
push eax
push eax
push 1
push eax
lea edx, [esp + 0x23c]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00405720
lea ecx, [esp + 0x120]
push ecx
lea edx, [esp + 0x1c]
push 0x45d818
push edx
call fcn.0044b73f
add esp, 0xc
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x120]
push ecx
lea edx, [esp + 0x1c]
push 0x45d800
push edx
call fcn.0044b73f
mov eax, dword [0x46c230]
mov ecx, dword [eax + 4]
push ecx
lea edx, [esp + 0x238]
push str._swnwbwnwb.exe
push edx
call fcn.0044b73f
mov eax, dword [0x46c230]
mov ecx, dword [eax + 4]
push ecx
lea edx, [esp + 0x65c]
push str._swnwb
push edx
call fcn.0044b73f
add esp, 0x24
push 0
lea eax, [esp + 0x644]
push eax
push 0x657
push 1
push 0x45d7e0
lea ecx, [esp + 0x23c]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x30]
push edx
call fcn.00405720
mov ecx, dword [esp + 0x854]
mov eax, 1
call fcn.0044b7c8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret