Function at 0x100184f5
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x124
mov eax, dword [0x1023904c]
xor eax, esp
mov dword [esp + 0x120], eax
push ebp
push esi
mov esi, dword [esp + 0x130]
push edi
mov edi, ecx
call fcn.1000f686
mov ebp, eax
push ebp
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1001869b
mov ecx, edi
call fcn.1000f677
test eax, eax
je 0x1001869b
push eax
call fcn.1000f6ad
test eax, eax
jne 0x1001869b
push ebx
push ebp
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ebx, eax
test ebx, ebx
je 0x1001869a
test esi, esi
jne 0x10018573
push 0x100
lea eax, [esp + 0x34]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea esi, [esp + 0x30]
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
mov dword [esp + 0x14], eax
call fcn.10018d30
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [esp + 0x18], eax
test eax, eax
je 0x100185db
mov ecx, edi
call fcn.1000f686
mov ecx, dword [esp + 0x18]
cmp ecx, eax
je 0x1006d8fa
push ecx
mov ecx, edi
call fcn.1000f686
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
jne 0x1006d8fa
push 3
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0x13
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov byte [edi + 0x52], 0
and dword [esp + 0x20], 0
and dword [esp + 0x24], 0
mov ecx, edi
call fcn.10018dac
cmp dword [0x1023a24c], 0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], eax
je 0x101100f1
xor eax, eax
inc eax
push 0
push dword [esp + 0x18]
lea ecx, [esp + 0x28]
push esi
mov esi, dword [sym.imp.GDI32.dll_ExtTextOutA]
push ecx
push 2
push 0
push eax
push ebx
call esi
mov eax, dword [0x1023a24c]
neg eax
sbb eax, eax
and eax, 9
add eax, 6
push eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x2c]
xor ecx, ecx
push ecx
push ecx
dec eax
push ecx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
push eax
push 2
push ecx
push ecx
push ebx
call esi
push 0
push ebx
mov ecx, edi
call fcn.1015692e
push ebx
push ebp
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [edi + 0x52], 0
jne 0x1006d923
pop ebx
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10001e57
add esp, 0x124
ret 4
push 2
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
push 9
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov byte [edi + 0x52], 1
jmp 0x100185ff
mov esi, dword [0x1023a310]
jmp 0x1006d936
push 0
mov ecx, esi
call fcn.100184f5
jmp 0x1006d94c
test esi, esi
je 0x1001869a
cmp esi, edi
je 0x1006d94c
cmp byte [esi + 0x1c], 0xa
je 0x1011011b
mov esi, dword [esi + 0x14]
jmp 0x1006d936
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push esi
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x18]
sub eax, dword [esp + 0x2c]
add eax, 2
cdq
sub eax, edx
sar eax, 1
jmp 0x1001862c
cmp byte [esi + 0x52], 0
jne 0x1006d92b
jmp 0x1006d94c