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

Disassembly:
push 0xffffffffffffffff
push 0x4c2108
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x570f20]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esp + 0x54]
xor ebx, ebx
cmp ecx, 1
jne 0x40c739
cmp byte [esi + 0xfc], bl
je 0x40c739
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
push eax
push ecx
lea ecx, [esi + 0x20]
mov byte [esi + 0xfc], bl
call fcn.00401b50
test al, al
je 0x40c70a
cmp byte [esi + 0x150], bl
sete al
mov byte [esi + 0x150], al
cmp al, bl
je 0x40c6dd
mov edx, dword [esi + 0x160]
add edx, dword [0x570124]
mov eax, dword [0x6bb590]
push eax
mov dword [0x6bb5b4], edx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push str.mute_track
jmp 0x40d1a3
mov edx, dword [0x6bb590]
mov ecx, dword [esi + 0x160]
push edx
mov dword [0x6bb5b4], ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x6bb5ac]
mov ecx, dword [eax + 0x18]
push 1
push str.unmute_track
jmp 0x40d1ac
movq xmm0, qword [esi + 0x20]
mov ecx, dword [esi + 0x40]
sub esp, 0x24
mov eax, esp
movq qword [eax], xmm0
movq xmm0, qword [esi + 0x28]
movq qword [eax + 8], xmm0
movq xmm0, qword [esi + 0x30]
movq qword [eax + 0x10], xmm0
movq xmm0, qword [esi + 0x38]
jmp 0x40cd31
cmp byte [esi + 0x40], bl
jne 0x40c75a
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x28]
mov dword [esi + 0x34], edx
mov edx, dword [esi + 0x2c]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
mov byte [esi + 0x40], 1
mov eax, dword [esp + 0x4c]
cmp eax, dword [esi + 0x30]
jl 0x40c7fb
cmp eax, dword [esi + 0x38]
jg 0x40c7fb
mov ebp, dword [esp + 0x50]
cmp ebp, dword [esi + 0x34]
jl 0x40c7ff
cmp ebp, dword [esi + 0x3c]
jg 0x40c7ff
cmp ecx, ebx
jne 0x40c7ff
push ebx
cmp byte [esi + 0x150], bl
je 0x40c79e
mov eax, dword [0x6bb5ac]
mov ecx, dword [eax + 0x18]
push str.unmute_track
jmp 0x40c7ac
mov ecx, dword [0x6bb5ac]
mov ecx, dword [ecx + 0x18]
push str.mute_track
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
movq xmm0, qword [esi + 0x20]
mov ecx, dword [esi + 0x40]
sub esp, 0x24
mov eax, esp
movq qword [eax], xmm0
movq xmm0, qword [esi + 0x28]
movq qword [eax + 8], xmm0
movq xmm0, qword [esi + 0x30]
movq qword [eax + 0x10], xmm0
movq xmm0, qword [esi + 0x38]
movq qword [eax + 0x18], xmm0
mov dword [eax + 0x20], ecx
mov ecx, 0x6bb4f0
mov byte [esi + 0xfc], 1
call fcn.004032f0
jmp 0x40d1b3
mov ebp, dword [esp + 0x50]
cmp ecx, 1
jne 0x40c8c1
cmp byte [esi + 0xfd], bl
je 0x40c8c1
push ebp
push eax
lea ecx, [esi + 0x44]
mov byte [esi + 0xfd], bl
call fcn.00401b50
test al, al
je 0x40c892
cmp byte [esi + 0x151], bl
sete al
mov byte [esi + 0x151], al
cmp al, bl
je 0x40c865
mov edx, dword [esi + 0x160]
add edx, dword [0x570124]
mov eax, dword [0x6bb590]
push eax
mov dword [0x6bb5b8], edx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push str.solo_track
jmp 0x40d1a3
mov edx, dword [0x6bb590]
mov ecx, dword [esi + 0x160]
push edx
mov dword [0x6bb5b8], ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x6bb5ac]
mov ecx, dword [eax + 0x18]
push 1
push str.solo_track_remove
jmp 0x40d1ac
movq xmm0, qword [esi + 0x44]
mov ecx, dword [esi + 0x64]
sub esp, 0x24
mov eax, esp
movq qword [eax], xmm0
movq xmm0, qword [esi + 0x4c]
movq qword [eax + 8], xmm0
movq xmm0, qword [esi + 0x54]
movq qword [eax + 0x10], xmm0
movq xmm0, qword [esi + 0x5c]
jmp 0x40cd31
cmp byte [esi + 0x64], bl
jne 0x40c8e2
mov edx, dword [esi + 0x44]
mov dword [esi + 0x54], edx
mov edx, dword [esi + 0x48]
mov dword [esi + 0x58], edx
mov edx, dword [esi + 0x4c]
mov dword [esi + 0x5c], edx
mov edx, dword [esi + 0x50]
mov dword [esi + 0x60], edx
mov byte [esi + 0x64], 1
cmp eax, dword [esi + 0x54]
jl 0x40c977
cmp eax, dword [esi + 0x5c]
jg 0x40c977
cmp ebp, dword [esi + 0x58]
jl 0x40c977
cmp ebp, dword [esi + 0x60]
jg 0x40c977
cmp ecx, ebx
jne 0x40c977
push ebx
cmp byte [esi + 0x151], bl
je 0x40c91a
mov eax, dword [0x6bb5ac]
mov ecx, dword [eax + 0x18]
push str.solo_track_remove
jmp 0x40c928
mov ecx, dword [0x6bb5ac]
mov ecx, dword [ecx + 0x18]
push str.solo_track
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
movq xmm0, qword [esi + 0x44]
mov ecx, dword [esi + 0x64]
sub esp, 0x24
mov eax, esp
movq qword [eax], xmm0
movq xmm0, qword [esi + 0x4c]
movq qword [eax + 8], xmm0
movq xmm0, qword [esi + 0x54]
movq qword [eax + 0x10], xmm0
movq xmm0, qword [esi + 0x5c]
movq qword [eax + 0x18], xmm0
mov dword [eax + 0x20], ecx
mov ecx, 0x6bb4f0
mov byte [esi + 0xfd], 1
call fcn.004032f0
jmp 0x40d1b3
cmp ecx, 1
jne 0x40ca30
cmp byte [esi + 0xfe], bl
je 0x40ca30
push ebp
mov edx, eax
push edx
lea ecx, [esi + 0x128]
mov byte [esi + 0xfe], bl
call fcn.00401b50
test al, al
je 0x40c9f2
cmp byte [esi + 0x152], bl
sete al
mov byte [esi + 0x152], al
cmp al, bl
je 0x40c9d5
mov eax, dword [esi + 0x160]
push eax
mov ecx, 0x6bb4dc
call fcn.004090e0
push 1
push str.open_track_graphic
jmp 0x40d1a3
mov ecx, dword [esi + 0x160]
push ecx
mov ecx, 0x6bb4dc
call fcn.00403590
push 1
push str.close_track_graphic
jmp 0x40cd49
movq xmm0, qword [esi + 0x128]
mov ecx, dword [esi + 0x148]
sub esp, 0x24
mov eax, esp
movq qword [eax], xmm0
movq xmm0, qword [esi + 0x130]
movq qword [eax + 8], xmm0
movq xmm0, qword [esi + 0x138]
movq qword [eax + 0x10], xmm0
movq xmm0, qword [esi + 0x140]
jmp 0x40cd31
push ebp
push eax
lea ecx, [esi + 0x128]
call fcn.00401b50
test al, al
je 0x40cad3
cmp dword [esp + 0x54], ebx
jne 0x40cad3
push ebx
cmp byte [esi + 0x152], bl
je 0x40ca67
mov eax, dword [0x6bb5ac]
mov ecx, dword [eax + 0x18]
push str.close_track_graphic
jmp 0x40ca75
mov ecx, dword [0x6bb5ac]
mov ecx, dword [ecx + 0x18]
push str.open_track_graphic
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
movq xmm0, qword [esi + 0x128]
mov ecx, dword [esi + 0x148]
sub esp, 0x24
mov eax, esp
movq qword [eax], xmm0
movq xmm0, qword [esi + 0x130]
movq qword [eax + 8], xmm0
movq xmm0, qword [esi + 0x138]
movq qword [eax + 0x10], xmm0
movq xmm0, qword [esi + 0x140]
movq qword [eax + 0x18], xmm0
mov dword [eax + 0x20], ecx
mov ecx, 0x6bb4f0
mov byte [esi + 0xfe], 1
call fcn.004032f0
jmp 0x40d1b3
cmp dword [esp + 0x54], 1
jne 0x40cb54
cmp byte [esi + 0xff], bl
je 0x40cb54
mov edx, dword [esp + 0x4c]
push ebp
push edx
lea ecx, [esi + 0x68]
mov byte [esi + 0xff], bl
call fcn.00401b50
test al, al
je 0x40cb1f
cmp byte [esi + 0x153], bl
sete al
mov byte [esi + 0x153], al
cmp al, bl
je 0x40d1b3
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
jmp 0x40d1b3
movq xmm0, qword [esi + 0x68]
mov ecx, dword [esi + 0x88]
sub esp, 0x24
mov eax, esp
movq qword [eax], xmm0
movq xmm0, qword [esi + 0x70]
movq qword [eax + 8], xmm0
movq xmm0, qword [esi + 0x78]
movq qword [eax + 0x10], xmm0
movq xmm0, qword [esi + 0x80]
jmp 0x40cd31
mov eax, dword [esp + 0x4c]
push ebp
push eax
lea ecx, [esi + 0x68]
call fcn.00401b50
test al, al
je 0x40cbd8
cmp dword [esp + 0x54], ebx
jne 0x40cbd8
cmp byte [esi + 0x153], bl
jne 0x40cb8a
mov ecx, dword [0x6bb5ac]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
push ebx
push str.create_envelope_for_parameter
call eax
movq xmm0, qword [esi + 0x68]
mov ecx, dword [esi + 0x88]
sub esp, 0x24
mov eax, esp
movq qword [eax], xmm0
movq xmm0, qword [esi + 0x70]
movq qword [eax + 8], xmm0
movq xmm0, qword [esi + 0x78]
movq qword [eax + 0x10], xmm0
movq xmm0, qword [esi + 0x80]
movq qword [eax + 0x18], xmm0
mov dword [eax + 0x20], ecx
mov ecx, 0x6bb4f0
mov byte [esi + 0xff], 1
call fcn.004032f0
jmp 0x40d1b3
cmp dword [esp + 0x54], 1
jne 0x40cd5e
cmp byte [esi + 0x100], bl
je 0x40cd5e
mov edx, dword [esp + 0x4c]
push ebp
push edx
lea ecx, [esi + 0x8c]
mov byte [esi + 0x100], bl
call fcn.00401b50
test al, al
je 0x40ccf8
push 0x6bbe80
mov dword [esp + 0x50], 0x6bbe80
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x160]
mov ecx, dword [0x6bb5a8]
imul eax, eax, 0x118
mov edi, dword [eax + ecx + 0x110]
mov dword [esp + 0x44], ebx
mov byte [eax + ecx], bl
cmp edi, ebx
je 0x40cca9
mov edx, dword [esi + 0x160]
mov eax, dword [0x6bb5a8]
imul edx, edx, 0x118
mov ecx, dword [edx + eax + 0x114]
cmp byte [ecx + 0x152], bl
je 0x40cc7c
xorps xmm0, xmm0
mov edx, dword [edi + 4]
push ecx
movss dword [esp], xmm0
push ebx
push ebx
push ebx
push 0xf
push edi
call edx
add esp, 0x18
xorps xmm0, xmm0
mov eax, dword [edi + 4]
push ecx
movss dword [esp], xmm0
push ebx
push ebx
push ebx
push 0x48
push edi
call eax
xorps xmm0, xmm0
mov ecx, dword [edi + 4]
add esp, 0x14
movss dword [esp], xmm0
push ebx
push ebx
push ebx
push 1
push edi
call ecx
add esp, 0x18
mov edx, dword [esi + 0x160]
push edx
mov ecx, 0x6bb4dc
call fcn.00403500
mov eax, dword [esi + 0x160]
push eax
mov ecx, 0x6bb4f0
call fcn.0040c300
mov ecx, dword [0x6bb5ac]
mov dword [0x6bb544], ebx
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
push 1
push str.close_this_track
call eax
push 0x6bbe80
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40d1b3
movq xmm0, qword [esi + 0x8c]
mov ecx, dword [esi + 0xac]
sub esp, 0x24
mov eax, esp
movq qword [eax], xmm0
movq xmm0, qword [esi + 0x94]
movq qword [eax + 8], xmm0
movq xmm0, qword [esi + 0x9c]
movq qword [eax + 0x10], xmm0
movq xmm0, qword [esi + 0xa4]
movq qword [eax + 0x18], xmm0
mov dword [eax + 0x20], ecx
mov ecx, 0x6bb4f0
call fcn.004032f0
push ebx
push 0x4c5db8
mov edx, dword [0x6bb5ac]
mov ecx, dword [edx + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
jmp 0x40d1b3
mov eax, dword [esp + 0x4c]
push ebp
push eax
lea ecx, [esi + 0x8c]
call fcn.00401b50
test al, al
je 0x40cdec
mov eax, dword [esp + 0x54]
cmp eax, ebx
jne 0x40ce22
mov ecx, dword [0x6bb5ac]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
push ebx
push str.close_this_track
call eax
movq xmm0, qword [esi + 0x8c]
mov ecx, dword [esi + 0xac]
sub esp, 0x24
mov eax, esp
movq qword [eax], xmm0
movq xmm0, qword [esi + 0x94]
movq qword [eax + 8], xmm0
movq xmm0, qword [esi + 0x9c]
movq qword [eax + 0x10], xmm0
movq xmm0, qword [esi + 0xa4]
movq qword [eax + 0x18], xmm0
mov dword [eax + 0x20], ecx
mov ecx, 0x6bb4f0
mov byte [esi + 0x100], 1
call fcn.004032f0
jmp 0x40d1b3
cmp dword [esp + 0x54], ebx
jne 0x40ce1e
mov edx, dword [esp + 0x4c]
mov eax, dword [esi + 0x160]
mov dword [esi + 8], edx
mov dword [esi + 0xc], ebp
mov dword [0x6bb578], eax
mov ecx, dword [esi + 0x114]
mov edx, dword [esi + 0x118]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
jmp 0x40d1b3
mov eax, dword [esp + 0x54]
cmp eax, 2
jne 0x40ce94
mov eax, dword [0x6bb578]
cmp eax, dword [esi + 0x160]
jne 0x40d1b3
mov eax, dword [esi + 8]
mov edi, dword [esp + 0x4c]
mov ecx, edi
sub ecx, eax
add dword [esi + 0x114], ecx
mov edx, edi
sub edx, eax
mov eax, dword [esi + 0xc]
add dword [esi + 0x11c], edx
mov ecx, ebp
sub ecx, eax
add dword [esi + 0x118], ecx
mov edx, ebp
sub edx, eax
add dword [esi + 0x120], edx
mov ecx, esi
call fcn.00401cc0
mov ecx, 0x6bb4f0
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebp
call fcn.00408b80
mov eax, dword [0x6bb5ac]
mov ecx, dword [eax + 0x18]
push ebx
push str.change_the_track_order
jmp 0x40d1ac
cmp eax, 1
jne 0x40d1b3
mov ecx, dword [0x6bb578]
cmp ecx, dword [esi + 0x160]
jne 0x40d1b3
xor eax, eax
mov byte [esp + 0x54], bl
mov dword [esp + 0x14], eax
cmp dword [0x6bb53c], ebx
jle 0x40d158
xor edi, edi
jmp 0x40ced0
mov ecx, dword [0x6bb5a8]
cmp byte [edi + ecx], bl
je 0x40d137
cmp eax, dword [esi + 0x160]
je 0x40d137
mov edx, dword [esp + 0x4c]
mov ecx, dword [edi + ecx + 0x114]
push ebp
push edx
add ecx, 0x104
call fcn.00401b50
test al, al
je 0x40d137
mov eax, dword [esi + 0x160]
mov ecx, dword [0x6bb5a8]
imul eax, eax, 0x118
mov ebp, dword [eax + ecx + 4]
lea eax, [eax + ecx + 4]
mov ecx, dword [edi + ecx + 4]
mov dword [eax], ecx
mov eax, dword [0x6bb554]
mov edx, dword [esi + 0x160]
mov dword [eax + ecx*4], edx
mov ecx, dword [0x6bb5a8]
mov edx, dword [edi + ecx + 0x114]
mov eax, dword [edx + 0x114]
mov dword [esi + 0x114], eax
mov ecx, dword [0x6bb5a8]
mov edx, dword [edi + ecx + 0x114]
mov eax, dword [edx + 0x118]
mov ecx, dword [esi + 0x114]
mov dword [esi + 0x118], eax
add ecx, dword [0x6bb55c]
mov dword [esi + 0x11c], ecx
add eax, dword [0x6bb560]
mov dword [esi + 0x120], eax
mov eax, dword [esi + 0x114]
mov ecx, dword [esi + 0x118]
mov edx, dword [esi + 0x11c]
mov dword [esi + 0x104], eax
mov eax, dword [esi + 0x120]
mov dword [esi + 0x108], ecx
mov ecx, esi
mov dword [esi + 0x10c], edx
mov dword [esi + 0x110], eax
call fcn.00401cc0
mov ecx, dword [0x6bb5a8]
mov dword [edi + ecx + 4], ebp
mov edx, dword [0x6bb554]
mov eax, dword [esp + 0x14]
mov dword [edx + ebp*4], eax
mov ecx, dword [0x6bb5a8]
mov edx, dword [edi + ecx + 0x114]
mov eax, dword [esi + 0x10]
mov dword [edx + 0x114], eax
mov ecx, dword [0x6bb5a8]
mov edx, dword [edi + ecx + 0x114]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x118], eax
mov ecx, dword [esi + 0x10]
add ecx, dword [0x6bb55c]
mov edx, dword [0x6bb5a8]
mov eax, dword [edi + edx + 0x114]
mov dword [eax + 0x11c], ecx
mov ecx, dword [esi + 0x14]
add ecx, dword [0x6bb560]
mov edx, dword [0x6bb5a8]
mov eax, dword [edi + edx + 0x114]
mov dword [eax + 0x120], ecx
mov ecx, dword [0x6bb5a8]
mov eax, dword [edi + ecx + 0x114]
mov edx, dword [eax + 0x114]
mov ecx, dword [eax + 0x118]
mov dword [eax + 0x104], edx
mov edx, dword [eax + 0x11c]
mov dword [eax + 0x108], ecx
mov ecx, dword [eax + 0x120]
mov dword [eax + 0x10c], edx
mov dword [eax + 0x110], ecx
mov edx, dword [0x6bb5a8]
mov ecx, dword [edi + edx + 0x114]
call fcn.00401cc0
mov ecx, dword [esi + 0x118]
mov eax, dword [esi + 0x114]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
push 1
mov ecx, 0x6bb4f0
mov byte [esp + 0x58], 1
mov dword [0x6bb578], 0xffffffff
call fcn.004082f0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
sub esp, 0x24
mov eax, esp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
movq xmm0, qword [esp + 0x3c]
movq qword [eax], xmm0
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
movq xmm0, qword [esp + 0x44]
movq qword [eax + 8], xmm0
movq xmm0, qword [esp + 0x4c]
movq qword [eax + 0x10], xmm0
mov dword [esp + 0x58], ebx
movq xmm0, qword [esp + 0x54]
mov byte [esp + 0x5c], 1
mov edx, dword [esp + 0x5c]
movq qword [eax + 0x18], xmm0
mov ecx, 0x6bb4f0
mov dword [eax + 0x20], edx
call fcn.004032f0
mov eax, dword [0x6bb5ac]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
push 1
push 0x4c6048
call eax
mov ebp, dword [esp + 0x50]
mov eax, dword [esp + 0x14]
inc eax
add edi, 0x118
mov dword [esp + 0x14], eax
cmp eax, dword [0x6bb53c]
jl 0x40ced0
cmp byte [esp + 0x54], bl
jne 0x40d1b3
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x118], ecx
mov dword [esi + 0x114], eax
add eax, dword [0x6bb55c]
mov dword [esi + 0x11c], eax
add ecx, dword [0x6bb560]
mov dword [esi + 0x120], ecx
mov ecx, esi
call fcn.00401cc0
mov ecx, 0x6bb4f0
mov dword [0x6bb578], 0xffffffff
call fcn.00408b80
push ebx
push 0x4c5db8
mov ecx, dword [0x6bb5ac]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0xc