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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
call sym.allegro_5.0.10_monolith_mt.dll_GetContextSuspended
mov ebx, eax
test eax, eax
je 0x646a5494
mov dword [esp + 4], ebp
mov eax, dword [eax + 0x80]
add eax, 0x40
mov dword [esp], eax
call sym.allegro_5.0.10_monolith_mt.dll_LookupUIntMapKey
test eax, eax
je 0x646a5594
cmp edi, 0x8001
je 0x646a549c
mov edx, dword [eax]
cmp edx, 0x8000
je 0x646a5524
cmp edx, 1
je 0x646a557c
cmp edx, 4
je 0x646a5474
cmp edx, 9
je 0x646a5554
mov dword [esp + 4], 0xa002
mov dword [esp], ebx
call sym.allegro_5.0.10_monolith_mt.dll_alSetError
mov dword [esp + 0x40], ebx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp sym.allegro_5.0.10_monolith_mt.dll_ProcessContext
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
test esi, esi
je 0x646a5605
mov ecx, dword [0x648016cc]
test ecx, ecx
je 0x646a5532
mov edx, 1
jmp 0x646a54cc
mov ecx, edx
shl ecx, 4
mov ecx, dword [ecx + 0x648016cc]
inc edx
test ecx, ecx
je 0x646a5532
cmp esi, ecx
jne 0x646a54bc
mov ecx, edx
shl ecx, 4
mov ecx, dword [ecx + 0x648016b4]
cmp byte [ecx + sym.allegro_5.0.10_monolith_mt.dll_DisabledEffects], 0
jne 0x646a54bc
mov dword [eax], esi
cmp esi, 9
je 0x646a56d0
jle 0x646a55cc
cmp esi, 0x8000
je 0x646a5610
jl 0x646a5484
sub esi, 0x9000
cmp esi, 1
ja 0x646a5484
mov dword [eax + 0x90], 0x3f800000
jmp 0x646a5484
cmp edi, 0x17
jne 0x646a5474
cmp esi, 1
jbe 0x646a5588
mov dword [esp + 4], 0xa003
mov dword [esp], ebx
call sym.allegro_5.0.10_monolith_mt.dll_alSetError
mov dword [esp + 0x40], ebx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp sym.allegro_5.0.10_monolith_mt.dll_ProcessContext
cmp edi, 1
jl 0x646a5474
cmp edi, 2
jle 0x646a55ac
cmp edi, 3
jne 0x646a5474
cmp esi, 2
ja 0x646a5532
mov dword [eax + 0x8c], esi
jmp 0x646a5484
cmp edi, 0xd
jne 0x646a5474
jmp 0x646a552d
mov edx, esi
mov byte [eax + 0x34], dl
jmp 0x646a5484
mov dword [esp + 4], 0xa001
mov dword [esp], ebx
call sym.allegro_5.0.10_monolith_mt.dll_alSetError
jmp 0x646a5484
mov dword [esp + 0x1c], esi
fild dword [esp + 0x1c]
fstp dword [esp + 8]
mov dword [esp + 4], edi
mov dword [esp], ebp
call sym.allegro_5.0.10_monolith_mt.dll_alEffectf
jmp 0x646a5484
cmp esi, 1
je 0x646a5610
cmp esi, 4
jne 0x646a5484
mov dword [eax + 0x70], 0x3dcccccd
mov dword [eax + 0x74], 0x3dcccccd
mov dword [eax + 0x78], 0x3f000000
mov dword [eax + 0x7c], 0x3f000000
mov dword [eax + 0x80], 0xbf800000
jmp 0x646a5484
mov dword [eax], 0
jmp 0x646a5484
mov dword [eax + 4], 0x3f800000
mov dword [eax + 8], 0x3f800000
mov dword [eax + 0xc], 0x3ea3d70a
mov dword [eax + 0x10], 0x3f63d70a
mov dword [eax + 0x38], 0x3f800000
mov dword [eax + 0x14], 0x3fbeb852
mov dword [eax + 0x18], 0x3f547ae1
mov dword [eax + 0x3c], 0x3f800000
mov dword [eax + 0x1c], 0x3d4ccccd
mov dword [eax + 0x20], 0x3be56042
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x24], 0x3fa147ae
mov dword [eax + 0x28], 0x3c343958
mov dword [eax + 0x4c], 0
mov dword [eax + 0x50], 0
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0x3e800000
mov dword [eax + 0x5c], 0
mov dword [eax + 0x60], 0x3e800000
mov dword [eax + 0x64], 0
mov dword [eax + 0x2c], 0x3f7e76c9
mov dword [eax + 0x68], 0x459c4000
mov dword [eax + 0x6c], 0x437a0000
mov dword [eax + 0x30], 0
mov byte [eax + 0x34], 1
jmp 0x646a5484
mov dword [eax + 0x84], 0x43dc0000
mov dword [eax + 0x88], 0x44480000
mov dword [eax + 0x8c], 0
jmp 0x646a5484