Function at 0x528193
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 0x5284aa
mov eax, dword [0x546560]
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 0x5281da
cmp dword [eax - 4], ecx
jge 0x528236
mov ebp, dword [eax - 8]
cmp ebp, ecx
jle 0x5281e3
mov ecx, ebp
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x528236
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 [0x546564]
cmp ebx, eax
je 0x52822e
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x52822e
push ebx
call fcn.00531732
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, 0x546cdc
test eax, eax
je 0x528422
push eax
call edi
mov ebx, eax
test ebx, ebx
je 0x528422
mov ecx, 0x54681c
test ecx, ecx
jne 0x528299
mov dword [esp + 0x18], ecx
jmp 0x5282a4
push 0x54681c
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 0x52841e
push 0x546cdc
push esi
call fcn.0053176f
add esp, 8
test eax, eax
je 0x5282e0
lea esi, [eax + ebx*2]
push 0x546cdc
push esi
inc edi
call fcn.0053176f
add esp, 8
test eax, eax
jne 0x5282ca
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp esi, ebp
jb 0x5282b8
test edi, edi
jle 0x52841e
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 0x528327
cmp dword [esi - 0xc], 1
jle 0x528365
lea edi, [esi - 0xc]
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], edi
call fcn.00405530
test eax, eax
je 0x52841e
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 0x52841b
push 0x546cdc
push esi
call fcn.0053176f
mov edi, eax
add esp, 8
test edi, edi
je 0x528400
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.00531870
mov ecx, esi
mov esi, 0x54681c
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 0x546cdc
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.0053176f
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x52838b
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 0x528377
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebp
mov esi, dword [esp + 0x14]
push 0x54681c
push 0x54d3d4
lea ecx, [esp + 0x18]
call fcn.004139f0
push 0x54d3e4
push 0x54732c
lea ecx, [esp + 0x18]
call fcn.004139f0
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.0042f270
push edi
mov ecx, esi
mov dword [esi + 0x78], ebx
mov dword [esi + 0x68], ebx
call fcn.00527b80
mov eax, dword [esp + 0x10]
mov ecx, dword [0x546564]
pop edi
pop ebp
lea edx, [eax - 0xc]
pop ebx
cmp edx, ecx
je 0x5284aa
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x5284aa
mov eax, dword [esp + 4]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
xor eax, eax
pop esi
add esp, 0x20
ret 0x10