Function at 0x501c50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x703b5c
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x7e6410]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x28], ebx
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
call eax
test al, al
je 0x501cda
push 0
push str.ASF::File::save______File_is_read_only.
lea ecx, [esp + 0xa8]
call fcn.004c5540
mov edx, dword [esp + 0xa4]
mov dword [esp + 0xa0], vtable.TagLib::String.0
mov eax, dword [edx + 4]
mov ecx, dword [eax]
mov eax, dword [edx + 4]
dec ecx
mov dword [eax], ecx
jne 0x502757
mov ecx, dword [esp + 0xa4]
jmp 0x502751
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x502718
mov eax, dword [ebx + 4]
cmp byte [eax + 5], 0
je 0x502718
mov eax, dword [ebx + 8]
cmp dword [eax + 0x18], 0
jne 0x501d6b
push 0xc
call fcn.006b6815
mov esi, eax
add esp, 4
test esi, esi
jne 0x501d27
mov byte [esp + 0x27], al
lea eax, [esp + 0x27]
push 0x7da8d8
push eax
call fcn.006b4394
mov dword [esp + 0x2c], esi
mov ecx, esi
mov dword [esp + 0xc0], 0
call fcn.004ff980
mov dword [esp + 0xc0], 0xffffffff
mov dword [esi], vtable.TagLib::ASF::File::FilePrivate::ContentDescriptionObject.0
mov eax, dword [ebx + 8]
mov dword [eax + 0x18], esi
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + 0x18]
add ecx, 0x10
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x4c]
push eax
call fcn.00502cf0
mov eax, dword [ebx + 8]
cmp dword [eax + 0x1c], 0
jne 0x501dd3
push 0x18
call fcn.006b6815
add esp, 4
test eax, eax
jne 0x501d95
mov byte [esp + 0x22], al
lea eax, [esp + 0x22]
push 0x7da8d8
push eax
call fcn.006b4394
mov dword [esp + 0x2c], eax
mov ecx, eax
mov dword [esp + 0xc0], 1
call fcn.00502770
mov dword [esp + 0xc0], 0xffffffff
mov ecx, dword [ebx + 8]
mov dword [ecx + 0x1c], eax
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + 0x1c]
add ecx, 0x10
mov dword [esp + 0x54], eax
lea eax, [esp + 0x54]
push eax
call fcn.00502cf0
mov eax, dword [ebx + 8]
cmp dword [eax + 0x20], 0
jne 0x501e3b
push 0x14
call fcn.006b6815
add esp, 4
test eax, eax
jne 0x501dfd
mov byte [esp + 0x23], al
lea eax, [esp + 0x23]
push 0x7da8d8
push eax
call fcn.006b4394
mov dword [esp + 0x2c], eax
mov ecx, eax
mov dword [esp + 0xc0], 2
call fcn.00500920
mov dword [esp + 0xc0], 0xffffffff
mov ecx, dword [ebx + 8]
mov dword [ecx + 0x20], eax
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + 0x20]
add ecx, 0x10
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
push eax
call fcn.00502cf0
mov eax, dword [ebx + 8]
cmp dword [eax + 0x24], 0
jne 0x501ea6
push 0x18
call fcn.006b6815
add esp, 4
test eax, eax
jne 0x501e65
mov byte [esp + 0x25], al
lea eax, [esp + 0x25]
push 0x7da8d8
push eax
call fcn.006b4394
mov dword [esp + 0x2c], eax
mov ecx, eax
mov dword [esp + 0xc0], 3
call fcn.00500f90
mov dword [esp + 0xc0], 0xffffffff
mov ecx, dword [ebx + 8]
mov dword [ecx + 0x24], eax
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x20]
mov dword [esp + 0x50], eax
add ecx, 0xc
lea eax, [esp + 0x50]
push eax
call fcn.00502cf0
mov eax, dword [ebx + 8]
cmp dword [eax + 0x28], 0
jne 0x501f11
push 0x18
call fcn.006b6815
add esp, 4
test eax, eax
jne 0x501ed0
mov byte [esp + 0x26], al
lea eax, [esp + 0x26]
push 0x7da8d8
push eax
call fcn.006b4394
mov dword [esp + 0x2c], eax
mov ecx, eax
mov dword [esp + 0xc0], 4
call fcn.00500ff0
mov dword [esp + 0xc0], 0xffffffff
mov ecx, dword [ebx + 8]
mov dword [ecx + 0x28], eax
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + 0x28]
mov ecx, dword [ecx + 0x20]
mov dword [esp + 0x58], eax
add ecx, 0xc
lea eax, [esp + 0x58]
push eax
call fcn.00502cf0
mov eax, dword [ebx + 8]
mov esi, dword [eax + 0x1c]
lea ecx, [esi + 0xc]
call fcn.004e9c20
mov ecx, dword [esi + 0x10]
lea ecx, [ecx + 8]
call fcn.004c7430
mov eax, dword [ebx + 8]
mov esi, dword [eax + 0x24]
lea ecx, [esi + 0xc]
call fcn.004e9c20
mov ecx, dword [esi + 0x10]
lea ecx, [ecx + 8]
call fcn.004c7430
mov eax, dword [ebx + 8]
mov esi, dword [eax + 0x28]
lea ecx, [esi + 0xc]
call fcn.004e9c20
mov ecx, dword [esi + 0x10]
lea ecx, [ecx + 8]
call fcn.004c7430
mov eax, dword [ebx + 8]
mov dword [esp + 0x8c], vtable.TagLib::Map_class_TagLib::String__class_TagLib::List_class_TagLib::ASF::Attribute__.0
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov esi, dword [eax + 0x40]
push esi
mov dword [esp + 0x94], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esi + 4]
mov dword [esp + 0xc0], 5
mov esi, dword [ecx]
mov dword [esp + 0x3c], ecx
mov esi, dword [esi]
cmp esi, dword [ecx]
je 0x50225f
nop
mov eax, dword [esi + 0x20]
mov byte [esp + 0x17], 0
mov byte [esp + 0x16], 0
mov edi, dword [eax + 8]
mov edi, dword [edi]
cmp edi, dword [eax + 8]
je 0x502214
jmp 0x501fc0
lea ecx, [edi + 8]
call fcn.004d3e90
cmp eax, 0xffff
mov eax, dword [edi + 0xc]
setg dl
cmp dword [eax + 8], 6
sete cl
cmp byte [esp + 0x17], 0
jne 0x50204b
test cl, cl
jne 0x50204b
test dl, dl
jne 0x50204b
cmp dword [eax + 0x34], 0
jne 0x50204b
cmp dword [eax + 0x30], 0
jne 0x50204b
push 0
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x7c]
push eax
lea ecx, [edi + 8]
call fcn.004d3f10
mov ebx, dword [esp + 0x28]
mov byte [esp + 0xc0], 6
push eax
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x1c]
add ecx, 0xc
call fcn.004e8c40
mov byte [esp + 0xc0], 5
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x74], vtable.TagLib::ByteVector.0
test ecx, ecx
je 0x502041
push ecx
call fcn.004c2ee0
mov byte [esp + 0x17], 1
jmp 0x502202
cmp byte [esp + 0x16], 0
jne 0x5020bc
test cl, cl
jne 0x5020bc
test dl, dl
jne 0x5020bc
cmp dword [eax + 0x34], 0
jne 0x5020bc
cmp dword [eax + 0x30], 0
je 0x5020bc
push 1
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [edi + 8]
call fcn.004d3f10
mov ebx, dword [esp + 0x28]
mov byte [esp + 0xc0], 7
push eax
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x24]
add ecx, 0xc
call fcn.004e8c40
mov byte [esp + 0xc0], 5
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x5c], vtable.TagLib::ByteVector.0
test ecx, ecx
je 0x5020b2
push ecx
call fcn.004c2ee0
mov byte [esp + 0x16], 1
jmp 0x502202
push 2
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x8c]
push eax
lea ecx, [edi + 8]
call fcn.004d3f10
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x28]
mov byte [esp + 0xc0], 8
mov ecx, dword [ecx + 8]
mov ebx, dword [ecx + 0x28]
mov ecx, dword [ebx + 0x10]
cmp dword [ecx], 1
jle 0x502143
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0x10
call fcn.006b6815
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x502288
mov dword [esp + 0x38], eax
mov byte [esp + 0xc0], 9
mov ecx, dword [ebx + 0x10]
add ecx, 8
mov dword [eax], 1
push ecx
lea ecx, [eax + 8]
mov byte [eax + 4], 0
call fcn.004e9f30
mov eax, dword [esp + 0x18]
mov byte [esp + 0xc0], 8
mov dword [ebx + 0x10], eax
mov ebx, dword [ebx + 0x10]
push dword [esp + 0x2c]
mov eax, dword [ebx + 8]
mov dword [esp + 0x1c], eax
push dword [eax + 4]
push eax
call fcn.004ea250
mov edx, eax
mov ecx, 0xffffffe
mov eax, dword [ebx + 0xc]
sub ecx, eax
cmp ecx, 1
jb 0x50229c
lea ecx, [eax + 1]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0xc], ecx
mov dword [eax + 4], edx
mov eax, dword [edx + 4]
mov byte [esp + 0xc0], 5
mov dword [eax], edx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x84], vtable.TagLib::ByteVector.0
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x5021fe
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, dword [eax]
mov eax, dword [edx + 4]
dec ecx
mov dword [eax], ecx
jne 0x5021f5
mov ecx, dword [ebx]
test ecx, ecx
je 0x5021be
mov eax, dword [ecx]
push 1
call dword [eax]
mov ebx, dword [ebx + 4]
test ebx, ebx
je 0x5021f1
mov eax, dword [ebx]
test eax, eax
je 0x5021e8
push eax
call fcn.006b31f8
add esp, 4
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
push ebx
call fcn.006b31f8
add esp, 4
mov ebx, dword [esp + 0x18]
push ebx
call fcn.006b31f8
add esp, 4
mov ebx, dword [esp + 0x28]
mov eax, dword [esi + 0x20]
mov edi, dword [edi]
cmp edi, dword [eax + 8]
jne 0x501fc0
mov ecx, dword [esp + 0x3c]
cmp byte [esi + 0xd], 0
jne 0x502257
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x50223c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x502257
lea ecx, [ecx]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x502230
jmp 0x502257
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x502255
cmp esi, dword [eax + 8]
jne 0x502255
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x502245
mov esi, eax
cmp esi, dword [ecx]
jne 0x501fa0
push 0x10
mov dword [esp + 0x34], vtable.TagLib::ByteVector.0
call fcn.006b6815
add esp, 4
test eax, eax
jne 0x5022a6
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 0x7da8d8
push eax
call fcn.006b4394
push 0x7da8d8
lea eax, [esp + 0x28]
mov byte [esp + 0x28], 0
push eax
call fcn.006b4394
push str.list_T__too_long
call fcn.006b1a39
mov dword [esp + 0x38], eax
push 0
push 0
mov ecx, eax
mov byte [esp + 0xc8], 0xa
call fcn.004c2870
mov dword [esp + 0x34], eax
mov byte [esp + 0xc0], 0xb
mov esi, dword [ebx + 8]
lea ecx, [esi + 0x10]
call fcn.004ddab0
mov esi, dword [esi + 0x14]
mov esi, dword [esi + 8]
mov edi, dword [ebx + 8]
mov esi, dword [esi]
mov eax, dword [edi + 0x14]
cmp dword [eax], 1
jle 0x502338
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0x10
call fcn.006b6815
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5023ed
mov dword [esp + 0x38], ebx
mov byte [esp + 0xc0], 0xc
mov ecx, dword [edi + 0x14]
add ecx, 8
mov dword [ebx], 1
push ecx
lea ecx, [ebx + 8]
mov byte [ebx + 4], 0
call fcn.004ddb50
mov byte [esp + 0xc0], 0xb
mov dword [edi + 0x14], ebx
mov ebx, dword [esp + 0x28]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 8]
mov dword [esp + 0xac], eax
cmp esi, eax
je 0x502401
mov ecx, dword [esi + 8]
lea edx, [esp + 0x64]
push ebx
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0xc4], 0xd
call fcn.004c33a0
mov byte [esp + 0xc0], 0xb
mov edi, dword [esp + 0x68]
mov dword [esp + 0x64], vtable.TagLib::ByteVector.0
mov dword [esp + 0x18], edi
test edi, edi
je 0x5022da
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, dword [eax]
mov eax, dword [edx + 4]
dec ecx
mov dword [eax], ecx
jne 0x5023df
mov ecx, dword [edi]
test ecx, ecx
je 0x5023a8
mov eax, dword [ecx]
push 1
call dword [eax]
mov edi, dword [edi + 4]
test edi, edi
je 0x5023db
mov eax, dword [edi]
test eax, eax
je 0x5023d2
push eax
call fcn.006b31f8
add esp, 4
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push edi
call fcn.006b31f8
add esp, 4
mov edi, dword [esp + 0x18]
push edi
call fcn.006b31f8
add esp, 4
jmp 0x5022da
push 0x7da8d8
lea eax, [esp + 0x25]
mov byte [esp + 0x25], 0
push eax
call fcn.006b4394
mov eax, dword [ebx + 4]
push 0
push 0x10
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x6c]
push 0
xor dl, dl
mov eax, dword [eax + 0xc]
add eax, 0x1e
push eax
call fcn.004c2af0
add esp, 8
mov byte [esp + 0xc0], 0xe
mov ecx, dword [ebx + 4]
push eax
mov ecx, dword [ecx]
mov edx, dword [ecx]
call dword [edx + 0xc]
mov byte [esp + 0xc0], 0xb
mov edi, dword [esp + 0x70]
mov dword [esp + 0x6c], vtable.TagLib::ByteVector.0
test edi, edi
je 0x5024ac
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, dword [eax]
mov eax, dword [edx + 4]
dec ecx
mov dword [eax], ecx
jne 0x5024a3
mov ecx, dword [edi]
test ecx, ecx
je 0x502470
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [edi + 4]
test esi, esi
je 0x5024a3
mov eax, dword [esi]
test eax, eax
je 0x50249a
push eax
call fcn.006b31f8
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
call fcn.006b31f8
add esp, 4
push edi
call fcn.006b31f8
add esp, 4
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x7c]
push 0
mov eax, dword [eax + 0x14]
mov edx, dword [eax + 0xc]
call fcn.004c2ab0
add esp, 4
mov byte [esp + 0xc0], 0xf
mov ecx, dword [ebx + 4]
push eax
mov ecx, dword [ecx]
mov edx, dword [ecx]
call dword [edx + 0xc]
mov byte [esp + 0xc0], 0xb
mov edi, dword [esp + 0x80]
mov dword [esp + 0x7c], vtable.TagLib::ByteVector.0
test edi, edi
je 0x502548
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, dword [eax]
mov eax, dword [edx + 4]
dec ecx
mov dword [eax], ecx
jne 0x50253f
mov ecx, dword [edi]
test ecx, ecx
je 0x50250c
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [edi + 4]
test esi, esi
je 0x50253f
mov eax, dword [esi]
test eax, eax
je 0x502536
push eax
call fcn.006b31f8
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
call fcn.006b31f8
add esp, 4
push edi
call fcn.006b31f8
add esp, 4
push 0x10
mov dword [esp + 0x44], vtable.TagLib::ByteVector.0
call fcn.006b6815
add esp, 4
test eax, eax
jne 0x502571
mov byte [esp + 0x20], al
lea eax, [esp + 0x20]
push 0x7da8d8
push eax
call fcn.006b4394
mov dword [esp + 0x38], eax
push 2
push 0x790330
mov ecx, eax
mov byte [esp + 0xc8], 0x10
call fcn.004c2970
mov dword [esp + 0x44], eax
mov byte [esp + 0xc0], 0x11
lea edx, [esp + 0x40]
mov eax, dword [ebx + 4]
push edx
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov byte [esp + 0xc0], 0xb
mov edi, dword [esp + 0x44]
mov dword [esp + 0x40], vtable.TagLib::ByteVector.0
test edi, edi
je 0x502615
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, dword [eax]
mov eax, dword [edx + 4]
dec ecx
mov dword [eax], ecx
jne 0x50260c
mov ecx, dword [edi]
test ecx, ecx
je 0x5025d9
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [edi + 4]
test esi, esi
je 0x50260c
mov eax, dword [esi]
test eax, eax
je 0x502603
push eax
call fcn.006b31f8
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
call fcn.006b31f8
add esp, 4
push edi
call fcn.006b31f8
add esp, 4
mov eax, dword [ebx + 8]
mov edx, dword [eax]
mov eax, dword [ebx + 4]
sub edx, 0x1e
push edx
push 0x1e
lea edx, [esp + 0x38]
mov ecx, dword [eax]
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [esp + 0x34]
mov ecx, dword [ebx + 8]
mov eax, dword [eax + 0xc]
add eax, 0x1e
mov byte [esp + 0xc0], 5
mov dword [ecx], eax
mov dword [ecx + 4], 0
mov edi, dword [esp + 0x34]
mov dword [esp + 0x30], vtable.TagLib::ByteVector.0
test edi, edi
je 0x5026b4
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, dword [eax]
mov eax, dword [edx + 4]
dec ecx
mov dword [eax], ecx
jne 0x5026ab
mov ecx, dword [edi]
test ecx, ecx
je 0x502678
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [edi + 4]
test esi, esi
je 0x5026ab
mov eax, dword [esi]
test eax, eax
je 0x5026a2
push eax
call fcn.006b31f8
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
call fcn.006b31f8
add esp, 4
push edi
call fcn.006b31f8
add esp, 4
mov dword [esp + 0xc0], 0xffffffff
mov esi, dword [esp + 0x90]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x502700
test esi, esi
je 0x502700
mov edi, dword [esp + 0x3c]
mov ecx, edi
mov eax, dword [edi]
push eax
push dword [eax]
lea eax, [esp + 0xb8]
push eax
call fcn.004fe190
push dword [edi]
call fcn.006b31f8
add esp, 4
push esi
call fcn.006b31f8
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push str.ASF::File::save______Trying_to_save_invalid_file.
lea ecx, [esp + 0x9c]
call fcn.004c5540
mov edx, dword [esp + 0x98]
mov dword [esp + 0x94], vtable.TagLib::String.0
mov eax, dword [edx + 4]
mov ecx, dword [eax]
mov eax, dword [edx + 4]
dec ecx
mov dword [eax], ecx
jne 0x502757
mov ecx, dword [esp + 0x98]
mov eax, dword [ecx]
push 1
call dword [eax]
xor al, al
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret