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

Disassembly:
push ecx
push ebx
push ebp
mov ebp, edx
and edx, 0xf
push esi
mov esi, ecx
mov ebx, edx
mov edx, dword [esi + ebx*4 + 0x98]
and ebp, 0xf0
cmp ebp, 0xb0
push edi
mov edi, dword [esi + 4]
mov dword [esp + 0x10], edx
jne 0x2111728f
mov eax, dword [esp + 0x20]
test eax, eax
je 0x2111729f
mov eax, dword [esi + ebx*4 + 0x358]
cmp eax, 0xffffffff
je 0x2111729f
mov dword [esp + 0x1c], eax
mov dword [esi + ebx*4 + 0x358], 0xffffffff
jmp 0x2111729f
cmp ebp, 0xc0
je 0x2111729f
cmp ebp, 0xe0
jne 0x211172bc
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov edx, ebx
or edx, ebp
lea ecx, [esi + 0xd8]
call fcn.21117710
mov edx, dword [esp + 0x10]
cmp ebp, 0xb0
jne case.0x211172d8.18
mov eax, dword [esp + 0x18]
add eax, 0xfffffff9
cmp eax, 0x70
ja case.0x211172d8.18
xor ecx, ecx
mov cl, byte [eax + 0x21117600]
jmp dword [ecx*4 + 0x211175d0]
mov eax, dword [esi + 0x1c]
test eax, eax
je case.0x211172d8.18
mov ecx, dword [esp + 0x1c]
xor edx, edx
mov dl, byte [eax + ecx]
mov dword [esi + ebx*4 + 0x358], edx
mov edx, dword [esp + 0x10]
cmp dword [edi + edx*4 + 0x18], 1
jne 0x2111730b
cmp dword [edi + edx*4 + 0x58], esi
jne 0x211175c5
cmp ebp, 0x90
jne 0x2111755f
mov eax, dword [edi + edx*4 + 0x158]
inc eax
jmp 0x2111756f
mov eax, dword [esi + 0x20]
test eax, eax
je case.0x211172d8.18
mov edx, dword [esp + 0x1c]
push edx
push ebx
push esi
call eax
mov dword [esi + ebx*4 + 0x358], eax
jmp 0x211172f6
push 0
mov edx, ebx
push 0
or edx, 0xb0
push 0x64
mov ecx, esi
mov dword [esp + 0x2c], edx
call fcn.21117240
mov edx, dword [esp + 0x20]
push 0
push 0
push 0x65
mov ecx, esi
call fcn.21117240
mov edx, dword [esp + 0x20]
push 0
push 0
push 0x26
mov ecx, esi
call fcn.21117240
jmp 0x211172f6
mov ecx, dword [edi + 0x1a0]
imul ecx, dword [esi + 0x3c]
imul ecx, dword [esp + 0x1c]
mov eax, 0x82061029
imul ecx
add edx, ecx
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 0x7f
mov dword [esp + 0x1c], edx
jle 0x211173b5
mov dword [esp + 0x1c], 0x7f
jmp 0x211172f6
test edx, edx
jge 0x211172f6
mov dword [esp + 0x1c], 0
jmp 0x211172f6
mov edx, dword [esi + 0x6c]
mov eax, dword [esi + 0x28]
xor ecx, ecx
neg edx
cmp eax, ecx
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], ecx
mov dword [esi + 0x70], edx
je 0x211175c5
push ecx
push ecx
push esi
push edi
call eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov eax, dword [esi + 0x24]
test eax, eax
je 0x211175c5
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push esi
call eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
xor eax, eax
lea ecx, [esi + 0x88]
cmp dword [ecx], 0xffffffff
je 0x21117425
inc eax
add ecx, 4
cmp eax, 4
jl 0x21117417
cmp eax, 4
je 0x211175c5
mov edx, dword [esp + 0x1c]
mov dword [esi + eax*4 + 0x88], edx
mov ecx, dword [esi + 0x18]
pop edi
mov dword [esi + eax*4 + 0x78], ecx
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov eax, 3
lea ecx, [esi + 0x94]
cmp dword [ecx], 0xffffffff
jne 0x21117460
dec eax
sub ecx, 4
test eax, eax
jge 0x21117453
cmp dword [esp + 0x1c], 0x40
jge 0x2111747a
pop edi
mov dword [esi + eax*4 + 0x88], 0xffffffff
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
cmp eax, 0xffffffff
je 0x211175c5
mov ecx, dword [esi + eax*4 + 0x88]
test ecx, ecx
jne 0x2111749d
mov edx, dword [esi + eax*4 + 0x78]
pop edi
mov dword [esi + 0x18], edx
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
dec ecx
test ecx, ecx
mov dword [esi + eax*4 + 0x88], ecx
je 0x21117467
mov eax, dword [esi + eax*4 + 0x78]
pop edi
mov dword [esi + 0x18], eax
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call sym.mss32.dll__AIL_branch_index_8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
cmp dword [edi + edx*4 + 0x18], 1
je 0x211175c5
mov ebp, dword [esp + 0x1c]
xor eax, eax
cmp ebp, 0x40
setge al
dec eax
and eax, 0xfffffffe
add eax, 2
mov dword [edi + edx*4 + 0x18], eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
cmp dword [esp + 0x1c], 0x40
mov eax, dword [edi + edx*4 + 0x18]
jl 0x2111752e
cmp eax, 1
je 0x211175c5
push edi
call sym.mss32.dll__AIL_lock_channel_4
mov ebp, eax
test ebp, ebp
je 0x211175c5
push ebp
inc ebx
push ebx
push esi
call sym.mss32.dll__AIL_map_sequence_channel_12
mov dword [edi + ebp*4 + 0x54], esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
cmp eax, 1
jne 0x211175c5
mov edx, ebx
mov ecx, esi
call fcn.21117990
mov ecx, dword [esp + 0x10]
inc ecx
push ecx
push edi
call sym.mss32.dll__AIL_release_channel_8
lea eax, [ebx + 1]
push eax
push eax
push esi
call sym.mss32.dll__AIL_map_sequence_channel_12
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
cmp ebp, 0x80
jne 0x21117576
mov eax, dword [edi + edx*4 + 0x158]
dec eax
mov dword [edi + edx*4 + 0x158], eax
cmp ebp, 0x90
mov dword [edi + edx*4 + 0xd8], esi
jne 0x2111758f
cmp dword [esi + ebx*4 + 0x218], 0x40
jge 0x211175c5
mov eax, dword [edi + 0x198]
test eax, eax
je 0x211175b2
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
or edx, ebp
push edx
push esi
push edi
call eax
test eax, eax
jne 0x211175c5
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
or edx, ebp
mov ecx, edi
call fcn.21117680
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc