Function at 0x101fd59
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7e4
mov eax, dword [0x104e830]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 8
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push esi
mov esi, dword [sym.imp.USER32.dll_GetFocus]
push edi
mov dword [ebp - 0x7dc], eax
mov byte [ebp - 0x7d5], 0
jne 0x101fdbf
call esi
mov ecx, dword [0x104f030]
mov ecx, dword [ecx + 8]
mov edi, dword [ecx + 4]
push eax
call ebx
cmp edi, eax
jne 0x1020155
mov eax, dword [ebp - 0x7dc]
test eax, eax
je 0x1020155
mov dword [0x104fa0c], eax
cmp dword [ebp + 8], 0x111
jne 0x1020155
mov eax, dword [ebp + 0xc]
shr eax, 0x10
movzx ecx, ax
push 5
pop edx
mov dword [ebp - 0x7e4], edx
test ecx, ecx
jl 0x10200c7
cmp ecx, 1
jle 0x101ff58
cmp ecx, 3
jle 0x10200c7
cmp ecx, edx
jle 0x101ff2f
cmp ecx, 7
je 0x101ff2f
cmp ecx, 0x200
je 0x101ff2f
cmp ecx, 0x400
jne 0x10200c7
mov eax, dword [ebp - 0x7dc]
mov dword [ebp - 0x7e0], eax
lea eax, [ebp - 0x7e4]
push eax
lea eax, [ebp - 0x7e0]
push eax
mov ecx, 0x104e328
call fcn.0101fc30
test al, al
je 0x10200c7
cmp byte [0x104fa10], 0
je 0x101fe62
mov byte [ebp - 0x7d5], 1
jmp 0x10200c7
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.01005c3e
xor ebx, ebx
cmp word [ebp - 0x7d4], bx
je 0x101feca
movzx esi, word [ebp - 0x7d4]
push dword [ebp - 0x7e4]
push esi
call fcn.0101f934
test al, al
je 0x101febc
mov word [ebp + edi*2 - 0x3ec], si
inc edi
movzx esi, word [ebp + ebx*2 - 0x7d2]
inc ebx
test si, si
jne 0x101fea3
xor eax, eax
mov word [ebp + edi*2 - 0x3ec], ax
cmp ebx, edi
je 0x10200c7
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 [0x104fa10], 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 [0x104fa10], 0
call esi
jmp 0x10200c7
call esi
mov ecx, dword [0x104f030]
mov ecx, dword [ecx + 8]
mov esi, dword [ecx + 4]
push eax
call ebx
cmp esi, eax
jne 0x10200c7
mov eax, dword [ebp - 0x7dc]
mov dword [0x104fa0c], eax
jmp 0x10200c7
test ax, ax
jne 0x101ff65
mov edi, dword [0x104fa0c]
jmp 0x101ff69
call esi
mov edi, eax
push 0x1001d00
push edi
mov dword [ebp - 0x7e0], edi
call fcn.010088ab
test al, al
je 0x10200a3
mov esi, dword [ebp + 0xc]
push 0x53
pop eax
mov byte [ebp - 0x7d5], 1
cmp ax, si
jne 0x101ff9d
push 0
push 8
jmp 0x1020084
mov eax, 0x12d
cmp ax, si
jne 0x101ffb5
push 0
push 0
push 0x302
jmp 0x1020089
mov eax, 0x12c
cmp ax, si
jne 0x101ffcd
push 0
push 0
push 0x301
jmp 0x1020089
mov eax, 0x9b
cmp ax, si
jne 0x101ffef
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x25
push 0x100
push edi
call esi
push 0
push 0x25
jmp 0x102000f
mov eax, 0x9c
cmp ax, si
jne 0x1020019
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x27
push 0x100
push edi
call esi
push 0
push 0x27
push 0x101
push edi
call esi
jmp 0x1020090
mov eax, 0xa8
cmp ax, si
je 0x1020080
push 0x79
pop eax
cmp ax, si
je 0x1020080
lea eax, [ebp - 0x7e4]
push eax
lea eax, [ebp - 0x7e0]
push eax
mov ecx, 0x104e328
call fcn.0101fc30
test al, al
je 0x1020090
movzx edx, si
push edx
call fcn.0101fa4d
test al, al
je 0x102005d
mov byte [ebp - 0x7d5], 0
jmp 0x1020090
push dword [ebp - 0x7e4]
push edx
call fcn.0101f9c7
test al, al
je 0x1020090
push edx
call fcn.0101fab9
test eax, eax
je 0x1020090
push eax
push edi
call fcn.0101f901
jmp 0x1020090
push 0
push 0xd
push 0x102
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
and dword [0x104fa0c], 0
jmp 0x1020155
push 0x1002d58
push edi
call fcn.010088ab
test al, al
je 0x10200c7
push edi
mov byte [ebp - 0x7d5], 1
call dword [sym.imp.USER32.dll_SetFocus]
and dword [0x104fa0c], 0
mov esi, dword [ebp - 0x7dc]
push 0x1002d58
push esi
call fcn.010088ab
test al, al
jne 0x1020142
push 0x1001d00
push esi
call fcn.010088ab
test al, al
jne 0x1020142
push 0x1002d44
push esi
call fcn.010088ab
test al, al
jne 0x1020142
push 0x1001d90
push esi
call fcn.010088ab
test al, al
je 0x1020131
push 0xfffffffffffffff4
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
add eax, 0xffffff13
cmp eax, 5
jbe 0x1020142
call fcn.01029bec
mov ecx, eax
call fcn.01029a61
mov ecx, eax
call fcn.01011295
jmp 0x1020155
push 0x1002d34
push esi
call fcn.010088ab
test al, al
je 0x1020155
jmp 0x102011c
call fcn.01029bec
mov ecx, eax
call fcn.01029a61
mov ecx, eax
call fcn.0101126d
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x7d5]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01038325
leave
ret 0xc