Function at 0x1004c7b
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x1009088]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x244]
push eax
push ebx
mov dword [ebp - 0x264], ebx
call dword [sym.imp.USER32.dll_BeginPaint]
mov edi, eax
test edi, edi
je 0x1004f1a
push esi
push 6
push edi
call dword [sym.imp.GDI32.dll_SetTextAlign]
push 0
push 0
push 0x31
push ebx
mov dword [ebp - 0x27c], eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 0xe
mov dword [ebp - 0x270], eax
call esi
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xd
mov dword [ebp - 0x268], eax
call esi
push eax
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x258]
push 0xffffffffffffffeb
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [ebp - 0x250], eax
call ebx
movzx eax, ax
push 0xffffffffffffffeb
push dword [ebp - 0x264]
mov dword [ebp - 0x248], eax
call ebx
mov ecx, eax
shr ecx, 0x10
jne 0x1004d4f
xor ecx, ecx
inc ecx
mov eax, dword [ebp - 0x248]
test eax, eax
jle 0x1004d6b
imul eax, eax, 0x64
cdq
idiv ecx
mov ebx, eax
cmp ebx, 1
jge 0x1004d6d
xor ebx, ebx
inc ebx
jmp 0x1004d6d
xor ebx, ebx
push ecx
push dword [ebp - 0x248]
push dword [ebp - 0x250]
call fcn.01004c53
push ebx
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x204]
push 0x1001378
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
xor ebx, ebx
add esp, 0xc
cmp word [ebp - 0x204], bx
mov dword [ebp - 0x248], ebx
je 0x1004dbe
inc ebx
cmp word [ebp + ebx*2 - 0x204], 0
jne 0x1004dac
mov dword [ebp - 0x248], ebx
lea eax, [ebp - 0x278]
push eax
push ebx
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
mov eax, dword [ebp - 0x250]
push 0
push ebx
mov ebx, dword [sym.imp.GDI32.dll_ExtTextOutW]
cdq
jne 0x1004e07
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x260]
push ecx
push 6
sub eax, edx
sar eax, 1
push 1
mov dword [ebp - 0x24c], eax
push eax
jmp 0x1004e44
sub eax, edx
mov dword [ebp - 0x24c], eax
sar dword [ebp - 0x24c], 1
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x260]
push eax
mov eax, dword [ebp - 0x254]
sub eax, dword [ebp - 0x274]
push 6
sub eax, dword [ebp - 0x25c]
inc eax
cdq
sub eax, edx
sar eax, 1
push eax
push dword [ebp - 0x24c]
push edi
call ebx
push 8
call esi
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 5
call esi
mov esi, dword [sym.imp.GDI32.dll_SetBkColor]
push eax
push edi
call esi
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x248]
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push 0
push dword [ebp - 0x248]
test eax, eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x260]
push eax
push 6
jne 0x1004eb4
push 1
jmp 0x1004ecd
mov eax, dword [ebp - 0x254]
sub eax, dword [ebp - 0x274]
sub eax, dword [ebp - 0x25c]
inc eax
cdq
sub eax, edx
sar eax, 1
push eax
push dword [ebp - 0x24c]
push edi
call ebx
push dword [ebp - 0x26c]
push edi
call esi
push dword [ebp - 0x268]
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0x270]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x27c]
push edi
call dword [sym.imp.GDI32.dll_SetTextAlign]
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.USER32.dll_EndPaint]
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01006e99
leave
ret 4