Function at 0x520f10
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x7924]
mov eax, 0x7924
call fcn.005f9ca0
push 0xffffffffffffffff
push 0x633bb0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
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 0x520fcf
lea ecx, [ebp + 0x3d20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x520ff5
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 0x520ff5
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 0x521000
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x521000
sub eax, edx
jne 0x521038
push 0x40
mov edx, dword [0x710a1c]
push edx
mov eax, dword [0x710a20]
push eax
mov ecx, dword [edi + 0x20]
push ecx
call fcn.00469b60
add esp, 0x10
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402550
xor eax, eax
jmp 0x521439
lea ecx, [ebp - 0x1c]
call fcn.004024e0
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.00520e30
add esp, 0xc
test al, al
jne 0x5210bf
lea ecx, [ebp - 0x18]
call fcn.004024e0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [0x710900]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00402f60
push 0x40
mov ecx, dword [0x710a24]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [edi + 0x20]
push eax
call fcn.00469b60
add esp, 0x1c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402550
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00402550
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402550
xor eax, eax
jmp 0x521439
lea ecx, [ebp]
call fcn.00538240
mov byte [ebp - 4], 4
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 0x5210e7
sub eax, edx
cmp eax, 0x1400
jb 0x5210fe
mov eax, 0x13ff
jmp 0x52110c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x521103
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
jne 0x521163
push 0x40
mov ecx, dword [0x710a24]
push ecx
mov edx, dword [0x7106ec]
push edx
mov eax, dword [edi + 0x20]
push eax
call fcn.00469b60
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp]
call fcn.00538280
jmp 0x5210a1
mov dword [ebp - 0x24], ebx
lea eax, [ebp + 0x2908]
mov dword [ebp - 0x28], eax
cmp byte [ebp + 0x2908], 0x2f
jne 0x521181
lea eax, [ebp + 0x2909]
mov dword [ebp - 0x28], eax
cmp byte [eax], bl
je 0x5211a3
push 0x67d630
push eax
call fcn.005fad50
add esp, 8
cmp eax, ebx
je 0x5211a3
cmp byte [eax], 0x2f
jne 0x5211a3
mov dword [ebp - 0x24], 1
lea ecx, [edi + 0x34c]
call fcn.00405330
test eax, eax
je 0x52120e
lea ecx, [ebp - 0x18]
call fcn.004024e0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [edi + 0x1f0]
call fcn.005d5929
lea edx, [ebp - 0x18]
push edx
lea ecx, [edi + 0x19c]
call fcn.005d5929
mov eax, dword [ebp - 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5211e2
sub eax, edx
je 0x521270
mov eax, dword [ebp - 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5211f7
sub eax, edx
je 0x521270
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.00402550
lea ecx, [edi + 0x31c]
call fcn.00405330
test eax, eax
je 0x521391
lea eax, [ebp - 0x14]
push eax
lea ecx, [edi + 0x148]
call fcn.005d5929
mov edx, dword [ebp - 0x14]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x521238
sub eax, esi
jne 0x5212a8
push 0x40
mov ecx, dword [0x710a1c]
push ecx
mov edx, dword [0x710a2c]
push edx
mov eax, dword [edi + 0x20]
push eax
call fcn.00469b60
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp]
call fcn.00538280
jmp 0x5210a1
push 0x40
mov eax, dword [0x710a1c]
push eax
mov ecx, dword [0x710a28]
push ecx
mov edx, dword [edi + 0x20]
push edx
call fcn.00469b60
add esp, 0x10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.00402550
mov byte [ebp - 4], 2
lea ecx, [ebp]
call fcn.00538280
jmp 0x5210a1
lea esi, [edi + 0x80]
push esi
lea ecx, [ebp - 0x1c]
push ecx
push edx
call fcn.00520e30
add esp, 0xc
test al, al
jne 0x5212fa
lea ecx, [ebp - 0x18]
call fcn.004024e0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [0x710900]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00402f60
push 0x40
mov edx, dword [0x710a30]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [edi + 0x20]
push ecx
call fcn.00469b60
add esp, 0x1c
jmp 0x52128b
push 0x1400
push ebx
lea edx, [ebp + 0x6520]
push edx
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 0x521316
sub eax, edx
cmp eax, 0x1400
jb 0x52132d
mov eax, 0x13ff
jmp 0x52133b
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x521332
sub eax, edx
push eax
push esi
lea eax, [ebp + 0x6520]
push eax
call fcn.005fa190
add esp, 0xc
push ebx
push 0x1400
lea ecx, [ebp + 0x6520]
push ecx
lea ecx, [ebp]
call fcn.0053a720
test eax, eax
jne 0x521391
push 0x40
mov edx, dword [0x710a30]
push edx
mov eax, dword [0x7106ec]
push eax
mov ecx, dword [edi + 0x20]
push ecx
call fcn.00469b60
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp]
call fcn.00538280
jmp 0x5210a1
lea ecx, [edi + 0x2ec]
call fcn.00405330
test eax, eax
je 0x5213ec
lea edx, [ebp - 0x14]
push edx
lea ecx, [edi + 0xa0]
call fcn.005d5929
mov eax, dword [ebp - 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5213b5
sub eax, edx
jne 0x5213ec
push 0x40
mov eax, dword [0x710a1c]
push eax
mov ecx, dword [0x710b0c]
push ecx
mov edx, dword [edi + 0x20]
push edx
call fcn.00469b60
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp]
call fcn.00538280
jmp 0x5210a1
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.00538280
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00402550
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402550
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.005f85e7
add ebp, 0x7924
mov esp, ebp
pop ebp
ret