Function at 0x4cdafa
Capabilities:
Get graphical window text

Disassembly:
push 0x114
mov eax, 0x53f8ae
call fcn.0051d17e
mov esi, ecx
mov eax, dword [esi + 0xe8]
test eax, eax
jle 0x4cdb62
and dword [ebp - 0x114], 0
test eax, eax
jle 0x4cdb62
lea ebx, [esi + 0x148]
mov eax, dword [esi + 0x150]
lea edi, [eax - 1]
push edi
mov ecx, ebx
call fcn.00426b7a
mov ecx, dword [eax]
test ecx, ecx
je 0x4cdb44
mov eax, dword [ecx]
push 1
call dword [eax + 4]
push 1
push edi
mov ecx, ebx
call fcn.00490896
inc dword [ebp - 0x114]
mov eax, dword [ebp - 0x114]
cmp eax, dword [esi + 0xe8]
jl 0x4cdb26
and dword [esi + 0xe8], 0
mov ecx, esi
call fcn.004cf2e4
test eax, eax
je 0x4cdd90
mov ecx, eax
call fcn.004229e8
push eax
push 0x550480
call fcn.0042f9d8
pop ecx
pop ecx
mov dword [ebp - 0x120], eax
test eax, eax
je 0x4cdd90
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
push 5
push dword [eax + 0xe8]
call ebx
and dword [ebp - 0x114], 0
mov edi, eax
jmp 0x4cdd09
cmp dword [ebp - 0x114], 9
jge 0x4cdd11
push edi
call fcn.00421ea2
push eax
push 0x553098
call fcn.0042f9d8
pop ecx
pop ecx
test eax, eax
jne 0x4cdbe8
push 2
push edi
call ebx
mov edi, eax
jmp 0x4cdd03
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x1b4]
test eax, eax
je 0x4cdbdc
cmp dword [ebp - 0x114], 0
jne 0x4cdc47
push 0xa8
call fcn.0041be68
pop ecx
mov dword [ebp - 0x11c], eax
and dword [ebp - 4], 0
test eax, eax
je 0x4cdc23
push 1
mov ecx, eax
call fcn.004cfdda
jmp 0x4cdc25
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0xffffffffffffffff
push eax
mov ecx, esi
mov dword [eax + 0x90], 1
call fcn.004cd184
mov dword [esi + 0xe8], 1
push 0x100
lea eax, [ebp - 0x110]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x118]
call fcn.0040a830
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 0x114]
inc eax
push eax
lea eax, [ebp - 0x118]
push str._d__s
push eax
mov dword [ebp - 4], 1
call fcn.0040bd30
push 0x15c
call fcn.0041be68
add esp, 0x14
mov dword [ebp - 0x11c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4cdcc1
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x118]
mov ecx, eax
push 0xff00
call fcn.004cda84
jmp 0x4cdcc3
xor eax, eax
mov dword [eax + 0x44], edi
mov dword [eax + 0x90], 1
mov ecx, dword [esi + 0x28]
push 0xffffffffffffffff
mov dword [eax + 0x28], ecx
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004cd184
push 2
push edi
call ebx
mov ecx, dword [ebp - 0x118]
inc dword [esi + 0xe8]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
mov edi, eax
call fcn.00409e10
inc dword [ebp - 0x114]
test edi, edi
jne 0x4cdbb8
mov edi, dword [ebp - 0x120]
cmp dword [edi + 0xf4], 0
je 0x4cdd90
cmp dword [ebp - 0x114], 9
je 0x4cdd32
cmp dword [edi + 0x104], 0
je 0x4cdd90
push 0x15c
call fcn.0041be68
pop ecx
mov ecx, eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 4], 3
test ecx, ecx
je 0x4cdd6a
mov eax, dword [edi + 0xec]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push dword [edi + 0xf4]
call fcn.004cda84
jmp 0x4cdd6c
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [eax + 0x90], 1
mov ecx, dword [esi + 0x28]
push 0xffffffffffffffff
mov dword [eax + 0x28], ecx
push eax
mov ecx, esi
call fcn.004cd184
inc dword [esi + 0xe8]
call fcn.0051d201
ret