Function at 0x1003116
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48c
mov eax, dword [0x1009088]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [0x10092ec]
test eax, eax
push esi
push edi
mov dword [ebp - 0x418], ebx
je 0x1003148
push eax
push 0xfffffffffffffff2
push ebx
call dword [0x1001224]
push 0x3f2
push ebx
push 0
push 0x50000000
call dword [0x100101c]
mov dword [0x10090a4], eax
push 0xd
lea eax, [ebp - 0x20c]
push eax
call fcn.01005095
mov eax, dword [0x1009d28]
mov ecx, dword [0x1009d30]
mov edx, dword [0x1009d2c]
mov esi, eax
sub esi, ecx
sub esi, edx
push esi
push ecx
push edx
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [0x10011a0]
mov esi, dword [fcn.01001220]
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
push 0
push 0xc
push dword [0x10090a4]
call esi
mov edi, dword [0x100119c]
push 0x1009d70
push ebx
call edi
lea eax, [ebp - 0x47c]
push eax
push ebx
call dword [fcn.01001198]
lea eax, [ebp - 0x46c]
push eax
push ebx
call edi
lea eax, [ebp - 0x42c]
push eax
push 0x3f9
push ebx
mov ebx, dword [0x10011a4]
call ebx
push eax
call edi
lea eax, [ebp - 0x48c]
push eax
push dword [0x10090a4]
call edi
lea eax, [ebp - 0x43c]
push eax
push 2
push dword [ebp - 0x418]
call ebx
push eax
call edi
push 0xffffffffffffffec
push dword [ebp - 0x418]
call dword [0x10011c4]
test eax, 0x400000
je 0x1003243
mov eax, dword [ebp - 0x424]
sub eax, dword [ebp - 0x46c]
sub eax, dword [ebp - 0x434]
jmp 0x1003269
mov eax, dword [ebp - 0x46c]
sub eax, dword [ebp - 0x42c]
push 3
shl eax, 1
cdq
pop ecx
idiv ecx
sub eax, dword [ebp - 0x42c]
sub eax, dword [ebp - 0x434]
add eax, dword [ebp - 0x464]
mov edx, dword [ebp - 0x438]
mov ecx, dword [ebp - 0x430]
add eax, dword [ebp - 0x43c]
sub ecx, edx
push 1
push ecx
mov ecx, dword [ebp - 0x434]
sub ecx, dword [ebp - 0x43c]
push ecx
mov ecx, dword [ebp - 0x488]
sub ecx, dword [ebp - 0x480]
sub ecx, dword [ebp - 0x478]
sub ecx, dword [ebp - 0x430]
add ecx, dword [ebp - 0x470]
lea ecx, [ecx + edx - 0xa]
push ecx
push eax
push 2
push dword [ebp - 0x418]
call ebx
push eax
call dword [0x1001194]
lea eax, [ebp - 0x43c]
push eax
push 2
push dword [ebp - 0x418]
call ebx
push eax
call edi
mov ecx, dword [ebp - 0x420]
mov eax, dword [ebp - 0x438]
mov edi, dword [ebp - 0x46c]
push 0
push dword [0x10092f0]
sub eax, ecx
sub ecx, dword [ebp - 0x428]
push 0x3f1
push dword [ebp - 0x418]
sub eax, 0x14
push eax
mov eax, dword [ebp - 0x42c]
lea edx, [eax + eax]
sub eax, dword [ebp - 0x46c]
sub edi, edx
add edi, dword [ebp - 0x464]
shl ecx, 1
push edi
push ecx
push 3
pop ecx
shl eax, 1
cdq
idiv ecx
push eax
push 0x50a10145
push 0x1001320
push 0x1001304
push 0x200
call dword [0x1001190]
test eax, eax
mov dword [0x10090a0], eax
je 0x1003526
push eax
call fcn.01002db1
mov eax, dword [ebp - 0x424]
sub eax, dword [ebp - 0x42c]
push 5
cdq
pop ecx
idiv ecx
and dword [ebp - 0x458], 0
push 1
mov dword [ebp - 0x45c], 7
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x450], eax
call fcn.01005095
lea eax, [ebp - 0x45c]
push eax
push 0
mov edi, 0x1061
push edi
push dword [0x10090a0]
mov dword [ebp - 0x44c], 0x104
call esi
mov eax, dword [ebp - 0x454]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp - 0x424]
sub eax, dword [ebp - 0x42c]
push 4
cdq
pop ecx
idiv ecx
push 2
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01005095
lea eax, [ebp - 0x45c]
push eax
push 1
push edi
push dword [0x10090a0]
call esi
mov eax, dword [ebp - 0x454]
add dword [ebp - 0x41c], eax
mov eax, dword [ebp - 0x424]
sub eax, dword [ebp - 0x42c]
push 6
cdq
pop ecx
idiv ecx
push 7
mov dword [ebp - 0x458], 2
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01005095
lea eax, [ebp - 0x45c]
push eax
push 2
push edi
push dword [0x10090a0]
call esi
mov eax, dword [ebp - 0x454]
add dword [ebp - 0x41c], eax
mov eax, dword [ebp - 0x424]
sub eax, dword [ebp - 0x42c]
push 6
cdq
pop ecx
idiv ecx
push 4
mov dword [ebp - 0x458], 2
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01005095
lea eax, [ebp - 0x45c]
push eax
push 3
push edi
push dword [0x10090a0]
call esi
mov eax, dword [ebp - 0x424]
sub eax, dword [ebp - 0x454]
push 5
sub eax, dword [ebp - 0x42c]
mov dword [ebp - 0x458], 2
sub eax, dword [ebp - 0x41c]
sub eax, 5
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01005095
lea eax, [ebp - 0x45c]
push eax
push 4
push edi
push dword [0x10090a0]
call esi
call fcn.01002e86
push dword [0x10092e0]
mov esi, dword [0x100118c]
xor eax, eax
mov dword [0x10090a8], eax
mov dword [0x10090ac], eax
mov dword [0x10090b0], eax
mov dword [0x10090b4], eax
call esi
push dword [ebp - 0x418]
call esi
push 2
push dword [ebp - 0x418]
call ebx
push eax
call dword [0x1001188]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01006e99
leave
ret 0xc