Function at 0x451680
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x565300]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
jne 0x451a7c
mov eax, dword [ebp + 0xc]
cmp eax, 0x111
jne 0x4516ec
movzx eax, word [ebp + 0x10]
lea edx, [ebp - 0x210]
add ecx, 0xfffffed0
mov dword [ebp - 0x210], eax
push edx
push 0x1fb
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov dword [edi], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ea5d
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x102
jne 0x45179f
mov eax, dword [ecx + 0x38]
lea ebx, [ecx - 0x130]
mov ecx, dword [ebx + 0x16c]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x210], edx
cmp eax, ecx
je 0x45171e
cmp dword [eax], edx
je 0x451781
add eax, 4
cmp eax, ecx
jne 0x451713
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], eax
lea ecx, [ebp - 0x218]
mov eax, dword [ebx]
push ecx
push 0x1f4
mov ecx, ebx
call dword [eax + 0x2c]
mov esi, dword [ebp - 0x214]
push 0xfffffffffffffff0
push dword [ebx + 0x134]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 4
mov eax, 1
jne 0x45176e
cmp dword [ebp - 0x210], 0xd
cmove esi, eax
mov dword [edi], 0
test esi, esi
jne 0x451a7e
jmp 0x451a7c
mov dword [edi], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ea5d
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 8
jne 0x4517fe
lea esi, [ecx - 0x130]
mov ecx, dword [esi + 0x188]
test ecx, ecx
je 0x4517b9
mov eax, dword [ecx]
call dword [eax + 8]
push dword [esi + 0x134]
mov dword [esi + 0x154], 0
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jne 0x4517ef
push dword [esi + 0x160]
mov dword [esi + 0x15c], 1
push dword [esi + 0x134]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esi]
mov ecx, esi
push esi
push 0x1f5
jmp 0x451a73
cmp eax, 7
jne 0x4518a5
lea esi, [ecx - 0x130]
mov ecx, dword [esi + 0x188]
test ecx, ecx
je 0x45181c
mov eax, dword [ecx]
call dword [eax + 4]
push 0x104
lea eax, [ebp - 0x20c]
mov dword [esi + 0x154], 1
push eax
push dword [esi + 0x134]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 0x160]
lea ecx, [ebp - 0x20c]
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x451876
test dx, dx
je 0x451872
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x451876
add eax, 4
add ecx, 4
test dx, dx
jne 0x451850
xor eax, eax
jmp 0x45187b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x451896
push 0x52ca68
push dword [esi + 0x134]
mov dword [esi + 0x15c], eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esi]
mov ecx, esi
push esi
push 0x1fc
jmp 0x451a73
cmp eax, 0x20a
jne 0x4518e1
push dword [ebp + 0x10]
mov eax, dword [ecx - 0x130]
add ecx, 0xfffffed0
push 0x1f8
call dword [eax + 0x2c]
mov dword [edi], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ea5d
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x2135
jne 0x451914
sub esp, 8
push dword [ebp + 0x10]
push ecx
add ecx, 0xfffffed0
call fcn.00452620
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ea5d
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x2133
je 0x4518e8
cmp eax, 0x2138
je 0x4518e8
cmp eax, 0x100
jne 0x451971
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push ecx
push dword [ebp + 0x10]
push ecx
add ecx, 0xfffffed0
call fcn.00452870
cmp dword [ebp - 0x210], 0
mov dword [edi], eax
je 0x451a7c
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ea5d
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x101
jne 0x4519b6
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x210]
add ecx, 0xfffffed0
mov dword [ebp - 0x210], eax
push edx
push 0x1fa
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov dword [edi], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ea5d
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x104
jne 0x4519fe
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push ecx
push dword [ebp + 0x10]
push ecx
add ecx, 0xfffffed0
call fcn.00452870
mov dword [edi], eax
xor eax, eax
cmp dword [ebp - 0x210], eax
pop edi
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ea5d
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x105
je 0x451978
cmp eax, 0x14
je 0x4516ce
cmp eax, 0x2111
jne 0x451a7c
mov eax, dword [ebp + 0x10]
mov esi, 0x300
shr eax, 0x10
mov edx, eax
cmp si, ax
jne 0x451a56
mov eax, dword [ecx - 0x130]
lea esi, [ecx - 0x130]
push 1
push 0
mov ecx, esi
call dword [eax + 0x134]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi]
mov ecx, esi
push esi
push 0x1f6
jmp 0x451a73
mov eax, 0x400
cmp ax, dx
jne 0x451a7c
mov eax, dword [ecx - 0x130]
add ecx, 0xfffffed0
push 0
push 0x1f9
call dword [eax + 0x2c]
mov dword [edi], 0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050ea5d
mov esp, ebp
pop ebp
ret 0x18