Function at 0x404740
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42c646
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [0x43b180]
push ebx
mov dword [esp + 0x11c], eax
mov eax, dword [ebp + 0xc]
test eax, eax
push esi
push edi
mov esi, ecx
jne 0x4047b2
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 4]
imul eax, eax, 0x1c
add eax, ecx
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4047b2
add eax, 0x18
push eax
add esi, 0x1c
push esi
lea edx, [esp + 0x14]
push edx
call fcn.00404140
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
jmp 0x404a3d
push 0x42f408
lea ebx, [esi + 0x1c]
push ebx
lea eax, [esp + 0x1c]
push eax
call fcn.004041f0
mov eax, dword [eax]
push eax
push str.http:__www.wn51.com
push 0x42f404
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4047fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 2
lea eax, [esp + 0x20]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x404a59
lea edi, [esp + 0x18]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404830
mov ecx, dword [0x42f3e4]
mov edx, dword [0x42f3e8]
mov ax, word [0x42f3ec]
mov dword [edi], ecx
push 0
lea ecx, [esp + 0x1c]
mov dword [edi + 4], edx
push ecx
mov word [edi + 8], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404865
mov edx, dword [0x42f3dc]
mov eax, dword [0x42f3e0]
push 0
lea ecx, [esp + 0x1c]
mov dword [edi], edx
push ecx
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call fcn.0041f593
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x134], 0
call fcn.0041f593
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push 0x42f3cc
push ecx
mov byte [esp + 0x140], 1
call fcn.00404120
mov edx, dword [ebx]
push edx
lea eax, [esp + 0x20]
push str._swnwbWnwbUpgrade.exe
push eax
call fcn.00404120
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add esp, 0x18
push 0
push 1
push 0
push ecx
push edx
push 1
mov ecx, esi
call fcn.00402aa0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push 0x42f39c
push ecx
call fcn.00404120
mov edx, dword [ebx]
push edx
lea eax, [esp + 0x20]
push str._swnwbIMETool.exe
push eax
call fcn.00404120
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add esp, 0x18
push 0
push 1
push 0
push ecx
push edx
push 1
mov ecx, esi
call fcn.00402aa0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push 0x42f37c
push ecx
call fcn.00404120
mov edx, dword [ebx]
push edx
push str._swnwbwnbhelp.chm
lea eax, [esp + 0x24]
push eax
call fcn.00404120
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add esp, 0x18
push 0
push 1
push 0
push ecx
push edx
push 1
mov ecx, esi
call fcn.00402aa0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push 0x42f358
push ecx
call fcn.00404120
mov edx, dword [ebx]
push edx
lea eax, [esp + 0x20]
push 0x42f344
push eax
call fcn.00404120
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add esp, 0x18
push 0
push 1
push 0
push ecx
push edx
push 1
mov ecx, esi
call fcn.00402aa0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push 0x42f338
push ecx
call fcn.00404120
mov edx, dword [ebx]
push edx
lea eax, [esp + 0x20]
push str._suninst.exe
push eax
call fcn.00404120
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
add esp, 0x18
push 0
push 1
push 0
push edi
push ebx
push 1
mov ecx, esi
call fcn.00402aa0
lea eax, [edi - 0x10]
mov byte [esp + 0x134], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x134], 0xffffffff
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x124]
call fcn.004120ce
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8