Function at 0x451f70
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebx, edx
mov edx, dword [edi + 4]
test edx, edx
je 0x45219e
mov eax, dword [edi + 8]
test eax, eax
je 0x45219e
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x451f93
sub eax, esi
cmp eax, 0x5a
jbe 0x451fa4
mov byte [edx + 0x5a], cl
mov ebp, dword [esp + 0x18]
mov ecx, dword [edi + 4]
mov edx, ebp
call fcn.004f11f0
test eax, eax
mov dword [esp + 0x18], eax
je 0x451fc3
cmp dword [eax + 0x71c], 9
je 0x451fd7
mov edx, dword [edi]
push 7
push 0
xor ecx, ecx
call fcn.004803b0
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov edx, dword [edi + 8]
mov eax, edx
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x451fe0
sub eax, esi
cmp eax, 0x5a
jbe 0x451ff1
mov byte [edx + 0x5a], cl
mov ecx, dword [edi + 8]
cmp byte [ecx], 0x40
jne 0x45218a
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x452002
sub eax, esi
cmp eax, 1
jbe 0x45218a
call fcn.00561060
test eax, eax
jne 0x45218a
mov ecx, dword [edi + 8]
mov edx, ebp
call fcn.004f11f0
test eax, eax
je 0x452063
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push eax
push ecx
call fcn.005a299c
add esp, 8
test eax, eax
je 0x452063
push 6
push 0
xor edx, edx
mov ecx, 0x397
call fcn.0041f1a0
mov edx, eax
xor ecx, ecx
call fcn.004803b0
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ebp, dword [esp + 0x18]
mov edx, dword [edi + 8]
lea eax, [ebp + 8]
mov esi, eax
nop
mov cl, byte [edx]
inc edx
mov byte [esi], cl
inc esi
test cl, cl
jne 0x452070
mov edx, ebx
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x452080
mov eax, dword [edi + 0xc]
test eax, eax
mov esi, dword [esp + 0x14]
je 0x4520f8
mov byte [esi], cl
push edi
mov edx, esi
mov ecx, 3
call fcn.005039a0
cmp byte [esi], 0
je 0x452148
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4520b0
mov dx, word [0x5a5348]
mov eax, esi
mov word [edi], dx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4520c6
mov edi, ebx
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4520d4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, 0xf
mov ecx, ebx
call fcn.00537560
jmp 0x452148
mov eax, dword [ebp]
push 0x104
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [esi], 0
je 0x452148
push 0x20
push esi
call fcn.005912e0
add esp, 8
test eax, eax
je 0x452148
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x452120
mov edi, ebx
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x452130
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x760]
test ecx, ecx
mov eax, ebx
je 0x45215c
cmp byte [ebx], 0x40
jne 0x45215c
lea eax, [ebx + 1]
mov ecx, dword [ebp]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [0x5f92e4]
call fcn.00531ff0
xor ecx, ecx
mov dword [0x5f92e4], eax
call fcn.0053b590
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
mov edx, dword [edi]
push 3
push 0
xor ecx, ecx
call fcn.004803b0
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov edx, dword [edi]
push 0
push 0
xor ecx, ecx
call fcn.004803b0
pop edi
pop esi
pop ebp
pop ebx
ret 8