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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x706148
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x7e6410]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], edi
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x24], eax
cmp eax, 6
jae 0x51a4dc
push 0
push str.A_CTOC_frame_must_contain_at_least_6_bytes__1_byte_element_ID_terminated_by_null__1_byte_flags__1_byte_entry_count_and_1_byte_child_element_ID_terminated_by_null.
lea ecx, [esp + 0x50]
call fcn.004c5540
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x48], 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 0x51a7fc
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx]
jmp 0x51a7f8
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
xor ebx, ebx
lea eax, [esp + 0x58]
push ebx
push ecx
push eax
mov dword [esp + 0x2c], ebx
call fcn.004eca20
push ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x7c], ebx
push ecx
mov ecx, eax
call fcn.004c6000
mov byte [esp + 0x78], 1
lea ecx, [esp + 0x30]
mov esi, dword [edi + 8]
push eax
call fcn.004c2c50
mov ecx, dword [esi + 8]
mov edx, dword [eax + 4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 8], edx
mov dword [esp + 0x30], vtable.TagLib::ByteVector.0
test ecx, ecx
je 0x51a540
push ecx
call fcn.004c2ee0
mov byte [esp + 0x78], 0
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x38], vtable.TagLib::ByteVector.0
test ecx, ecx
je 0x51a55b
push ecx
call fcn.004c2ee0
mov dword [esp + 0x78], 0xffffffff
mov edx, dword [esp + 0x58]
mov dword [esp + 0x54], 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 0x51a58a
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x51a58a
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [ebp + 8]
mov esi, dword [esp + 0x14]
mov ecx, dword [edx + 4]
cmp esi, dword [ecx + 0xc]
jae 0x51a5a7
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
add ecx, dword [eax]
movsx eax, byte [ecx + esi]
jmp 0x51a5a9
xor eax, eax
movsx ecx, al
mov eax, dword [edi + 8]
shr ecx, 1
and cl, 1
mov byte [eax + 0xc], cl
mov eax, esi
mov ecx, dword [edx + 4]
cmp eax, dword [ecx + 0xc]
jae 0x51a5d1
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
add ecx, dword [eax]
mov eax, esi
movsx ecx, byte [ecx + eax]
jmp 0x51a5d3
xor ecx, ecx
mov eax, dword [edi + 8]
and cl, 1
lea edi, [esi + 1]
add esi, 2
mov dword [esp + 0x14], esi
mov byte [eax + 0xd], cl
mov ecx, dword [edx + 4]
cmp edi, dword [ecx + 0xc]
jae 0x51a5fc
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
add ecx, dword [eax]
movsx eax, byte [ecx + edi]
jmp 0x51a5fe
xor eax, eax
movzx eax, al
xor edi, edi
mov dword [esp + 0x20], eax
test eax, eax
je 0x51a6dc
nop
lea eax, [esp + 0x14]
push eax
push 0
push edx
lea eax, [esp + 0x6c]
push eax
call fcn.004eca20
push 0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x7c], 2
push ecx
mov ecx, eax
call fcn.004c6000
mov byte [esp + 0x78], 4
mov edx, dword [esp + 0x64]
mov dword [esp + 0x60], 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 0x51a664
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x51a664
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 8]
lea ecx, [esi + 0x10]
call fcn.004e9c20
mov esi, dword [esi + 0x14]
lea eax, [esp + 0x28]
push eax
mov ebx, dword [esi + 8]
push dword [ebx + 4]
push ebx
call fcn.004ea250
mov edx, eax
mov ecx, 0xffffffe
mov eax, dword [esi + 0xc]
sub ecx, eax
cmp ecx, 1
jb 0x51a7ea
lea ecx, [eax + 1]
mov dword [esi + 0xc], ecx
mov dword [ebx + 4], edx
mov eax, dword [edx + 4]
mov dword [esp + 0x78], 0xffffffff
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], vtable.TagLib::ByteVector.0
mov dword [eax], edx
test ecx, ecx
je 0x51a6c8
push ecx
call fcn.004c2ee0
mov edx, dword [ebp + 8]
inc edi
cmp edi, dword [esp + 0x20]
jb 0x51a610
mov esi, dword [esp + 0x14]
xor ebx, ebx
mov eax, dword [esp + 0x24]
sub eax, esi
cmp eax, 0xa
jb 0x51a7fc
add eax, 0xfffffff6
mov dword [esp + 0x24], eax
cmp ebx, eax
jae 0x51a7fc
push 0xffffffffffffffff
lea eax, [ebx + esi]
mov ecx, edx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004c3000
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x78], 5
mov ecx, dword [ecx + 8]
cmp dword [ecx], 0
setne cl
xor edx, edx
test cl, cl
mov ecx, 0x7e8688
setne dl
add edx, 3
push edx
push eax
call fcn.00506db0
mov dword [esp + 0x78], 0xffffffff
mov ebx, eax
mov edi, dword [esp + 0x44]
mov dword [esp + 0x40], vtable.TagLib::ByteVector.0
test edi, edi
je 0x51a7ac
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 0x51a79f
mov ecx, dword [edi]
test ecx, ecx
je 0x51a76c
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [edi + 4]
test esi, esi
je 0x51a79f
mov eax, dword [esi]
test eax, eax
je 0x51a796
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
mov esi, dword [esp + 0x18]
add esp, 4
test ebx, ebx
je 0x51a7fc
mov eax, dword [ebx + 4]
mov eax, dword [eax]
test eax, eax
je 0x51a7f4
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x51a7f4
mov ecx, dword [esp + 0x1c]
add ecx, 0xa
add ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
push ebx
call fcn.004cae10
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x24]
jmp 0x51a6f2
push str.list_T__too_long
call fcn.006b1a39
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4