Function at 0x40cfd1
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4c9ea0
call fcn.0049cca0
sub esp, 0x50
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push ebx
mov dword [ebp - 0x10], esi
call fcn.0040cf63
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
push 0
push 0xf2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
lea esi, [ebp - 0x3c]
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x3c]
add eax, 0xd
mov ecx, 0x570324
movsd dword es:[edi], dword [esi]
inc dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
add eax, 0xd
mov dword [ebp - 0x20], eax
call fcn.00416718
test eax, eax
je 0x40d0ec
mov esi, dword [ebp - 0x10]
xor edi, edi
push edi
push edi
push 0xf0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, edi
mov ecx, esi
je 0x40d085
call fcn.004bcd72
test eax, eax
jne 0x40d06a
push 8
jmp 0x40d09e
mov eax, dword [ebp - 0x14]
and eax, 4
cmp al, 4
jne 0x40d078
push 7
jmp 0x40d09e
xor eax, eax
cmp dword [esi + 0x40], edi
setne al
add eax, 5
jmp 0x40d0aa
call fcn.004bcd72
test eax, eax
jne 0x40d092
push 4
jmp 0x40d09e
mov eax, dword [ebp - 0x14]
and eax, 4
cmp al, 4
jne 0x40d0a1
push 3
pop edi
jmp 0x40d0ac
xor eax, eax
cmp dword [esi + 0x40], edi
setne al
inc eax
mov edi, eax
lea ecx, [ebp - 0x1c]
call fcn.00411a7d
and dword [ebp - 4], 0
push str.Button
push dword [esi + 0x1c]
lea ecx, [ebp - 0x1c]
call fcn.00411af6
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push 3
push dword [ebx + 4]
call fcn.00411b7b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00411aa6
jmp 0x40d11a
mov eax, dword [ebp - 0x10]
xor esi, esi
push esi
push esi
push 0xf0
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, esi
je 0x40d10a
mov esi, 0x400
push esi
lea eax, [ebp - 0x2c]
push 4
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DrawFrameControl]
lea esi, [ebp - 0x3c]
lea edi, [ebp - 0x4c]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add eax, 0x10
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x4c], eax
mov eax, dword [0x56bd50]
mov dword [ebp + 8], eax
mov esi, dword [ebp - 0x10]
push 1
pop edi
lea eax, [ebp + 8]
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.004baa54
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x40d1b5
push edi
mov ecx, ebx
call fcn.004bec63
push dword [esi + 0x3c]
mov edi, eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x30]
mov edx, dword [ebx]
mov ecx, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edx
call fcn.0040462b
push eax
mov eax, dword [ebp - 0x10]
mov ecx, ebx
call dword [eax + 0x28]
mov edx, dword [ebx]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x4c]
push 0x8024
push esi
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, ebx
call dword [edx + 0x68]
mov eax, dword [ebx]
push dword [ebp - 0x10]
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
push dword [ebp - 0x18]
mov ecx, ebx
call dword [eax + 0x30]
push edi
mov ecx, ebx
call fcn.004bec63
test byte [ebp - 0x14], 8
je 0x40d1dc
lea esi, [ebp - 0x4c]
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
dec eax
movsd dword es:[edi], dword [esi]
dec dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DrawFocusRect]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004b95ce
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4