Function at 0x10009c9b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10087004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x800
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], eax
call fcn.10029ea7
mov dword [ebp - 0x2c], eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x28], eax
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test eax, eax
je 0x10009e9f
mov esi, dword [ebx + 0x108]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x34], esi
test esi, esi
je 0x10009cf6
mov byte [ebp - 0x15], 0
jmp 0x10009d1c
mov edx, dword [ebx + 0x64]
lea eax, [ebx + 0x118]
push eax
push dword [ebx + 0x70]
mov ecx, edi
push dword [ebx + 0x68]
call fcn.10006172
mov esi, eax
mov byte [ebp - 0x15], 1
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov dword [ebp - 0x34], esi
push 0x7d0
push eax
push edi
mov byte [eax], 0
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebx + 0x10c]
mov dword [ebp - 0x1c], eax
cmp eax, ecx
jbe 0x10009d46
sub eax, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x2c]
add eax, ecx
mov dword [ebp - 0x28], eax
and dword [ebp - 0x30], 0
test esi, esi
je 0x10009d5e
push esi
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x30], eax
jmp 0x10009d61
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebx + 0xc8]
sub dword [ebp - 0xc], ecx
mov edx, dword [ebx + 0xc4]
mov ecx, dword [ebp - 0x10]
add edx, dword [ebp - 0x14]
add ecx, dword [ebx + 0xd4]
cmp dword [ebx + 0xfc], 0
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], ecx
je 0x10009df0
mov eax, dword [ebx + 0x100]
mov edi, eax
sub ecx, dword [ebx + 0x104]
and eax, 0xff000000
shr ecx, 1
and edi, 0xffffff
cmp eax, 0x2000000
jne 0x10009dcb
push 3
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebx + 0xfc]
mov eax, dword [ebp - 0x10]
add eax, ecx
push eax
push edx
push esi
call dword [sym.imp.USER32.dll_DrawIconEx]
jmp 0x10009deb
mov eax, dword [ebx + 0x104]
push eax
push edi
push dword [ebx + 0xfc]
push eax
mov eax, dword [ebp - 0x10]
add eax, ecx
mov ecx, esi
push edi
push eax
call fcn.1000c61a
add esp, 0x18
add dword [ebp - 0x14], edi
jmp 0x10009dfa
mov eax, dword [0x10089440]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
lea esi, [ebp - 0x14]
mov edi, eax
push 0x424
push eax
push dword [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
push dword [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x20]
mov esi, dword [sym.imp.USER32.dll_DrawTextA]
push edi
call esi
mov ecx, dword [ebp - 8]
mov eax, ecx
mov edx, dword [ebp - 0x24]
push 1
push edi
sub eax, dword [edx + 0xc]
cdq
sub eax, edx
sar eax, 1
add dword [ebp - 0x10], eax
sub ecx, eax
mov dword [ebp - 8], ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebx + 0x6c]
mov ebx, dword [sym.imp.GDI32.dll_SetTextColor]
push edi
mov dword [ebp - 0x24], eax
call ebx
push 0x24
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
push edi
call esi
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x10009e6f
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x10009e83
cmp byte [ebp - 0x15], 0
je 0x10009e83
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x24]
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebp - 0x20]
push edi
call ebx
push 1
push dword [ebp - 0x2c]
call fcn.10029e99
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.10029e88
leave
ret