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 [0x10011c0]
mov edi, eax
test edi, edi
je 0x1004f1a
push esi
push 6
push edi
call dword [0x1001030]
push 0
push 0
push 0x31
push ebx
mov dword [ebp - 0x27c], eax
call dword [0x10011bc]
push eax
call dword [fcn.01001220]
push eax
push edi
call dword [0x1001034]
mov esi, dword [0x10011b8]
push 0xe
mov dword [ebp - 0x270], eax
call esi
push eax
push edi
call dword [0x1001038]
push 0xd
mov dword [ebp - 0x268], eax
call esi
push eax
push edi
call dword [0x100103c]
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [fcn.01001198]
mov eax, dword [ebp - 0x258]
push 0xffffffffffffffeb
push ebx
mov ebx, dword [0x10011c4]
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 [0x10011a0]
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 [0x1001040]
test eax, eax
mov eax, dword [ebp - 0x250]
push 0
push ebx
mov ebx, dword [0x1001044]
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 [0x1001038]
push 5
call esi
mov esi, dword [0x100103c]
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 [0x1001040]
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 [0x1001038]
push dword [ebp - 0x270]
push edi
call dword [0x1001034]
push dword [ebp - 0x27c]
push edi
call dword [0x1001030]
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x264]
call dword [0x10011b4]
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01006e99
leave
ret 4