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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov dword [esp + 0x24], eax
mov ebx, edx
mov eax, dword [eax]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym.allegro_5.0.10_monolith_mt.dll_FT_Raccess_Get_HeaderInfo
mov ebp, eax
test eax, eax
je 0x6476ffc0
mov eax, ebp
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [esp + 0x78]
mov dword [esp + 0x18], esi
lea edi, [esp + 0x74]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x504f5354
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym.allegro_5.0.10_monolith_mt.dll_FT_Raccess_Get_DataOffsets
mov ebp, eax
test eax, eax
jne 0x64770078
mov edx, dword [esp + 0x78]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov dword [esp + 0x4c], eax
cmp dword [esp + 0xa0], 0xffffffff
je 0x64770110
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x64770110
mov ebp, 1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x64770054
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x34]
mov dword [esp], ebx
call dword [ebx + 8]
test ebp, ebp
jne 0x6476ffb0
mov esi, dword [esp + 0xa4]
mov eax, dword [esi]
mov dword [eax], 1
mov eax, ebp
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x73666e74
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym.allegro_5.0.10_monolith_mt.dll_FT_Raccess_Get_DataOffsets
mov ebp, eax
test eax, eax
jne 0x6476ffb0
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0xa0]
cdq
idiv ecx
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x24]
mov esi, dword [edi]
cmp edx, 0xffffffff
je 0x64770315
cmp ecx, edx
jg 0x647702d0
mov ebp, 1
test eax, eax
je 0x647700f2
mov dword [esp + 4], eax
mov ebx, dword [esp + 0x34]
mov dword [esp], ebx
call dword [ebx + 8]
test ebp, ebp
jne 0x6476ffb0
mov esi, dword [esp + 0xa4]
mov eax, dword [esi]
mov edx, dword [esp + 0x78]
mov dword [eax], edx
jmp 0x6476ffb0
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x28], 0
jle 0x647705a4
xor esi, esi
mov edx, dword [esp + 0x2c]
mov edi, dword [edx + esi*4]
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x64770168
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], ebx
call eax
test eax, eax
je 0x647702b4
mov ebp, 0x55
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x2c], ebx
jmp 0x6477003a
mov eax, dword [ebx + 4]
cmp edi, eax
ja 0x64770155
mov dword [ebx + 8], edi
lea edx, [edi + 3]
cmp edx, eax
jae 0x64770155
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x647702bc
mov dword [esp + 0xc], 4
lea ecx, [esp + 0x7c]
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], ebx
call eax
cmp eax, 4
jne 0x64770155
mov edi, dword [ebx + 8]
lea edx, [esp + 0x7c]
movzx eax, byte [edx]
shl eax, 0x18
movzx ecx, byte [edx + 1]
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [edx + 3]
or eax, ecx
movzx edx, byte [edx + 2]
shl edx, 8
or eax, edx
add eax, 6
add edi, 4
mov dword [ebx + 8], edi
add dword [esp + 0x28], eax
inc esi
cmp esi, dword [esp + 0x30]
jne 0x64770126
mov esi, dword [esp + 0x28]
add esi, 2
cmp esi, 0
jg 0x647705a9
jne 0x64770713
mov byte [0], pe_nt_image_headers32
mov byte [1], 1
mov byte [2], 0
mov byte [3], 0
mov byte [4], 0
mov byte [5], 0
mov dword [esp + 0x38], 0
mov edx, 6
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 1
mov dword [esp + 0x3c], 0
mov ecx, dword [esp + 0x28]
sub ecx, 3
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], ebp
mov ebp, edx
lea esi, [esi]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
mov esi, dword [ecx + edx*4]
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x6477031c
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
call eax
test eax, eax
je 0x6477059c
mov ebp, 0x55
mov edi, dword [esp + 0x38]
mov dword [esp + 4], edi
mov edx, dword [esp + 0x4c]
mov dword [esp], edx
call dword [edx + 8]
jmp 0x6477015a
mov eax, dword [ebx + 4]
jmp 0x6477016f
mov edx, dword [ebx]
add edx, edi
jne 0x647701a9
mov eax, 6
jmp 0x647701ca
mov edi, dword [eax + edx*4]
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x64770662
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 0x20], edx
call ecx
test eax, eax
mov edx, dword [esp + 0x20]
je 0x6477071d
mov eax, dword [esp + 0x74]
mov ebp, 0x55
jmp 0x647700e0
xor edx, edx
jmp 0x647700d3
mov eax, dword [ebx + 4]
cmp esi, eax
ja 0x64770297
mov dword [ebx + 8], esi
lea edx, [esi + 3]
cmp edx, eax
jae 0x64770155
mov edx, dword [ebx + 0x14]
test edx, edx
je 0x6477060c
mov dword [esp + 0xc], 4
lea edi, [esp + 0x7c]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call edx
cmp eax, 4
jne 0x64770155
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 4]
lea edx, [esp + 0x7c]
movzx edi, byte [edx]
shl edi, 0x18
movzx ecx, byte [edx + 1]
shl ecx, 0x10
or edi, ecx
movzx ecx, byte [edx + 3]
or edi, ecx
movzx edx, byte [edx + 2]
shl edx, 8
or edi, edx
lea edx, [esi + 4]
mov dword [ebx + 8], edx
lea ecx, [esi + 5]
cmp ecx, eax
jae 0x64770155
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x64770620
mov dword [esp + 0xc], 2
lea ecx, [esp + 0x7c]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], ebx
call eax
cmp eax, 2
jne 0x64770155
mov edx, dword [ebx + 8]
lea eax, [esp + 0x7c]
movzx eax, byte [eax]
add edx, 2
mov dword [ebx + 8], edx
mov dword [esp + 0x50], eax
test eax, eax
je 0x647704f1
cmp edi, 2
jle 0x64770594
lea edx, [edi - 2]
mov esi, dword [esp + 0x48]
cmp dword [esp + 0x50], esi
je 0x64770638
mov edi, dword [esp + 0x28]
cmp dword [esp + 0x40], edi
jge 0x64770739
mov al, byte [esp + 0x44]
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov byte [edi + ecx], al
mov eax, dword [esp + 0x44]
sar eax, 8
mov byte [edi + ecx + 1], al
mov eax, dword [esp + 0x44]
sar eax, 0x10
mov byte [edi + ecx + 2], al
mov eax, dword [esp + 0x44]
sar eax, 0x18
mov byte [edi + ecx + 3], al
cmp dword [esp + 0x50], 5
je 0x64770503
cmp dword [esp + 0x54], ebp
jle 0x64770739
mov byte [edi + ebp], pe_nt_image_headers32
mov al, byte [esp + 0x50]
mov byte [edi + ebp + 1], al
lea ecx, [ebp + 2]
mov dword [esp + 0x40], ecx
mov byte [edi + ebp + 2], 0
mov byte [edi + ebp + 3], 0
mov byte [edi + ebp + 4], 0
mov byte [edi + ebp + 5], 0
lea eax, [ebp + 6]
mov dword [esp + 0x44], edx
cmp eax, dword [esp + 0x28]
jg 0x6477072f
lea ebp, [edx + eax]
cmp ebp, dword [esp + 0x28]
jg 0x6477072f
mov esi, dword [ebx + 8]
mov dword [esp + 0x48], esi
mov ecx, dword [ebx + 4]
cmp esi, ecx
jae 0x64770297
add eax, dword [esp + 0x38]
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x64770643
mov dword [esp + 0xc], edx
mov edi, dword [esp + 0x58]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x20], edx
call eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
add ecx, eax
mov dword [ebx + 8], ecx
cmp edx, eax
ja 0x64770297
mov edx, dword [esp + 0x50]
mov dword [esp + 0x48], edx
inc dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
cmp dword [esp + 0x3c], edx
jne 0x64770260
mov edx, ebp
mov ebp, dword [esp + 0x5c]
cmp edx, dword [esp + 0x28]
jg 0x6477029c
mov edi, dword [esp + 0x38]
mov byte [edi + edx], pe_nt_image_headers32
mov byte [edi + edx + 1], 3
mov ebx, dword [esp + 0x28]
cmp dword [esp + 0x40], ebx
jge 0x6477029c
mov al, byte [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov byte [edi + ebx], al
mov eax, dword [esp + 0x44]
sar eax, 8
mov byte [edi + ebx + 1], al
mov eax, dword [esp + 0x44]
sar eax, 0x10
mov byte [edi + ebx + 2], al
mov eax, dword [esp + 0x44]
sar eax, 0x18
mov byte [edi + ebx + 3], al
lea ecx, [edx + 2]
mov esi, dword [esp + 0xa4]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x648176e0
mov dword [esp], 0
mov edx, edi
mov eax, dword [esp + 0x24]
call fcn.64771df4
mov ebp, eax
mov edx, dword [esp + 0x74]
mov dword [esp + 0x2c], edx
jmp 0x6477003a
xor edx, edx
jmp 0x647703f0
mov eax, dword [ebx + 4]
jmp 0x64770327
mov esi, 2
mov dword [esp + 4], esi
mov edx, dword [esp + 0x4c]
mov dword [esp], edx
call dword [edx + 4]
mov dword [esp + 0x38], eax
test eax, eax
je 0x64770725
mov edi, eax
xor eax, eax
mov ecx, esi
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x38]
mov byte [edi], pe_nt_image_headers32
mov byte [edi + 1], 1
mov byte [edi + 2], 0
mov byte [edi + 3], 0
mov byte [edi + 4], 0
mov byte [edi + 5], 0
mov eax, dword [esp + 0x30]
test eax, eax
jg 0x64770227
mov edx, 6
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], 0
jmp 0x64770509
mov edx, dword [ebx]
add edx, esi
jne 0x6477036c
xor edi, edi
jmp 0x6477038a
mov eax, dword [ebx]
add eax, edx
jne 0x647703cf
add esi, 6
mov dword [ebx + 8], esi
jmp 0x647704f1
add dword [esp + 0x44], edx
mov eax, ebp
jmp 0x6477047f
sub ecx, dword [esp + 0x48]
mov eax, edx
cmp edx, ecx
jbe 0x6477064f
mov eax, ecx
mov esi, dword [esp + 0x48]
add esi, dword [ebx]
mov edi, dword [esp + 0x58]
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x647704d8
mov ecx, dword [ebx + 4]
cmp edi, ecx
ja 0x6477030b
mov dword [ebx + 8], edi
lea eax, [edi + 3]
cmp eax, ecx
jae 0x64770307
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x64770742
mov dword [esp + 0xc], 4
lea ebp, [esp + 0x7c]
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 0x20], edx
call eax
cmp eax, 4
mov edx, dword [esp + 0x20]
jne 0x64770307
mov ecx, ebp
movzx eax, byte [ecx]
shl eax, 0x18
mov dword [esp + 0x2c], eax
movzx eax, byte [ecx + 1]
shl eax, 0x10
or dword [esp + 0x2c], eax
movzx eax, byte [ecx + 3]
or dword [esp + 0x2c], eax
movzx eax, byte [ecx + 2]
shl eax, 8
or dword [esp + 0x2c], eax
add dword [ebx + 8], 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], ecx
inc ecx
je 0x64770821
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
mov ecx, edx
mov edx, ebx
mov eax, dword [esp + 0x24]
call fcn.64771f5c
mov ebp, eax
test eax, eax
jne 0x64770764
mov eax, dword [esp + 0x74]
jmp 0x647700e0
mov ebp, 6
jmp 0x6477015a
mov ecx, dword [ebx + 4]
jmp 0x6477066d
mov ebp, 0x40
jmp 0x6477015a
mov ebp, 1
jmp 0x6477029c
mov ebp, dword [esp + 0x5c]
jmp 0x6477029c
mov ecx, dword [ebx]
add ecx, edi
jne 0x647706b2
lea eax, [edi + 4]
mov dword [ebx + 8], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
jmp 0x647706ed
add edi, 4
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x64770856
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], ebx
call eax
test eax, eax
jne 0x6477070a
mov dword [ebx + 8], edi
cmp dword [esp + 0x28], 0
jle 0x6477082f
mov edx, dword [esp + 0x28]
mov dword [esp + 4], edx
mov dword [esp], esi
call dword [esi + 4]
mov esi, eax
test eax, eax
je 0x64770898
xor eax, eax
mov edi, esi
mov ecx, dword [esp + 0x2c]
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym.allegro_5.0.10_monolith_mt.dll_FT_Stream_Read
mov ebp, eax
test eax, eax
jne 0x6477070a
cmp dword [esp + 0x28], 4
jg 0x6477086e
mov eax, 0x648176c3
mov ecx, dword [esp + 0xa4]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], 0
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov eax, dword [esp + 0x24]
call fcn.64771df4
mov ebp, eax
mov eax, dword [esp + 0x74]
jmp 0x647700e0
mov eax, dword [esp + 0x74]
mov ebp, 1
jmp 0x647700e0
jne 0x64770864
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym.allegro_5.0.10_monolith_mt.dll_FT_Stream_Read
mov ebp, eax
xor esi, esi
test eax, eax
je 0x647707ec
jmp 0x6477070a
cmp edi, dword [ebx + 4]
ja 0x6477070a
jmp 0x64770793
mov ebp, 6
jmp 0x6477070a
mov dword [esp + 8], 4
mov dword [esp + 4], str.OTTO
mov dword [esp], esi
call fcn.647d42a4
test eax, eax
jne 0x647707ec
mov eax, 0x648176dc
jmp 0x647707f1
mov ebp, 0x40
jmp 0x6477070a