Function at 0x41cc10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d862
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x55ca98]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xac], esi
cmp dword [esi + 0x128], 0
je 0x41cd71
cmp byte [esi + 0x134], 0
jne 0x41cd71
mov edx, dword [esi + 0x124]
mov eax, edx
mov ecx, dword [esi + 0x120]
and edx, 1
shr eax, 1
dec ecx
and ecx, eax
mov eax, dword [esi + 0x11c]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + edx*8]
mov eax, 3
add ecx, 0x8130
xchg dword [ecx], eax
mov eax, dword [0x55fc44]
mov edx, dword [esi + 0x124]
mov ecx, edx
shr ecx, 1
and edx, 1
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0xa8], eax
mov eax, dword [esi + 0x120]
dec eax
and ecx, eax
mov eax, dword [esi + 0x11c]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + edx*8]
add eax, 0x8134
cmp dword [eax + 0x14], 0x10
jb 0x41cccd
mov eax, dword [eax]
push eax
push str.draining_track__s
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0xb4], esp
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 5
mov dword [ecx + 0x14], 0xf
mov eax, dword [str.cspot]
mov dword [ecx], eax
mov al, byte [0x513ab0]
mov byte [ecx + 4], al
mov byte [ecx + 5], 0
push 0xd7
sub esp, 0x18
mov dword [ebp - 4], 0
mov esi, esp
mov ecx, esi
push 0x50
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
call fcn.0040b130
mov dword [esi], eax
mov edi, eax
mov dword [esi + 0x10], 0x47
mov ecx, 0x11
mov dword [esi + 0x14], 0x4f
mov esi, str.D:UsersphiliDropboxDevelopmentSpotConnect_spotupnp_src_spotify.cpp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov byte [eax + 0x47], 0
push dword [0x55fc44]
mov dword [ebp - 4], 0xffffffff
call dword [ebp - 0xa8]
mov esi, dword [ebp - 0xac]
add esp, 0x40
mov esi, dword [esi + 0x1d4]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41cd82
lock inc dword [eax + 4]
mov ecx, dword [esi + 0x10]
mov esi, dword [esi + 0x14]
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xb8], esi
push dword [ebp + 0xc]
lea eax, [ebp - 0xa4]
mov dword [ebp - 4], 1
push dword [ebp + 8]
push eax
call fcn.0042ca80
or edi, 0xffffffff
test esi, esi
je 0x41cdd3
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x41cdd3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x41cdd3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [0x55fc44]
lea ecx, [ebp - 0xa4]
cmp dword [ebp - 0x90], 0x10
xorps xmm0, xmm0
cmovae ecx, dword [ebp - 0xa4]
mov eax, dword [eax]
cmp dword [ebp - 0x30], 0x10
push ecx
mov eax, dword [eax + 8]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
push str.new_track_id__s_____s_
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xb4], esp
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 5
mov dword [ecx + 0x14], 0xf
mov eax, dword [str.cspot]
mov dword [ecx], eax
mov al, byte [0x513ab0]
mov byte [ecx + 4], al
mov byte [ecx + 5], 0
push 0xdb
sub esp, 0x18
mov byte [ebp - 4], 4
mov esi, esp
mov ecx, esi
push 0x50
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
call fcn.0040b130
mov dword [esi], eax
mov edi, eax
mov dword [esi + 0x10], 0x47
mov ecx, 0x11
mov dword [esi + 0x14], 0x4f
mov esi, str.D:UsersphiliDropboxDevelopmentSpotConnect_spotupnp_src_spotify.cpp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov byte [eax + 0x47], 0
push dword [0x55fc44]
mov byte [ebp - 4], 3
call dword [ebp - 0xa8]
mov esi, dword [ebp - 0xac]
add esp, 0x44
mov eax, dword [esi + 0x128]
lea ecx, [esi + 0x134]
mov dword [ebp - 0xb4], ecx
test eax, eax
je 0x41d080
cmp byte [ecx], 0
je 0x41d080
mov eax, dword [0x55fc44]
xorps xmm0, xmm0
mov edx, dword [esi + 0x144]
mov ecx, edx
shr ecx, 2
and edx, 3
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0xa8], eax
mov eax, dword [esi + 0x140]
dec eax
and ecx, eax
mov eax, dword [esi + 0x13c]
mov eax, dword [eax + ecx*4]
push dword [eax + edx*4]
push dword [ebp - 0x2c]
push str.flow_track_of_duration__d_will_start_at__u
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xb4], esp
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 5
mov dword [ecx + 0x14], 0xf
mov eax, dword [str.cspot]
mov dword [ecx], eax
mov al, byte [0x513ab0]
mov byte [ecx + 4], al
mov byte [ecx + 5], 0
push 0xf9
sub esp, 0x18
mov byte [ebp - 4], 7
mov edi, esp
mov ecx, edi
push 0x50
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
call fcn.0040b130
mov dword [edi], eax
mov ecx, 0x11
mov dword [edi + 0x10], 0x47
mov esi, str.D:UsersphiliDropboxDevelopmentSpotConnect_spotupnp_src_spotify.cpp
mov dword [edi + 0x14], 0x4f
mov edi, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov byte [eax + 0x47], 0
push dword [0x55fc44]
mov byte [ebp - 4], 3
call dword [ebp - 0xa8]
mov esi, dword [ebp - 0xac]
lea eax, [ebp - 0xa4]
add esp, 0x44
mov ecx, dword [esi + 0x12c]
push eax
add ecx, 0x814c
call fcn.00416310
mov edi, dword [esi + 0x140]
mov ecx, dword [esi + 0x144]
mov edx, ecx
shr ecx, 2
and edx, 3
lea eax, [edi - 1]
and ecx, eax
mov eax, dword [esi + 0x13c]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + edx*4]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0xa8], eax
test edx, edx
jne 0x41cffe
mov eax, dword [esi + 0x148]
add eax, 4
shr eax, 2
cmp edi, eax
ja 0x41cffe
push 1
lea ecx, [esi + 0x138]
call fcn.00416e80
mov ecx, dword [esi + 0x140]
lea eax, [ecx*4]
lea edi, [eax - 1]
and edi, dword [esi + 0x144]
mov dword [esi + 0x144], edi
cmove edi, eax
dec ecx
dec edi
mov eax, edi
shr eax, 2
and ecx, eax
mov eax, dword [esi + 0x13c]
shl ecx, 2
mov dword [ebp - 0xac], ecx
cmp dword [ecx + eax], 0
jne 0x41d056
push 0x10
call fcn.0050945c
mov ecx, dword [esi + 0x13c]
add esp, 4
mov edx, dword [ebp - 0xac]
mov dword [edx + ecx], eax
jmp 0x41d058
mov edx, ecx
mov eax, dword [esi + 0x13c]
mov ecx, edi
and ecx, 3
mov eax, dword [edx + eax]
mov edx, dword [ebp - 0xa8]
mov dword [eax + ecx*4], edx
inc dword [esi + 0x148]
mov dword [esi + 0x144], edi
jmp 0x41d30b
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xc0], esi
test eax, eax
jne 0x41d09e
mov eax, dword [esi + 0xb8]
neg eax
jmp 0x41d0a0
xor eax, eax
mov dword [ebp - 0xc4], eax
mov eax, dword [esi + 0xcc]
mov dword [ebp - 0xb0], eax
inc eax
mov dword [esi + 0xcc], eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [esi + 0x108]
push eax
push ecx
lea eax, [esi + 0xd0]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [esi + 0xe8]
push eax
lea eax, [esi + 0x100]
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.00414e20
add esp, 0x30
mov eax, dword [0x55fc44]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xbc]
add eax, 0x8134
cmp dword [eax + 0x14], 0x10
jb 0x41d12f
mov eax, dword [eax]
push eax
push str.loading_with_id__s
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0xc4], esp
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 5
mov dword [ecx + 0x14], 0xf
mov eax, dword [str.cspot]
mov dword [ecx], eax
mov al, byte [0x513ab0]
mov byte [ecx + 4], al
mov byte [ecx + 5], 0
push 0xe5
sub esp, 0x18
mov byte [ebp - 4], 6
mov esi, esp
mov ecx, esi
push 0x50
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
call fcn.0040b130
mov dword [esi], eax
mov edi, eax
mov dword [esi + 0x10], 0x47
mov ecx, 0x11
mov dword [esi + 0x14], 0x4f
mov esi, str.D:UsersphiliDropboxDevelopmentSpotConnect_spotupnp_src_spotify.cpp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov byte [eax + 0x47], 0
push dword [0x55fc44]
mov byte [ebp - 4], 5
call dword [ebp - 0xb0]
mov edi, dword [ebp - 0xbc]
lea eax, [ebp - 0xec]
add esp, 0x40
xorps xmm0, xmm0
mov ecx, edi
movq qword [ebp - 0xcc], xmm0
movups xmmword [ebp - 0xec], xmm0
push eax
movups xmmword [ebp - 0xdc], xmm0
call fcn.0040d980
mov eax, dword [edi + 0x81e0]
add dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xb4]
mov esi, dword [ebp - 0xac]
cmp byte [eax], 0
je 0x41d223
lea eax, [ebp - 0xd0]
push eax
lea ecx, [esi + 0x138]
call fcn.0041bfd0
mov eax, dword [edi + 0x81e0]
mov ecx, edi
neg eax
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040d9e0
cmp dword [eax + 0x14], 0x10
jb 0x41d244
mov eax, dword [eax]
push dword [ebp - 0xb4]
lea ecx, [ebp - 0xec]
push ecx
push eax
push 1
push dword [esi + 0x110]
call fcn.004211f0
mov ecx, dword [ebp - 0x14]
add esp, 0x14
cmp ecx, 0x10
jb 0x41d298
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41d28e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41d28e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0050948c
add esp, 8
mov al, byte [esi + 0x60]
nop
test al, al
jne 0x41d2b0
push 2
push dword [esi + 0x110]
call fcn.004211f0
add esp, 8
lea eax, [ebp - 0xbc]
push eax
lea ecx, [esi + 0x118]
call fcn.0041c060
mov esi, dword [ebp - 0xbc]
push 0
push 0
push esi
push 0x41cbf0
push dword [esi + 0x1c]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x28], eax
mov esi, dword [ebp - 0xb8]
test esi, esi
je 0x41d30b
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x41d30b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x41d30b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0xa4]
call fcn.00406870
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005091c5
mov esp, ebp
pop ebp
ret 8