Function at 0x10b42340
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x1e8
mov eax, dword [0x10e2b37c]
push ebx
push ebp
mov ebp, dword [esp + 0x1f4]
push esi
push edi
push eax
push ebp
call dword [sym.imp.USER32.dll_GetPropA]
and eax, 0xf
xor ecx, ecx
cmp al, 6
push 0xfffffffffffffff0
sete cl
push ebp
mov dword [esp + 0x44], ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
lea edx, [esp + 0x1b8]
and eax, 0x200
push edx
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x31
push ebp
mov esi, eax
call edi
test eax, eax
mov dword [esp + 0x70], eax
je 0x10b423b2
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x7c]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
call ebx
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0x12
call ebx
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push ebp
push esi
push 0x135
push ebp
call dword [sym.imp.USER32.dll_GetParent]
push eax
call edi
lea ecx, [esp + 0x1c]
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esp + 0xb4]
push 0x104
push edx
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
je 0x10b4257f
lea eax, [esp + 0x14]
lea ecx, [esp + 0xb4]
push eax
push edi
push ecx
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
call fcn.10bd19f0
test eax, eax
push 0x26
je 0x10b42456
lea edx, [esp + 0xb8]
push edx
call dword [sym.imp.MSVCRT.dll__mbschr]
jmp 0x10b42464
lea eax, [esp + 0xb8]
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x10b4247a
sub ecx, dword [esp + 0x90]
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10b42498
mov eax, dword [esp + 0x24]
lea edx, [eax - 9]
sub eax, ecx
sub eax, 0xb
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], eax
jmp 0x10b424ab
mov eax, dword [esp + 0x1c]
add eax, 9
mov dword [esp + 0x2c], eax
lea ecx, [ecx + eax + 2]
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
add edx, eax
push ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], edx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x10b4253b
mov eax, dword [0x10e2ceec]
test eax, eax
je 0x10b4252f
push 0x14
call ebx
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
lea eax, [esp + 0x30]
push 1
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10b42509
lea ecx, [esp + 0x2c]
push 0x20020
push ecx
lea edx, [esp + 0xbc]
push edi
push edx
jmp 0x10b42519
lea eax, [esp + 0x2c]
push 0x20
push eax
lea ecx, [esp + 0xbc]
push edi
push ecx
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
push 0xffffffffffffffff
lea edx, [esp + 0x30]
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
push 0x10
call ebx
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10b42558
lea eax, [esp + 0x2c]
push 0x20020
push eax
lea ecx, [esp + 0xbc]
push edi
push ecx
jmp 0x10b42568
lea edx, [esp + 0x2c]
push 0x20
push edx
lea eax, [esp + 0xbc]
push edi
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
cmp eax, edi
jge 0x10b42586
mov edi, eax
jmp 0x10b42586
mov ecx, dword [esp + 0x1c]
lea edi, [ecx + 6]
mov eax, dword [esp + 0x3c]
test eax, eax
mov eax, dword [0x10e2ae70]
jne 0x10b42598
mov eax, dword [0x10e2b144]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10b425c1
mov ebx, dword [esp + 0x14]
mov edx, edi
sub edx, ebx
sub edx, 6
mov dword [esp + 0x40], edx
jmp 0x10b425c8
lea eax, [ecx + 6]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x7c]
mov ebx, dword [0x10e2b140]
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
add ecx, ebx
add eax, edx
mov edx, dword [0x10e2b334]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x28]
sub ecx, edx
add eax, edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x40]
push 6
sub edx, ebx
push ecx
push esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], eax
call dword [sym.imp.GDI32.dll_Polyline]
mov eax, dword [esp + 0x3c]
test eax, eax
mov eax, dword [0x10e2b144]
jne 0x10b4263f
mov eax, dword [0x10e2ae70]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
test eax, eax
je 0x10b42664
mov ebx, dword [esp + 0x14]
mov edx, edi
sub edx, ebx
sub edx, 6
mov dword [esp + 0x40], edx
jmp 0x10b4266b
lea eax, [ecx + 6]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x48], ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x50], ecx
mov ecx, dword [0x10e2b334]
sar eax, 1
add eax, edx
lea edx, [ecx + ecx]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x44], eax
sub ecx, edx
mov edx, dword [0x10e2b140]
add edx, edx
mov dword [esp + 0x4c], eax
mov ebx, edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x40]
push 6
sub edx, ebx
push eax
push esi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x74], edi
call dword [sym.imp.GDI32.dll_Polyline]
mov ecx, dword [esp + 0x78]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push esi
call edi
mov eax, dword [esp + 0x70]
test eax, eax
je 0x10b426f1
mov edx, dword [esp + 0x74]
push edx
push esi
call edi
lea eax, [esp + 0x1b8]
push eax
push ebp
call dword [sym.imp.USER32.dll_EndPaint]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1e8
ret