Function at 0x10052d7
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x1009004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x244]
push eax
push edi
mov dword [ebp - 0x264], edi
call dword [sym.imp.USER32.dll_BeginPaint]
mov ebx, eax
test ebx, ebx
je 0x1005590
push esi
push 6
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
push 0
push 0
push 0x31
push edi
mov dword [ebp - 0x27c], eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push ebx
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 ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xd
mov dword [ebp - 0x268], eax
call esi
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x258]
push 0xffffffffffffffeb
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [ebp - 0x250], eax
call edi
movzx eax, ax
push 0xffffffffffffffeb
push dword [ebp - 0x264]
mov dword [ebp - 0x248], eax
call edi
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
jne 0x10053ad
inc ecx
mov eax, dword [ebp - 0x248]
test eax, eax
jle 0x10053c9
imul eax, eax, 0x64
cdq
idiv ecx
mov edi, eax
cmp edi, 1
jge 0x10053cb
xor edi, edi
inc edi
jmp 0x10053cb
xor edi, edi
push ecx
push dword [ebp - 0x248]
push dword [ebp - 0x250]
call fcn.01005224
push edi
push 0x10014d4
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.01003257
add esp, 0x10
test eax, eax
jge 0x1005411
cmp eax, 0x8007007a
jne 0x1005411
xor eax, eax
mov word [ebp - 0x204], ax
xor edi, edi
mov dword [ebp - 0x248], edi
cmp word [ebp - 0x204], di
je 0x1005434
inc edi
cmp word [ebp + edi*2 - 0x204], 0
jne 0x1005422
mov dword [ebp - 0x248], edi
lea eax, [ebp - 0x278]
push eax
push edi
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
mov eax, dword [ebp - 0x250]
push 0
push edi
mov edi, dword [sym.imp.GDI32.dll_ExtTextOutW]
cdq
jne 0x100547d
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 0x10054ba
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 ebx
call edi
push 8
call esi
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 5
call esi
mov esi, dword [sym.imp.GDI32.dll_SetBkColor]
push eax
push ebx
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 ebx
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 0x100552a
push 1
jmp 0x1005543
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 ebx
call edi
push dword [ebp - 0x26c]
push ebx
call esi
push dword [ebp - 0x268]
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0x270]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x27c]
push ebx
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
xor ecx, ebp
pop ebx
call fcn.01007194
leave
ret 4