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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x31c
mov eax, dword [0x5ff004]
xor eax, esp
mov dword [esp + 0x318], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi], 0
je 0x4b4b48
mov dword [esp + 0x1c], fcn.004108c0
mov dword [esp + 0x18], 0x4042e0
jmp 0x4b4b58
mov dword [esp + 0x1c], fcn.00410860
mov dword [esp + 0x18], fcn.00404290
push 1
push 0
push 9
lea eax, [esp + 0x1f]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 1
je 0x4b4b74
or al, 0xff
jmp 0x4b4b78
mov al, byte [esp + 0x13]
movzx eax, al
mov dword [edi + 0x48], eax
mov eax, dword [ebx + 4]
push ebx
call eax
add esp, 4
mov esi, eax
push ebx
push 0xc
call dword [esp + 0x24]
add esp, 8
cmp eax, esi
jne 0x4b535e
mov eax, dword [edi + 0x48]
mov dword [edi + 0x44], 0x10
test eax, eax
jne 0x4b4bbe
mov dword [edi + 0x48], 0xf
mov eax, 0x20
mov dword [edi + 0x6c], 0x20
jmp 0x4b4bd0
add eax, 0x11
mov ecx, eax
mov dword [edi + 0x6c], eax
and ecx, 0xf
je 0x4b4bd0
sub eax, ecx
add eax, 0x10
cmp dword [edi + 4], 0
mov dword [edi + 0x6c], eax
je 0x4b4d54
cdq
push 4
push edx
push eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
jne 0x4b535e
mov eax, dword [esp + 0x14]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [esp + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x17]
shl ecx, 8
or ecx, eax
cmp ecx, 0x736e6420
jne 0x4b535e
mov eax, dword [edi + 0x6c]
add eax, 0x10
cdq
push 4
push edx
push eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
jne 0x4b535e
mov eax, dword [esp + 0x14]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [esp + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x17]
shl ecx, 8
or ecx, eax
cmp ecx, 0x73657120
jne 0x4b535e
mov eax, dword [edi + 0x6c]
add eax, 0x20
cdq
push 4
push edx
push eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
jne 0x4b535e
mov eax, dword [esp + 0x14]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [esp + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x17]
shl ecx, 8
or ecx, eax
cmp ecx, 0x74726b20
jne 0x4b535e
mov eax, dword [edi + 0x6c]
add eax, 0x30
cdq
push 4
push edx
push eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
jne 0x4b535e
mov eax, dword [esp + 0x14]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [esp + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x17]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6d74726c
jne 0x4b535e
mov eax, dword [edi + 0x6c]
mov esi, dword [esp + 0x1c]
add eax, 8
push ebx
push eax
call esi
mov dword [edi + 0x70], eax
mov eax, dword [edi + 0x6c]
add eax, 0x18
push ebx
push eax
call esi
mov dword [edi + 0x74], eax
mov eax, dword [edi + 0x6c]
add eax, 0x28
push ebx
push eax
call esi
mov dword [edi + 0x78], eax
mov eax, dword [edi + 0x6c]
add eax, 0x38
push ebx
push eax
call esi
add esp, 0x20
jmp 0x4b4e76
cmp dword [edi + 8], 0
je 0x4b535e
cdq
push 4
push edx
push eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
jne 0x4b535e
mov eax, dword [esp + 0x14]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [esp + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x17]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6d757363
jne 0x4b535e
mov eax, dword [edi + 0x6c]
add eax, 0x10
cdq
push 4
push edx
push eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
jne 0x4b535e
mov eax, dword [esp + 0x14]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [esp + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x17]
shl ecx, 8
or ecx, eax
cmp ecx, 0x696e7374
jne 0x4b535e
mov eax, dword [edi + 0x6c]
add eax, 0x20
cdq
push 4
push edx
push eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
jne 0x4b535e
mov eax, dword [esp + 0x14]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [esp + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x17]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6d74726c
jne 0x4b535e
mov eax, dword [edi + 0x6c]
mov esi, dword [esp + 0x1c]
add eax, 8
push ebx
push eax
call esi
mov dword [edi + 0x7c], eax
mov eax, dword [edi + 0x6c]
add eax, 0x18
push ebx
push eax
call esi
mov dword [edi + 0x80], eax
mov eax, dword [edi + 0x6c]
add eax, 0x28
push ebx
push eax
call esi
add esp, 0x18
mov dword [edi + 0x84], eax
add eax, 4
push ebx
push eax
call dword [esp + 0x20]
add esp, 8
movzx eax, ax
cmp dword [edi + 0x10], 0
mov dword [esp + 0x14], eax
jne 0x4b4e9c
mov dword [edi + 0x10], 1
xor esi, esi
mov dword [edi + 0xc], 0
mov dword [edi + 0x30], 0
test eax, eax
je 0x4b5351
mov eax, dword [edi + 0x84]
push ebx
lea eax, [eax + esi*4]
add eax, 0x10
push eax
call dword [esp + 0x24]
mov ecx, dword [edi + 0x84]
add esp, 8
mov edx, dword [edi + 0xc]
add ecx, eax
mov eax, dword [edi + 0x30]
inc edx
mov dword [edi + 0xc], edx
test eax, eax
jne 0x4b4eed
cmp edx, dword [edi + 0x10]
jne 0x4b4eed
mov dword [edi + 0x30], ecx
mov eax, ecx
mov word [edi + 0x14], si
inc esi
cmp esi, dword [esp + 0x14]
jl 0x4b4eb4
test eax, eax
je 0x4b5351
add eax, 4
cdq
push 1
push edx
push eax
lea eax, [esp + 0x1f]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 1
je 0x4b4f1a
or al, 0xff
jmp 0x4b4f1e
mov al, byte [esp + 0x13]
movzx eax, al
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 0x30]
add eax, 5
cdq
push 1
push edx
push eax
lea eax, [esp + 0x1f]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 1
je 0x4b4f45
or al, 0xff
jmp 0x4b4f49
mov al, byte [esp + 0x13]
movzx eax, al
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x30]
add eax, 6
push ebx
push eax
call dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov word [edi + 0x16], ax
mov eax, dword [edi + 0x30]
add eax, 8
push ebx
push eax
call esi
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x30]
add eax, 0xc
push ebx
push eax
call esi
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0x30]
add eax, 0x10
push ebx
push eax
call esi
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 0x30]
add eax, 0x14
push ebx
push eax
call esi
mov dword [edi + 0x38], eax
mov eax, dword [edi + 0x30]
add eax, 0x18
push ebx
push eax
call esi
mov dword [edi + 0x3c], eax
mov eax, dword [edi + 0x30]
add eax, 0x1c
push ebx
push eax
call dword [esp + 0x50]
add esp, 0x38
mov word [edi + 0x40], ax
cmp dword [edi + 0x20], 0
jne 0x4b4fcb
mov dword [edi + 0x1c], 1
mov dword [edi + 0x24], 0xbb80
xor eax, eax
cmp dword [edi + 0x2c], eax
setg al
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x30]
add eax, 0x20
cmp dword [edi + 4], 0
mov dword [edi + 0x34], eax
je 0x4b5008
mov edx, ebx
mov ecx, edi
call fcn.004b4720
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x318]
xor ecx, esp
call fcn.00502eb4
mov esp, ebp
pop ebp
ret
cmp dword [edi + 8], 0
je 0x4b5337
mov edx, ebx
mov ecx, edi
call fcn.004b4230
mov eax, dword [edi + 0x48]
cmp eax, 0xff
ja 0x4b5337
cmp dword [edi + 0x50], 0xff
ja 0x4b5337
cmp dword [edi + 0x58], 0xff
ja 0x4b5337
cmp dword [edi + 0x60], 0xff
ja 0x4b5337
mov ecx, dword [edi + 0x44]
xor esi, esi
add eax, 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
je 0x4b50b5
push 1
lea eax, [esi + ecx]
cdq
push edx
push eax
lea eax, [esp + 0x1f]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
lea edx, [esp + 0x220]
cmp eax, 1
je 0x4b508c
or cl, 0xff
add edx, esi
mov byte [edx], cl
jmp 0x4b5098
mov cl, byte [esp + 0x13]
add edx, esi
mov byte [edx], cl
test cl, cl
je 0x4b50bd
lea eax, [esi + 1]
mov esi, eax
cmp eax, dword [esp + 0x14]
je 0x4b5108
sub cl, 0x20
cmp cl, 0xd0
ja 0x4b50b5
mov ecx, dword [esp + 0x18]
cmp esi, dword [esp + 0x14]
jb 0x4b5062
mov byte [esp + 0x220], 0
mov ecx, dword [edi + 0x54]
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x4b5150
mov eax, dword [edi + 0x58]
mov esi, 0
add eax, 1
mov dword [esp + 0x14], eax
je 0x4b51c0
push 1
lea eax, [ecx + esi]
cdq
push edx
push eax
lea eax, [esp + 0x1f]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, 1
je 0x4b510d
or cl, 0xff
add edx, esi
mov byte [edx], cl
jmp 0x4b511d
mov byte [edx], 0
jmp 0x4b50bd
mov cl, byte [esp + 0x13]
add edx, esi
mov byte [edx], cl
test cl, cl
je 0x4b51d1
lea eax, [esi + 1]
mov esi, eax
cmp eax, dword [esp + 0x14]
je 0x4b5148
sub cl, 0x20
cmp cl, 0xd0
ja 0x4b51c0
mov ecx, dword [esp + 0x18]
cmp esi, dword [esp + 0x14]
jb 0x4b50e1
mov byte [esp + 0x20], 0
jmp 0x4b51d1
mov byte [edx], 0
jmp 0x4b51d1
mov ecx, dword [edi + 0x64]
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x4b51c7
mov eax, dword [edi + 0x68]
mov esi, 0
add eax, 1
mov dword [esp + 0x14], eax
je 0x4b51c0
lea esp, [esp]
push 1
lea eax, [ecx + esi]
cdq
push edx
push eax
lea eax, [esp + 0x1f]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, 1
je 0x4b5197
or cl, 0xff
add edx, esi
mov byte [edx], cl
jmp 0x4b51a3
mov cl, byte [esp + 0x13]
add edx, esi
mov byte [edx], cl
test cl, cl
je 0x4b51d1
lea eax, [esi + 1]
mov esi, eax
cmp eax, dword [esp + 0x14]
je 0x4b5148
sub cl, 0x20
cmp cl, 0xd0
ja 0x4b51c0
mov ecx, dword [esp + 0x18]
cmp esi, dword [esp + 0x14]
jb 0x4b5170
mov byte [esp + 0x20], 0
jmp 0x4b51d1
mov eax, 0x3f
mov word [esp + 0x20], ax
mov ecx, dword [edi + 0x5c]
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x4b524b
mov eax, dword [edi + 0x60]
mov esi, 0
add eax, 1
mov dword [esp + 0x14], eax
je 0x4b5243
lea ecx, [ecx]
push 1
lea eax, [ecx + esi]
cdq
push edx
push eax
lea eax, [esp + 0x1f]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
lea edx, [esp + 0x120]
cmp eax, 1
je 0x4b521a
or cl, 0xff
add edx, esi
mov byte [edx], cl
jmp 0x4b5226
mov cl, byte [esp + 0x13]
add edx, esi
mov byte [edx], cl
test cl, cl
je 0x4b524b
lea eax, [esi + 1]
mov esi, eax
cmp eax, dword [esp + 0x14]
je 0x4b5281
sub cl, 0x20
cmp cl, 0xd0
ja 0x4b5243
mov ecx, dword [esp + 0x18]
cmp esi, dword [esp + 0x14]
jb 0x4b51f0
mov byte [esp + 0x120], 0
cmp dword [edi + 0x5c], 0
je 0x4b5311
mov ecx, str.Mode
lea eax, [esp + 0x120]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4b5286
test dl, dl
je 0x4b527d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4b5286
add eax, 2
add ecx, 2
test dl, dl
jne 0x4b5261
xor eax, eax
jmp 0x4b528b
mov byte [edx], 0
jmp 0x4b524b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4b5311
mov ecx, str.Mode0
lea eax, [esp + 0x120]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4b52c0
test dl, dl
je 0x4b52bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4b52c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4b52a0
xor eax, eax
jmp 0x4b52c5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4b5311
lea eax, [esp + 0x120]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x228]
push eax
push 0x5f5904
lea eax, [edi + 0x88]
push 0xff
push eax
call fcn.00401080
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x318]
xor ecx, esp
call fcn.00502eb4
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x224]
push eax
push 0x5f51ec
lea eax, [edi + 0x88]
push 0xff
push eax
call fcn.00401080
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x318]
xor ecx, esp
call fcn.00502eb4
mov esp, ebp
pop ebp
ret
push str.SQEX_SEAD:_bank_has_no_subsongs__ignore__n
call fcn.0040b9e0
add esp, 4
mov ecx, dword [esp + 0x324]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00502eb4
mov esp, ebp
pop ebp
ret