Function at 0x4c8f30
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a40c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov eax, dword [0x6063f8]
push ebx
push esi
mov dword [ebp - 0x28], ecx
mov ecx, 0x6063f8
mov eax, dword [eax + 0x14]
push edi
call eax
test al, al
jne 0x4c8f84
push str.Error:_this_function_can_be_called_only_from_main_thread._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
cmp byte [0x613e15], 0
jne 0x4c8f6f
mov ebx, dword [ebp + 8]
xor esi, esi
mov edi, dword [0x6089bc]
mov ecx, ebx
push edi
push esi
mov eax, dword [ebx]
push esi
mov dword [ebp - 0x14], edi
call dword [eax + 4]
mov ecx, eax
cmp ecx, edi
jae 0x4c8fc6
mov edx, dword [ebx]
mov eax, edi
sub eax, ecx
inc esi
dec eax
push eax
lea eax, [ecx + 1]
mov ecx, ebx
push eax
push 0
call dword [edx + 4]
mov ecx, eax
cmp esi, 0xffffffff
jb 0x4c8fa7
mov dword [ebp - 0x1c], esi
cmp esi, edi
jae 0x4c96fc
cmp byte [ebp + 0xc], 0
jne 0x4c9028
mov eax, dword [ebx]
mov ecx, ebx
push edi
push 0
push 1
call dword [eax + 4]
mov esi, eax
cmp esi, edi
jae 0x4c9028
nop dword [eax]
mov ecx, dword [0x6089b8]
mov ecx, dword [ecx + esi*4]
mov ecx, dword [ecx + 0x54]
test ecx, ecx
je 0x4c900f
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
test al, al
je 0x4c8f6f
mov edx, dword [ebx]
mov eax, edi
sub eax, esi
mov ecx, ebx
dec eax
push eax
lea eax, [esi + 1]
push eax
push 1
call dword [edx + 4]
mov esi, eax
cmp esi, edi
jb 0x4c8ff0
mov ecx, dword [0x6089c4]
mov byte [ebp + 0xf], 0
cmp ecx, 0xffffffff
je 0x4c9052
mov eax, dword [ebx]
push ecx
mov ecx, ebx
mov eax, dword [eax]
call eax
test al, al
je 0x4c9052
mov ecx, dword [ebp - 0x28]
push 0xffffffffffffffff
mov byte [ebp + 0xf], 1
mov eax, dword [ecx]
call dword [eax + 0x14]
mov al, byte [0x613e15]
mov dword [ebp - 0x54], 0x613e15
mov byte [ebp - 0xe], al
mov byte [ebp - 0x58], al
mov byte [0x613e15], 1
mov dword [ebp - 4], 0
cmp dword [0x6100b4], 0
mov al, byte [0x613e14]
mov dword [ebp - 0x70], 0x613e14
mov byte [ebp - 0xd], al
mov byte [ebp - 0x74], al
mov byte [0x613e14], 1
je 0x4c90a8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x6100b4]
je 0x4c90a8
call dword [0x5b49a4]
mov al, byte [0x60f9ed]
mov byte [ebp + 0xb], al
mov byte [0x60f9ed], 1
mov byte [ebp - 0x6c], al
push str.on_playlists_removing
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call dword [0x5b498c]
mov byte [ebp - 4], 2
mov eax, dword [0x6088c8]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4c9114
xor esi, esi
nop
mov ecx, dword [0x6088c4]
test dword [ecx + esi + 4], 0x2000
je 0x4c90fe
mov eax, dword [ecx + esi + 8]
mov dword [ebp - 0x60], 0x7ab1e
mov dword [ebp - 0x5c], eax
mov ecx, dword [ecx + esi]
push dword [ebp - 0x1c]
push edi
mov eax, dword [ecx]
push ebx
call dword [eax + 0x34]
add esi, 0xc
sub dword [ebp - 0x20], 1
jne 0x4c90e0
lea ecx, [ebp - 0x2c]
call dword [0x5b4988]
mov al, byte [ebp + 0xb]
mov ecx, ebx
mov byte [0x60f9ed], al
mov al, byte [ebp - 0xd]
mov dword [ebp - 4], 0xffffffff
mov byte [0x613e14], al
mov al, byte [ebp - 0xe]
push edi
mov byte [0x613e15], al
mov eax, dword [ebx]
push 0
push 1
call dword [eax + 4]
mov esi, eax
cmp esi, edi
jae 0x4c9177
nop
mov ecx, dword [0x6089b8]
mov ecx, dword [ecx + esi*4]
call fcn.004ce760
mov edx, dword [ebx]
mov eax, edi
sub eax, esi
mov ecx, ebx
dec eax
push eax
lea eax, [esi + 1]
push eax
push 1
call dword [edx + 4]
mov esi, eax
cmp esi, edi
jb 0x4c9150
cmp byte [ebp + 0xf], 0
jne 0x4c91ff
mov esi, dword [0x6089c4]
cmp esi, 0xffffffff
jne 0x4c9190
or esi, esi
jmp 0x4c91f9
mov eax, dword [ebx]
xor edi, edi
push esi
push edi
push 1
mov ecx, ebx
call dword [eax + 4]
mov ecx, eax
nop
cmp ecx, esi
jae 0x4c91bf
mov edx, dword [ebx]
mov eax, esi
sub eax, ecx
inc edi
dec eax
push eax
lea eax, [ecx + 1]
mov ecx, ebx
push eax
push 1
call dword [edx + 4]
mov ecx, eax
cmp edi, 0xffffffff
jb 0x4c91a0
mov eax, dword [ebx]
mov ecx, ebx
push esi
mov dword [ebp + 8], edi
mov eax, dword [eax]
call eax
mov edi, dword [ebp - 0x14]
test al, al
je 0x4c91f6
mov edx, dword [ebx]
mov eax, edi
sub eax, esi
mov ecx, ebx
push eax
push esi
push 0
call dword [edx + 4]
cmp eax, edi
jae 0x4c921a
mov edx, dword [ebx]
mov ecx, edi
sub ecx, eax
inc eax
dec ecx
push ecx
push eax
push 0
mov ecx, ebx
call dword [edx + 4]
sub esi, dword [ebp + 8]
mov dword [0x6089c4], esi
mov eax, dword [ebx]
mov ecx, ebx
mov esi, dword [0x6089c8]
push esi
mov eax, dword [eax]
call eax
test al, al
je 0x4c922b
or esi, 0xffffffff
jmp 0x4c929c
mov eax, dword [ebp + 8]
cmp esi, eax
jne 0x4c9226
or esi, 0xffffffff
jmp 0x4c91f9
sub esi, eax
dec esi
jmp 0x4c91f9
cmp esi, 0xffffffff
jne 0x4c9234
or esi, esi
jmp 0x4c929c
mov eax, dword [ebx]
xor edi, edi
push esi
push edi
push 1
mov ecx, ebx
call dword [eax + 4]
mov ecx, eax
cmp ecx, esi
jae 0x4c9262
mov edx, dword [ebx]
mov eax, esi
sub eax, ecx
inc edi
dec eax
push eax
lea eax, [ecx + 1]
mov ecx, ebx
push eax
push 1
call dword [edx + 4]
mov ecx, eax
cmp edi, 0xffffffff
jb 0x4c9243
mov eax, dword [ebx]
mov ecx, ebx
push esi
mov dword [ebp + 8], edi
mov eax, dword [eax]
call eax
mov edi, dword [ebp - 0x14]
test al, al
je 0x4c9299
mov edx, dword [ebx]
mov eax, edi
sub eax, esi
mov ecx, ebx
push eax
push esi
push 0
call dword [edx + 4]
cmp eax, edi
jae 0x4c92bd
mov edx, dword [ebx]
mov ecx, edi
sub ecx, eax
inc eax
dec ecx
push ecx
push eax
push 0
mov ecx, ebx
call dword [edx + 4]
sub esi, dword [ebp + 8]
mov dword [0x6089c8], esi
mov ecx, ebx
mov eax, dword [ebx]
mov esi, dword [0x612174]
push esi
mov eax, dword [eax]
call eax
test al, al
je 0x4c92ce
or esi, 0xffffffff
jmp 0x4c9343
mov eax, dword [ebp + 8]
cmp esi, eax
jne 0x4c92c9
or esi, 0xffffffff
jmp 0x4c929c
sub esi, eax
dec esi
jmp 0x4c929c
cmp esi, 0xffffffff
jne 0x4c92d7
or esi, esi
jmp 0x4c9343
mov eax, dword [ebx]
xor edi, edi
push esi
push edi
push 1
mov ecx, ebx
call dword [eax + 4]
mov ecx, eax
cmp ecx, esi
jae 0x4c9305
mov edx, dword [ebx]
mov eax, esi
sub eax, ecx
inc edi
dec eax
push eax
lea eax, [ecx + 1]
mov ecx, ebx
push eax
push 1
call dword [edx + 4]
mov ecx, eax
cmp edi, 0xffffffff
jb 0x4c92e6
mov eax, dword [ebx]
mov ecx, ebx
push esi
mov dword [ebp + 8], edi
mov eax, dword [eax]
call eax
mov edi, dword [ebp - 0x14]
test al, al
je 0x4c9340
mov edx, dword [ebx]
mov eax, edi
sub eax, esi
mov ecx, ebx
push eax
push esi
push 0
call dword [edx + 4]
cmp eax, edi
jae 0x4c946b
mov edx, dword [ebx]
mov ecx, edi
sub ecx, eax
inc eax
dec ecx
push ecx
push eax
push 0
mov ecx, ebx
call dword [edx + 4]
sub esi, dword [ebp + 8]
push 0
push dword [0x612178]
push esi
call fcn.004c8750
mov eax, dword [0x6089b4]
mov ecx, 0x6089b4
call dword [eax]
mov ecx, dword [ebx]
push eax
push 0
push 1
mov edx, dword [ecx + 4]
mov ecx, ebx
mov dword [ebp + 8], eax
call edx
mov esi, eax
cmp esi, dword [ebp + 8]
jae 0x4c93be
mov edi, dword [ebp + 8]
nop dword [eax + eax]
mov ecx, dword [0x6089b4]
lea eax, [ebp - 0x30]
push esi
push eax
mov edx, dword [ecx + 4]
mov ecx, 0x6089b4
call edx
push dword [ebp - 0x30]
call fcn.004cfee0
mov eax, dword [ebx]
add esp, 4
mov ecx, ebx
mov edx, dword [eax + 4]
mov eax, edi
sub eax, esi
dec eax
push eax
lea eax, [esi + 1]
push eax
push 1
call edx
mov esi, eax
cmp esi, edi
jb 0x4c9380
mov edi, dword [ebp - 0x14]
mov eax, dword [0x6089b4]
lea edx, [ebp - 0x48]
push edx
mov ecx, 0x6089b4
mov dword [ebp - 0x48], 0x5b62cc
mov dword [ebp - 0x44], ebx
call dword [eax + 8]
cmp dword [0x609380], edi
jne 0x4c9482
mov eax, dword [0x609378]
mov ecx, 0x609378
call dword [eax]
mov ecx, dword [ebx]
push eax
push 0
push 1
mov edx, dword [ecx + 4]
mov ecx, ebx
mov dword [ebp + 8], eax
call edx
mov esi, eax
cmp esi, dword [ebp + 8]
jae 0x4c944e
mov edi, dword [ebp + 8]
nop dword [eax]
mov ecx, dword [0x609378]
lea eax, [ebp - 0x34]
push esi
push eax
mov edx, dword [ecx + 4]
mov ecx, 0x609378
call edx
push dword [ebp - 0x34]
call fcn.0051a386
mov eax, dword [ebx]
add esp, 4
mov ecx, ebx
mov edx, dword [eax + 4]
mov eax, edi
sub eax, esi
dec eax
push eax
lea eax, [esi + 1]
push eax
push 1
call edx
mov esi, eax
cmp esi, edi
jb 0x4c9410
mov edi, dword [ebp - 0x14]
mov eax, dword [0x609378]
lea edx, [ebp - 0x50]
push edx
mov ecx, 0x609378
mov dword [ebp - 0x50], 0x5b62cc
mov dword [ebp - 0x4c], ebx
call dword [eax + 8]
jmp 0x4c9487
mov eax, dword [ebp + 8]
cmp esi, eax
jne 0x4c947a
or esi, 0xffffffff
jmp 0x4c9343
sub esi, eax
dec esi
jmp 0x4c9343
call fcn.0051a00b
mov eax, dword [ebx]
mov ecx, ebx
push edi
push 0
push 1
call dword [eax + 4]
mov edi, dword [ebp - 0x1c]
mov esi, eax
cmp esi, edi
jae 0x4c94bb
nop dword [eax]
mov ecx, dword [0x6089b8]
mov ecx, dword [ecx + esi*4]
mov ecx, dword [ecx + 0x54]
test ecx, ecx
je 0x4c94b6
mov eax, dword [ecx]
push esi
call dword [eax + 0x28]
inc esi
cmp esi, edi
jb 0x4c94a0
mov al, byte [0x613e15]
mov dword [ebp - 0x64], 0x613e15
mov byte [ebp - 0xd], al
mov byte [ebp - 0x68], al
mov byte [0x613e15], 1
mov dword [ebp - 4], 3
mov edi, dword [0x6112b4]
add edi, 0x10
push edi
mov dword [ebp - 0x3c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x6112b4]
mov esi, dword [esi]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], esi
test esi, esi
je 0x4c9504
lock inc dword [esi + 4]
mov byte [ebp - 4], 5
test esi, esi
je 0x4c95ea
mov eax, dword [ebx]
mov ecx, ebx
mov edi, dword [esi + 0xc]
push edi
mov dword [ebp - 0x20], edi
mov eax, dword [eax]
call eax
test al, al
je 0x4c952b
or eax, 0xffffffff
jmp 0x4c95ac
cmp edi, 0xffffffff
jne 0x4c9537
or eax, edi
jmp 0x4c95ac
mov eax, dword [ebx]
xor esi, esi
push edi
push esi
push 1
mov ecx, ebx
call dword [eax + 4]
mov ecx, eax
cmp ecx, edi
jae 0x4c9565
mov edx, dword [ebx]
mov eax, edi
sub eax, ecx
inc esi
dec eax
push eax
lea eax, [ecx + 1]
mov ecx, ebx
push eax
push 1
call dword [edx + 4]
mov ecx, eax
cmp esi, 0xffffffff
jb 0x4c9546
mov eax, dword [ebx]
mov ecx, ebx
push edi
mov dword [ebp + 8], esi
mov eax, dword [eax]
call eax
mov esi, dword [ebp - 0x24]
test al, al
je 0x4c95a6
mov eax, dword [ebp - 0x14]
mov ecx, ebx
mov edx, dword [ebx]
sub eax, edi
push eax
push edi
push 0
call dword [edx + 4]
mov edi, eax
mov eax, dword [ebp - 0x14]
cmp edi, eax
jae 0x4c963c
mov edx, dword [ebx]
sub eax, edi
dec eax
mov ecx, ebx
push eax
lea eax, [edi + 1]
push eax
push 0
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
mov edi, eax
mov ecx, esi
mov esi, edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], esi
test edi, edi
je 0x4c95ca
lock inc dword [edi + 4]
test ecx, ecx
je 0x4c95df
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4c95df
mov eax, dword [ecx]
push 1
call dword [eax]
test edi, edi
jne 0x4c9510
mov edi, dword [ebp - 0x3c]
push edi
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004cedd0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
cmp dword [0x6100b4], 0
mov dword [0x6088e0], eax
mov al, byte [0x613e14]
mov dword [ebp - 0x7c], 0x613e14
mov byte [ebp - 0xe], al
mov byte [ebp - 0x80], al
mov byte [0x613e14], 1
je 0x4c9656
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x6100b4]
je 0x4c9656
call dword [0x5b49a4]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
cmp eax, ecx
jne 0x4c964e
or eax, 0xffffffff
jmp 0x4c95ac
sub eax, ecx
dec eax
jmp 0x4c95ac
mov al, byte [0x60f9ed]
mov byte [ebp + 0xb], al
mov byte [0x60f9ed], 1
mov byte [ebp - 0x78], al
push str.on_playlists_removed
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call dword [0x5b498c]
mov byte [ebp - 4], 7
mov eax, dword [0x6088c8]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4c96c4
mov esi, dword [ebp - 0x14]
xor edi, edi
nop
mov ecx, dword [0x6088c4]
test dword [ecx + edi + 4], 0x4000
je 0x4c96ae
mov eax, dword [ecx + edi + 8]
mov dword [ebp - 0x18], 0x7ab1e
mov dword [ebp - 0x14], eax
mov ecx, dword [ecx + edi]
push dword [ebp - 0x1c]
push esi
mov eax, dword [ecx]
push ebx
call dword [eax + 0x38]
add edi, 0xc
sub dword [ebp - 0x24], 1
jne 0x4c9690
lea ecx, [ebp - 0x40]
call dword [0x5b4988]
cmp byte [ebp + 0xf], 0
mov al, byte [ebp + 0xb]
mov byte [0x60f9ed], al
mov al, byte [ebp - 0xe]
mov dword [ebp - 4], 0xffffffff
mov byte [0x613e14], al
mov al, byte [ebp - 0xd]
mov byte [0x613e15], al
je 0x4c96fc
mov ecx, dword [ebp - 0x28]
push 0xffffffffffffffff
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8