Function at 0x4c9790
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a415d
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [0x6063f8]
push esi
mov eax, dword [eax + 0x14]
mov esi, ecx
mov ecx, 0x6063f8
call eax
test al, al
jne 0x4c97e0
push str.Error:_this_function_can_be_called_only_from_main_thread._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [0x613e15], 0
jne 0x4c97cc
cmp byte [0x60f9ec], 0
jne 0x4c97cc
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x4c980f
mov edx, dword [ebp + 8]
cmp byte [ecx + edx], 0
je 0x4c980c
inc ecx
cmp ecx, eax
jb 0x4c9801
mov dword [ebp - 0x20], ecx
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xc]
call eax
cmp dword [ebp + 0x10], eax
jbe 0x4c9829
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xc]
call eax
mov dword [ebp + 0x10], eax
push edi
push 0x60
call fcn.00592716
mov edi, eax
add esp, 4
mov dword [ebp + 0xc], edi
push dword [ebp - 0x20]
mov dword [ebp - 4], 0
lea ecx, [edi + 0xc]
push dword [ebp + 8]
mov dword [edi], 0x5c9fe4
mov dword [edi + 4], 0xffffffff
mov byte [edi + 8], 0
call fcn.00408d70
mov dword [edi + 0x28], 0
lea ecx, [edi + 0x58]
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x24], 0x5b6344
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x34], 0x5c9fbc
mov dword [edi + 0x44], 0xffffffff
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov byte [edi + 0x50], 1
mov dword [edi + 0x54], 0
mov dword [ebp - 4], 0xffffffff
push dword [ebp + 0x14]
mov dword [ecx], 0
mov dword [edi + 0x5c], 0
call fcn.004cf2a0
mov dword [ebp - 4], 1
mov ecx, dword [edi + 0x5c]
test ecx, ecx
je 0x4c9902
add ecx, 0x1c
call fcn.004603a0
mov ecx, dword [edi + 0x5c]
add ecx, 0x20
call fcn.004603a0
mov ecx, dword [edi + 0x5c]
call fcn.004603d0
mov ecx, dword [edi + 0x5c]
or esi, 0xffffffff
mov dword [edi + 0x5c], 0
test ecx, ecx
je 0x4c9920
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4c9920
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
mov edx, dword [ebp + 0x18]
push 0
mov edx, dword [edx]
call fcn.004cfba0
add esp, 4
mov ecx, dword [eax]
mov dword [eax], 0
mov dword [ebp + 0xc], ecx
mov ecx, dword [edi + 0x5c]
mov dword [edi + 0x5c], 0
test ecx, ecx
je 0x4c9962
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4c9962
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x5c], eax
test ecx, ecx
je 0x4c9983
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4c9983
test ecx, ecx
je 0x4c9983
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [0x6089bc]
mov ecx, 0x6089b8
lea eax, [esi + 1]
push eax
call fcn.00442870
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
jbe 0x4c99a2
mov edx, esi
jmp 0x4c99c5
mov edx, ecx
cmp esi, ecx
jbe 0x4c99c5
nop dword [eax + eax]
mov eax, dword [0x6089b8]
lea ecx, [eax + esi*4]
dec esi
mov eax, dword [ecx - 4]
mov dword [ecx], eax
cmp esi, edx
ja 0x4c99b0
mov ecx, dword [ebp + 0x10]
mov eax, dword [0x6089b8]
mov dword [eax + edx*4], edi
mov eax, dword [0x6089c4]
cmp eax, 0xffffffff
je 0x4c99dc
cmp eax, ecx
jb 0x4c99dc
inc eax
mov dword [0x6089c4], eax
mov eax, dword [0x6089c8]
cmp eax, 0xffffffff
je 0x4c99f0
cmp eax, ecx
jb 0x4c99f0
inc eax
mov dword [0x6089c8], eax
mov eax, dword [0x612174]
cmp eax, 0xffffffff
je 0x4c9a04
cmp eax, ecx
jb 0x4c9a04
inc eax
push 0
push dword [0x612178]
push eax
call fcn.004c8750
mov esi, dword [ebp + 0x10]
mov ecx, esi
call fcn.00519db0
mov edi, dword [0x6089bc]
inc esi
cmp esi, edi
jae 0x4c9a4a
nop word [eax + eax]
mov eax, dword [0x6089b8]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax + 0x54]
test ecx, ecx
je 0x4c9a45
mov eax, dword [ecx]
push esi
call dword [eax + 0x28]
inc esi
cmp esi, edi
jb 0x4c9a30
mov al, byte [0x613e15]
mov dword [ebp - 0x2c], 0x613e15
mov byte [ebp + 0x1b], al
mov byte [ebp - 0x30], al
mov byte [0x613e15], 1
mov dword [ebp - 4], 2
mov edi, dword [0x6112b4]
add edi, 0x10
push edi
mov dword [ebp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x6112b4]
mov esi, dword [esi]
test esi, esi
je 0x4c9ad9
lock inc dword [esi + 4]
or edi, 0xffffffff
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x4c9a9e
cmp eax, dword [ebp + 0x10]
jb 0x4c9a9e
inc eax
mov dword [esi + 0xc], eax
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 8]
call eax
mov edx, eax
mov ecx, esi
mov dword [ebp + 0xc], edx
mov esi, edx
test edx, edx
je 0x4c9abb
lock inc dword [edx + 4]
test ecx, ecx
je 0x4c9ad2
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4c9ad2
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4c9a90
mov edi, dword [ebp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [0x615f01], 0
jne 0x4c9db3
mov ecx, dword [0x60fa04]
xor esi, esi
push 0x5bb5f0
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
mov edi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], edi
nop dword [eax + eax]
push esi
inc esi
mov dword [ebp - 0x18], 0
mov dword [ebp + 0x14], esi
mov byte [ebp - 4], 4
lea edx, [ebp - 0x18]
mov ecx, dword [0x60fa04]
push edi
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp + 0xf], al
test al, al
je 0x4c9b56
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x18], ecx
test edx, edx
je 0x4c9b51
mov eax, dword [edx]
mov ecx, edx
call dword [eax]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], esi
jmp 0x4c9b5c
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x4c9b6b
mov eax, dword [ecx]
call dword [eax]
mov esi, dword [ebp - 0x10]
cmp byte [ebp + 0xf], 0
je 0x4c9c3f
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [ebp - 0x10]
mov edi, eax
test ecx, ecx
je 0x4c9b94
mov edx, dword [ecx]
call dword [edx + 4]
mov esi, dword [ebp - 0x10]
add esi, 4
jmp 0x4c9b96
xor esi, esi
cmp dword [0x6100b4], 0
je 0x4c9bb1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x6100b4]
jne 0x4c9df6
cmp byte [0x613e14], 0
jne 0x4c9df6
mov eax, dword [esi]
mov ecx, dword [0x6088cc]
test ecx, ecx
mov dword [ebp - 0x38], edi
mov edi, dword [0x6088c8]
mov dword [ebp + 0xc], eax
mov eax, 1
mov dword [ebp - 0x3c], esi
cmove ecx, eax
lea esi, [edi + 1]
cmp ecx, esi
jae 0x4c9bfb
lea edx, [ecx + ecx]
mov eax, edx
shr eax, 1
cmp eax, ecx
jne 0x4c9e9d
mov ecx, edx
cmp edx, esi
jb 0x4c9be6
mov eax, ecx
shr eax, 2
cmp eax, esi
jbe 0x4c9c0f
shr ecx, 1
mov eax, ecx
shr eax, 2
cmp eax, esi
ja 0x4c9c04
push ecx
push esi
mov ecx, 0x6088c4
call fcn.004be5b4
mov eax, dword [0x6088c4]
lea ecx, [edi + edi*2]
movq xmm0, qword [ebp - 0x3c]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp - 0x1c]
movq qword [eax + ecx*4], xmm0
mov dword [eax + ecx*4 + 8], edx
jmp 0x4c9b10
mov byte [ebp - 4], 2
test esi, esi
je 0x4c9c4d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov ecx, dword [0x60fa04]
xor esi, esi
push 0x5bb5e0
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
mov edi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x28], edi
nop dword [eax + eax]
push esi
inc esi
mov dword [ebp - 0x1c], 0
mov dword [ebp + 0x14], esi
mov byte [ebp - 4], 8
lea edx, [ebp - 0x1c]
mov ecx, dword [0x60fa04]
push edi
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp + 0xf], al
test al, al
je 0x4c9cb6
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], ecx
test edx, edx
je 0x4c9cb1
mov eax, dword [edx]
mov ecx, edx
call dword [eax]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], esi
jmp 0x4c9cbc
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x4c9ccb
mov eax, dword [ecx]
call dword [eax]
mov esi, dword [ebp - 0x14]
cmp byte [ebp + 0xf], 0
je 0x4c9d9e
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [ebp - 0x14]
mov edi, eax
test ecx, ecx
je 0x4c9cf4
mov edx, dword [ecx]
call dword [edx + 4]
mov esi, dword [ebp - 0x14]
add esi, 4
jmp 0x4c9cf6
xor esi, esi
cmp dword [0x6100b4], 0
je 0x4c9d11
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x6100b4]
jne 0x4c9df6
cmp byte [0x613e14], 0
jne 0x4c9df6
mov eax, dword [esi]
mov ecx, 1
mov dword [ebp - 0x38], edi
mov edi, dword [0x6088d8]
mov dword [ebp + 0xc], eax
mov eax, dword [0x6088dc]
test eax, eax
mov dword [ebp - 0x3c], esi
lea esi, [edi + 1]
cmove eax, ecx
cmp eax, esi
jae 0x4c9d5a
lea edx, [eax + eax]
mov ecx, edx
shr ecx, 1
cmp ecx, eax
jne 0x4c9eb3
mov eax, edx
cmp edx, esi
jb 0x4c9d45
mov ecx, eax
shr ecx, 2
cmp ecx, esi
jbe 0x4c9d6e
shr eax, 1
mov ecx, eax
shr ecx, 2
cmp ecx, esi
ja 0x4c9d63
push eax
push esi
mov ecx, 0x6088d4
call fcn.004be5b4
mov eax, dword [0x6088d4]
lea ecx, [edi + edi*2]
movq xmm0, qword [ebp - 0x3c]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp - 0x28]
movq qword [eax + ecx*4], xmm0
mov dword [eax + ecx*4 + 8], edx
jmp 0x4c9c70
mov byte [ebp - 4], 2
test esi, esi
je 0x4c9dac
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov byte [0x615f01], 1
call fcn.004cedd0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
cmp dword [0x6100b4], 0
mov dword [0x6088e0], eax
mov al, byte [0x613e14]
mov dword [ebp - 0x44], 0x613e14
mov byte [ebp + 0x17], al
mov byte [ebp - 0x48], al
mov byte [0x613e14], 1
je 0x4c9dfc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x6100b4]
je 0x4c9dfc
call dword [0x5b49a4]
mov al, byte [0x60f9ed]
mov byte [ebp + 0xf], al
mov byte [0x60f9ed], 1
mov byte [ebp - 0x40], al
push str.on_playlist_created
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call dword [0x5b498c]
mov byte [ebp - 4], 0xc
mov edi, dword [0x6088c8]
test edi, edi
je 0x4c9e67
xor esi, esi
mov ecx, dword [0x6088c4]
test dword [ecx + esi + 4], 0x800
je 0x4c9e4e
mov eax, dword [ecx + esi + 8]
mov dword [ebp - 0x38], 0x7ab1e
mov dword [ebp - 0x34], eax
mov ecx, dword [ecx + esi]
push dword [ebp - 0x20]
push dword [ebp + 8]
mov eax, dword [ecx]
push dword [ebp + 0x10]
call dword [eax + 0x2c]
add esi, 0xc
sub edi, 1
jne 0x4c9e30
lea ecx, [ebp - 0x28]
call dword [0x5b4988]
mov al, byte [ebp + 0xf]
mov ecx, dword [ebp - 0xc]
mov byte [0x60f9ed], al
mov al, byte [ebp + 0x17]
mov byte [0x613e14], al
mov al, byte [ebp + 0x1b]
mov byte [0x613e15], al
mov eax, dword [ebp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x14
lea ecx, [ebp - 0x54]
call fcn.00410c00
push 0x6005cc
lea eax, [ebp - 0x54]
push eax
call fcn.005936f7
lea ecx, [ebp - 0x60]
call fcn.00410c00
push 0x6005cc
lea eax, [ebp - 0x60]
push eax
call fcn.005936f7
int3