Function at 0x5234ad
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
cmp dword [ebx + 0x24], esi
jne 0x52356b
cmp dword [ebx + 0xb4], esi
je 0x52356b
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x170]
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x170]
mov eax, dword [eax + 4]
push 2
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push eax
call dword [ecx + 0x138]
mov eax, dword [ebx + 0xb4]
mov dword [esp + 0xc], eax
lea edi, [ebx + 0x20]
cmp dword [0x6dbfc8], esi
jne 0x523539
mov dword [0x6dbfc8], esi
push dword [esp + 0xc]
lea eax, [edi + 0x20]
push eax
push 0x6dbf98
call fcn.00418224
add esp, 0xc
movzx eax, ax
push eax
xor eax, eax
push eax
push esi
push 0x82000000
push esi
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x24]
push edi
call fcn.0046a191
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5237a5
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x170]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x170]
mov eax, dword [eax + 4]
push 2
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push eax
call dword [ecx + 0x138]
mov eax, dword [ebx + 0xc]
lea edx, [esp + 0x10]
push edx
push 0x64fea0
push esi
mov dword [esp + 0x1c], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x104]
test eax, eax
js 0x52369d
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x170]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
cmp eax, esi
jne 0x523745
mov eax, dword [ebx + 0xc]
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x158]
test eax, eax
js 0x52368b
lea edx, [esp + 0x14]
push edx
xor eax, eax
mov dword [esp + 0x18], esi
push 4
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push str.test
push eax
call dword [ecx + 0xc]
xor eax, eax
mov dword [esp + 0x1c], esi
push 1
lea edi, [esp + 0x24]
stosd dword es:[edi], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
call dword [ecx + 0x138]
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x170]
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x18]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x20]
add ecx, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
jmp 0x52368f
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
cmp ecx, esi
je 0x5236a1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
push esi
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x2c]
push ecx
push eax
push dword [esp + 0x34]
push esi
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_ShowWindow]
lea edi, [ebx + 0x20]
mov esi, edi
call fcn.004d86a6
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004013b3
pop ecx
mov dword [esp + 0xc], eax
test eax, eax
je 0x52378e
push esi
push eax
mov esi, edi
call fcn.004d86a6
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, dword [ebx + 0xbc]
mov eax, dword [esp + 0xc]
mov ecx, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x52376e
test dx, dx
je 0x523741
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x52376e
add eax, 4
add ecx, 4
test dx, dx
jne 0x52371f
xor eax, eax
jmp 0x523773
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 2
lea edx, [esp + 0x38]
push edx
push eax
call dword [ecx + 0x138]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
jmp 0x5236a1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x523784
push ebx
call fcn.004d86a6
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [esp + 0xc]
call fcn.00404e46
pop ecx
push 1
mov eax, edi
call fcn.004d86d9
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5237a5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret 4