Function at 0x1003d9d0
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c773c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x558
mov eax, dword [0x100e7380]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x52c], ecx
cmp byte [0x10162474], 0
je 0x1003e0f7
push 0
call dword [sym.imp.USER32.dll_GetTopWindow]
mov edi, eax
mov dword [ebp - 0x538], edi
test edi, edi
je 0x1003e0f7
nop dword [eax]
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1003e0cb
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
je 0x1003e0cb
lea eax, [ebp - 0x514]
mov dword [ebp - 0x514], 0
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x514]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [ebp - 0x270]
push 0x12c
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
xorps xmm0, xmm0
mov dword [ebp - 0x500], 0
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x4fc], 0
movups xmmword [ebp - 0x510], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003dac7
sub ecx, edx
lea eax, [ebp - 0x270]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x510]
call fcn.100411d0
push 0
mov dword [ebp - 4], 0
push dword [0x101625d4]
push dword [0x101625d0]
call fcn.100c3a50
mov ecx, dword [0x101a5cb0]
mov dword [ebp - 0x534], eax
mov eax, dword [0x101625d4]
mov dword [ebp - 0x530], eax
movss xmm0, dword [ecx + 0x10]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x100daed8]
subsd xmm0, qword [0x100daee8]
movsd qword [ebp - 0x528], xmm0
fld qword [ebp - 0x528]
fld qword [0x100daef8]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIfmod
fstp qword [ebp - 0x528]
movsd xmm0, qword [ebp - 0x528]
andps xmm0, xmmword [0x100db270]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_sin
mulsd xmm0, qword [0x100daf50]
push esi
cvttsd2si eax, xmm0
mov ecx, eax
neg ecx
test eax, eax
cmovns ecx, eax
mov dword [ebp - 0x524], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push str.Spotify.exe
lea ecx, [ebp - 0x510]
call fcn.10040500
cmp eax, 0xffffffff
je 0x1003e0b9
push 0x12c
lea eax, [ebp - 0x4c8]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x1003e0ec
xorps xmm0, xmm0
mov dword [ebp - 0x4e8], 0
lea ecx, [ebp - 0x4c8]
mov dword [ebp - 0x4e4], 0
movups xmmword [ebp - 0x4f8], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003dbe3
sub ecx, edx
lea eax, [ebp - 0x4c8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4f8]
call fcn.100411d0
mov byte [ebp - 4], 1
lea esi, [ebp - 0x4f8]
cmp dword [ebp - 0x4e4], 7
lea edi, [ebp - 0x4f8]
mov eax, dword [ebp - 0x4e8]
xorps xmm0, xmm0
cmova esi, dword [ebp - 0x4f8]
seta dl
test dl, dl
mov dword [ebp - 0x4d0], 0
movups xmmword [ebp - 0x4e0], xmm0
cmovne edi, dword [ebp - 0x4f8]
lea eax, [esi + eax*2]
cmp edi, eax
jne 0x1003dc67
mov edi, 0xf
mov byte [ebp - 0x4e0], 0
mov dword [ebp - 0x4cc], edi
jmp 0x1003dd7d
sub eax, edi
mov dword [ebp - 0x4cc], 0xf
sar eax, 1
mov dword [ebp - 0x51c], eax
cmp eax, 0x7fffffff
ja 0x1003e11a
mov esi, 0xf
cmp eax, esi
jbe 0x1003dd31
mov esi, eax
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x1003dcaf
mov eax, 0x80000000
mov esi, 0x7fffffff
add eax, 0x23
jmp 0x1003dcd0
cmp esi, 0x16
mov ecx, 0x16
cmovb esi, ecx
lea ecx, [esi + 1]
cmp ecx, 0x1000
jb 0x1003dcfe
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x1003e115
push eax
call fcn.100c3c78
add esp, 4
test eax, eax
je 0x1003e0e6
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
mov eax, dword [ebp - 0x51c]
mov dword [ebp - 0x4e0], ecx
mov dword [ebp - 0x4cc], esi
jmp 0x1003dd37
test ecx, ecx
je 0x1003dd21
push ecx
call fcn.100c3c78
mov ecx, eax
mov dword [ebp - 0x4cc], esi
mov eax, dword [ebp - 0x51c]
add esp, 4
mov dword [ebp - 0x4e0], ecx
jmp 0x1003dd37
xor ecx, ecx
mov dword [ebp - 0x4cc], esi
mov dword [ebp - 0x4e0], ecx
jmp 0x1003dd37
mov ecx, dword [ebp - 0x4e0]
cmp esi, 0xf
lea edx, [ebp - 0x4e0]
cmova edx, ecx
mov dword [ebp - 0x518], edx
mov ecx, edx
mov edx, eax
test eax, eax
je 0x1003dd67
mov al, byte [edi]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
lea edi, [edi + 2]
sub edx, 1
jne 0x1003dd51
mov eax, dword [ebp - 0x51c]
mov ecx, dword [ebp - 0x518]
mov dword [ebp - 0x4d0], eax
mov byte [ecx + eax], 0
mov edi, dword [ebp - 0x4cc]
cmp edi, 0xf
mov byte [ebp - 4], 2
lea eax, [ebp - 0x4e0]
cmova eax, dword [ebp - 0x4e0]
lea esi, [ebp - 0x4e0]
seta cl
add eax, dword [ebp - 0x4d0]
test cl, cl
mov dword [ebp - 0x518], eax
cmovne esi, dword [ebp - 0x4e0]
cmp esi, eax
je 0x1003ddcf
mov edi, eax
movsx eax, byte [esi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov byte [esi], al
add esp, 4
inc esi
cmp esi, edi
jne 0x1003ddb5
mov edi, dword [ebp - 0x4cc]
push dword [ebp - 0x4d0]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea edx, [ebp - 0x4e0]
cmp edi, 0xf
cmova edx, dword [ebp - 0x4e0]
call fcn.10036170
add esp, 4
mov ecx, eax
push 0x10040e10
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov esi, dword [ebp - 0x4cc]
lea ecx, [ebp - 0x4e0]
mov edi, dword [ebp - 0x4e0]
cmp esi, 0xf
mov edx, dword [ebp - 0x4d0]
cmova ecx, edi
seta al
add edx, ecx
test al, al
lea ecx, [ebp - 0x4e0]
cmovne ecx, edi
cmp ecx, edx
je 0x1003de4b
cmp byte [ecx], 0x26
jne 0x1003de3a
mov byte [ecx], 0x2d
inc ecx
cmp ecx, edx
jne 0x1003de32
mov esi, dword [ebp - 0x4cc]
mov edi, dword [ebp - 0x4e0]
push dword [ebp - 0x4d0]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea edx, [ebp - 0x4e0]
cmp esi, 0xf
cmova edx, edi
call fcn.10036170
add esp, 4
mov ecx, eax
push 0x10040e10
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push ecx
push 0x100d4944
lea ecx, [ebp - 0x4f8]
call fcn.10040500
xorps xmm0, xmm0
cmp eax, 0xffffffff
je 0x1003df77
cmp dword [ebp - 0x4cc], 0xf
lea edx, [ebp - 0x4e0]
movups xmmword [ebp - 0x568], xmm0
cmova edx, dword [ebp - 0x4e0]
mov ecx, edx
mov dword [ebp - 0x558], 0
mov dword [ebp - 0x554], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003ded0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x568]
call fcn.100304b0
mov eax, dword [ebp - 0x52c]
mov edx, dword [ebp - 0x530]
mov byte [ebp - 4], 3
push 1
mov ecx, dword [eax + 0x6c4]
lea eax, [ebp - 0x568]
push eax
sub ecx, 0xe
cmp dword [ebp - 0x534], edx
push ecx
mov eax, esp
mov edx, 8
mov dword [eax], 0xe1e1e1e1
mov eax, 0x19
cmove eax, edx
push eax
push ecx
mov ecx, 0x101a8818
call fcn.100ad4e0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x554]
cmp ecx, 0xf
jbe 0x1003e053
mov edx, dword [ebp - 0x568]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003df68
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003e0e6
push ecx
push edx
call fcn.100c418a
add esp, 8
jmp 0x1003e053
push 0x10
push str.paused___stopped
lea ecx, [ebp - 0x550]
mov dword [ebp - 0x540], 0
movups xmmword [ebp - 0x550], xmm0
mov dword [ebp - 0x53c], 0
call fcn.100304b0
mov eax, dword [ebp - 0x52c]
mov edx, dword [ebp - 0x524]
mov byte [ebp - 4], 4
push 1
mov ecx, dword [eax + 0x6c4]
lea eax, [ebp - 0x550]
push eax
sub ecx, 0xe
push ecx
mov eax, esp
mov byte [eax + 3], dl
mov edx, dword [ebp - 0x530]
cmp dword [ebp - 0x534], edx
mov edx, 8
mov word [eax], 0xe1e1
mov byte [eax + 2], 0xe1
mov eax, 0x19
cmove eax, edx
push eax
push ecx
mov ecx, 0x101a8818
call fcn.100ad4e0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x53c]
cmp ecx, 0xf
jbe 0x1003e038
mov edx, dword [ebp - 0x550]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003e02e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003e0e6
push ecx
push edx
call fcn.100c418a
add esp, 8
mov dword [ebp - 0x540], 0
mov dword [ebp - 0x53c], 0xf
mov byte [ebp - 0x550], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x4cc]
cmp ecx, 0xf
jbe 0x1003e08d
mov edx, dword [ebp - 0x4e0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003e083
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003e0e6
push ecx
push edx
call fcn.100c418a
add esp, 8
lea ecx, [ebp - 0x4f8]
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x4cc], 0xf
mov byte [ebp - 0x4e0], 0
call fcn.100409f0
mov edi, dword [ebp - 0x538]
lea ecx, [ebp - 0x510]
mov dword [ebp - 4], 0xffffffff
call fcn.100409f0
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
mov dword [ebp - 0x538], eax
test edi, edi
jne 0x1003da40
jmp 0x1003e0f7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea ecx, [ebp - 0x510]
call fcn.100409f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100c3c5c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10024b80
call fcn.10024c20
int3