Function at 0x1002a2f
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7e4
mov eax, dword [0x105405c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 0x7dc], eax
mov byte [ebp - 0x7d5], 0
je 0x1024c88
cmp dword [ebp + 8], 0x111
je 0x1002ed2
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x7d5]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001e8f
leave
ret 0xc
mov ebx, dword [ebp + 0xc]
mov eax, ebx
shr eax, 0x10
movzx ecx, ax
mov dword [ebp - 0x7e4], 6
test ecx, ecx
jl 0x1002f2f
cmp ecx, 1
jg 0x1024db6
test ax, ax
jne 0x1029b84
mov esi, dword [0x105592c]
push 0x100234c
push esi
mov dword [ebp - 0x7e0], esi
call fcn.010022f5
test al, al
jne 0x1029b91
push 0x1002f58
push esi
call fcn.010022f5
test al, al
jne 0x1029c60
push 0x1002f58
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.010022f5
test al, al
jne 0x1002a74
push dword [ebp - 0x7dc]
call fcn.01002e10
jmp 0x1002a74
call dword [sym.imp.USER32.dll_GetFocus]
mov ebx, eax
mov eax, dword [0x1054320]
mov eax, dword [eax + 8]
mov esi, dword [eax + 4]
push ebx
call edi
cmp esi, eax
jne 0x1002f2f
jmp 0x1029b58
push dword [ebp - 0x7e4]
push esi
call fcn.0101b30e
test al, al
je 0x101b2e4
mov word [ebp + edi*2 - 0x3ec], si
inc edi
movzx esi, word [ebp + ebx*2 - 0x7d2]
inc ebx
test si, si
jne 0x101b2cb
xor eax, eax
mov word [ebp + edi*2 - 0x3ec], ax
cmp ebx, edi
je 0x1002f2f
jmp 0x1029b05
call dword [sym.imp.USER32.dll_GetFocus]
mov ebx, eax
mov eax, dword [0x1054320]
mov eax, dword [eax + 8]
mov esi, dword [eax + 4]
push ebx
call edi
cmp esi, eax
jne 0x1002a74
jmp 0x1029ab9
cmp ecx, 3
jle 0x1002f2f
cmp ecx, 5
jle 0x10086d0
cmp ecx, 7
je 0x10086d0
cmp ecx, 0x200
je 0x10086d0
cmp ecx, 0x400
jne 0x1002f2f
mov eax, dword [ebp - 0x7dc]
mov dword [ebp - 0x7e0], eax
lea eax, [ebp - 0x7e4]
push eax
lea eax, [ebp - 0x7e0]
push eax
mov ecx, 0x1054a90
call fcn.01024c5f
test al, al
je 0x1002f2f
cmp byte [0x1055996], 0
jne 0x1029af9
mov esi, 0x1f4
push esi
lea eax, [ebp - 0x3ec]
push eax
push dword [ebp - 0x7dc]
xor edi, edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x3ec]
push eax
push esi
lea eax, [ebp - 0x7d4]
push eax
call fcn.010030e1
xor ebx, ebx
cmp word [ebp - 0x7d4], bx
je 0x101b2f2
movzx esi, word [ebp - 0x7d4]
jmp 0x101b2cb
mov esi, dword [ebp - 0x7dc]
test esi, esi
je 0x1002a74
cmp dword [0x10542ec], 3
je 0x1029adb
mov dword [0x105592c], esi
jmp 0x1002a74
push 0x1002b5c
push ebx
call fcn.010022f5
test al, al
je 0x1002a74
mov dword [0x105592c], esi
jmp 0x1002a67
mov byte [ebp - 0x7d5], 1
jmp 0x1002f2f
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push eax
push 0xb0
push dword [ebp - 0x7dc]
call esi
mov edi, eax
lea eax, [ebp - 0x3ec]
push eax
push dword [ebp - 0x7dc]
mov byte [0x1055996], 1
call dword [sym.imp.USER32.dll_SetWindowTextW]
movzx eax, di
lea ecx, [eax - 1]
push ecx
dec eax
push eax
push 0xb1
push dword [ebp - 0x7dc]
mov byte [0x1055996], 0
call esi
jmp 0x1002f2f
cmp dword [0x10542ec], 3
jne 0x1029b74
push 0x1002b5c
push ebx
call fcn.010022f5
test al, al
je 0x1002f2f
mov eax, dword [ebp - 0x7dc]
mov dword [0x105592c], eax
jmp 0x1002f2f
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
jmp 0x1002f03
push 0x53
pop eax
mov byte [ebp - 0x7d5], 1
cmp ax, bx
jne 0x1029ba9
push 0
push 8
jmp 0x1029c41
mov eax, 0x12d
cmp ax, bx
jne 0x1029bc1
push 0
push 0
push 0x302
jmp 0x1029c46
mov eax, 0x12c
cmp ax, bx
jne 0x1029bd6
push 0
push 0
push 0x301
jmp 0x1029c46
mov eax, 0xa8
cmp ax, bx
je 0x1029c3d
push 0x79
pop eax
cmp ax, bx
je 0x1029c3d
lea eax, [ebp - 0x7e4]
push eax
lea eax, [ebp - 0x7e0]
push eax
mov ecx, 0x1054a90
call fcn.01024c5f
test al, al
je 0x1029c4d
movzx edx, bx
push edx
call fcn.01039b19
test al, al
je 0x1029c1a
mov byte [ebp - 0x7d5], 0
jmp 0x1029c4d
push dword [ebp - 0x7e4]
push edx
call fcn.01039a93
test al, al
je 0x1029c4d
push edx
call fcn.01039b9a
test eax, eax
je 0x1029c4d
push eax
push esi
call fcn.01039a60
jmp 0x1029c4d
push 0
push 0xd
push 0x102
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
and dword [0x105592c], 0
jmp 0x1002a74
movzx eax, bx
push eax
call fcn.01039b19
test al, al
jne 0x1002f2f
push esi
mov byte [ebp - 0x7d5], 1
call dword [sym.imp.USER32.dll_SetFocus]
and dword [0x105592c], 0
jmp 0x1002f2f