Function at 0x108c292
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x111121c]
push ebx
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x44]
mov ebx, ecx
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_BeginPaint]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x48], eax
je 0x108c442
mov ecx, ebx
call fcn.0105dc2f
test eax, eax
je 0x108c442
push esi
lea eax, [ebp - 0x58]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [ebx + 0x40], edi
je 0x108c314
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [ebx + 4]
jne 0x108c314
lea esi, [ebp - 0x58]
lea edi, [ebp - 0x78]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0xfffffffffffffffe
movsd dword es:[edi], dword [esi]
push 0xfffffffffffffffe
lea eax, [ebp - 0x78]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.USER32.dll_DrawFocusRect]
xor edi, edi
mov eax, dword [ebx + 0x50]
add dword [ebp - 0x58], 4
add dword [ebp - 0x54], eax
sub dword [ebp - 0x50], 4
sub dword [ebp - 0x4c], 4
cmp dword [ebx + 0x30], 0xffffffff
je 0x108c360
mov ecx, dword [0x1113528]
push 0x10
pop esi
push esi
push esi
push edi
call fcn.0104beff
cmp eax, edi
je 0x108c360
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push esi
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push dword [ebp - 0x48]
push dword [ebx + 0x30]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_DrawEx]
add dword [ebp - 0x58], 0x13
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
cmp esi, edi
jle 0x108c441
lea eax, [esi + esi + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
mov dword [ebp - 0x5c], eax
je 0x108c441
inc esi
push esi
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x108c438
mov eax, dword [ebx + 0x44]
cmp eax, edi
je 0x108c438
cmp dword [ebx + 0x40], edi
je 0x108c3b6
cmp dword [ebx + 0x48], edi
je 0x108c438
cmp dword [ebx + 0x3c], edi
je 0x108c3be
mov eax, dword [ebx + 0x48]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebx + 0x3c], edi
mov dword [ebp - 0x68], eax
je 0x108c3d7
mov eax, 0x2ff0000
jmp 0x108c3df
push dword [ebx + 0x38]
call fcn.010767fc
mov esi, dword [sym.imp.GDI32.dll_SetTextColor]
push eax
push dword [ebp - 0x48]
call esi
push dword [ebx + 0x34]
mov dword [ebp - 0x60], eax
call fcn.010767fc
mov edi, dword [sym.imp.GDI32.dll_SetBkColor]
push eax
push dword [ebp - 0x48]
call edi
push 0x810
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x58]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x5c]
push dword [ebp - 0x48]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x68]
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x60]
push dword [ebp - 0x48]
call esi
push dword [ebp - 0x64]
push dword [ebp - 0x48]
call edi
push dword [ebp - 0x5c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
lea eax, [ebp - 0x44]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0105ec09
leave
ret