Function at 0x10009560
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ecf4
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x10027100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0xa4]
mov dword [ebp - 0xa0], edi
add edi, 0xa4
mov ecx, 0x10022c24
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100095d6
test dx, dx
je 0x100095d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100095d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x100095b0
xor eax, eax
jmp 0x100095db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x100097d8
push 3
push esi
lea ecx, [ebp - 0x98]
lea eax, [ebp - 0x94]
push ecx
mov dword [ebp - 0x98], eax
call fcn.10001aa0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
cmp eax, edx
je 0x10009623
push eax
call fcn.1000e19d
add esp, 4
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
test esi, esi
jne 0x1000963b
call fcn.10003410
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0xb0]
xor eax, eax
push ecx
mov word [ebp - 0xb0], ax
call ebx
test eax, eax
jns 0x1000965d
push eax
call fcn.10001b70
mov edx, 8
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov word [ebp - 0xb0], dx
call esi
mov dword [ebp - 0xa8], eax
test eax, eax
jne 0x1000969c
mov eax, 0xa
push 0x8007000e
mov word [ebp - 0xb0], ax
mov dword [ebp - 0xa8], 0x8007000e
call fcn.10001b70
mov dword [ebp - 4], 1
push str.rs5vseQK_
call fcn.10001dd0
add esp, 4
test eax, eax
jne 0x10009755
xor esi, esi
mov dword [ebp - 0x9c], esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb0]
lea edx, [ebp - 0x9c]
call fcn.1000c000
mov byte [ebp - 4], 1
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
push ecx
call ebx
push 0x10022c24
push edi
xor ebx, ebx
call fcn.10002f60
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 4], 4
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
mov esi, 0x400
sub eax, esi
or eax, ecx
jge 0x10009746
mov eax, esi
lea ecx, [ebp - 0x9c]
call fcn.10001950
mov ebx, dword [ebp - 0x9c]
cmp dword [ebx - 8], esi
jge 0x10009772
push 0x80070057
call fcn.10001b70
push eax
call esi
mov esi, eax
mov dword [ebp - 0x9c], esi
test esi, esi
jne 0x100096c0
push 0x8007000e
call fcn.10001b70
mov dword [ebx - 0xc], esi
push esi
mov esi, dword [ebp - 0xa0]
mov byte [ebx + 0x400], 0
mov ecx, dword [esi + 0x94]
push ebx
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.1000e2fa
add esp, 8
test eax, eax
js 0x1000974b
cmp eax, dword [ebx - 8]
jg 0x1000974b
mov dword [ebx - 0xc], eax
mov ecx, ebx
mov byte [eax + ebx], 0
call fcn.100085d0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100097d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000e003
mov esp, ebp
pop ebp
ret