Function at 0x51dd70
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
mov ecx, edi
mov ebp, edx
call fcn.004dbea0
test eax, eax
jne 0x51dd8e
pop edi
pop esi
pop ebp
pop ecx
ret 4
test ebp, ebp
push ebx
je 0x51de4b
mov esi, dword [edi + 0x1fa0]
xor ebx, ebx
test esi, esi
je 0x51dde9
mov eax, dword [esi]
push ebp
push eax
call fcn.00572b46
add esp, 8
test eax, eax
je 0x51ddbc
mov esi, dword [esi + 0x40]
test esi, esi
jne 0x51dda3
jmp 0x51dde9
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x51ddd1
mov eax, dword [esi + 0x40]
test eax, eax
je 0x51ddd1
mov dword [eax + 0x1c], 1
mov ecx, dword [edi + 0x1fa0]
mov edx, esi
call fcn.004c2730
mov dword [edi + 0x1fa0], eax
mov ebx, 1
mov esi, dword [edi + 0x1fa4]
test esi, esi
je 0x51de41
mov ecx, dword [esi]
push ebp
push ecx
call fcn.00572b46
add esp, 8
test eax, eax
je 0x51de14
mov esi, dword [esi + 0x40]
test esi, esi
jne 0x51ddf3
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x51de29
mov eax, dword [esi + 0x40]
test eax, eax
je 0x51de29
mov dword [eax + 0x1c], 1
mov ecx, dword [edi + 0x1fa4]
mov edx, esi
call fcn.004c2730
mov dword [edi + 0x1fa4], eax
mov ebx, 1
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov ecx, esi
call fcn.005366c0
mov esi, eax
test esi, esi
jne 0x51de62
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 4
call dword [sym.imp.USER32.dll_GetFocus]
mov ebx, eax
cmp ebx, dword [esi + 0x864]
mov dword [esp + 0x10], ebx
je 0x51de7e
cmp ebx, dword [esi + 0x868]
jne 0x51de58
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x894]
mov ecx, ebx
call fcn.00474230
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x51dea6
mov eax, dword [edi + 0x1fac]
test eax, eax
je 0x51dfbb
push 0x5994c8
push 0x3e6
push 0xd
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov dword [esp + 0x18], eax
jle 0x51dfc2
mov byte [eax + 0x5994c8], 0
cmp byte [0x5994c8], 0x20
mov ebp, 0x5994c8
jne 0x51dee8
lea ebx, [ebx]
mov al, byte [ebp + 1]
inc ebp
cmp al, 0x20
je 0x51dee0
cmp byte [ebp], 0
je 0x51dfc2
push 5
push 0x57bb74
push ebp
call fcn.00572b89
add esp, 0xc
test eax, eax
jne 0x51dfc2
mov al, byte [ebp + 5]
add ebp, 5
cmp al, 0x20
jne 0x51df1c
mov al, byte [ebp + 1]
inc ebp
cmp al, 0x20
je 0x51df14
cmp byte [ebp], 0
je 0x51dfc2
push 0x20
push ebp
call fcn.00563730
add esp, 8
test eax, eax
je 0x51df38
mov byte [eax], 0
mov esi, dword [edi + 0x1fa0]
xor ebx, ebx
test esi, esi
je 0x51df93
mov eax, dword [esi]
push ebp
push eax
call fcn.00572b46
add esp, 8
test eax, eax
je 0x51df5d
mov esi, dword [esi + 0x40]
test esi, esi
jne 0x51df44
jmp 0x51df93
mov ecx, dword [edi + 0x1fa0]
mov edx, esi
call fcn.004c2730
mov ecx, dword [esp + 0x10]
push 0x574b10
push 0
push 0xc
push ecx
mov dword [edi + 0x1fa0], eax
mov dword [edi + 0x1fac], 0
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 1
mov esi, dword [edi + 0x1fa4]
test esi, esi
je 0x51dfb7
lea ecx, [ecx]
mov edx, dword [esi]
push ebp
push edx
call fcn.00572b46
add esp, 8
test eax, eax
je 0x51dfcf
mov esi, dword [esi + 0x40]
test esi, esi
jne 0x51dfa0
test ebx, ebx
jne 0x51dfc2
xor ecx, ecx
call fcn.0041c8e0
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 4
mov ecx, dword [edi + 0x1fa4]
mov edx, esi
call fcn.004c2730
test ebx, ebx
mov dword [edi + 0x1fa4], eax
mov dword [edi + 0x1fac], 0
jne 0x51dfc2
mov eax, dword [esp + 0x10]
push 0x574b10
push ebx
push 0xc
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 4