Function at 0x464663
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x6d0
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x6c], ebx
mov dword [ebp + 8], 0x7df
mov dword [ebp + 0xc], 0x7de
mov dword [ebp + 0x10], 0x7dd
mov dword [ebp + 0x14], 0x7e0
mov dword [ebp + 0x18], 0x7ee
je 0x464c2e
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x464c2e
push 0x3ee
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xffff0000
push ebx
push 0x1101
push eax
mov dword [ebp + 0x68], eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 0xc], ebx
je 0x464c2e
push edi
or eax, 0xffffffff
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push str.test.
stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x144]
push eax
call fcn.00402e02
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea ecx, [ebp + eax - 0x144]
push ebx
push 0xb
push dword [ebp + 0x68]
lea eax, [ebp - 0x40]
sub eax, ecx
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x1c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x34
lea eax, [ebp + 0x24]
push ebx
push eax
call sub.NSCRT.dll_memset
mov eax, dword [esi + 0xc]
mov edi, dword [esi + 0x10]
add esp, 0xc
mov dword [ebp + 0x28], 0xffff0002
mov dword [ebp + 0x2c], 0x4d
mov dword [ebp + 0x38], 0xf020
cmp byte [eax], bl
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x64], edi
mov dword [ebp + 0x74], eax
je 0x464a3c
jmp 0x46477e
mov eax, dword [ebp + 0x74]
mov edi, dword [ebp + 0x64]
cmp byte [eax + 1], bl
je 0x464a3c
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x20]
call fcn.00402f81
mov ax, word [edi]
and ax, 0xff00
cmp ax, 0xff00
jne 0x4647f7
push 0x104
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x144]
push 0x475658
push eax
call fcn.004240e1
add esp, 0x10
test eax, eax
jne 0x4647ca
mov byte [ebp - 0x450], bl
mov edx, 0xff
and word [edi], dx
movsx ecx, byte [ebp - 0x450]
sub ecx, 0x30
mov ax, word [edi]
je 0x4647ed
dec ecx
jne 0x4647f7
and ax, dx
or ax, 0x200
jmp 0x4647f4
and ax, dx
or ax, 0x100
mov word [edi], ax
movzx edi, byte [edi + 1]
mov eax, edi
shl eax, 2
cmp dword [ebp + eax - 0xc], ebx
mov dword [ebp + 0x5c], eax
jne 0x4648de
mov dword [ebp + 0x28], 0xffff0003
mov dword [ebp + 0x24], 0xffff0000
mov dword [ebp + 0x4c], 1
mov cl, byte [edi + esi + 0x14]
neg cl
push ebx
push ebx
push dword [ebp + eax + 8]
sbb ecx, ecx
and ecx, 0x20
or ecx, 0x1000
mov dword [ebp + 0x34], ecx
call fcn.0045ede1
mov dword [ebp + 0x3c], eax
or eax, 0xffffffff
sub eax, edi
add esp, 0xc
mov dword [ebp + 0x50], eax
lea eax, [ebp + 0x24]
push eax
push ebx
push 0x1132
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp + 0x5c]
inc edi
push edi
push 0x47c6f8
mov dword [ebp + 0x60], eax
mov dword [ebp + ecx - 0xc], eax
lea eax, [ebp - 0x40]
push 0x20
push eax
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x28], 0xffff0002
call fcn.00402528
add esp, 0x10
cmp dword [ebp + 0x70], ebx
jne 0x4648b3
push 0xffffffffffffffff
lea eax, [esi + 0x19]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
push ebx
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
jne 0x4648b3
mov eax, dword [ebp + 0x60]
mov dword [ebp + 0x70], eax
cmp dword [ebp + 0x6c], ebx
jne 0x4648db
push 0xffffffffffffffff
lea eax, [esi + 0x39]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
push ebx
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
jne 0x4648db
mov eax, dword [ebp + 0x60]
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x5c]
mov ecx, dword [ebp + eax - 0xc]
mov dword [ebp + 0x24], ecx
mov ecx, dword [ebp + 0x64]
test byte [ecx], 1
lea eax, [ebp + eax - 0x20]
mov ecx, dword [eax]
je 0x464904
cmp ecx, 0xffffffff
jne 0x464900
mov dword [eax], 1
jmp 0x464918
cmp ecx, ebx
jmp 0x464910
cmp ecx, 0xffffffff
jne 0x46490d
mov dword [eax], ebx
jmp 0x464918
cmp ecx, 1
jne 0x464918
mov dword [eax], 2
mov edi, 0x104
push edi
lea eax, [ebp - 0x658]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x74]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp + 0x60], eax
lea eax, [ebp - 0x658]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
push edi
lea eax, [ebp - 0x34c]
push eax
mov eax, dword [ebp + 0x64]
movzx edi, byte [eax + 1]
lea eax, [ebp - 0x144]
push eax
call fcn.004645ab
add esp, 0xc
test eax, eax
je 0x464997
cmp dword [ebp + 0x60], ebx
je 0x46497f
push 0x47c720
push 0x104
lea eax, [ebp - 0x658]
push eax
call fcn.0040bd1d
lea eax, [ebp - 0x34c]
push eax
push 0x104
lea eax, [ebp - 0x658]
push eax
call fcn.0040bd1d
lea eax, [ebp - 0x658]
mov dword [ebp + 0x3c], eax
mov eax, dword [ebp + 0x58]
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x64]
test byte [eax], 1
push 0
pop eax
setne al
inc eax
shl eax, 0xc
mov dword [ebp + 0x34], eax
lea eax, [ebp + 0x24]
push eax
push ebx
push 0x1132
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, ebx
je 0x464a1c
cmp dword [ebp + 0x70], ebx
jne 0x4649f7
push 0xffffffffffffffff
lea eax, [esi + 0x19]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x74]
push 1
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
jne 0x4649f7
mov dword [ebp + 0x70], edi
cmp dword [ebp + 0x6c], ebx
jne 0x464a1c
push 0xffffffffffffffff
lea eax, [esi + 0x39]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x74]
push 1
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
jne 0x464a1c
mov dword [ebp + 0x6c], edi
mov edi, dword [ebp + 0x74]
add dword [ebp + 0x64], 2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc dword [ebp + 0x58]
lea eax, [edi + eax + 1]
cmp byte [eax], bl
mov dword [ebp + 0x74], eax
jne 0x464778
mov eax, dword [esi + 0x5c]
push ebx
inc eax
shl eax, 0xc
push ebx
push 0x7e5
mov dword [ebp + 0x24], 0xffff0000
mov dword [ebp + 0x34], eax
call fcn.0045ede1
add esp, 0xc
mov dword [ebp + 0x3c], eax
lea eax, [ebp + 0x24]
push eax
push ebx
push 0x1132
push dword [ebp + 0x68]
mov dword [ebp + 0x50], 0xfffffffa
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp + 0x70], ebx
mov edi, eax
je 0x464a85
cmp dword [ebp + 0x6c], ebx
jne 0x464ae4
push 6
push 0x47c6f8
lea eax, [ebp - 0x40]
push 0x20
push eax
call fcn.00402528
add esp, 0x10
cmp dword [ebp + 0x70], ebx
jne 0x464abf
push 0xffffffffffffffff
lea eax, [esi + 0x19]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
push ebx
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
jne 0x464abf
mov dword [ebp + 0x70], edi
cmp dword [ebp + 0x6c], ebx
jne 0x464ae4
push 0xffffffffffffffff
lea eax, [esi + 0x39]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
push ebx
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
jne 0x464ae4
mov dword [ebp + 0x6c], edi
push 0x104
lea eax, [ebp - 0x34c]
push eax
push dword [0x496644]
mov dword [ebp + 0x74], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.winampa.exe
lea eax, [ebp - 0x34c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x464b37
mov dword [ebp + 0x74], ebx
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3fd
push dword [esi + 8]
call edi
cmp eax, ebx
je 0x464b55
push dword [ebp + 0x74]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x3fe
push dword [esi + 8]
call edi
cmp eax, ebx
je 0x464b6d
push dword [ebp + 0x74]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [esi + 0x60], ebx
je 0x464b7c
cmp dword [ebp + 0x74], ebx
je 0x464b7c
xor eax, eax
inc eax
jmp 0x464b7e
xor eax, eax
mov edi, dword [sym.imp.USER32.dll_CheckDlgButton]
push eax
push 0x3fd
push dword [esi + 8]
call edi
xor eax, eax
cmp dword [esi + 0x64], ebx
setne al
push eax
push 0x3ff
push dword [esi + 8]
call edi
mov dword [ebp + 0x2c], 8
mov dword [ebp + 0x38], 0xf000
xor edi, edi
mov eax, dword [ebp + edi - 0xc]
cmp eax, ebx
je 0x464bec
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp + 0x30], eax
mov eax, dword [ebp + edi - 0x20]
inc eax
shl eax, 0xc
mov dword [ebp + 0x34], eax
lea eax, [ebp + 0x2c]
push eax
push ebx
push 0x110d
push dword [ebp + 0x68]
call esi
push dword [ebp + edi - 0xc]
push ebx
push 0x1113
push dword [ebp + 0x68]
call esi
add edi, 4
cmp edi, 0x14
jb 0x464bb2
cmp dword [ebp + 0x6c], ebx
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
mov edi, 0x110b
je 0x464c0f
push dword [ebp + 0x6c]
push 9
push edi
push dword [ebp + 0x68]
call esi
cmp dword [ebp + 0x70], ebx
je 0x464c1f
push dword [ebp + 0x70]
push 5
push edi
push dword [ebp + 0x68]
call esi
push ebx
push 1
push 0xb
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret