Function at 0x40cfde
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4c9e50
call fcn.0049cc64
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.0040cf70
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, 0x5701e4
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.0041672a
test eax, eax
je 0x40d0f9
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 0x40d092
call fcn.004bcd1f
test eax, eax
jne 0x40d077
push 8
jmp 0x40d0ab
mov eax, dword [ebp - 0x14]
and eax, 4
cmp al, 4
jne 0x40d085
push 7
jmp 0x40d0ab
xor eax, eax
cmp dword [esi + 0x40], edi
setne al
add eax, 5
jmp 0x40d0b7
call fcn.004bcd1f
test eax, eax
jne 0x40d09f
push 4
jmp 0x40d0ab
mov eax, dword [ebp - 0x14]
and eax, 4
cmp al, 4
jne 0x40d0ae
push 3
pop edi
jmp 0x40d0b9
xor eax, eax
cmp dword [esi + 0x40], edi
setne al
inc eax
mov edi, eax
lea ecx, [ebp - 0x1c]
call fcn.00411a86
and dword [ebp - 4], 0
push str.Button
push dword [esi + 0x1c]
lea ecx, [ebp - 0x1c]
call fcn.00411aff
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.00411b84
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00411aaf
jmp 0x40d127
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 0x40d117
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 [0x56bc10]
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.004baa04
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x40d1c2
push edi
mov ecx, ebx
call fcn.004bec13
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.00404631
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.004bec13
test byte [ebp - 0x14], 8
je 0x40d1e9
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.004b957e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4