Function at 0x4111ba
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongW]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push esi
call ebx
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x411466
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
je 0x411466
push 0xfffffffffffffff0
push esi
call ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
call fcn.00410d6f
add esp, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp - 0x28]
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
push dword [ebp - 8]
mov dword [ebp - 0x30], eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [edi + 0x14]
mov dword [ebp - 0x34], eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x200
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x298]
push 0
push eax
call fcn.0049a3b0
add esp, 0xc
lea eax, [ebp - 0x298]
push 0x100
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x411305
lea eax, [ebp - 0x3c]
push eax
push esi
lea eax, [ebp - 0x298]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x411305
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x4c]
cdq
sub eax, edx
mov esi, dword [ebp - 0xc]
mov ebx, eax
mov eax, dword [ebp - 0x40]
sar ebx, 1
mov dword [ebp - 0x20], ebx
mov ecx, dword [edi + 0x1c]
add ecx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x38]
cmp ebx, ecx
cmovl ebx, ecx
sub eax, edi
sub eax, dword [ebp - 0x48]
cdq
sub eax, edx
mov dword [ebp - 0x20], ebx
mov edx, eax
mov eax, dword [ebp - 0xc]
sar edx, 1
mov dword [ebp - 0x1c], edx
mov ecx, dword [eax + 0x20]
add ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x3c]
cmp edx, ecx
cmovl edx, ecx
mov ecx, dword [ebp - 0x44]
add eax, ebx
mov dword [ebp - 0x1c], edx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
sub ecx, dword [esi + 0x24]
cmp eax, ecx
cmovg eax, ecx
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
lea eax, [edi + edx]
mov edi, esi
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x24]
sub ecx, dword [edi + 0x28]
cmp eax, ecx
jle 0x41130f
mov dword [ebp - 0x14], ecx
jmp 0x41130f
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
cmp dword [ebp + 0x14], 0
je 0x41133c
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x411329
push eax
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.USER32.dll_FillRect]
jmp 0x41133c
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0x10]
push 2
push eax
push eax
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
test dword [edi + 0x18], 6
jne 0x41134e
test dword [ebp - 4], 0x10
je 0x4113ba
lea eax, [ebp - 0x98]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
test eax, eax
je 0x4113ba
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov edx, dword [ebp - 0x58]
push dword [ebp - 8]
push ebx
lea eax, [edx + 1]
add eax, dword [ebp - 0x94]
mov dword [ebp - 0x58], eax
lea eax, [edx + 2]
add eax, dword [ebp - 0x94]
mov dword [ebp - 0x50], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
xor ecx, ecx
mov dword [ebp - 4], eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x5c]
push eax
push 2
push ecx
push ecx
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
je 0x4113ba
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
test esi, esi
je 0x411412
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.GDI32.dll_SetTextAlign]
push 0
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x20]
push eax
push 4
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x411403
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x411412
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov eax, dword [edi + 0x18]
and eax, 0x18
cmp al, 8
jne 0x41143c
push 0xffffff
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x28]
je 0x411456
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 8]
je 0x411466
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
pop edi
pop esi
pop ebx
leave
ret