Function at 0x64740c6c
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov edi, dword [esp + 0x90]
mov dword [esp + 0x64], sym.allegro_5.0.10_monolith_mt.dll__dumb_sigtype_it
mov dword [esp], 0xe8
call fcn.647d4284
mov dword [esp + 0x38], eax
test eax, eax
je 0x647412a4
mov dword [esp + 8], edi
mov dword [esp + 4], 0x1c
mov dword [esp], eax
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_getnc
mov eax, dword [esp + 0x38]
mov byte [eax + 0x1c], 0
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_getc
cmp eax, 0x1a
jne 0x64741298
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_getc
cmp eax, 0x10
jne 0x64741298
mov dword [esp + 4], 2
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_skip
mov eax, dword [esp + 0x38]
mov dword [eax + 0x20], 0
mov dword [eax + 0xcc], 0
mov dword [eax + 0xd4], 0
mov dword [eax + 0xd8], 0
mov dword [eax + 0xdc], 0
mov dword [eax + 0xe0], 0
mov dword [eax + 0xe4], 0
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_igetw
mov edx, dword [esp + 0x38]
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], 0
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_igetw
mov ecx, dword [esp + 0x38]
mov dword [ecx + 0x2c], eax
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_igetw
mov ebx, dword [esp + 0x38]
mov dword [ebx + 0x30], eax
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_error
test eax, eax
jne 0x647413b4
mov eax, dword [ebx + 0x24]
test eax, eax
jle 0x647413b4
mov esi, dword [esp + 0x38]
mov ebx, dword [esi + 0x2c]
cmp ebx, 0x100
jg 0x647413b4
mov esi, dword [esi + 0x30]
cmp esi, 0x100
jg 0x647413b4
mov dword [esp], eax
call fcn.647d4284
mov edx, dword [esp + 0x38]
mov dword [edx + 0xcc], eax
test eax, eax
je 0x6474191b
test ebx, ebx
jne 0x64741630
test esi, esi
je 0x64740dfe
lea ebx, [esi + esi*2]
shl ebx, 2
mov dword [esp], ebx
call fcn.647d4284
mov edx, dword [esp + 0x38]
mov dword [edx + 0xdc], eax
test eax, eax
je 0x64741928
lea edx, [eax + ebx]
test esi, esi
jle 0x64740dfe
lea esi, [esi]
mov dword [eax + 8], 0
add eax, 0xc
cmp eax, edx
jne 0x64740df0
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_igetw
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_igetw
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_igetw
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x38]
mov dword [eax + 0x34], 0x31
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_mgetl
cmp eax, 0x5343524d
jne 0x647413b4
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_getc
shl eax, 1
mov edx, dword [esp + 0x38]
mov dword [edx + 0x38], eax
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_getc
mov ecx, dword [esp + 0x38]
mov dword [ecx + 0x40], eax
test eax, eax
je 0x647413c5
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_getc
mov ebx, dword [esp + 0x38]
mov dword [ebx + 0x44], eax
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_getc
mov dword [ebx + 0x3c], 0x30
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_getc
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_getc
mov ebp, eax
mov dword [esp + 4], 8
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_skip
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_igetw
mov ebx, dword [esp + 0x38]
add ebx, 0x4c
xor esi, esi
jmp 0x64740ecf
mov byte [ebx + 0x40], 0x40
and eax, 8
cmp eax, 1
sbb eax, eax
and eax, 0xfffffff7
add eax, 0xc
mov byte [ebx], al
inc esi
inc ebx
cmp esi, 0x20
je 0x64740ee9
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_getc
test al, 0x90
je 0x64740eb4
mov byte [ebx + 0x40], 0
mov byte [ebx], 7
inc esi
inc ebx
cmp esi, 0x20
jne 0x64740ecf
mov dword [esp + 8], edi
mov esi, dword [esp + 0x38]
mov eax, dword [esi + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esi + 0xcc]
mov dword [esp], eax
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_getnc
mov byte [esi + 0xd0], 0
mov dword [esp], 0x2400
call fcn.647d4284
mov dword [esp + 0x44], eax
test eax, eax
je 0x647413b4
mov ebx, dword [esi + 0x2c]
test ebx, ebx
jle 0x64741792
mov esi, dword [esp + 0x44]
mov dword [esp + 0x4c], 0
xor ebx, ebx
nop
mov byte [esi], 3
mov byte [esi + 1], bl
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_igetw
shl eax, 4
mov dword [esi + 4], eax
mov word [esi + 8], 0xffff
inc ebx
add esi, 0xc
mov eax, dword [esp + 0x38]
cmp ebx, dword [eax + 0x2c]
jl 0x64740f40
mov dword [esp + 0x4c], ebx
mov eax, ebx
mov edx, dword [esp + 0x38]
mov ecx, dword [edx + 0x30]
test ecx, ecx
jle 0x64740fe1
xor ebx, ebx
mov dword [esp + 0x34], ebp
mov ebp, ebx
mov ebx, edx
mov esi, dword [esp + 0x4c]
jmp 0x64740faa
lea ecx, [esi + esi*2]
mov edx, dword [esp + 0x44]
lea ecx, [edx + ecx*4]
mov byte [ecx], 2
mov edx, ebp
mov byte [ecx + 1], dl
mov dword [ecx + 4], eax
mov word [ecx + 8], 0xffff
inc esi
inc ebp
cmp ebp, dword [ebx + 0x30]
jge 0x64740fd7
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_igetw
shl eax, 4
jne 0x64740f88
lea ecx, [ebp + ebp*2]
mov eax, dword [ebx + 0xdc]
lea eax, [eax + ecx*4]
mov dword [eax], 0x40
mov dword [eax + 4], 0
inc ebp
cmp ebp, dword [ebx + 0x30]
jl 0x64740faa
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x4c], esi
mov eax, esi
mov dword [esp + 0xc], 0x64740c5c
mov dword [esp + 8], 0xc
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.647d43fc
cmp ebp, 0xfc
je 0x647417b2
xor ecx, ecx
mov esi, 0x92492493
mov ebp, dword [esp + 0x38]
mov al, byte [ebp + ecx + 0x4c]
shr eax, 3
and eax, 1
mov bl, byte [ebp + ecx + 0x4c]
sub ebx, eax
movzx ebx, bl
shl ebx, 5
mov eax, ebx
imul esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
add ebx, edx
sar ebx, 2
mov byte [ebp + ecx + 0x4c], bl
inc ecx
cmp ecx, 0x20
jne 0x64741018
mov eax, dword [esp + 0x38]
mov dword [eax + 0x48], pe_nt_image_headers32
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_error
test eax, eax
jne 0x647413a8
mov dword [esp], 0x10000
call fcn.647d4284
mov dword [esp + 0x50], eax
test eax, eax
je 0x647413a8
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x64741228
mov edx, dword [esp + 0x44]
add edx, 0x18
mov dword [esp + 0x54], edx
mov ecx, dword [esp + 0x4c]
inc ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], 1
mov esi, dword [esp + 0x54]
mov ebx, dword [esi - 0x14]
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_pos
cmp ebx, eax
jl 0x6474139c
jg 0x64741555
mov edx, dword [esp + 0x54]
mov al, byte [edx - 0x18]
cmp al, 2
je 0x64741570
cmp al, 3
je 0x647412ae
mov edx, dword [esp + 0x54]
movsx eax, word [edx - 0x10]
test eax, eax
js 0x64741211
lea eax, [eax + eax*2]
mov ecx, dword [esp + 0x44]
lea eax, [ecx + eax*4]
mov dword [esp + 0x3c], eax
mov ebx, dword [eax + 4]
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_pos
cmp ebx, eax
jl 0x6474139c
jg 0x64741414
mov edx, dword [esp + 0x3c]
movzx eax, byte [edx + 1]
lea esi, [eax + eax*4]
shl esi, 4
mov eax, dword [esp + 0x38]
add esi, dword [eax + 0xd8]
mov ebx, dword [esi + 0x30]
mov al, byte [esi + 0x2b]
mov dl, al
and edx, 4
mov byte [esp + 0x40], dl
jne 0x647413d4
mov dword [esp + 0x34], ebx
and eax, 2
mov ebp, eax
cmp al, 1
sbb eax, eax
add eax, 2
imul eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.647d4284
mov dword [esi + 0x4c], eax
test eax, eax
je 0x6474139c
cmp byte [esp + 0x40], 0
je 0x647413e0
mov ecx, ebp
test cl, cl
jne 0x647414d0
xor ebp, ebp
mov ebx, dword [esp + 0x34]
test ebx, ebx
jle 0x647411c4
mov ebx, eax
jmp 0x6474118b
mov ebx, dword [esi + 0x4c]
add ebx, ebp
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_getc
mov byte [ebx], al
add ebp, 2
cmp dword [esp + 0x34], ebp
jg 0x64741188
cmp dword [esp + 0x34], 1
jle 0x647411c4
mov ebp, 1
mov ebx, dword [esi + 0x4c]
add ebx, ebp
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_getc
mov byte [ebx], al
add ebp, 2
cmp dword [esp + 0x34], ebp
jg 0x647411ac
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_error
test eax, eax
jne 0x6474139c
cmp dword [esp + 0x48], 1
je 0x64741201
test byte [esi + 0x2b], 2
jne 0x64741430
mov edx, dword [esp + 0x34]
test edx, edx
jle 0x64741201
mov ecx, dword [esp + 0x34]
lea esi, [esi]
mov edx, dword [esi + 0x4c]
add edx, eax
add byte [edx], 0x80
inc eax
cmp eax, ecx
jne 0x647411f4
mov edx, dword [esp + 0x3c]
movsx eax, word [edx + 0xa]
test eax, eax
jns 0x647410e8
inc dword [esp + 0x58]
add dword [esp + 0x54], 0xc
mov esi, dword [esp + 0x5c]
cmp dword [esp + 0x58], esi
jne 0x647410a4
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.647d4274
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.647d4274
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sym.allegro_5.0.10_monolith_mt.dll__dumb_it_fix_invalid_orders
mov eax, dword [esp + 0x38]
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], 0x64814540
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x64]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
lea eax, [esp + 0x68]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], 0xffffffff
call sym.allegro_5.0.10_monolith_mt.dll_make_duh
jmp 0x647412a6
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.647d4274
xor eax, eax
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x54]
movzx eax, byte [esi - 0x17]
lea ebx, [eax + eax*4]
shl ebx, 4
mov eax, dword [esp + 0x38]
add ebx, dword [eax + 0xd8]
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_getc
mov byte [esp + 0x34], al
mov dword [esp + 8], edi
mov dword [esp + 4], 0xd
lea eax, [ebx + 0x1d]
mov dword [esp], eax
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_getnc
mov byte [ebx + 0x2a], 0
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_igetw
mov ebp, eax
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_igetl
mov dword [ebx + 0x30], eax
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_igetl
mov dword [ebx + 0x34], eax
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_igetl
mov dword [ebx + 0x38], eax
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_getc
mov byte [ebx + 0x2d], al
mov dword [esp + 4], 1
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_skip
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_getc
test eax, eax
jne 0x6474139c
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_getc
mov esi, eax
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_igetl
shl eax, 1
mov dword [ebx + 0x3c], eax
mov dword [esp + 4], 0xc
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_skip
mov dword [esp + 8], edi
mov dword [esp + 4], 0x1c
mov dword [esp], ebx
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_getnc
mov byte [ebx + 0x1c], 0
cmp byte [esp + 0x34], 0
je 0x647417a1
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_mgetl
cmp eax, 0x53435253
je 0x6474166f
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.647d4274
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.647d4274
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sym.allegro_5.0.10_monolith_mt.dll__dumb_it_unload_sigdata
jmp 0x647412a4
mov dword [ecx + 0x40], 6
jmp 0x64740e60
lea edx, [ebx + ebx]
mov dword [esp + 0x34], edx
jmp 0x64741140
mov edx, ebp
test dl, dl
jne 0x6474152c
xor ebp, ebp
test ebx, ebx
jle 0x647411c4
mov ebx, eax
jmp 0x647413fb
mov ebx, dword [esi + 0x4c]
add ebx, ebp
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_getc
mov byte [ebx], al
inc ebp
cmp ebp, dword [esi + 0x30]
jl 0x647413f8
jmp 0x647411c4
sub ebx, eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_skip
test eax, eax
je 0x6474110f
jmp 0x6474139c
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x64741201
mov ecx, dword [esi + 0x4c]
mov eax, ecx
shl eax, 0x1e
shr eax, 0x1f
mov edx, dword [esp + 0x34]
cmp edx, eax
jbe 0x64741451
mov edx, eax
cmp dword [esp + 0x34], 3
ja 0x6474145c
mov edx, dword [esp + 0x34]
xor eax, eax
test edx, edx
je 0x64741479
nop
add word [ecx + eax*2], 0x8000
inc eax
cmp edx, eax
ja 0x64741464
cmp edx, dword [esp + 0x34]
je 0x64741201
mov ebx, dword [esp + 0x34]
sub ebx, edx
mov dword [esp + 0x40], ebx
mov esi, ebx
shr esi, 1
mov ebp, esi
shl ebp, 1
je 0x647414ac
lea ebx, [ecx + edx*2]
xor edx, edx
nop
xor dword [ebx + edx*4], 0x80008000
inc edx
cmp esi, edx
ja 0x64741494
add eax, ebp
cmp ebp, dword [esp + 0x40]
je 0x64741201
mov edx, dword [esp + 0x34]
add word [ecx + eax*2], 0x8000
inc eax
cmp edx, eax
jg 0x647414b0
mov edx, dword [esp + 0x3c]
movsx eax, word [edx + 0xa]
test eax, eax
jns 0x647410e8
jmp 0x64741211
mov ecx, dword [esp + 0x34]
test ecx, ecx
jle 0x647411c4
xor ebx, ebx
jmp 0x647414e3
mov eax, dword [esi + 0x4c]
lea ebp, [eax + ebx*2]
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_igetw
mov word [ebp], ax
add ebx, 2
cmp dword [esp + 0x34], ebx
jg 0x647414e0
cmp dword [esp + 0x34], 1
jle 0x647411c4
mov ebx, 1
nop
mov eax, dword [esi + 0x4c]
lea ebp, [eax + ebx*2]
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_igetw
mov word [ebp], ax
add ebx, 2
cmp dword [esp + 0x34], ebx
jg 0x6474150c
jmp 0x647411c4
test ebx, ebx
jle 0x647411c4
xor ebx, ebx
jmp 0x6474153b
mov eax, dword [esi + 0x4c]
lea ebp, [eax + ebx*2]
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_igetw
mov word [ebp], ax
inc ebx
cmp ebx, dword [esi + 0x30]
jl 0x64741538
jmp 0x647411c4
sub ebx, eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_skip
test eax, eax
je 0x647410c1
jmp 0x6474139c
movzx eax, byte [edx - 0x17]
lea edx, [eax + eax*2]
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 0xdc]
lea esi, [eax + edx*4]
mov dword [esp + 4], 2
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_skip
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_error
test eax, eax
jne 0x6474139c
mov dword [esi], 0
mov dword [esi + 4], 0
xor ebx, ebx
jmp 0x647415f7
movzx eax, al
movzx eax, byte [eax + 0x64814546]
lea ebp, [ebx + eax]
cmp ebp, 0xffff
jg 0x6474139c
mov dword [esp + 8], edi
mov dword [esp + 4], eax
add ebx, dword [esp + 0x50]
mov dword [esp], ebx
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_getnc
mov ebx, ebp
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_error
test eax, eax
jne 0x6474139c
mov ebp, dword [esp + 0x50]
add ebp, ebx
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_getc
mov byte [ebp], al
inc ebx
mov edx, dword [esi + 4]
inc edx
mov dword [esi + 4], edx
shr al, 5
jne 0x647415b8
mov eax, dword [esi]
inc eax
mov dword [esi], eax
cmp eax, 0x40
je 0x6474180d
cmp ebx, 0xffff
jle 0x647415e7
jmp 0x6474139c
lea ebp, [ebx + ebx*4]
shl ebp, 4
mov dword [esp], ebp
call fcn.647d4284
mov ecx, dword [esp + 0x38]
mov dword [ecx + 0xd8], eax
test eax, eax
je 0x64741935
lea edx, [eax + ebp]
test ebx, ebx
jle 0x64740dc2
nop
mov dword [eax + 0x4c], 0
add eax, 0x50
cmp eax, edx
jne 0x6474165c
jmp 0x64740dc2
mov byte [ebx + 0x2c], 0x40
mov byte [ebx + 0x2b], 1
test esi, 1
je 0x647417ee
mov byte [ebx + 0x2b], 0x11
mov dl, 0x15
mov al, 0x11
test esi, 2
je 0x64741698
mov byte [ebx + 0x2b], dl
mov al, dl
and esi, 4
je 0x647416a3
or eax, 2
mov byte [ebx + 0x2b], al
mov byte [ebx + 0x2e], 0
mov edx, dword [ebx + 0x30]
test edx, edx
jle 0x647417f7
test al, 0x10
je 0x647416cd
mov ecx, dword [ebx + 0x38]
cmp ecx, edx
ja 0x64741802
cmp ecx, dword [ebx + 0x34]
jbe 0x64741802
mov dword [ebx + 0x30], ecx
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x49], 0
mov byte [ebx + 0x4a], 0
mov byte [ebx + 0x4b], 0
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_error
test eax, eax
jne 0x6474139c
mov edx, dword [esp + 0x54]
movzx eax, byte [edx - 0x17]
lea eax, [eax + eax*4]
shl eax, 4
mov ecx, dword [esp + 0x38]
add eax, dword [ecx + 0xd8]
test byte [eax + 0x2b], 1
je 0x647410d8
mov ecx, ebp
shl ecx, 4
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x4c]
cmp eax, ebx
jge 0x64741739
cmp ecx, dword [edx - 8]
jl 0x64741739
add edx, 4
jmp 0x64741734
add edx, 0xc
cmp dword [edx - 0xc], ecx
jg 0x64741739
inc eax
cmp eax, ebx
jne 0x6474172c
lea eax, [eax + eax*2 - 3]
mov esi, dword [esp + 0x44]
lea eax, [esi + eax*4]
lea ebx, [eax + 8]
mov edx, dword [eax + 8]
test dx, dx
js 0x6474177a
movsx eax, dx
lea eax, [eax + eax*2]
lea eax, [esi + eax*4]
cmp ecx, dword [eax + 4]
jge 0x6474176e
jmp 0x6474177a
movsx eax, dx
lea eax, [eax + eax*2]
lea eax, [esi + eax*4]
cmp dword [eax + 4], ecx
jg 0x6474177a
lea ebx, [eax + 0xa]
mov dx, word [eax + 0xa]
test dx, dx
jns 0x64741760
mov esi, dword [esp + 0x54]
mov word [esi - 0xe], dx
mov eax, dword [esp + 0x58]
dec eax
mov word [ebx], ax
mov dword [esi - 0x14], ecx
jmp 0x647410d8
xor eax, eax
mov dword [esp + 0x4c], 0
jmp 0x64740f6d
and byte [ebx + 0x2b], 0xfe
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_error
jmp 0x647416e5
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_pos
add eax, 0x1f
mov edx, dword [esp + 0x44]
cmp eax, dword [edx + 4]
jge 0x6474100d
xor ebx, ebx
mov esi, dword [esp + 0x38]
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_dumbfile_getc
test al, 0x20
je 0x647417e3
and eax, 0xf
mov byte [esi + ebx + 0x4c], al
inc ebx
cmp ebx, 0x20
jne 0x647417d0
jmp 0x6474100d
mov dl, 5
mov al, 1
jmp 0x6474168b
and eax, 0xfffffffe
mov byte [ebx + 0x2b], al
jmp 0x647416cd
and eax, 0xffffffef
mov byte [ebx + 0x2b], al
jmp 0x647416cd
lea eax, [edx*8]
sub eax, edx
mov dword [esp], eax
call fcn.647d4284
mov dword [esi + 8], eax
test eax, eax
je 0x6474139c
xor ebp, ebp
mov esi, dword [esp + 0x50]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], edi
jmp 0x6474184b
mov byte [eax], 0xff
add eax, 7
mov ebp, edx
cmp edx, dword [esp + 0x40]
jge 0x647418df
mov cl, byte [esi + ebp]
lea edx, [ebp + 1]
test cl, 0xe0
je 0x64741839
test cl, 0xe0
je 0x647418d8
mov byte [eax + 1], 0
mov edi, 0x1f
and edi, ecx
mov ebx, edi
mov byte [eax], bl
test cl, 0x20
je 0x647418b6
mov dl, byte [esi + edx]
lea ebx, [ebp + 2]
mov dword [esp + 0x34], ebx
cmp dl, 0xff
je 0x6474189e
cmp dl, 0xfe
je 0x64741942
mov bl, dl
shr bl, 4
mov edi, ebx
lea edi, [edi + edi*2]
and edx, 0xf
lea edx, [edx + edi*4]
mov byte [eax + 2], dl
mov byte [eax + 1], 1
mov edx, dword [esp + 0x34]
movzx edi, byte [esi + edx]
mov ebx, edi
mov byte [eax + 3], bl
lea edx, [ebp + 3]
test bl, bl
je 0x647418b6
or byte [eax + 1], 2
test cl, 0x40
je 0x647418ca
mov bl, byte [esi + edx]
mov byte [eax + 4], bl
inc edx
inc bl
je 0x647418ca
or byte [eax + 1], 4
test cl, cl
js 0x647418e8
add eax, 7
mov ebp, edx
jmp 0x64741841
mov ebp, edx
jmp 0x64741841
mov edi, dword [esp + 0x3c]
jmp 0x647410d8
mov cl, byte [esi + edx]
mov byte [eax + 5], cl
mov bl, byte [esi + edx + 1]
mov byte [esp + 0x34], bl
mov byte [eax + 6], bl
add edx, 2
cmp cl, 0xff
je 0x647418ce
or byte [eax + 1], 8
cmp cl, 3
jne 0x647418ce
mov cl, bl
shr cl, 4
lea ecx, [ecx + ecx*2]
shl ecx, 1
sub ebx, ecx
mov byte [eax + 6], bl
jmp 0x647418ce
mov dword [esp], edx
call sym.allegro_5.0.10_monolith_mt.dll__dumb_it_unload_sigdata
jmp 0x647412a4
mov dword [esp], edx
call sym.allegro_5.0.10_monolith_mt.dll__dumb_it_unload_sigdata
jmp 0x647412a4
mov dword [esp], ecx
call sym.allegro_5.0.10_monolith_mt.dll__dumb_it_unload_sigdata
jmp 0x647412a4
mov dl, 0xfe
jmp 0x64741897