Function at 0x10011d60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov ecx, dword [0x1028155c]
sub esp, 0x2a4
push ebx
push esi
push edi
test ecx, ecx
je 0x10011d82
cmp ecx, 0xffffffff
jne 0x10011ed3
mov eax, dword [0x102812e8]
movss xmm0, dword [eax]
addss xmm0, dword [0x102406c8]
comiss xmm0, dword [0x102813e8]
jbe 0x10011ed3
push 0
call dword [sym.imp.USER32.dll_GetTopWindow]
mov esi, eax
test esi, esi
je 0x10012045
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextLengthW]
nop dword [eax + eax]
mov eax, dword [0x102812e8]
push esi
movss xmm0, dword [eax]
movss dword [0x102813e8], xmm0
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10011ebb
push esi
call ebx
test eax, eax
je 0x10011ebb
lea eax, [esp + 0x3c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [esp + 0x3c]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
lea eax, [esp + 0x58]
push 0x12c
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x58]
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x24], 0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10011e40
sub ecx, edx
lea eax, [esp + 0x58]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.100132d0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push 0x10219e68
lea ecx, [esp + 0x18]
call fcn.100129d0
cmp eax, 0xffffffff
je 0x10011e7f
mov dword [0x1028155c], esi
mov ecx, dword [esp + 0x24]
cmp ecx, 7
jbe 0x10011ebb
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10011eb1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012035
push ecx
push edx
call fcn.1018b662
add esp, 8
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x10011dc0
jmp 0x10012045
test ecx, ecx
je 0x10012045
cmp ecx, 0xffffffff
je 0x10012045
push 0x12c
lea eax, [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x10011f03
mov dword [0x1028155c], eax
jmp 0x10012045
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x58]
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x24], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10011f22
sub ecx, edx
lea eax, [esp + 0x58]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.100132d0
cmp dword [esp + 0x24], 7
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x20]
cmova ecx, dword [esp + 0x10]
lea eax, [ecx + eax*2]
lea ecx, [esp + 0x10]
cmova ecx, dword [esp + 0x10]
push ecx
push eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.100131b0
push ecx
push 0x10219e64
lea ecx, [esp + 0x18]
call fcn.100129d0
cmp eax, 0xffffffff
je 0x10011f93
cmp dword [esp + 0x54], 0xf
lea eax, [esp + 0x40]
push dword [esp + 0x50]
cmova eax, dword [esp + 0x44]
push eax
jmp 0x10011fcb
push ecx
push str.Advertisment
lea ecx, [esp + 0x18]
call fcn.100129d0
cmp eax, 0xffffffff
jne 0x10011fc4
push ecx
push str.Spotify
lea ecx, [esp + 0x18]
call fcn.100129d0
cmp eax, 0xffffffff
je 0x10011fc4
push 0x16
push str._stopped___not_playing
jmp 0x10011fcb
push 0xd
push str._advertisment
mov ecx, 0x10249898
call fcn.1000c730
mov ecx, dword [esp + 0x54]
cmp ecx, 0xf
jbe 0x10012007
mov edx, dword [esp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10011ffd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012035
push ecx
push edx
call fcn.1018b662
add esp, 8
mov ecx, dword [esp + 0x24]
cmp ecx, 7
jbe 0x10012045
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001203b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001203b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1018b662
add esp, 8
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1024b2f0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10286f24]
cmp eax, dword [ecx + 4]
jle 0x1001209d
push 0x10286f24
call fcn.1018b6e4
add esp, 4
cmp dword [0x10286f24], 0xffffffff
jne 0x1001209d
push 0x10249898
mov ecx, 0x10286f08
call fcn.10012190
push 0x1018f280
call fcn.1018b648
push 0x10286f24
call fcn.1018b693
add esp, 8
mov ebx, dword [0x102498ac]
mov eax, 0x10249898
mov esi, dword [0x10249898]
cmp ebx, 0xf
mov edi, dword [0x102498a8]
mov ecx, 0x10286f08
mov edx, dword [0x10286f18]
cmova eax, esi
cmp dword [0x10286f1c], 0xf
push edi
cmova ecx, dword [0x10286f08]
push eax
call fcn.10014090
add esp, 8
test al, al
jne 0x1001217a
cmp byte [0x10281444], al
je 0x1001215a
push 0x16
cmp ebx, 0xf
mov ecx, 0x10249898
push str._stopped___not_playing
cmova ecx, esi
mov edx, edi
push 0
call fcn.10013370
add esp, 0xc
cmp eax, 0xffffffff
je 0x10012117
push str.gravity_spotify_paused
jmp 0x10012146
push 0xd
cmp ebx, 0xf
mov ecx, 0x10249898
push str._advertisment
cmova ecx, esi
mov edx, edi
push 0
call fcn.10013370
add esp, 0xc
cmp eax, 0xffffffff
je 0x10012141
push str.gravity_spotify_advertisement
jmp 0x10012146
push str.gravity_spotify_switch
push dword [0x102813dc]
call fcn.1000b720
mov esi, dword [0x10249898]
add esp, 8
cmp dword [0x102498ac], 0xf
mov eax, 0x10249898
push dword [0x102498a8]
cmova eax, esi
mov ecx, 0x10286f08
push eax
call fcn.1000c730
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret