Function at 0x4a8de6
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x4c36f5
call fcn.004bf97c
sub esp, 0x84
push esi
push edi
lea eax, [ebp - 0x50]
call fcn.0040d427
push 0x80
push 3
push 1
xor esi, esi
push Ordinal_2
mov dword [ebp - 4], esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x50]
call fcn.0040d45f
test eax, eax
jne 0x4a8e29
xor edi, edi
jmp 0x4a9021
mov eax, dword [0x4e4150]
push ebx
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov ebx, dword [ebp - 0x24]
cmp ebx, esi
je 0x4a8e42
mov edi, dword [ebp - 0x28]
jmp 0x4a8e4e
lea esi, [ebp - 0x50]
call fcn.0040d2ae
mov edi, eax
xor esi, esi
cmp edi, 3
jbe 0x4a8e67
push 3
push 0x4e414c
push ebx
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4a8e74
push ebx
mov eax, edi
call fcn.0041ccc2
test al, al
pop ecx
je 0x4a8ea4
lea ecx, [ebx + 3]
push ecx
lea eax, [edi - 3]
lea ecx, [ebp - 0x14]
call fcn.004015ee
mov edi, eax
pop ecx
lea eax, [ebp - 0x10]
call fcn.00413bd2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4a8ecd
push eax
call fcn.00401377
jmp 0x4a8ecd
push esi
push esi
push edi
push ebx
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call esi
push eax
lea ecx, [ebp - 0x10]
call fcn.00402f10
push eax
push edi
push ebx
push 0
push 0
call esi
dec eax
lea ecx, [ebp - 0x10]
call fcn.00402f3c
mov edi, dword [ebp - 0x10]
mov eax, dword [edi - 8]
push dword [ebp + 0xc]
lea ebx, [edi + eax*2]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
and al, 1
dec al
neg al
sbb eax, eax
inc eax
mov dword [esi], eax
lea eax, [esi + 4]
call fcn.0040305d
push ebx
push esi
mov edx, edi
call fcn.004a9662
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x4a8f20
add edi, 0xfffffff4
cmp edi, dword [0x4e4154]
je 0x4a8f19
push edi
call fcn.00401377
xor edi, edi
jmp 0x4a9020
and dword [ebp + 8], 0
test eax, eax
jle 0x4a900c
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x14]
call fcn.0041595a
mov ecx, dword [0x4e4150]
mov dword [ebp + 0xc], ecx
lea ebx, [eax + 0x10]
lea eax, [ebp + 0xc]
push eax
mov edi, str.Artist
mov eax, edi
mov byte [ebp - 4], 2
call fcn.004a5a5b
mov eax, dword [ebp + 0xc]
cmp dword [eax - 8], 0
jne 0x4a8f6b
lea eax, [esi + 0xc]
push eax
mov ecx, edi
call fcn.00417756
and word [ebp - 0x90], 0
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x8e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
push 0xa
lea ecx, [ebp - 0x90]
inc eax
push ecx
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.MSVCRT.dll__itow]
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
lea edi, [ebp - 0x14]
call fcn.00413b62
mov eax, edi
push eax
mov ecx, str.Tracknumber
mov byte [ebp - 4], 3
call fcn.00417756
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4a8fd4
push eax
call fcn.00401377
lea eax, [esi + 8]
push eax
mov ecx, str.Album
call fcn.00417756
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4a8ffa
push eax
call fcn.00401377
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x18]
mov dword [ebp + 8], eax
jl 0x4a8f2c
mov edi, dword [ebp - 0x10]
lea eax, [edi - 0xc]
cmp eax, dword [0x4e4154]
je 0x4a901d
push eax
call fcn.00401377
xor edi, edi
inc edi
pop ebx
lea esi, [ebp - 0x50]
call fcn.0040d4e9
mov eax, esi
call fcn.0040d27c
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8