Function at 0x1003a820
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 0x100b999c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x548
mov eax, dword [0x100d6040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x100f09ac], 0
je 0x1003aec2
push 0
call dword [sym.imp.USER32.dll_GetTopWindow]
mov edi, eax
mov dword [ebp - 0x524], edi
test edi, edi
je 0x1003aec2
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1003ae96
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
je 0x1003ae96
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]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003a910
sub ecx, edx
lea eax, [ebp - 0x270]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x510]
call fcn.1003d960
mov dword [ebp - 4], 0
mov eax, dword [0x1016a1f4]
movss xmm0, dword [eax + 0x10]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x100cb048]
subsd xmm0, qword [0x100cb058]
movsd qword [ebp - 0x520], xmm0
fld qword [ebp - 0x520]
fld qword [0x100cb060]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIfmod
fstp qword [ebp - 0x520]
movsd xmm0, qword [ebp - 0x520]
andps xmm0, xmmword [0x100cb2a0]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_sin
mulsd xmm0, qword [0x100cb080]
push esi
cvttsd2si eax, xmm0
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x51c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push str.Spotify.exe
lea ecx, [ebp - 0x510]
call fcn.1003d080
cmp eax, 0xffffffff
je 0x1003ae84
push 0x12c
lea eax, [ebp - 0x4c8]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x1003aeb7
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 0x1003aa03
sub ecx, edx
lea eax, [ebp - 0x4c8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4f8]
call fcn.1003d960
mov byte [ebp - 4], 1
lea edx, [ebp - 0x4f8]
cmp dword [ebp - 0x4e4], 7
lea edi, [ebp - 0x4f8]
mov eax, dword [ebp - 0x4e8]
xorps xmm0, xmm0
cmova edx, dword [ebp - 0x4f8]
cmova edi, dword [ebp - 0x4f8]
movups xmmword [ebp - 0x4e0], xmm0
mov dword [ebp - 0x4d0], 0
lea edx, [edx + eax*2]
cmp edi, edx
jne 0x1003aa82
mov ecx, 0xf
mov byte [ebp - 0x4e0], 0
mov dword [ebp - 0x4cc], ecx
jmp 0x1003ab8e
sub edx, edi
mov dword [ebp - 0x4cc], 0xf
sar edx, 1
mov dword [ebp - 0x518], edx
cmp edx, 0x7fffffff
ja 0x1003aee5
mov esi, 0xf
cmp edx, esi
jbe 0x1003ab4a
mov esi, edx
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x1003aacb
mov ecx, 0x80000000
mov esi, 0x7fffffff
add ecx, 0x23
jmp 0x1003aafd
cmp esi, 0x16
mov eax, 0x16
cmovb esi, eax
lea eax, [esi + 1]
test eax, eax
jne 0x1003aaeb
mov dword [ebp - 0x4e0], eax
mov dword [ebp - 0x4cc], esi
jmp 0x1003ab50
cmp eax, 0x1000
jb 0x1003ab2d
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x1003aee0
push ecx
call fcn.100b6808
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1003aeb1
mov edx, dword [ebp - 0x518]
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov dword [ebp - 0x4e0], eax
mov dword [ebp - 0x4cc], esi
jmp 0x1003ab50
push eax
call fcn.100b6808
mov edx, dword [ebp - 0x518]
add esp, 4
mov dword [ebp - 0x4e0], eax
mov dword [ebp - 0x4cc], esi
jmp 0x1003ab50
mov eax, dword [ebp - 0x4e0]
cmp esi, 0xf
lea ecx, [ebp - 0x4e0]
mov esi, edx
cmova ecx, eax
mov dword [ebp - 0x518], ecx
test edx, edx
je 0x1003ab78
mov al, byte [edi]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
lea edi, [edi + 2]
sub esi, 1
jne 0x1003ab68
mov eax, dword [ebp - 0x518]
mov dword [ebp - 0x4d0], edx
mov byte [eax + edx], 0
mov ecx, dword [ebp - 0x4cc]
cmp ecx, 0xf
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x4d0]
lea eax, [ebp - 0x4e0]
cmova eax, dword [ebp - 0x4e0]
lea esi, [ebp - 0x4e0]
add edi, eax
mov eax, dword [ebp - 0x4e0]
cmp ecx, 0xf
cmova esi, eax
cmp esi, edi
je 0x1003abe0
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 0x1003abc0
mov ecx, dword [ebp - 0x4cc]
mov eax, dword [ebp - 0x4e0]
push dword [ebp - 0x4d0]
cmp ecx, 0xf
lea edx, [ebp - 0x4e0]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
cmova edx, eax
call fcn.100336e0
add esp, 4
mov ecx, eax
push 0x1003d790
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 eax, [ebp - 0x4e0]
mov edi, dword [ebp - 0x4e0]
cmp esi, 0xf
mov ecx, dword [ebp - 0x4d0]
cmova eax, edi
add ecx, eax
cmp esi, 0xf
lea eax, [ebp - 0x4e0]
cmova eax, edi
cmp eax, ecx
je 0x1003ac59
nop dword [eax]
cmp byte [eax], 0x26
jne 0x1003ac48
mov byte [eax], 0x2d
inc eax
cmp eax, ecx
jne 0x1003ac40
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.100336e0
add esp, 4
mov ecx, eax
push 0x1003d790
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 0x100c511c
lea ecx, [ebp - 0x4f8]
call fcn.1003d080
xorps xmm0, xmm0
cmp eax, 0xffffffff
je 0x1003ad60
cmp dword [ebp - 0x4cc], 0xf
lea edx, [ebp - 0x4e0]
movups xmmword [ebp - 0x554], xmm0
cmova edx, dword [ebp - 0x4e0]
mov ecx, edx
mov dword [ebp - 0x544], 0
mov dword [ebp - 0x540], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003acd7
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x554]
call fcn.1002dab0
push 1
mov byte [ebp - 4], 3
lea eax, [ebp - 0x554]
mov ecx, dword [0x100d9c90]
push eax
add ecx, 0xfffffffc
push ecx
mov eax, esp
push 0x23
push ecx
mov ecx, 0x1016c944
mov dword [eax], 0xe1e1e1e1
call fcn.100a6410
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x540]
cmp ecx, 0xf
jbe 0x1003ae1e
mov edx, dword [ebp - 0x554]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003ad51
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003aeb1
push ecx
push edx
call fcn.100b6d1a
add esp, 8
jmp 0x1003ae1e
push 6
push str.paused
lea ecx, [ebp - 0x53c]
mov dword [ebp - 0x52c], 0
movups xmmword [ebp - 0x53c], xmm0
mov dword [ebp - 0x528], 0
call fcn.1002dab0
mov edx, dword [ebp - 0x51c]
lea eax, [ebp - 0x53c]
mov byte [ebp - 4], 4
mov ecx, dword [0x100d9c90]
push 1
push eax
add ecx, 0xfffffffc
push ecx
mov eax, esp
push 0x23
push ecx
mov ecx, 0x1016c944
mov word [eax], 0xe1e1
mov byte [eax + 2], 0xe1
mov byte [eax + 3], dl
call fcn.100a6410
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x528]
cmp ecx, 0xf
jbe 0x1003ae03
mov edx, dword [ebp - 0x53c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003adf9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003aeb1
push ecx
push edx
call fcn.100b6d1a
add esp, 8
mov dword [ebp - 0x52c], 0
mov dword [ebp - 0x528], 0xf
mov byte [ebp - 0x53c], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x4cc]
cmp ecx, 0xf
jbe 0x1003ae58
mov edx, dword [ebp - 0x4e0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003ae4e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003aeb1
push ecx
push edx
call fcn.100b6d1a
add esp, 8
lea ecx, [ebp - 0x4f8]
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x4cc], 0xf
mov byte [ebp - 0x4e0], 0
call fcn.1003d5b0
mov edi, dword [ebp - 0x524]
lea ecx, [ebp - 0x510]
mov dword [ebp - 4], 0xffffffff
call fcn.1003d5b0
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
mov dword [ebp - 0x524], eax
test edi, edi
jne 0x1003a886
jmp 0x1003aec2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea ecx, [ebp - 0x510]
call fcn.1003d5b0
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.100b67ec
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10025cd0
call fcn.10025d70
int3