Function at 0x521470
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x7924]
mov eax, 0x7924
call fcn.005f9ca0
push 0xffffffffffffffff
push 0x633c00
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x70a308]
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.004024e0
mov byte [ebp - 4], 1
push 0x1400
push ebx
lea eax, [ebp + 0x6520]
push eax
call fcn.005f8cb0
add esp, 0xc
push 0x13ff
mov edx, dword [edi + 0x90]
cmp dword [edi + 0x94], ebx
je 0x52152f
lea ecx, [ebp + 0x3d20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x521555
push 0x1400
lea eax, [ebp + 0x6520]
push eax
lea ecx, [ebp + 0x3d20]
push ecx
call fcn.004071f0
lea edx, [ebp + 0x6520]
push edx
push 0x64edec
lea eax, [ebp - 0x14]
push eax
call fcn.00402f60
add esp, 0x18
jmp 0x521555
lea ecx, [ebp + 0x6520]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp + 0x6520]
push eax
push 0x64edec
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f60
add esp, 0xc
mov eax, dword [ebp - 0x14]
lea edx, [eax + 1]
jmp 0x521560
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x521560
sub eax, edx
je 0x52159b
lea ecx, [ebp - 0x18]
call fcn.004024e0
mov byte [ebp - 4], 2
lea esi, [edi + 0x7c]
push esi
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00520e30
add esp, 0xc
test al, al
jne 0x5215cb
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00402550
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402550
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.005f85e7
add ebp, 0x7924
mov esp, ebp
pop ebp
ret
lea ecx, [ebp]
call fcn.00538240
mov byte [ebp - 4], 3
push 0x1400
push ebx
lea ecx, [ebp + 0x6520]
push ecx
call fcn.005f8cb0
add esp, 0xc
mov esi, dword [esi]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5215f3
sub eax, edx
cmp eax, 0x1400
jb 0x52160a
mov eax, 0x13ff
jmp 0x521619
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x521610
sub eax, edx
push eax
push esi
lea edx, [ebp + 0x6520]
push edx
call fcn.005fa190
add esp, 0xc
push ebx
push 0x1400
lea eax, [ebp + 0x6520]
push eax
lea ecx, [ebp]
call fcn.0053a720
test eax, eax
je 0x5216e5
lea ecx, [ebp - 0x20]
call fcn.004b2050
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040acc0
add esp, 4
push 1
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp + 0x30]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push eax
mov ecx, dword [0x70fb94]
call fcn.005002a0
lea esi, [edi + 0x34c]
mov ecx, esi
test eax, eax
je 0x5216c0
call fcn.00405330
test eax, eax
jne 0x5216a0
push 1
mov ecx, esi
call fcn.00405350
push 1
mov ecx, edi
call fcn.005207a0
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [edi + 0x1f0]
call fcn.005d0801
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [edi + 0x19c]
call fcn.005d0801
jmp 0x5216d9
call fcn.00405330
test eax, eax
je 0x5216d9
push ebx
mov ecx, esi
call fcn.00405350
push ebx
mov ecx, edi
call fcn.005207a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.00407170
mov byte [ebp - 4], 2
lea ecx, [ebp]
call fcn.00538280
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00402550
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402550
mov dword [ebp - 4], 0xffffffff
jmp 0x5215a6