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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x744
mov eax, dword [0x469d0c]
push ebx
push esi
mov dword [esp + 0x748], eax
mov eax, dword [0x46b128]
push edi
mov ebx, ecx
mov ecx, dword [eax + 4]
push ecx
lea edx, [esp + 0x334]
push 0x45c948
push edx
call fcn.0044b4ff
add esp, 0xc
lea eax, [esp + 0x330]
push eax
push str.http:__www.wn51.com_
push 0x45c92c
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov byte [esp + 0x18], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
push 0
push 0x17
lea ecx, [esp + 0x20]
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 0x406105
mov ecx, dword [esp + 0x74c]
call fcn.0044b588
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edi, [esp + 0x18]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406110
mov edx, dword [0x45c90c]
mov eax, dword [0x45c910]
mov cx, word [0x45c914]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [edi], edx
push 0
lea edx, [esp + 0x1c]
mov dword [edi + 4], eax
push edx
mov word [edi + 8], cx
call esi
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406147
mov eax, dword [0x45c988]
mov ecx, dword [0x45c98c]
mov edx, dword [0x45c990]
mov dword [edi], eax
mov eax, dword [0x45c994]
mov dword [edi + 4], ecx
push 0
lea ecx, [esp + 0x1c]
mov dword [edi + 8], edx
push ecx
mov dword [edi + 0xc], eax
call esi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x124]
push 0x45c864
push eax
call fcn.0044b4ff
mov ecx, dword [0x46b128]
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0x238]
push 0x45c948
push eax
call fcn.0044b4ff
add esp, 0x18
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x406260
lea ecx, [esp + 0x10]
push ecx
push 0x463bdc
push 1
push 0
push 0x463bec
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40625a
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
lea ecx, [esp + 0x228]
push ecx
push eax
call dword [edx + 0x50]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push 1
push eax
call dword [edx + 0x3c]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x463bfc
push eax
call dword [ecx]
test eax, eax
jl 0x406250
push 0x104
lea eax, [esp + 0x544]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x12c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push 0
lea ecx, [esp + 0x544]
push ecx
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x124]
push 0x45c8ec
push eax
call fcn.0044b4ff
mov ecx, dword [0x46b128]
mov edx, dword [ecx + 4]
add edx, 0x104
push edx
lea eax, [esp + 0x238]
push 0x45c8d4
push eax
call fcn.0044b4ff
push str.__twnwbime__mUpdate
lea ecx, [esp + 0x454]
push 0x45b28c
push ecx
call fcn.0044b4ff
add esp, 0x24
lea edx, [esp + 0x438]
push edx
push 0
push 0
push 1
push 0
lea eax, [esp + 0x23c]
push eax
lea ecx, [esp + 0x138]
push ecx
mov ecx, ebx
call fcn.00405780
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x124]
push 0x45c958
push eax
call fcn.0044b4ff
mov ecx, dword [0x46b128]
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0x238]
push str._suninst.exe
push eax
call fcn.0044b4ff
add esp, 0x18
lea ecx, [esp + 0x120]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x406343
push str.wnnz
push eax
push eax
push 1
push eax
lea edx, [esp + 0x23c]
push edx
lea eax, [esp + 0x138]
push eax
mov ecx, ebx
call fcn.00405780
mov ecx, dword [esp + 0x74c]
mov eax, 1
call fcn.0044b588
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret