Function at 0x1003d720
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 0x100c610c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x550
mov eax, dword [0x100e5364]
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 [0x10160414], 0
je 0x1003ddfe
push 0
call dword [sym.imp.USER32.dll_GetTopWindow]
mov edi, eax
mov dword [ebp - 0x530], edi
test edi, edi
je 0x1003ddfe
nop dword [eax]
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1003ddd2
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
je 0x1003ddd2
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 0x1003d817
sub ecx, edx
lea eax, [ebp - 0x270]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x510]
call fcn.100410f0
push 0
mov dword [ebp - 4], 0
push dword [0x10160574]
push dword [0x10160570]
call fcn.100c2420
mov ecx, dword [0x101a3c50]
mov dword [ebp - 0x52c], eax
mov eax, dword [0x10160574]
mov dword [ebp - 0x528], eax
movss xmm0, dword [ecx + 0x10]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x100d8ee0]
subsd xmm0, qword [0x100d8ef0]
movsd qword [ebp - 0x520], xmm0
fld qword [ebp - 0x520]
fld qword [0x100d8f00]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIfmod
fstp qword [ebp - 0x520]
movsd xmm0, qword [ebp - 0x520]
andps xmm0, xmmword [0x100d9280]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_sin
mulsd xmm0, qword [0x100d8f58]
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.100401f0
cmp eax, 0xffffffff
je 0x1003ddc0
push 0x12c
lea eax, [ebp - 0x4c8]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x1003ddf3
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 0x1003d933
sub ecx, edx
lea eax, [ebp - 0x4c8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4f8]
call fcn.100410f0
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 0x1003d9bd
mov edi, 0xf
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x4cc], edi
mov byte [ebp - 0x4e0], 0
jmp 0x1003da83
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 0x1003de1c
cmp eax, 0x10
jb 0x1003da30
mov esi, eax
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x1003d9f8
mov esi, 0x7fffffff
jmp 0x1003da03
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.1002fbe0
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 0x1003da65
mov esi, dword [ebp - 0x4cc]
jmp 0x1003da30
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 0x1003dada
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 0x1003dac0
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.10035f80
add esp, 4
mov ecx, eax
push 0x10040d30
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 0x1003db59
nop dword [eax]
cmp byte [ecx], 0x26
jne 0x1003db48
mov byte [ecx], 0x2d
inc ecx
cmp ecx, edx
jne 0x1003db40
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.10035f80
add esp, 4
mov ecx, eax
push 0x10040d30
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 0x100d2964
lea ecx, [ebp - 0x4f8]
call fcn.100401f0
xorps xmm0, xmm0
cmp eax, 0xffffffff
je 0x1003dc7e
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 0x1003dbd7
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x560]
call fcn.100304c0
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, 0x101a67b8
call fcn.100ac620
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x54c]
cmp ecx, 0x10
jb 0x1003dd5a
mov edx, dword [ebp - 0x560]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003dc6f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003dded
push ecx
push edx
call fcn.100c2b54
add esp, 8
jmp 0x1003dd5a
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.100304c0
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, 0x101a67b8
call fcn.100ac620
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x534]
cmp ecx, 0x10
jb 0x1003dd3f
mov edx, dword [ebp - 0x548]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003dd35
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003dded
push ecx
push edx
call fcn.100c2b54
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 0x1003dd94
mov edx, dword [ebp - 0x4e0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003dd8a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003dded
push ecx
push edx
call fcn.100c2b54
add esp, 8
lea ecx, [ebp - 0x4f8]
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x4cc], 0xf
mov byte [ebp - 0x4e0], 0
call fcn.10040670
mov edi, dword [ebp - 0x530]
lea ecx, [ebp - 0x510]
mov dword [ebp - 4], 0xffffffff
call fcn.10040670
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
mov dword [ebp - 0x530], eax
test edi, edi
jne 0x1003d790
jmp 0x1003ddfe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea ecx, [ebp - 0x510]
call fcn.10040670
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.100c2626
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10024c20
int3