Function at 0x52af10
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x7924]
mov eax, 0x7924
call fcn.00614970
push 0xffffffffffffffff
push 0x64ef60
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x7496c8]
xor eax, ebp
mov dword [ebp + 0x7920], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 1
push 0x1400
push ebx
lea eax, [ebp + 0x6520]
push eax
call fcn.00613900
add esp, 0xc
push 0x13ff
mov edx, dword [edi + 0x90]
cmp dword [edi + 0x94], ebx
je 0x52afcf
lea ecx, [ebp + 0x3d20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x52aff5
push 0x1400
lea eax, [ebp + 0x6520]
push eax
lea ecx, [ebp + 0x3d20]
push ecx
call fcn.004072b0
lea edx, [ebp + 0x6520]
push edx
push 0x66ae98
lea eax, [ebp - 0x14]
push eax
call fcn.00402f80
add esp, 0x18
jmp 0x52aff5
lea ecx, [ebp + 0x6520]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp + 0x6520]
push eax
push 0x66ae98
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f80
add esp, 0xc
mov eax, dword [ebp - 0x14]
lea edx, [eax + 1]
jmp 0x52b000
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x52b000
sub eax, edx
jne 0x52b038
push 0x40
mov edx, dword [0x74ff04]
push edx
mov eax, dword [0x74ff08]
push eax
mov ecx, dword [edi + 0x20]
push ecx
call fcn.0046db70
add esp, 0x10
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402570
xor eax, eax
jmp 0x52b439
lea ecx, [ebp - 0x1c]
call fcn.00402500
mov byte [ebp - 4], 2
lea esi, [edi + 0x7c]
push esi
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0052ae20
add esp, 0xc
test al, al
jne 0x52b0bf
lea ecx, [ebp - 0x18]
call fcn.00402500
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [0x74fde8]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00402f80
push 0x40
mov ecx, dword [0x74ff0c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [edi + 0x20]
push eax
call fcn.0046db70
add esp, 0x1c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402570
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00402570
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402570
xor eax, eax
jmp 0x52b439
lea ecx, [ebp]
call fcn.005422a0
mov byte [ebp - 4], 4
push 0x1400
push ebx
lea ecx, [ebp + 0x6520]
push ecx
call fcn.00613900
add esp, 0xc
mov esi, dword [esi]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x52b0e7
sub eax, edx
cmp eax, 0x1400
jb 0x52b0fe
mov eax, 0x13ff
jmp 0x52b10c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x52b103
sub eax, edx
push eax
push esi
lea edx, [ebp + 0x6520]
push edx
call fcn.00614de0
add esp, 0xc
push ebx
push 0x1400
lea eax, [ebp + 0x6520]
push eax
lea ecx, [ebp]
call fcn.00544780
test eax, eax
jne 0x52b163
push 0x40
mov ecx, dword [0x74ff0c]
push ecx
mov edx, dword [0x74fbd4]
push edx
mov eax, dword [edi + 0x20]
push eax
call fcn.0046db70
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp]
call fcn.005422e0
jmp 0x52b0a1
mov dword [ebp - 0x24], ebx
lea eax, [ebp + 0x2908]
mov dword [ebp - 0x28], eax
cmp byte [ebp + 0x2908], 0x2f
jne 0x52b181
lea eax, [ebp + 0x2909]
mov dword [ebp - 0x28], eax
cmp byte [eax], bl
je 0x52b1a3
push 0x69a470
push eax
call fcn.006159a0
add esp, 8
cmp eax, ebx
je 0x52b1a3
cmp byte [eax], 0x2f
jne 0x52b1a3
mov dword [ebp - 0x24], 1
lea ecx, [edi + 0x34c]
call fcn.00405450
test eax, eax
je 0x52b20e
lea ecx, [ebp - 0x18]
call fcn.00402500
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [edi + 0x1f0]
call fcn.005ed699
lea edx, [ebp - 0x18]
push edx
lea ecx, [edi + 0x19c]
call fcn.005ed699
mov eax, dword [ebp - 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x52b1e2
sub eax, edx
je 0x52b270
mov eax, dword [ebp - 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x52b1f7
sub eax, edx
je 0x52b270
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.00402570
lea ecx, [edi + 0x31c]
call fcn.00405450
test eax, eax
je 0x52b391
lea eax, [ebp - 0x14]
push eax
lea ecx, [edi + 0x148]
call fcn.005ed699
mov edx, dword [ebp - 0x14]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x52b238
sub eax, esi
jne 0x52b2a8
push 0x40
mov ecx, dword [0x74ff04]
push ecx
mov edx, dword [0x74ff14]
push edx
mov eax, dword [edi + 0x20]
push eax
call fcn.0046db70
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp]
call fcn.005422e0
jmp 0x52b0a1
push 0x40
mov eax, dword [0x74ff04]
push eax
mov ecx, dword [0x74ff10]
push ecx
mov edx, dword [edi + 0x20]
push edx
call fcn.0046db70
add esp, 0x10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.00402570
mov byte [ebp - 4], 2
lea ecx, [ebp]
call fcn.005422e0
jmp 0x52b0a1
lea esi, [edi + 0x80]
push esi
lea ecx, [ebp - 0x1c]
push ecx
push edx
call fcn.0052ae20
add esp, 0xc
test al, al
jne 0x52b2fa
lea ecx, [ebp - 0x18]
call fcn.00402500
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [0x74fde8]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00402f80
push 0x40
mov edx, dword [0x74ff18]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [edi + 0x20]
push ecx
call fcn.0046db70
add esp, 0x1c
jmp 0x52b28b
push 0x1400
push ebx
lea edx, [ebp + 0x6520]
push edx
call fcn.00613900
add esp, 0xc
mov esi, dword [esi]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x52b316
sub eax, edx
cmp eax, 0x1400
jb 0x52b32d
mov eax, 0x13ff
jmp 0x52b33b
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x52b332
sub eax, edx
push eax
push esi
lea eax, [ebp + 0x6520]
push eax
call fcn.00614de0
add esp, 0xc
push ebx
push 0x1400
lea ecx, [ebp + 0x6520]
push ecx
lea ecx, [ebp]
call fcn.00544780
test eax, eax
jne 0x52b391
push 0x40
mov edx, dword [0x74ff18]
push edx
mov eax, dword [0x74fbd4]
push eax
mov ecx, dword [edi + 0x20]
push ecx
call fcn.0046db70
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp]
call fcn.005422e0
jmp 0x52b0a1
lea ecx, [edi + 0x2ec]
call fcn.00405450
test eax, eax
je 0x52b3ec
lea edx, [ebp - 0x14]
push edx
lea ecx, [edi + 0xa0]
call fcn.005ed699
mov eax, dword [ebp - 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x52b3b5
sub eax, edx
jne 0x52b3ec
push 0x40
mov eax, dword [0x74ff04]
push eax
mov ecx, dword [0x74fff4]
push ecx
mov edx, dword [edi + 0x20]
push edx
call fcn.0046db70
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp]
call fcn.005422e0
jmp 0x52b0a1
mov eax, dword [ebp - 0x24]
push eax
push 0x141a
push 0x111
mov ecx, dword [edi + 0x74]
mov edx, dword [ecx + 0x410]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [ebp - 4], 2
lea ecx, [ebp]
call fcn.005422e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00402570
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402570
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x7920]
xor ecx, ebp
call fcn.00613241
add ebp, 0x7924
mov esp, ebp
pop ebp
ret