Function at 0x4c175d
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x4f2584
call fcn.004ebd20
sub esp, 0x58
mov eax, dword [0x517ad4]
xor eax, ebp
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
test ebx, ebx
push edi
mov dword [ebp - 0x54], eax
je 0x4c1869
mov edi, dword [ebp + 8]
test edi, edi
je 0x4c1869
mov eax, dword [0x51b438]
mov dword [ebp - 0x58], eax
and dword [ebp - 4], 0
cmp edi, 3
jbe 0x4c17b6
push 3
push 0x51b434
push ebx
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4c17c3
push ebx
mov eax, edi
call fcn.0042439b
test al, al
pop ecx
je 0x4c17f3
add ebx, 3
lea eax, [edi - 3]
push ebx
lea ecx, [ebp - 0x5c]
call fcn.004014d8
mov edi, eax
pop ecx
lea eax, [ebp - 0x58]
call fcn.0040311c
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4c1820
push eax
call fcn.004013b2
jmp 0x4c1820
xor eax, eax
push eax
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push eax
push eax
call edi
push eax
lea ecx, [ebp - 0x58]
call fcn.00403201
push eax
push dword [ebp + 8]
push ebx
push 0
push 0
call edi
dec eax
lea ecx, [ebp - 0x58]
call fcn.0040322d
mov edi, dword [ebp - 0x58]
mov eax, dword [edi - 8]
push dword [ebp - 0x54]
lea ebx, [edi + eax*2]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push dword [ebp - 0x54]
and al, 1
dec al
neg al
sbb eax, eax
inc eax
mov dword [esi], eax
lea eax, [esi + 4]
call fcn.0040315f
push ebx
push esi
mov edx, edi
call fcn.004c20e5
test eax, eax
mov dword [ebp - 0x64], eax
jne 0x4c1885
lea eax, [edi - 0xc]
cmp eax, dword [0x51b43c]
je 0x4c1869
push eax
call fcn.004013b2
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
xor ecx, ebp
pop ebx
call fcn.004ebd70
leave
ret 8
and dword [ebp - 0x54], 0
test eax, eax
jle 0x4c1965
mov eax, dword [ebp - 0x54]
lea ecx, [esi + 0x14]
call fcn.004211d0
mov ecx, dword [0x51b438]
mov dword [ebp - 0x60], ecx
lea ebx, [eax + 0x10]
lea eax, [ebp - 0x60]
push eax
mov edi, str.Artist
mov eax, edi
mov byte [ebp - 4], 1
call fcn.004bd933
mov eax, dword [ebp - 0x60]
cmp dword [eax - 8], 0
jne 0x4c18d0
lea eax, [esi + 0xc]
push eax
mov ecx, edi
call fcn.0041ec75
and word [ebp - 0x50], 0
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x4e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x54]
push 0xa
lea ecx, [ebp - 0x50]
inc eax
push ecx
push eax
mov dword [ebp - 0x54], eax
call dword [sym.imp.MSVCRT.dll__itow]
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
lea edi, [ebp - 0x5c]
call fcn.00403098
mov eax, edi
push eax
mov ecx, str.Tracknumber
mov byte [ebp - 4], 2
call fcn.0041ec75
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4c192d
push eax
call fcn.004013b2
lea eax, [esi + 8]
push eax
mov ecx, str.Album
call fcn.0041ec75
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x60]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4c1953
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x64]
mov dword [ebp - 0x54], eax
jl 0x4c1891
mov edi, dword [ebp - 0x58]
lea eax, [edi - 0xc]
cmp eax, dword [0x51b43c]
je 0x4c1976
push eax
call fcn.004013b2
xor eax, eax
inc eax
jmp 0x4c186b