Function at 0x40707d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
and byte [ebp - 0x1a4], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x1a3]
rep stosd dword es:[edi], eax
mov ebx, dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebx + 0xbc]
test eax, eax
je 0x407350
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.WINAMP
push eax
call esi
test eax, eax
jne 0x4070d3
mov dword [ebp + 8], str.Winamp
mov dword [ebp - 4], str.winamp.exe
jmp 0x4070f6
push str.WINAMP3
push dword [ebx + 0xbc]
call esi
test eax, eax
jne 0x407350
mov dword [ebp + 8], str.Winamp3
mov dword [ebp - 4], str.studio.exe
mov edi, 0x41fb08
push edi
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
mov esi, 0x41fa00
jne 0x407160
push 0x104
push 0x80000002
push edi
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
call fcn.00402abc
add esp, 0x14
test eax, eax
jne 0x407133
push 0x11
jmp 0x40734d
push dword [ebp + 8]
push edi
push esi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x407157
test al, 0x10
jne 0x407160
push edi
push esi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
and dword [ebp + 8], 0
jmp 0x40720d
push dword [ebp - 4]
lea eax, [ebp - 0x1a4]
push 0x417064
push esi
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x1a4]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4071a6
test al, 0x10
je 0x40721c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.WINAMP
push dword [ebx + 0xbc]
call edi
test eax, eax
jne 0x4071d0
push eax
mov eax, dword [ebp + 8]
push 2
cdq
pop ecx
idiv ecx
push dword [edx*4 + 0x4176bc]
jmp 0x4071f2
push str.WINAMP3
push dword [ebx + 0xbc]
call edi
test eax, eax
jne 0x40720a
push eax
mov eax, dword [ebp + 8]
push 2
cdq
pop ecx
idiv ecx
push dword [edx*4 + 0x4176c4]
push esi
push esi
push dword [0x42552c]
call fcn.0040bf69
add esp, 0x14
test eax, eax
je 0x40712c
inc dword [ebp + 8]
cmp byte [0x41f9f8], 0
je 0x407169
jmp 0x407223
mov byte [0x41f9f8], 1
cmp byte [0x4176cc], 0
je 0x407303
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x407303
push eax
push str.wtwav
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x407303
and byte [ebp - 0x78], al
push 0xf
pop ecx
lea edi, [ebp - 0x77]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
lea eax, [ebp - 0x78]
push edi
push edi
push edi
push edi
push 0x40
push eax
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040307e
add esp, 0x1c
test eax, eax
je 0x40731d
lea eax, [ebp - 0x78]
push str.2.0.5.0
push eax
call fcn.00402e32
pop ecx
test eax, eax
pop ecx
jl 0x40731d
push esi
call fcn.00406f38
mov edx, eax
pop ecx
cmp edx, edi
je 0x4072fc
cmp edx, 5
je 0x4072f8
and byte [ebp - 0x38], 0
push 0xa
pop ecx
mov esi, str.System_Error__10d_while_deleting_files.
lea edi, [ebp - 0xa0]
push 0xc
rep movsd dword es:[edi], dword [esi]
pop ecx
xor eax, eax
lea edi, [ebp - 0x37]
push edx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x38]
push 0
push str.Installation_Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
inc eax
jmp 0x407352
push 0x13
jmp 0x40734d
and byte [0x4176cc], 0
push esi
push 0x425318
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
call fcn.0040cd19
test eax, eax
jne 0x407321
push 6
jmp 0x40734d
push 0x12
jmp 0x40734d
mov eax, dword [ebx + 0x48]
cmp eax, 0xffffffff
jle 0x407350
mov eax, dword [ebx + eax*4 + 0xf0]
push esi
mov dword [eax + 8], 1
mov eax, dword [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0xf0]
call fcn.00401e00
test eax, eax
jne 0x407350
push 5
pop eax
jmp 0x407352
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret