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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [esp + 0x70]
mov edx, dword [esp + 0x78]
add edx, 0xc
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x78]
add edx, 8
mov dword [esp + 0x44], edx
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x6467c640
lea eax, [ebx - 1]
mov dword [esi + 4], eax
mov ecx, dword [esi]
mov dl, byte [ecx]
mov byte [esp + 0x20], dl
lea edx, [ecx + 1]
mov dword [esi], edx
cmp byte [esp + 0x20], 0
jns 0x6467c751
test eax, eax
je 0x6467c640
lea eax, [ebx - 2]
mov dword [esi + 4], eax
mov dl, byte [ecx + 1]
lea edi, [ecx + 2]
mov dword [esi], edi
movzx ebp, dl
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], 0
test byte [esp + 0x20], 0x40
je 0x6467c795
test eax, eax
je 0x6467c640
lea edi, [ebx - 3]
mov dword [esi + 4], edi
movzx eax, byte [ecx + 2]
lea edx, [ecx + 3]
mov dword [esi], edx
xor edx, edx
shld edx, eax, 8
shl eax, 8
or ebp, eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], edx
test byte [esp + 0x20], 0x20
je 0x6467c7c1
test edi, edi
je 0x6467c640
lea edi, [ebx - 4]
mov dword [esi + 4], edi
movzx eax, byte [ecx + 3]
lea edx, [ecx + 4]
mov dword [esi], edx
xor edx, edx
shld edx, eax, 0x10
shl eax, 0x10
mov ebp, dword [esp + 0x30]
or ebp, eax
mov eax, dword [esp + 0x34]
or eax, edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], eax
test byte [esp + 0x20], 0x10
je 0x6467c7ed
test edi, edi
je 0x6467c640
lea edi, [ebx - 5]
mov dword [esi + 4], edi
movzx eax, byte [ecx + 4]
lea edx, [ecx + 5]
mov dword [esi], edx
xor edx, edx
shld edx, eax, 0x18
shl eax, 0x18
mov ebp, dword [esp + 0x30]
or ebp, eax
mov eax, dword [esp + 0x34]
or eax, edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], eax
test byte [esp + 0x20], 8
je 0x6467c81c
test edi, edi
je 0x6467c640
lea edx, [ebx - 6]
mov dword [esi + 4], edx
movzx eax, byte [ecx + 5]
lea edi, [ecx + 6]
mov dword [esi], edi
or eax, dword [esp + 0x34]
mov dword [esp + 0x34], eax
test byte [esp + 0x20], 4
je 0x6467c834
test edx, edx
je 0x6467c640
lea edx, [ebx - 7]
mov dword [esi + 4], edx
movzx eax, byte [ecx + 6]
lea edi, [ecx + 7]
mov dword [esi], edi
shl eax, 8
or eax, dword [esp + 0x34]
mov dword [esp + 0x34], eax
test byte [esp + 0x20], 2
je 0x6467c84f
test edx, edx
je 0x6467c640
lea edx, [ebx - 8]
mov dword [esi + 4], edx
movzx eax, byte [ecx + 7]
lea edi, [ecx + 8]
mov dword [esi], edi
shl eax, 0x10
mov edi, dword [esp + 0x30]
or eax, dword [esp + 0x34]
mov dword [esp + 0x34], eax
test byte [esp + 0x20], 1
je 0x6467c86a
test edx, edx
je 0x6467c640
sub ebx, 9
mov dword [esi + 4], ebx
mov al, byte [ecx + 8]
add ecx, 9
mov dword [esi], ecx
shl eax, 0x18
mov dword [esp + 0x38], edi
or eax, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov ecx, edi
mov eax, ecx
cdq
cmp edx, dword [esp + 0x3c]
jne 0x6467c65e
cmp ecx, 6
je 0x6467c66c
jg 0x6467c650
test ecx, ecx
jne 0x6467c65e
xor eax, eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 6
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ecx, 7
je 0x6467c710
cmp ecx, 8
je 0x6467c6b4
mov eax, 0x80004005
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x78]
add eax, 4
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x78]
mov dword [esp + 8], edx
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov dword [esp], esi
call sym.allegro_5.0.10_monolith_mt.dll_SzReadPackInfo
test eax, eax
je 0x6467c46d
jmp 0x6467c645
mov edx, dword [esp + 0x90]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x88]
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x84]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x80]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x7c]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x78]
mov eax, dword [edx + 0x14]
mov dword [esp + 8], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 4], eax
mov dword [esp], esi
call sym.allegro_5.0.10_monolith_mt.dll_SzReadSubStreamsInfo
test eax, eax
je 0x6467c46d
jmp 0x6467c645
mov edx, dword [esp + 0x90]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x78]
add eax, 0x14
mov dword [esp + 8], eax
mov eax, dword [esp + 0x78]
add eax, 0x10
mov dword [esp + 4], eax
mov dword [esp], esi
call sym.allegro_5.0.10_monolith_mt.dll_SzReadUnPackInfo
test eax, eax
je 0x6467c46d
jmp 0x6467c645
mov al, byte [esp + 0x20]
and eax, 0x7f
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
add eax, dword [esp + 0x48]
adc edx, dword [esp + 0x4c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov ecx, dword [esp + 0x38]
jmp 0x6467c620
mov al, byte [esp + 0x20]
and eax, 0x3f
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
shld edx, eax, 8
shl eax, 8
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
jmp 0x6467c774
mov al, byte [esp + 0x20]
and eax, 0x1f
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
shld edx, eax, 0x10
shl eax, 0x10
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
jmp 0x6467c774
mov al, byte [esp + 0x20]
and eax, 0xf
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
shld edx, eax, 0x18
shl eax, 0x18
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
jmp 0x6467c774
mov dl, byte [esp + 0x20]
and edx, 7
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], 0
jmp 0x6467c774
mov al, byte [esp + 0x20]
and eax, 3
shl eax, 8
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], 0
jmp 0x6467c774
mov al, byte [esp + 0x20]
and eax, 1
shl eax, 0x10
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], 0
jmp 0x6467c774
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
jmp 0x6467c774