Function at 0x10068390
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 0x10078850
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
sub esp, 0x5b0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov eax, dword [0x100a93e8]
mov eax, dword [eax + 0x4a34]
push str.Background
xor edx, edx
mov ecx, dword [eax]
call fcn.100108f0
add esp, 4
xorps xmm0, xmm0
movups xmmword [ebp - 0xf8], xmm0
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
push 0xa
push str.chrome.exe
lea ecx, [ebp - 0xf8]
call fcn.10057510
xorps xmm0, xmm0
movups xmmword [ebp - 0xe0], xmm0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0
push 9
push str.brave.exe
lea ecx, [ebp - 0xe0]
call fcn.10057510
xorps xmm0, xmm0
movups xmmword [ebp - 0xc8], xmm0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
push 0xc
push str.sidekick.exe
lea ecx, [ebp - 0xc8]
call fcn.10057510
lea edi, [ebp - 0xf8]
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10068548
cmp eax, 0xaaaaaaa
ja 0x10068f2a
lea esi, [eax + eax*2]
shl esi, 3
mov dword [ebp - 0x2c], esi
cmp esi, 0x1000
jb 0x100684f2
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x10068f2f
push eax
call fcn.1007670f
add esp, 4
test eax, eax
je 0x10068f06
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x10068505
test esi, esi
je 0x10068503
push esi
call fcn.1007670f
add esp, 4
mov esi, eax
jmp 0x10068505
xor esi, esi
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x2c]
add eax, esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xb0]
cmp edi, eax
je 0x10068538
nop word [eax + eax]
push edi
mov ecx, esi
call fcn.10055330
add esi, 0x18
add edi, 0x18
lea eax, [ebp - 0xb0]
cmp edi, eax
jne 0x10068520
push ecx
mov edx, esi
mov ecx, esi
call fcn.100694c0
add esp, 4
mov dword [ebp - 0x24], esi
mov edi, 3
lea esi, [ebp - 0xb0]
dec edi
lea esi, [esi - 0x18]
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x10068590
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x10068586
add ecx, 0x23
mov edx, dword [eax - 4]
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10068f06
mov eax, edx
push ecx
push eax
call fcn.10076a5e
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
xor eax, eax
mov word [esi], ax
test edi, edi
jne 0x10068553
mov dword [ebp - 4], edi
wait
mov eax, dword [0x100def0c]
test eax, eax
je 0x100685bd
cmp eax, 0xffffffff
jne 0x100686b9
movss xmm0, dword [0x100def24]
addss xmm0, dword [0x100a22c0]
comiss xmm0, dword [0x100def30]
jbe 0x100686b9
push 0
call dword [sym.imp.USER32.dll_GetTopWindow]
mov edi, eax
test edi, edi
je 0x10068812
movss xmm0, dword [0x100def24]
movss dword [0x100def30], xmm0
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x100686ab
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
je 0x100686ab
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x2c]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0x12c
lea eax, [ebp - 0x368]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
lea eax, [ebp - 0x368]
push eax
lea ecx, [ebp - 0x110]
call fcn.10068f50
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x110]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x110]
push edx
push ecx
push eax
call fcn.10069270
add esp, 0xc
lea ecx, [ebp - 0x110]
test al, al
je 0x100686a6
mov dword [0x100def0c], edi
call fcn.100552d0
wait
jmp 0x10068856
call fcn.100552d0
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
jmp 0x100685e2
test eax, eax
je 0x10068812
cmp eax, 0xffffffff
je 0x10068812
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1006878c
push dword [0x100def0c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1006878c
push 0x12c
lea eax, [ebp - 0x5c0]
push eax
push dword [0x100def0c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x100687e8
lea eax, [ebp - 0x5c0]
push eax
lea ecx, [ebp - 0xa0]
call fcn.10068f50
lea ecx, [ebp - 0xa0]
cmp dword [ebp - 0x8c], 8
cmovae ecx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0x90]
lea ecx, [ecx + eax*2]
mov dword [ebp - 0x2c], ecx
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
mov dword [ebp - 0x2c], eax
push ecx
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.10069160
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 0x10
cmovae eax, dword [ebp - 0x70]
push dword [ebp - 0x60]
push eax
mov ecx, 0x100a86c8
call fcn.10001ad0
lea ecx, [ebp - 0x70]
call fcn.10001900
lea ecx, [ebp - 0xa0]
call fcn.100552d0
wait
jmp 0x10068856
lea eax, [ebp - 0x1c]
push eax
push dword [0x100def0c]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x1c]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10068812
mov dword [ebp - 0xa8], 0x1f4
mov dword [ebp - 0xa4], 0
lea ecx, [ebp - 0xa8]
call fcn.10069380
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100687e8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
wait
jmp 0x10068856
mov eax, 0x100a86c8
cmp dword [0x100a86dc], 0x10
cmovae eax, dword [0x100a86c8]
mov dword [0x100a86d8], 0
mov byte [eax], 0
mov dword [0x100def0c], 0
wait
jmp 0x10068856
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x100a90a4]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100defc8]
cmp eax, dword [ecx + 4]
jle 0x100688b8
push 0x100defc8
call fcn.10076639
add esp, 4
cmp dword [0x100defc8], 0xffffffff
jne 0x100688b8
push 0x100a86c8
mov ecx, 0x100defa4
call fcn.100554a0
push 0x10078b90
call fcn.10076a44
add esp, 4
push 0x100defc8
call fcn.100765ef
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.10068fa0
cmp byte [0x100ded3b], 0
je 0x10068f16
mov ecx, dword [0x100a93d0]
mov eax, dword [ecx]
lea edx, [ebp - 0xb0]
push edx
lea edx, [ebp - 0xa4]
push edx
call dword [eax + 0x14]
mov eax, dword [0x100a93e8]
mov eax, dword [eax + 0x4a34]
push str.Background
xor edx, edx
mov ecx, dword [eax]
call fcn.100108f0
add esp, 4
mov dword [ebp - 0x54], eax
push 0x100a86c8
lea ecx, [ebp - 0xa0]
call fcn.100554a0
lea ecx, [ebp - 0xa0]
cmp dword [ebp - 0x8c], 0x10
cmovae ecx, dword [ebp - 0xa0]
mov edi, dword [0x100a93e8]
test ecx, ecx
jne 0x10068938
xorps xmm1, xmm1
jmp 0x1006897d
push ecx
push 0
push ecx
push ecx
mov dword [esp], 0xbf800000
lea eax, [ebp - 0x30]
push eax
movss xmm2, dword [edi + 0x3cf4]
mov ecx, dword [edi + 0x3cf0]
call fcn.100342b0
movss xmm0, dword [ebp - 0x30]
addss xmm0, dword [0x100a2278]
cvttss2si eax, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss xmm0, dword [ebp - 0x2c]
movss dword [ebp - 0x2c], xmm0
movss dword [ebp - 0x58], xmm1
movss xmm0, dword [edi + 0x10]
subss xmm0, xmm1
subss xmm0, dword [0x100a2340]
movss dword [ebp - 0x1c], xmm0
mov esi, 0x100a86c8
cmp dword [0x100a86dc], 0x10
cmovae esi, dword [0x100a86c8]
mov ecx, esi
cmp esi, 0xffffffff
jae 0x100689c8
mov dl, byte [ecx]
test dl, dl
je 0x100689c8
cmp dl, 0x23
jne 0x100689c2
cmp byte [ecx + 1], dl
je 0x100689c8
inc ecx
cmp ecx, 0xffffffff
jb 0x100689b2
movss xmm2, dword [edi + 0x3cf4]
movss dword [ebp - 0x2c], xmm2
cmp esi, ecx
je 0x10068a1a
push ecx
push ecx
push esi
push ecx
mov dword [esp], 0
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [edi + 0x3cf0]
call fcn.100342b0
movss xmm0, dword [ebp - 0x30]
addss xmm0, dword [0x100a2278]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x24], xmm0
movss xmm2, dword [ebp - 0x2c]
movss dword [ebp - 0x2c], xmm2
xorps xmm0, xmm0
movups xmmword [ebp - 0x88], xmm0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
push ecx
push 0x1009db44
mov ecx, 0x100a86c8
call fcn.1005cb30
mov esi, eax
mov eax, 0x100a86c8
cmp esi, 0xffffffff
je 0x10068b8f
xorps xmm0, xmm0
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov ecx, esi
cmp dword [0x100a86d8], esi
cmovb ecx, dword [0x100a86d8]
cmp dword [0x100a86dc], 0x10
cmovae eax, dword [0x100a86c8]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.10001c00
mov ecx, dword [ebp - 0x74]
cmp ecx, 0x10
jb 0x10068ae2
inc ecx
mov edx, dword [ebp - 0x88]
mov eax, edx
cmp ecx, 0x1000
jb 0x10068ad8
add ecx, 0x23
mov edx, dword [eax - 4]
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10068f06
push ecx
push edx
call fcn.10076a5e
add esp, 8
movups xmm0, xmmword [ebp - 0x70]
movups xmmword [ebp - 0x88], xmm0
movq xmm0, qword [ebp - 0x60]
movq qword [ebp - 0x78], xmm0
inc esi
xorps xmm0, xmm0
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov eax, dword [0x100a86d8]
cmp eax, esi
jb 0x10068f34
sub eax, esi
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
mov eax, 0x100a86c8
cmp dword [0x100a86dc], 0x10
cmovae eax, dword [0x100a86c8]
push ecx
add eax, esi
push eax
lea ecx, [ebp - 0x70]
call fcn.10001c00
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x10
jb 0x10068b78
inc ecx
mov edx, dword [ebp - 0x50]
mov eax, edx
cmp ecx, 0x1000
jb 0x10068b6e
add ecx, 0x23
mov edx, dword [eax - 4]
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10068f06
push ecx
push edx
call fcn.10076a5e
add esp, 8
movups xmm0, xmmword [ebp - 0x70]
movups xmmword [ebp - 0x50], xmm0
movq xmm0, qword [ebp - 0x60]
movq qword [ebp - 0x40], xmm0
jmp 0x10068cb4
cmp dword [0x100a86dc], 0x10
cmovae eax, dword [0x100a86c8]
push dword [0x100a86d8]
push eax
lea ecx, [ebp - 0x88]
call fcn.10001ad0
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x20], ecx
cmp ecx, 7
jb 0x10068be4
lea esi, [ebp - 0x50]
cmp ecx, 0x10
cmovae esi, dword [ebp - 0x50]
mov dword [ebp - 0x40], 7
push 7
push str.Unknown
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 7], 0
jmp 0x10068cb4
mov edx, ecx
shr edx, 1
mov eax, 0x7fffffff
sub eax, edx
cmp ecx, eax
jbe 0x10068c1f
mov edi, 0x7fffffff
mov ecx, 0x80000000
add ecx, 0x23
push ecx
call fcn.1007670f
add esp, 4
test eax, eax
je 0x10068f06
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
mov ecx, dword [ebp - 0x20]
jmp 0x10068c59
lea eax, [ecx + edx]
mov edi, 0xf
cmp eax, edi
cmova edi, eax
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x10068c43
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x10068f39
jmp 0x10068c00
test eax, eax
je 0x10068c57
push eax
call fcn.1007670f
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 0x20]
jmp 0x10068c59
xor esi, esi
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x3c], edi
mov eax, dword [str.Unknown]
mov dword [esi], eax
mov ax, word [0x10098340]
mov word [esi + 4], ax
mov al, byte [0x10098342]
mov byte [esi + 6], al
mov byte [esi + 7], 0
cmp ecx, 0x10
jb 0x10068cb1
inc ecx
mov edx, dword [ebp - 0x50]
mov eax, edx
cmp ecx, 0x1000
jb 0x10068ca7
add ecx, 0x23
mov edx, dword [eax - 4]
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10068f06
push ecx
push edx
call fcn.10076a5e
add esp, 8
mov dword [ebp - 0x50], esi
movss xmm0, dword [0x100def38]
xorps xmm2, xmm2
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jp 0x10068d89
movss xmm0, dword [0x100def3c]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jp 0x10068d89
movss xmm0, dword [ebp - 0x1c]
subss xmm0, dword [0x100a2344]
movss dword [0x100def38], xmm0
movss xmm0, dword [0x100a2350]
movss dword [0x100def3c], xmm0
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 0x10
cmovae eax, dword [ebp - 0x50]
mov ecx, dword [0x100a93e8]
test eax, eax
je 0x10068d56
push ecx
push 0
push eax
push ecx
mov dword [esp], 0xbf800000
lea eax, [ebp - 0x24]
push eax
movss xmm2, dword [ecx + 0x3cf4]
mov ecx, dword [ecx + 0x3cf0]
call fcn.100342b0
movss xmm0, dword [ebp - 0x24]
addss xmm0, dword [0x100a2278]
cvttss2si eax, xmm0
movd xmm2, eax
cvtdq2ps xmm2, xmm2
movss xmm1, dword [ebp - 0x58]
addss xmm1, dword [ebp - 0x1c]
subss xmm1, xmm2
movss xmm0, dword [ebp - 0x2c]
addss xmm0, dword [0x100a2350]
addss xmm0, dword [0x100a22c0]
movss dword [0x100def18], xmm1
movss dword [0x100def1c], xmm0
lea esi, [ebp - 0x88]
cmp dword [ebp - 0x74], 0x10
jb 0x10068d9f
mov esi, dword [ebp - 0x88]
test esi, esi
je 0x10068df1
cmp byte [esi], 0
je 0x10068df1
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10068db0
sub ecx, edx
lea edx, [esi + ecx]
mov edi, dword [ebp - 0x54]
mov eax, dword [edi + 0x2c]
movups xmm0, xmmword [edi + 0x60]
movups xmmword [ebp - 0x38], xmm0
push 0
push ecx
mov dword [esp], 0
push edx
push esi
lea ecx, [ebp - 0x38]
push ecx
push 0xffffffffffffffff
push 0x100def38
push edi
movss xmm2, dword [eax + 0xc]
mov ecx, dword [eax + 8]
call fcn.10034450
jmp 0x10068df4
mov edi, dword [ebp - 0x54]
lea esi, [ebp - 0x50]
cmp dword [ebp - 0x3c], 0x10
jb 0x10068e04
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x10068e4c
cmp byte [esi], 0
je 0x10068e4c
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10068e10
sub ecx, edx
lea edx, [ecx + esi]
mov eax, dword [edi + 0x2c]
movups xmm0, xmmword [edi + 0x60]
movups xmmword [ebp - 0x38], xmm0
push 0
push ecx
mov dword [esp], 0
push edx
push esi
lea ecx, [ebp - 0x38]
push ecx
push 0xffffffffffffffff
push 0x100def18
push edi
movss xmm2, dword [eax + 0xc]
mov ecx, dword [eax + 8]
call fcn.10034450
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x10
jb 0x10068e80
inc ecx
mov edx, dword [ebp - 0x50]
mov eax, edx
cmp ecx, 0x1000
jb 0x10068e76
add ecx, 0x23
mov edx, dword [eax - 4]
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10068f06
push ecx
push edx
call fcn.10076a5e
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
mov ecx, dword [ebp - 0x74]
cmp ecx, 0x10
jb 0x10068ec5
inc ecx
mov edx, dword [ebp - 0x88]
mov eax, edx
cmp ecx, 0x1000
jb 0x10068ebb
add ecx, 0x23
mov edx, dword [eax - 4]
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10068f06
push ecx
push edx
call fcn.10076a5e
add esp, 8
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
mov ecx, dword [ebp - 0x8c]
cmp ecx, 0x10
jb 0x10068f16
inc ecx
mov edx, dword [ebp - 0xa0]
mov eax, edx
cmp ecx, 0x1000
jb 0x10068f0c
add ecx, 0x23
mov edx, dword [eax - 4]
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10068f0c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10076a5e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1004cf40
call fcn.10001390
call fcn.100558c0
call fcn.10001390
int3