Function at 0x413116
Capabilities:
Get graphical window text

Disassembly:
push 0x2fc
mov eax, 0x48d618
call fcn.00474ec1
mov esi, ecx
mov dword [ebp - 0x308], esi
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
add dword [ebp - 0x20], 0xf
lea eax, [ebp - 0xa8]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp byte [edi + 0x34], bl
je 0x413163
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
jmp 0x413182
push dword [edi + 0x2c]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
push dword [edi + 0x2c]
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push ebx
lea ecx, [ebp - 0x2f8]
mov eax, 0x1f4
push ecx
push eax
push 0x29
mov dword [ebp - 0x2f8], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [ebp - 0x304], eax
mov byte [ebp - 4], 1
push dword [edi + 0x30]
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp byte [edi + 0x7c], bl
jne 0x4132cb
mov dword [ebp - 0x300], ebx
push 1
mov byte [ebp - 4], 2
movzx eax, byte [edi + 0x74]
push eax
push ebx
push 0xffffffffffffffff
mov eax, 0xfde9
push eax
push eax
sub esp, 0x1c
lea eax, [edi + 0x54]
mov ecx, esp
mov dword [ebp - 0x2fc], esp
push eax
call fcn.004016f0
lea eax, [ebp - 0x98]
push eax
call fcn.00456b26
add esp, 0x2c
cmp dword [eax + 0x14], 8
jb 0x41320e
mov eax, dword [eax]
push dword [edi + 0x78]
lea ecx, [ebp - 0x300]
push ecx
mov esi, eax
call fcn.00412926
push ebx
push 1
lea ecx, [ebp - 0x98]
call fcn.0040bba0
mov esi, dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [ebp - 0x7c]
push eax
push 0x5c
push dword [ebp - 0x304]
call esi
lea eax, [ebp - 0x104]
push eax
push 0x5c
push dword [ebp - 0x300]
call esi
mov eax, dword [edi + 0x78]
cmp eax, 0xffffffff
jne 0x41325f
mov eax, dword [ebp - 0x7c]
jmp 0x413261
neg eax
lea ecx, [ebp - 0xe8]
push ecx
push dword [ebp - 0x61]
movzx ecx, byte [edi + 0x76]
push dword [ebp - 0x62]
mov dword [ebp - 0x2fc], ebx
push dword [ebp - 0x63]
push dword [ebp - 0x64]
push dword [ebp - 0x65]
push ebx
push ecx
movzx ecx, byte [edi + 0x75]
push ecx
push dword [ebp - 0xf4]
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push eax
lea eax, [ebp - 0x2fc]
push eax
call fcn.004128db
push dword [ebp - 0x2fc]
push dword [ebp - 0x308]
call dword [sym.imp.GDI32.dll_SelectObject]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x300], ebx
je 0x4132cb
push dword [ebp - 0x300]
call dword [sym.imp.GDI32.dll_DeleteObject]
push 1
push 0xd
push 0xd
push 2
push ebx
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_MoveWindow]
push dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_GetWindowTextLengthW]
call esi
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045c4ea
pop ecx
push dword [edi + 4]
mov dword [ebp - 0x2fc], eax
call esi
mov esi, dword [ebp - 0x2fc]
inc eax
push eax
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x2010
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
push esi
push dword [ebp - 0x308]
call dword [sym.imp.USER32.dll_DrawTextW]
cmp esi, ebx
je 0x41333e
push esi
call fcn.0046d5a8
pop ecx
cmp dword [ebp - 0x304], ebx
je 0x413352
push dword [ebp - 0x304]
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
inc eax
call fcn.00474f44
ret