Function at 0x528c63
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
push 0
push 0
mov eax, dword [esi + 0x24]
push 0x1042
push eax
mov dword [esp + 0x18], esi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
mov dword [esp + 0x20], eax
jl 0x528f7a
mov eax, dword [0x547570]
push ebx
mov dword [esp + 8], eax
push ebp
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
push edi
mov ecx, 0x400
jg 0x528caa
cmp dword [eax - 4], ecx
jge 0x528d06
mov ebp, dword [eax - 8]
cmp ebp, ecx
jle 0x528cb3
mov ecx, ebp
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x528d06
mov edi, dword [esp + 0x10]
lea ecx, [ebp + ebp + 2]
mov edx, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov dword [eax - 8], ebp
mov eax, dword [0x547574]
cmp ebx, eax
je 0x528cfe
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x528cfe
push ebx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0x80]
push 0x400
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x10]
call fcn.004055c0
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edx
call edi
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
mov word [edx + eax*2], 0
mov eax, 0x547cec
test eax, eax
je 0x528ef2
push eax
call edi
mov ebx, eax
test ebx, ebx
je 0x528ef2
mov ecx, 0x54782c
test ecx, ecx
jne 0x528d69
mov dword [esp + 0x18], ecx
jmp 0x528d74
push 0x54782c
call edi
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x10]
xor edi, edi
mov edx, dword [esi - 8]
lea ebp, [esi + edx*2]
cmp esi, ebp
jae 0x528eee
push 0x547cec
push esi
call fcn.0053225f
add esp, 8
test eax, eax
je 0x528db0
lea esi, [eax + ebx*2]
push 0x547cec
push esi
inc edi
call fcn.0053225f
add esp, 8
test eax, eax
jne 0x528d9a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp esi, ebp
jb 0x528d88
test edi, edi
jle 0x528eee
lea ecx, [esp + 0x10]
call fcn.004055c0
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
sub ebp, ebx
imul ebp, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x1c], eax
add ebp, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x24], ebp
cmp eax, ebp
jl 0x528df7
cmp dword [esi - 0xc], 1
jle 0x528e35
lea edi, [esi - 0xc]
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], edi
call fcn.00405530
test eax, eax
je 0x528eee
mov ecx, dword [edi + 4]
mov edi, dword [esp + 0x10]
shl ecx, 1
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00405590
mov esi, dword [esp + 0x10]
mov edx, dword [esi - 8]
lea eax, [esi + edx*2]
cmp esi, eax
mov dword [esp + 0x28], eax
jae 0x528eeb
push 0x547cec
push esi
call fcn.0053225f
mov edi, eax
add esp, 8
test edi, edi
je 0x528ed0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, edi
sub ecx, eax
mov eax, dword [esp + 0x1c]
sar ecx, 1
sub eax, ecx
lea esi, [edx + edx]
sub eax, ebx
lea ecx, [edi + ebx*2]
lea ebp, [eax + eax]
lea eax, [esi + edi]
push ebp
push ecx
push eax
mov dword [esp + 0x2c], eax
call fcn.00532360
mov ecx, esi
mov esi, 0x54782c
mov edx, ecx
mov eax, dword [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
sub eax, ebx
and ecx, 3
push 0x547cec
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x30]
push esi
mov word [esi + ebp], 0
mov ebp, dword [esp + 0x30]
add ebp, eax
mov dword [esp + 0x30], ebp
call fcn.0053225f
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x528e5b
mov ebp, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x28]
cmp esi, eax
jb 0x528e47
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebp
mov esi, dword [esp + 0x14]
push 0x54782c
push 0x54e444
lea ecx, [esp + 0x18]
call fcn.00413840
push 0x54e454
push 0x54833c
lea ecx, [esp + 0x18]
call fcn.00413840
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
push 0
push 0
push 0
push 0
mov ebx, 1
push ecx
push ebx
push 2
push edi
lea ecx, [esi + 0x24]
call fcn.0042f320
push edi
mov ecx, esi
mov dword [esi + 0x78], ebx
mov dword [esi + 0x68], ebx
call fcn.00528650
mov eax, dword [esp + 0x10]
mov ecx, dword [0x547574]
pop edi
pop ebp
lea edx, [eax - 0xc]
pop ebx
cmp edx, ecx
je 0x528f7a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x528f7a
mov eax, dword [esp + 4]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
xor eax, eax
pop esi
add esp, 0x20
ret 0x10