Function at 0x4c0d0c
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x4f15c2
call fcn.004eadec
sub esp, 0x54
mov eax, dword [0x516ad4]
push ebx
push esi
push edi
mov ebx, edx
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], eax
mov esi, ecx
je 0x4c0e10
cmp esi, edi
je 0x4c0e10
mov eax, dword [0x51a438]
mov dword [ebp - 0x5c], eax
cmp esi, 3
mov dword [ebp - 4], edi
jbe 0x4c0d5e
push 3
push 0x51a434
push ebx
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4c0d6b
push ebx
mov eax, esi
call fcn.004245ba
test al, al
pop ecx
je 0x4c0d9b
lea ecx, [ebx + 3]
push ecx
lea eax, [esi - 3]
lea ecx, [ebp - 0x58]
call fcn.00401621
mov edi, eax
pop ecx
lea eax, [ebp - 0x5c]
call fcn.00403223
mov eax, dword [ebp - 0x58]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4c0dc4
push eax
call fcn.004013aa
jmp 0x4c0dc4
push edi
push edi
push esi
push ebx
push edi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call edi
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403308
push eax
push esi
push ebx
push 0
push 0
call edi
dec eax
lea ecx, [ebp - 0x5c]
call fcn.00403334
mov esi, dword [ebp - 0x5c]
mov eax, dword [esi - 8]
push dword [ebp + 0xc]
lea ebx, [esi + eax*2]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
and al, 1
dec al
neg al
sbb eax, eax
inc eax
mov dword [edi], eax
lea eax, [edi + 4]
call fcn.00403266
push ebx
push edi
mov edx, esi
call fcn.004c168d
test eax, eax
mov dword [ebp - 0x60], eax
jne 0x4c0e2b
lea eax, [esi - 0xc]
cmp eax, dword [0x51a43c]
je 0x4c0e10
push eax
call fcn.004013aa
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004eae3c
leave
ret 8
and dword [ebp - 0x54], 0
test eax, eax
jle 0x4c0f11
jmp 0x4c0e3c
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x54]
lea ecx, [edi + 0x14]
call fcn.0041c3b9
mov ecx, dword [0x51a438]
mov dword [ebp + 0xc], ecx
lea ebx, [eax + 0x10]
lea eax, [ebp + 0xc]
push eax
mov eax, str.Artist
mov byte [ebp - 4], 1
call fcn.004bcf97
mov eax, dword [ebp + 0xc]
cmp dword [eax - 8], 0
jne 0x4c0e7c
add edi, 0xc
push edi
mov ecx, str.Artist
call fcn.0041f174
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 - 0x58]
call fcn.004031b3
mov eax, edi
push eax
mov ecx, str.Tracknumber
mov byte [ebp - 4], 2
call fcn.0041f174
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x58]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4c0ed9
push eax
call fcn.004013aa
mov eax, dword [ebp + 8]
add eax, 8
push eax
mov ecx, str.Album
call fcn.0041f174
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4c0f02
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x60]
mov dword [ebp - 0x54], eax
jl 0x4c0e39
lea eax, [esi - 0xc]
cmp eax, dword [0x51a43c]
je 0x4c0f22
push eax
call fcn.004013aa
xor eax, eax
inc eax
jmp 0x4c0e12