Function at 0x5b6fbd1d
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x402c
call fcn.5b71f030
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x18]
push esi
push edi
cmp eax, 0xfffffffe
je 0x5b6fc750
cmp eax, 0xfffffffd
je 0x5b6fc750
cmp byte [ebp + 0x14], 0x10
jne 0x5b6fbd85
mov eax, dword [ebx + 0xac]
test eax, eax
je 0x5b6fbd5a
test byte [eax], 1
jne 0x5b6fbd85
mov eax, dword [ebx + 0xc]
imul eax, dword [ebx + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push 0
push eax
push esi
push edi
call fcn.5b71ef40
sub edi, eax
sbb esi, edx
mov dword [ebx + 0x58], edi
mov dword [ebx + 0x5c], esi
call fcn.5b6f1354
jmp 0x5b6fc75d
cmp dword [ebx + 0xa4], 0
jne 0x5b6fc750
cmp byte [ebp + 0x14], 0x11
jne 0x5b6fbdbb
mov eax, dword [ebx + 0xc]
imul eax, dword [ebx + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push 0
push eax
push esi
push edi
call fcn.5b71ef40
sub edi, eax
sbb esi, edx
mov dword [ebx + 0x60], edi
mov dword [ebx + 0x64], esi
jmp 0x5b6fbd7b
test dword [ebp + 0x14], 0x4000000
je 0x5b6fbde8
push dword [ebp + 0x14]
push dword [ebx]
call sym.bass.dll_BASS_ChannelGetPosition
mov ecx, eax
and ecx, edx
cmp ecx, 0xffffffff
je 0x5b6fc75b
mov edi, dword [ebp + 0xc]
add edi, eax
adc dword [ebp + 0x10], edx
mov dword [ebp + 0xc], edi
jmp 0x5b6fbdeb
mov edi, dword [ebp + 0xc]
test dword [ebp + 0x14], 0x2000000
mov esi, 0x100000
je 0x5b6fbe3f
mov eax, edi
or eax, dword [ebp + 0x10]
je 0x5b6fbe10
call fcn.5b6f1314
mov dword [eax], 7
jmp 0x5b6fc75b
and dword [ebp + 0x14], 0xdfffffff
cmp byte [ebp + 0x14], 0
jne 0x5b6fbe38
mov eax, dword [ebx + 0x90]
xor edx, edx
cmp eax, edx
je 0x5b6fbe38
cmp dword [eax + 0x44], edx
jne 0x5b6fbe38
mov eax, dword [eax]
test esi, eax
jne 0x5b6fbf7b
and dword [ebp + 0x14], 0xfdffffff
cmp byte [ebp + 0x14], 0
jne 0x5b6fbe60
mov eax, dword [ebx + 0xc]
imul eax, dword [ebx + 8]
push 0
push eax
push dword [ebp + 0x10]
push edi
call fcn.5b71ef40
sub edi, eax
sbb dword [ebp + 0x10], edx
mov dword [ebp + 0xc], edi
test dword [ebp + 0x14], 0x20000000
je 0x5b6fbf70
cmp dword [ebx + 0x40], 0
je 0x5b6fbe83
call fcn.5b6f1314
mov dword [eax], 0x2d
jmp 0x5b6fc75b
mov eax, dword [ebx + 0xac]
test eax, eax
je 0x5b6fbe9f
mov eax, dword [eax]
test al, 2
jne 0x5b6fbf79
test al, 1
jne 0x5b6fc750
cmp byte [ebp + 0x14], 0
jne 0x5b6fc750
push 0xffffffffffffffff
push 0xffffffffffffffff
xor eax, eax
mov ecx, ebx
call fcn.5b6fbb0f
cmp dword [ebp + 0x10], edx
ja 0x5b6fbec9
jb 0x5b6fbe00
cmp edi, eax
jb 0x5b6fbe00
push 0x20
lea eax, [ebx + 0x48]
pop ecx
lock or dword [eax], ecx
mov eax, ebx
call fcn.5b6fd404
cmp dword [ebx + 0x24], 0
je 0x5b6fbeea
mov eax, dword [ebx + 0x48]
mov byte [ebp + 0xb], 1
test al, 2
je 0x5b6fbeee
mov byte [ebp + 0xb], 0
cmp dword [ebp + 0x14], 0x80
mov eax, 0x1000000
je 0x5b6fbf05
cmp byte [ebp + 0xb], 0
je 0x5b6fbf05
or dword [ebp + 0x14], eax
test dword [ebp + 0x14], 0x20000000
mov byte [ebp - 1], 0
je 0x5b6fc3c5
push 0xffffffffffffffff
push 0xffffffffffffffff
xor eax, eax
mov ecx, ebx
call fcn.5b6fbb0f
cmp byte [ebp + 0xb], 0
mov edi, eax
mov dword [ebp - 0xc], edx
je 0x5b6fbf54
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + 0x1c]
test eax, 0x401
je 0x5b6fbf4d
mov eax, dword [ebx + 0x24]
mov ecx, 0xfffffbfe
add eax, 0x1c
lock and dword [eax], ecx
mov byte [ebp - 1], 1
mov eax, ebx
call fcn.5b6fc805
mov eax, dword [ebx + 0xac]
test eax, eax
je 0x5b6fc683
test byte [eax], 2
jne 0x5b6fc405
jmp 0x5b6fc683
test dword [ebx + 0x14], esi
jne 0x5b6fc750
xor edx, edx
mov eax, dword [ebx + 0xa0]
cmp eax, edx
je 0x5b6fc010
cmp byte [ebp + 0x14], 1
ja 0x5b6fc750
je 0x5b6fbfc8
mov ecx, edi
or ecx, dword [ebp + 0x10]
je 0x5b6fbfc8
mov eax, dword [eax + 0xcc]
cmp eax, edx
je 0x5b6fbe00
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
jb 0x5b6fbec9
ja 0x5b6fbe00
cmp edi, eax
jb 0x5b6fbec9
jmp 0x5b6fbe00
cmp di, word [eax + 0xc]
jae 0x5b6fbe00
test dword [eax], 0x102
mov edx, dword [eax + 0x44]
movzx ecx, di
movzx ecx, byte [edx + ecx]
je 0x5b6fbff0
cmp ecx, 0xff
je 0x5b6fbe00
mov edx, edi
shr edx, 0x10
test dx, dx
je 0x5b6fbec9
cmp ecx, dword [eax + 0x10]
jge 0x5b6fbe00
mov eax, dword [eax + 0x48]
cmp dx, word [eax + ecx*2]
jmp 0x5b6fbfbd
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
cmp dword [ebx + 0xac], edx
je 0x5b6fc04f
lea esi, [ebx + 0x48]
push 0x20
pop ecx
mov edx, esi
lock or dword [edx], ecx
push dword [ebp + 0x14]
mov eax, dword [ebx + 0xac]
push dword [ebp + 0x10]
push edi
push dword [ebx + 0x1c]
call dword [eax + 0x18]
test eax, eax
jne 0x5b6fbec9
push 0xffffffffffffffdf
pop eax
lock and dword [esi], eax
jmp 0x5b6fc75b
cmp byte [ebp + 0x14], 3
jne 0x5b6fc0c8
mov ecx, dword [ebx + 0x9c]
cmp ecx, edx
je 0x5b6fc750
cmp dword [ecx + 0x2c], edx
jg 0x5b6fc750
mov eax, dword [ecx + 0x34]
cmp eax, 1
ja 0x5b6fc077
xor eax, eax
inc eax
xor edx, edx
cmp dword [ebp + 0x10], edx
jb 0x5b6fc08c
ja 0x5b6fbe00
cmp edi, eax
jae 0x5b6fbe00
mov edx, edi
xor esi, esi
xor edi, edi
test edx, edx
je 0x5b6fc0ac
mov eax, dword [ecx + 0x30]
add eax, 8
mov dword [ebp + 8], edx
add esi, dword [eax]
adc edi, dword [eax + 4]
add eax, 0x20
dec dword [ebp + 8]
jne 0x5b6fc09f
mov eax, dword [ecx + 8]
imul eax, dword [ecx + 4]
push edi
cdq
push esi
push edx
push eax
call fcn.5b71eff0
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
jmp 0x5b6fbec9
cmp byte [ebp + 0x14], 0
jne 0x5b6fc750
or edi, dword [ebp + 0x10]
je 0x5b6fbec9
mov eax, dword [ebx + 0xb4]
xor edi, edi
cmp eax, edi
je 0x5b6fc103
mov eax, dword [eax + 0x10]
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
jb 0x5b6fbec9
ja 0x5b6fbe00
cmp dword [ebp + 0xc], eax
jmp 0x5b6fbfbd
mov esi, dword [ebx + 0x94]
cmp esi, edi
je 0x5b6fc186
cmp dword [ebp + 0x10], edi
jg 0x5b6fc121
jl 0x5b6fbe00
cmp dword [ebp + 0xc], edi
jb 0x5b6fbe00
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x10], edi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
and dword [ebp - 0xc], 0x80000000
and eax, 0x7fffffff
mov dword [ebp - 0x1c], eax
fild qword [ebp - 0x20]
fild qword [ebp - 0x10]
fchs
faddp st(1)
fdiv qword [esi + 0x18]
call fcn.5b71eed0
push 0
push dword [esi + 0x10]
mov edi, edx
push edi
push eax
mov dword [ebp - 0x18], eax
call fcn.5b71ef40
sub dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x90]
sbb edi, edx
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], edi
call fcn.5b6f7b9b
test eax, eax
jne 0x5b6fbec9
jmp 0x5b6fbe00
mov esi, dword [ebx + 0x9c]
cmp esi, edi
je 0x5b6fc236
mov eax, dword [esi + 0x2c]
cmp eax, edi
jle 0x5b6fc1f2
mov eax, dword [ebx + 0x90]
call fcn.5b6f7d09
test eax, eax
jne 0x5b6fc390
push 0x20
lea eax, [ebx + 0x48]
pop ecx
lock or dword [eax], ecx
mov eax, ebx
call fcn.5b6fd404
mov esi, dword [ebx + 0x9c]
call fcn.5b717dc3
mov eax, dword [ebx + 0x9c]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax + 0x1c]
jb 0x5b6fbed9
ja 0x5b6fc389
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + 0x18]
jb 0x5b6fbed9
jmp 0x5b6fc389
jge 0x5b6fc20d
call fcn.5b717e5f
cmp dword [ebp + 0x10], edx
ja 0x5b6fc390
jb 0x5b6fc20d
cmp dword [ebp + 0xc], eax
jae 0x5b6fc390
mov eax, dword [ebx + 0x9c]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax + 0x1c]
ja 0x5b6fc390
jb 0x5b6fbec9
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + 0x18]
jae 0x5b6fc390
jmp 0x5b6fbec9
mov esi, dword [ebx + 0x98]
cmp esi, edi
je 0x5b6fc3b5
mov eax, dword [esi + 0x68]
push edi
shl eax, 5
push eax
push dword [ebp + 0x10]
mov byte [ebp + 0xb], 0
push dword [ebp + 0xc]
call fcn.5b71f060
xor ecx, ecx
or ecx, edx
je 0x5b6fc266
or edi, 0xffffffff
jmp 0x5b6fc268
mov edi, eax
test dword [ebp + 0x14], 0x40000000
je 0x5b6fc2b6
cmp edi, dword [esi + 0x64]
jbe 0x5b6fc2b6
mov esi, dword [ebx + 0x90]
call fcn.5b6f7b63
mov ecx, dword [ebx + 0x98]
cmp dword [ecx + 0x5c], edx
ja 0x5b6fc2b6
jb 0x5b6fc295
mov ecx, dword [ecx + 0x58]
cmp ecx, eax
jae 0x5b6fc2b6
push 0x20
lea eax, [ebx + 0x48]
pop ecx
lock or dword [eax], ecx
mov eax, ebx
call fcn.5b6fd404
mov ecx, dword [ebx + 0x98]
mov edx, edi
mov byte [ebp + 0xb], 1
call fcn.5b716e5b
mov eax, dword [ebx + 0x98]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax + 0x74]
ja 0x5b6fc383
jb 0x5b6fc2d6
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + 0x70]
jae 0x5b6fc383
cmp edi, dword [eax + 0x64]
jbe 0x5b6fc39e
mov esi, dword [ebx + 0x90]
call fcn.5b6f7b63
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x98]
cmp byte [eax + 0xef], 0
mov dword [ebp - 0x1c], edx
je 0x5b6fc35a
fild qword [ebp + 0xc]
fmul dword [0x5b722fe0]
fild qword [eax + 0x70]
fdivp st(1)
fstp dword [ebp - 0x28]
cvttss2si ecx, dword [ebp - 0x28]
movzx edx, byte [eax + ecx + 0x8c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0xc], edx
cmp ecx, 0x63
jge 0x5b6fc332
movzx eax, byte [eax + ecx + 0x8d]
jmp 0x5b6fc337
mov eax, 0x100
fild dword [ebp - 0x24]
sub eax, edx
mov dword [ebp - 0x24], eax
fsubr dword [ebp - 0x28]
fimul dword [ebp - 0x24]
fiadd dword [ebp - 0xc]
fild qword [ebp - 0x20]
fmulp st(1)
fmul dword [0x5b723008]
call fcn.5b71eed0
jmp 0x5b6fc36c
fild qword [ebp - 0x20]
fild qword [ebp + 0xc]
fmulp st(1)
fild qword [eax + 0x70]
fdivp st(1)
call fcn.5b71eed0
push edx
mov dword [ebp - 0x18], eax
push eax
mov eax, dword [ebx + 0x90]
mov dword [ebp - 0x14], edx
call fcn.5b6f7b9b
test eax, eax
jne 0x5b6fc3a6
cmp byte [ebp + 0xb], 0
je 0x5b6fc390
mov eax, ebx
call fcn.5b6fd411
push 0xffffffffffffffdf
lea eax, [ebx + 0x48]
pop ecx
lock and dword [eax], ecx
jmp 0x5b6fbe00
or dword [ebp - 0x18], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
cmp byte [ebp + 0xb], 0
jne 0x5b6fbed9
jmp 0x5b6fbec9
call fcn.5b6f1314
mov dword [eax], 0x1b
jmp 0x5b6fc75b
cmp byte [ebp + 0xb], 0
je 0x5b6fc3f3
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + 0x1c]
test eax, 0x401
je 0x5b6fc3ea
mov eax, dword [ebx + 0x24]
mov ecx, 0xfffffbfe
add eax, 0x1c
lock and dword [eax], ecx
mov byte [ebp - 1], 1
mov eax, ebx
call fcn.5b6fc805
jmp 0x5b6fc405
test dword [ebp + 0x14], eax
je 0x5b6fc405
cmp dword [ebx + 0x78], 0
je 0x5b6fc405
mov eax, ebx
call fcn.5b6fccfe
mov eax, dword [ebx + 0xa0]
test eax, eax
je 0x5b6fc425
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push eax
call fcn.5b70f2c0
mov edi, eax
mov dword [ebp - 0xc], edx
jmp 0x5b6fc703
test dword [ebp + 0x14], 0x2000000
je 0x5b6fc479
mov edi, dword [ebx + 0x90]
mov eax, dword [edi + 0x90]
and dword [edi + 0x2c], 0
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0xa8]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0xac]
mov dword [edi + 0x24], eax
mov eax, dword [edi]
test al, 8
je 0x5b6fc479
and dword [edi], 0xfffffff7
lea esi, [edi + 0xc4]
cmp dword [esi], 0
je 0x5b6fc479
call fcn.5b6f10da
push 0
push edi
push 0x5b6f75e3
call fcn.5b6f1086
mov esi, dword [ebx + 0xa8]
test esi, esi
je 0x5b6fc48a
push 1
call fcn.5b6fd9c2
xor ecx, ecx
cmp dword [ebx + 0xb4], ecx
je 0x5b6fc4a8
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0xb8], edi
mov dword [ebp - 0xc], eax
jmp 0x5b6fc607
mov esi, dword [ebx + 0x94]
cmp esi, ecx
je 0x5b6fc4ff
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.5b718b86
fild qword [ebp - 0x18]
mov esi, dword [ebx + 0x94]
fmul qword [esi + 0x18]
fadd qword [0x5b722d98]
call fcn.5b71eed0
mov edi, eax
mov eax, dword [ebx + 0xc]
imul eax, dword [ebx + 8]
push 0
push eax
push edx
push edi
mov dword [ebp - 0x1c], edx
call fcn.5b71ef40
sub edi, eax
mov eax, dword [ebp - 0x1c]
sbb eax, edx
mov dword [esi + 0x40], edi
mov dword [ebp - 0xc], eax
mov dword [esi + 0x44], eax
jmp 0x5b6fc607
mov edi, dword [ebx + 0x9c]
cmp edi, ecx
je 0x5b6fc51c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.5b717ef1
jmp 0x5b6fc5a5
mov edi, dword [ebx + 0x98]
cmp edi, ecx
je 0x5b6fc5ac
mov eax, dword [ebp - 0x18]
and eax, dword [ebp - 0x14]
cmp eax, 0xffffffff
mov eax, dword [ebp + 0xc]
je 0x5b6fc559
mov esi, dword [ebp + 0x10]
or eax, esi
je 0x5b6fc571
push 1
push dword [ebp - 0x14]
mov eax, edi
push dword [ebp - 0x18]
call fcn.5b716806
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
jmp 0x5b6fc607
or eax, dword [ebp + 0x10]
je 0x5b6fc571
push ecx
push dword [edi + 0x68]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.5b71f060
mov esi, eax
jmp 0x5b6fc573
xor esi, esi
test dword [ebp + 0x14], 0x8000000
jne 0x5b6fc586
push 4
pop eax
cmp esi, eax
cmovbe eax, esi
sub esi, eax
xor eax, eax
push eax
push eax
push esi
mov eax, edi
call fcn.5b716806
mov ecx, dword [ebx + 0x98]
xor eax, eax
push eax
push esi
push eax
push dword [ecx + 0x68]
call fcn.5b71eff0
mov edi, eax
mov dword [ebp - 0xc], edx
jmp 0x5b6fc607
mov eax, dword [ebx + 0xac]
cmp eax, ecx
je 0x5b6fc602
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebx + 0x1c]
call dword [eax + 0x1c]
mov esi, edx
mov edi, eax
and eax, esi
cmp eax, 0xffffffff
je 0x5b6fc611
mov eax, dword [ebx + 0xc]
imul eax, dword [ebx + 8]
push 0
push eax
push esi
push edi
call fcn.5b71ef40
sub edi, eax
mov eax, dword [ebx + 0xac]
sbb esi, edx
test byte [eax], 1
mov dword [ebp - 0xc], esi
jne 0x5b6fc703
cmp dword [eax + 0x24], 0
je 0x5b6fc607
jmp 0x5b6fc703
xor edi, edi
mov dword [ebp - 0xc], ecx
mov eax, edi
and eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
jne 0x5b6fc642
cmp dword [ebx + 0x24], 0
jne 0x5b6fc61e
mov dword [ebx + 0x40], 1
cmp byte [ebp + 0xb], 0
je 0x5b6fc62d
push 0xffffffffffffffe2
lea eax, [ebx + 0x48]
pop ecx
lock and dword [eax], ecx
push 0xffffffffffffffdf
lea eax, [ebx + 0x48]
pop ecx
lock and dword [eax], ecx
mov eax, ebx
call fcn.5b6fd411
jmp 0x5b6fc75b
cmp byte [ebp + 0x14], 0
jne 0x5b6fc703
test dword [ebp + 0x14], 0x8000000
jne 0x5b6fc703
mov eax, dword [ebx + 0xc]
imul eax, dword [ebx + 8]
imul eax, dword [ebx + 4]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
sub edx, edi
sbb ecx, dword [ebp - 0xc]
xor esi, esi
cmp ecx, esi
ja 0x5b6fc703
jb 0x5b6fc683
cmp edx, eax
jae 0x5b6fc703
mov eax, dword [ebp - 0xc]
cmp dword [ebp + 0x10], eax
jb 0x5b6fc703
ja 0x5b6fc692
cmp dword [ebp + 0xc], edi
jbe 0x5b6fc703
mov esi, dword [ebx + 0xc]
imul esi, dword [ebx + 8]
mov eax, dword [ebp + 0xc]
sub eax, edi
mov dword [ebp + 0x14], eax
mov ecx, 0x4000
xor edx, edx
mov eax, ecx
div esi
mov eax, dword [ebx + 0x24]
mov esi, ecx
sub esi, edx
test eax, eax
je 0x5b6fc6c0
mov eax, dword [eax + 0x28]
cmp esi, eax
jbe 0x5b6fc6c0
mov esi, eax
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebp + 0x14]
cmp eax, 0xffffffff
jne 0x5b6fc6d6
push 0
mov eax, ebx
call fcn.5b6fd9f5
jmp 0x5b6fc6ea
push dword [ebx + 0x1c]
cmp esi, ecx
cmovb ecx, esi
push ecx
lea ecx, [ebp - 0x4028]
push ecx
push dword [ebx]
call eax
mov ecx, eax
and ecx, 0x3fffffff
je 0x5b6fc703
add edi, ecx
adc dword [ebp - 0xc], 0
test eax, eax
js 0x5b6fc703
sub dword [ebp + 0x14], ecx
jne 0x5b6fc6c0
push dword [ebp - 0xc]
mov eax, ebx
push edi
call fcn.5b6fc764
xor edi, edi
lea esi, [ebx + 0x48]
push 0x40
mov dword [ebx + 0x40], edi
mov dword [ebx + 0x70], edi
pop eax
mov ecx, esi
lock or dword [ecx], eax
movzx eax, byte [ebp + 0xb]
push edi
push eax
push 0xb
mov eax, ebx
call fcn.5b70017a
cmp byte [ebp - 1], 0
je 0x5b6fc73e
push edi
mov eax, ebx
call fcn.5b6fb86d
push 0xffffffffffffffdf
pop eax
lock and dword [esi], eax
mov eax, ebx
call fcn.5b6fd411
jmp 0x5b6fbd7b
call fcn.5b6f1314
mov dword [eax], 0x25
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10