Function at 0x1003aa90
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 0x100bfccc
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x550
mov eax, dword [0x100de364]
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 - 0x524], ecx
cmp byte [0x10154d74], 0
je 0x1003b16e
push 0
call dword [sym.imp.USER32.dll_GetTopWindow]
mov edi, eax
mov dword [ebp - 0x530], edi
test edi, edi
je 0x1003b16e
nop dword [eax]
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1003b142
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
je 0x1003b142
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 0x1003ab87
sub ecx, edx
lea eax, [ebp - 0x270]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x510]
call fcn.1003e450
push 0
mov dword [ebp - 4], 0
push dword [0x10154f3c]
push dword [0x10154f38]
call fcn.100bc360
mov ecx, dword [0x10196cd0]
mov dword [ebp - 0x52c], eax
mov eax, dword [0x10154f3c]
mov dword [ebp - 0x528], eax
movss xmm0, dword [ecx + 0x10]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x100d2af0]
subsd xmm0, qword [0x100d2b00]
movsd qword [ebp - 0x520], xmm0
fld qword [ebp - 0x520]
fld qword [0x100d2b08]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIfmod
fstp qword [ebp - 0x520]
movsd xmm0, qword [ebp - 0x520]
andps xmm0, xmmword [0x100d2e40]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_sin
mulsd xmm0, qword [0x100d2b48]
push esi
cvttsd2si eax, xmm0
mov ecx, eax
neg ecx
test eax, eax
cmovns ecx, eax
mov dword [ebp - 0x51c], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push str.Spotify.exe
lea ecx, [ebp - 0x510]
call fcn.1003d550
cmp eax, 0xffffffff
je 0x1003b130
push 0x12c
lea eax, [ebp - 0x4c8]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x1003b163
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 0x1003aca3
sub ecx, edx
lea eax, [ebp - 0x4c8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4f8]
call fcn.1003e450
mov byte [ebp - 4], 1
lea esi, [ebp - 0x4f8]
cmp dword [ebp - 0x4e4], 8
lea edi, [ebp - 0x4f8]
mov eax, dword [ebp - 0x4e8]
xorps xmm0, xmm0
cmovae esi, dword [ebp - 0x4f8]
setae dl
test dl, dl
movups xmmword [ebp - 0x4e0], xmm0
cmovne edi, dword [ebp - 0x4f8]
lea eax, [esi + eax*2]
mov dword [ebp - 0x518], eax
cmp edi, eax
jne 0x1003ad2d
mov edi, 0xf
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x4cc], edi
mov byte [ebp - 0x4e0], 0
jmp 0x1003adf3
sub eax, edi
xor edx, edx
sar eax, 1
mov esi, 0xf
mov dword [ebp - 0x4d0], edx
mov dword [ebp - 0x4cc], esi
cmp eax, 0x7fffffff
ja 0x1003b18c
cmp eax, 0x10
jb 0x1003ada0
mov esi, eax
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x1003ad68
mov esi, 0x7fffffff
jmp 0x1003ad73
cmp esi, 0x16
mov eax, 0x16
cmovb esi, eax
xor ecx, ecx
mov eax, esi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.1002ea00
mov edx, dword [ebp - 0x4d0]
mov dword [ebp - 0x4e0], eax
mov dword [ebp - 0x4cc], esi
nop dword [eax]
mov al, byte [edi]
lea ecx, [ebp - 0x4e0]
cmp esi, 0x10
cmovae ecx, dword [ebp - 0x4e0]
add edi, 2
mov byte [edx + ecx], al
mov edx, dword [ebp - 0x4d0]
inc edx
mov dword [ebp - 0x4d0], edx
cmp edi, dword [ebp - 0x518]
je 0x1003add5
mov esi, dword [ebp - 0x4cc]
jmp 0x1003ada0
cmp dword [ebp - 0x4cc], 0x10
lea eax, [ebp - 0x4e0]
cmovae eax, dword [ebp - 0x4e0]
mov byte [eax + edx], 0
mov edi, dword [ebp - 0x4cc]
cmp edi, 0x10
mov byte [ebp - 4], 2
lea eax, [ebp - 0x4e0]
cmovae eax, dword [ebp - 0x4e0]
lea esi, [ebp - 0x4e0]
setae cl
add eax, dword [ebp - 0x4d0]
test cl, cl
mov dword [ebp - 0x518], eax
cmovne esi, dword [ebp - 0x4e0]
cmp esi, eax
je 0x1003ae4a
mov edi, eax
nop dword [eax + 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 0x1003ae30
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, 0x10
cmovae edx, dword [ebp - 0x4e0]
call fcn.10033980
add esp, 4
mov ecx, eax
push 0x1003e090
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, 0x10
mov edx, dword [ebp - 0x4d0]
cmovae ecx, edi
setae al
add edx, ecx
test al, al
lea ecx, [ebp - 0x4e0]
cmovne ecx, edi
cmp ecx, edx
je 0x1003aec9
nop dword [eax]
cmp byte [ecx], 0x26
jne 0x1003aeb8
mov byte [ecx], 0x2d
inc ecx
cmp ecx, edx
jne 0x1003aeb0
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, 0x10
cmovae edx, edi
call fcn.10033980
add esp, 4
mov ecx, eax
push 0x1003e090
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 0x100cc844
lea ecx, [ebp - 0x4f8]
call fcn.1003d550
xorps xmm0, xmm0
cmp eax, 0xffffffff
je 0x1003afee
cmp dword [ebp - 0x4cc], 0x10
lea edx, [ebp - 0x4e0]
movups xmmword [ebp - 0x560], xmm0
cmovae edx, dword [ebp - 0x4e0]
mov ecx, edx
mov dword [ebp - 0x550], 0
mov dword [ebp - 0x54c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003af47
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x560]
call fcn.1002f120
mov eax, dword [ebp - 0x524]
mov edx, dword [ebp - 0x528]
mov byte [ebp - 4], 3
push 1
mov ecx, dword [eax + 0x6c4]
lea eax, [ebp - 0x560]
push eax
sub ecx, 0xe
cmp dword [ebp - 0x52c], 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, 0x101997e0
call fcn.100a5150
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x54c]
cmp ecx, 0x10
jb 0x1003b0ca
mov edx, dword [ebp - 0x560]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003afdf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003b15d
push ecx
push edx
call fcn.100bc9e1
add esp, 8
jmp 0x1003b0ca
push 0x10
push str.paused___stopped
lea ecx, [ebp - 0x548]
mov dword [ebp - 0x538], 0
movups xmmword [ebp - 0x548], xmm0
mov dword [ebp - 0x534], 0
call fcn.1002f120
mov eax, dword [ebp - 0x524]
mov edx, dword [ebp - 0x51c]
mov byte [ebp - 4], 4
push 1
mov ecx, dword [eax + 0x6c4]
lea eax, [ebp - 0x548]
push eax
sub ecx, 0xe
push ecx
mov eax, esp
mov byte [eax + 3], dl
mov edx, dword [ebp - 0x528]
cmp dword [ebp - 0x52c], 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, 0x101997e0
call fcn.100a5150
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x534]
cmp ecx, 0x10
jb 0x1003b0af
mov edx, dword [ebp - 0x548]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003b0a5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003b15d
push ecx
push edx
call fcn.100bc9e1
add esp, 8
mov dword [ebp - 0x538], 0
mov dword [ebp - 0x534], 0xf
mov byte [ebp - 0x548], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x4cc]
cmp ecx, 0x10
jb 0x1003b104
mov edx, dword [ebp - 0x4e0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003b0fa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003b15d
push ecx
push edx
call fcn.100bc9e1
add esp, 8
lea ecx, [ebp - 0x4f8]
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x4cc], 0xf
mov byte [ebp - 0x4e0], 0
call fcn.1003d9d0
mov edi, dword [ebp - 0x530]
lea ecx, [ebp - 0x510]
mov dword [ebp - 4], 0xffffffff
call fcn.1003d9d0
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
mov dword [ebp - 0x530], eax
test edi, edi
jne 0x1003ab00
jmp 0x1003b16e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea ecx, [ebp - 0x510]
call fcn.1003d9d0
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.100bc566
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10023ee0
int3