Function at 0x10009675
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x10087004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
push 0xffffffffffffffeb
push esi
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x70], esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, eax
mov dword [ebp - 0x74], ebx
test ebx, ebx
jne 0x100096c3
push dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push esi
push dword [0x100899e4]
call dword [sym.imp.USER32.dll_CallWindowProcA]
jmp 0x100099e5
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [ebp + 0xc], 0xf
jne 0x100096e1
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.USER32.dll_BeginPaint]
jmp 0x100096e4
mov dword [ebp - 0x68], edi
cmp byte [ebx + 0x60], 2
je 0x1000997e
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x1000972e
cmp byte [ebx + 0x20], 0
jne 0x1000972e
cmp byte [ebx + 0x30], 1
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
push eax
jne 0x1000971f
push dword [ebx + 0x2c]
mov ecx, dword [ebp - 0x68]
xor edx, edx
push dword [ebx + 0x28]
push 0
call fcn.1000c61a
add esp, 0x18
jmp 0x10009744
lea edx, [ebp - 0x68]
mov ecx, esi
call fcn.10008fc3
add esp, 0xc
jmp 0x10009744
cmp dword [ebx + 0x38], 0
je 0x10009744
push dword [ebx + 0x38]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [ebx + 0x80]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
je 0x100097ad
push dword [ebx + 0x7c]
push eax
push dword [ebx + 0x84]
call dword [sym.imp.GDI32.dll_CreatePen]
mov ebx, eax
push ebx
push dword [ebp - 0x68]
call esi
push 5
mov edi, eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push dword [ebp - 0x68]
call esi
push dword [ebp - 8]
mov esi, eax
push dword [ebp - 0xc]
push 0
push 0
push dword [ebp - 0x68]
call dword [sym.imp.GDI32.dll_Rectangle]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push edi
push dword [ebp - 0x68]
call ebx
push esi
push dword [ebp - 0x68]
call ebx
mov ebx, dword [ebp - 0x74]
mov ecx, dword [ebx + 0x88]
test ecx, ecx
je 0x10009979
test byte [ebx + 0x84], 6
mov edx, dword [ebx + 0x80]
mov esi, edx
jne 0x100097d7
cmp esi, 1
lea eax, [esi - 1]
cmovle eax, edx
mov esi, eax
push dword [ebx + 0x8c]
mov eax, dword [ebp - 0xc]
push dword [ebx + 0x90]
sub eax, edx
push ecx
push dword [ebx + 0x78]
mov ecx, dword [ebp - 0x68]
sub eax, esi
push eax
push esi
call fcn.1000c61a
add esp, 0x18
lea eax, [esi + 5]
cmp dword [ebx + 0x94], 0
mov dword [ebp - 0x6c], eax
je 0x10009863
mov eax, dword [ebx + 0x78]
sub eax, dword [ebx + 0x98]
movzx ecx, word [ebx + 0x94]
cdq
sub eax, edx
mov edi, eax
push ecx
push dword [ebx + 4]
sar edi, 1
add edi, esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 3
push 0
push 0
push dword [ebx + 0x98]
mov esi, eax
push dword [ebx + 0x9c]
push esi
push edi
mov edi, dword [ebp - 0x6c]
push edi
push dword [ebp - 0x68]
call dword [sym.imp.USER32.dll_DrawIconEx]
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
add edi, 3
add edi, dword [ebx + 0x9c]
mov dword [ebp - 0x6c], edi
push 0x800
call fcn.10029ea7
mov edi, dword [ebp - 0x70]
mov esi, eax
mov dword [ebp - 0x74], esi
pop ecx
test esi, esi
je 0x10009980
mov edx, dword [ebx + 0x64]
mov ecx, edi
push 0
push dword [ebx + 0x70]
push dword [ebx + 0x68]
call fcn.10006172
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov byte [esi], 0
push 0x7d0
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov dword [ebp - 0x70], eax
xor eax, eax
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x100098c2
push eax
push dword [ebp - 0x68]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x78], eax
movaps xmm0, xmmword [0x10083450]
lea eax, [ebp - 0x24]
push 0x420
push eax
push dword [ebp - 0x70]
movups xmmword [ebp - 0x24], xmm0
push esi
push dword [ebp - 0x68]
mov esi, dword [sym.imp.USER32.dll_DrawTextA]
call esi
mov eax, dword [ebp - 0x6c]
add dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x78]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
shr eax, 1
add ecx, eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebx + 0x80]
push 1
push dword [ebp - 0x68]
add eax, ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebx + 0x6c]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x68]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push dword [ebp - 0x68]
call esi
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x10009945
push eax
push dword [ebp - 0x68]
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x10009953
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x6c]
push dword [ebp - 0x68]
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebp - 0x80]
push dword [ebp - 0x68]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push dword [ebp - 0x74]
call fcn.10029e99
pop ecx
pop ecx
jmp 0x10009980
mov edi, dword [ebp - 0x70]
jmp 0x10009980
mov edi, esi
mov eax, dword [ebx + 0x1c]
jmp 0x100099ac
push edi
call dword [sym.imp.USER32.dll_GetDC]
push dword [ebp - 0x68]
mov edx, dword [ebp - 0x6c]
mov ecx, ebx
push edi
mov esi, eax
call fcn.100093b7
pop ecx
pop ecx
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x10009985
cmp dword [ebp + 0xc], 0xf
jne 0x100099c4
lea eax, [ebp - 0x68]
push eax
push edi
call dword [sym.imp.USER32.dll_EndPaint]
push 8
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, eax
je 0x100099e3
push dword [ebp + 8]
push dword [ebp - 0x84]
push dword [ebp + 0xc]
push edi
jmp 0x100096b2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10029e88
leave
ret