Function at 0x61c6d0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x20c
mov eax, dword [0x6d63d0]
mov dword [esp + 0x208], eax
mov al, byte [0x6d150c]
test al, al
jne 0x61c703
mov eax, 0xffffffff
mov ecx, dword [esp + 0x208]
call fcn.00671b23
add esp, 0x20c
ret
push ebx
push ebp
xor edx, edx
push esi
mov dword [esp + 0xc], edx
xor ecx, ecx
mov eax, 0x76a370
push edi
mov esi, dword [eax]
inc ecx
cmp esi, edx
je 0x61c765
add eax, 0x14
cmp eax, 0x76a3c0
jl 0x61c714
mov eax, dword [esp + 0x220]
push eax
lea ecx, [esp + 0x18]
push str.BinkMusic_Queue__s____Not_free_slots_found_n
push ecx
call fcn.00671a9a
add esp, 0xc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x218]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
call fcn.00671b23
add esp, 0x20c
ret
cmp ecx, edx
mov dword [esp + 0x10], ecx
je 0x61c725
mov ebp, ecx
dec ebp
cmp ebp, 4
jg 0x61c7a7
lea eax, [ebp + ebp*4]
shl eax, 2
mov byte [eax + 0x76a380], 0
mov dword [eax + 0x76a370], edx
mov byte [eax + 0x76a374], 0
mov dword [eax + 0x76a378], edx
mov dword [eax + 0x76a37c], 0x3f800000
mov byte [eax + 0x76a381], 0
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x76a268]
mov byte [esp + eax + 0x114], cl
inc eax
test cl, cl
jne 0x61c7b0
lea edi, [esp + 0x114]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x61c7d0
mov ax, word [0x69a044]
mov ebx, dword [esp + 0x220]
mov word [edi], ax
mov eax, ebx
mov edx, ebx
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x61c7f0
lea edi, [esp + 0x114]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x61c801
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x224]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
mov eax, str.Loop
jne 0x61c82e
mov eax, str.Nonloop
push eax
push ebx
push ebp
lea ecx, [esp + 0x20]
push str.BM_Q__i___s___s__called_n
push ecx
call fcn.00671a9a
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x14
lea edx, [esp + 0x14]
push edx
call edi
push 0
lea eax, [esp + 0x118]
push eax
call fcn.0066fa5e
lea esi, [ebp + ebp*4]
shl esi, 2
test eax, eax
mov dword [esi + 0x76a370], eax
je 0x61c913
test ebx, ebx
je 0x61c8c5
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x61c880
sub eax, edx
cmp eax, 0x12
jne 0x61c8c5
movsx ecx, byte [ebx + 0xb]
push ecx
call fcn.00673e61
add esp, 4
test eax, eax
je 0x61c8c5
movsx edx, byte [ebx + 0xc]
push edx
call fcn.00673e61
add esp, 4
test eax, eax
je 0x61c8c5
movsx eax, byte [ebx + 0xd]
push eax
call fcn.00673e61
add esp, 4
test eax, eax
je 0x61c8c5
push 2
jmp 0x61c8c7
push 1
add ebp, 2
mov ecx, 0x76b6e0
push ebp
call fcn.0061bb10
mov eax, dword [esi + 0x76a378]
test eax, eax
je 0x61c8ee
mov ecx, dword [esi + 0x76a370]
push eax
push 0
push ecx
call fcn.0066fa28
mov edx, dword [esi + 0x76a370]
push 0
push edx
call fcn.0066fa64
mov eax, dword [esp + 0x224]
test eax, eax
setne al
mov byte [esi + 0x76a374], al
jmp 0x61c74a
call fcn.0066fa4c
push eax
lea ecx, [esp + 0x18]
push str.BinkMusic_Error__s__n
push ecx
call fcn.00671a9a
add esp, 0xc
lea edx, [esp + 0x14]
push edx
call edi
jmp 0x61c74a