Function at 0x51a290
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xf
push 0
push 0
dec ecx
jne 0x51a298
push ebx
push esi
push edi
mov eax, 0x519cb0
call fcn.00406f8c
xor eax, eax
push ebp
push 0x51a994
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x51a9a4
push 0
push 0
call fcn.004071f8
mov dword [0x5228e0], eax
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xb7
je 0x51a979
xor eax, eax
push ebp
push 0x51a39e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [0x5206b4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
je 0x51a394
push 0xff
push 0x5228e4
push ebx
call sub.user32.dll_GetWindowTextA
test eax, eax
jle 0x51a382
lea edx, [ebp - 0x14]
mov eax, 0x5228e4
call fcn.0040a198
mov edx, dword [ebp - 0x14]
mov eax, 0x51a9c4
call fcn.0040520c
test eax, eax
jne 0x51a375
lea edx, [ebp - 0x18]
mov eax, 0x5228e4
call fcn.0040a198
mov edx, dword [ebp - 0x18]
mov eax, 0x51a9d4
call fcn.0040520c
test eax, eax
jne 0x51a375
lea edx, [ebp - 0x1c]
mov eax, 0x5228e4
call fcn.0040a198
mov edx, dword [ebp - 0x1c]
mov eax, 0x51a9ec
call fcn.0040520c
test eax, eax
je 0x51a382
push 0
push ebx
call sub.user32.dll_EnableWindow
call fcn.00404a8c
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
jne 0x51a307
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51a3a8
mov eax, dword [0x5206b4]
mov eax, dword [eax]
call fcn.00465f54
mov eax, dword [0x5206b4]
mov eax, dword [eax]
mov edx, 0x51a9fc
call fcn.00465b3c
mov ecx, dword [0x520964]
mov eax, dword [0x5206b4]
mov eax, dword [eax]
mov edx, dword [0x5190d0]
call fcn.00465f6c
mov ecx, dword [0x520550]
mov eax, dword [0x5206b4]
mov eax, dword [eax]
mov edx, dword [0x518e0c]
call fcn.00465f6c
xor eax, eax
push ebp
push 0x51a497
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x436e84]
call fcn.00436f54
mov ebx, eax
mov edx, 0x80000001
mov eax, ebx
call fcn.00436ff4
mov cl, 1
mov edx, 0x51aa1c
mov eax, ebx
call fcn.00437058
test al, al
je 0x51a47e
xor eax, eax
push ebp
push 0x51a463
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x20]
mov edx, 0x51aa40
mov eax, ebx
call fcn.004373ac
mov edx, dword [ebp - 0x20]
mov eax, 0x5228dc
call fcn.00404c5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51a48d
mov eax, 0x5228dc
mov edx, 0x51aa50
call fcn.00404c5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51a4b0
mov eax, dword [0x5228dc]
mov edx, 0x51aa5c
call fcn.00405014
je 0x51a962
xor eax, eax
push ebp
push 0x51a50c
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x24]
mov eax, dword [0x520964]
mov eax, dword [eax]
mov eax, dword [eax + 0x330]
mov edx, 0x51aa68
call fcn.0051671c
mov edx, dword [ebp - 0x24]
mov eax, dword [0x520964]
mov eax, dword [eax]
mov eax, dword [eax + 0x334]
call fcn.00446044
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51a516
xor eax, eax
push ebp
push 0x51a573
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4176ac]
call fcn.00403dc8
mov dword [0x5228d8], eax
lea edx, [ebp - 0x2c]
mov eax, dword [0x5206b4]
mov eax, dword [eax]
call fcn.004666ac
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.00409e20
lea eax, [ebp - 0x28]
mov edx, 0x51aaa0
call fcn.00404ed0
mov edx, dword [ebp - 0x28]
mov eax, dword [0x5228d8]
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51a58c
lea ecx, [ebp - 0x34]
mov eax, dword [0x520964]
mov eax, dword [eax]
mov eax, dword [eax + 0x334]
mov eax, dword [eax + 0x220]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00409258
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x3c]
xor edx, edx
mov eax, dword [0x5228d8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00409258
mov edx, dword [ebp - 0x38]
pop eax
call fcn.00405014
je 0x51a91f
lea edx, [ebp - 0x44]
mov eax, dword [0x5206b4]
mov eax, dword [eax]
call fcn.004666ac
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.00409e20
lea eax, [ebp - 0x40]
mov edx, 0x51aaa0
call fcn.00404ed0
mov edx, dword [ebp - 0x40]
mov eax, 0x52270c
call fcn.004032dc
mov eax, 0x52270c
call fcn.00403078
call fcn.00402c30
lea ecx, [ebp - 0x48]
mov eax, dword [0x520964]
mov eax, dword [eax]
mov eax, dword [eax + 0x334]
mov eax, dword [eax + 0x220]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x48]
mov eax, 0x52270c
call fcn.004052e4
call fcn.0040389c
call fcn.00402c30
mov eax, 0x52270c
call fcn.004033a4
call fcn.00402c30
mov eax, dword [0x520924]
mov eax, dword [eax]
call fcn.00463a64
mov edx, eax
sub edx, 0x13b
mov eax, dword [0x520550]
mov eax, dword [eax]
call fcn.00445784
mov eax, dword [0x520924]
mov eax, dword [eax]
call fcn.00463a58
mov edx, eax
sub edx, 0xf7
mov eax, dword [0x520550]
mov eax, dword [eax]
call fcn.004457a8
push 0x51aac4
lea ecx, [ebp - 0x50]
mov eax, dword [0x520964]
mov eax, dword [eax]
mov eax, dword [eax + 0x334]
mov eax, dword [eax + 0x220]
mov edx, 1
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x50]
push 0x51aae0
push 0x51aae0
push 0x51aaec
lea ecx, [ebp - 0x54]
mov eax, dword [0x520964]
mov eax, dword [eax]
mov eax, dword [eax + 0x334]
mov eax, dword [eax + 0x220]
mov edx, 3
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x54]
push 0x51aae0
lea ecx, [ebp - 0x58]
mov eax, dword [0x520964]
mov eax, dword [eax]
mov eax, dword [eax + 0x334]
mov eax, dword [eax + 0x220]
mov edx, 4
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x58]
push 0x51aae0
lea ecx, [ebp - 0x5c]
mov eax, dword [0x520964]
mov eax, dword [eax]
mov eax, dword [eax + 0x334]
mov eax, dword [eax + 0x220]
mov edx, 5
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x5c]
push 0x51aae0
lea ecx, [ebp - 0x60]
mov eax, dword [0x520964]
mov eax, dword [eax]
mov eax, dword [eax + 0x334]
mov eax, dword [eax + 0x220]
mov edx, 6
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x60]
push 0x51aae0
lea ecx, [ebp - 0x64]
mov eax, dword [0x520964]
mov eax, dword [eax]
mov eax, dword [eax + 0x334]
mov eax, dword [eax + 0x220]
mov edx, 7
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x64]
push 0x51aae0
lea ecx, [ebp - 0x68]
mov eax, dword [0x520964]
mov eax, dword [eax]
mov eax, dword [eax + 0x334]
mov eax, dword [eax + 0x220]
mov edx, 8
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x68]
push 0x51aae0
lea ecx, [ebp - 0x6c]
mov eax, dword [0x520964]
mov eax, dword [eax]
mov eax, dword [eax + 0x334]
mov eax, dword [eax + 0x220]
mov edx, 9
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x6c]
lea eax, [ebp - 0x4c]
mov edx, 0x12
call fcn.00404f88
mov edx, dword [ebp - 0x4c]
mov eax, dword [0x520550]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x1c8]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea ecx, [ebp - 0x70]
mov eax, dword [0x520964]
mov eax, dword [eax]
mov eax, dword [eax + 0x334]
mov eax, dword [eax + 0x220]
mov edx, 2
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x70]
mov eax, dword [0x520550]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f8]
add eax, 0x80
call fcn.00404c5c
mov eax, dword [0x5228dc]
mov edx, 0x51aa50
call fcn.00405014
jne 0x51a8b9
lea ecx, [ebp - 0x74]
mov eax, dword [0x520964]
mov eax, dword [eax]
mov eax, dword [eax + 0x334]
mov eax, dword [eax + 0x220]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x74]
call fcn.00404ec8
cmp eax, 4
jge 0x51a89d
mov eax, dword [0x5206b4]
mov eax, dword [eax]
call fcn.004660d8
mov eax, dword [0x5206b4]
mov eax, dword [eax]
mov byte [eax + 0x5b], 0
mov eax, dword [0x520550]
mov eax, dword [eax]
call fcn.00462a08
jmp 0x51a962
mov eax, dword [0x5228dc]
mov edx, 0x51aafc
call fcn.00405014
jne 0x51a962
mov eax, dword [0x520964]
mov eax, dword [eax]
mov edx, dword [eax + 0x2f8]
mov eax, dword [0x520964]
mov eax, dword [eax]
call fcn.005193fc
lea ecx, [ebp - 0x78]
mov eax, dword [0x520964]
mov eax, dword [eax]
mov eax, dword [eax + 0x334]
mov eax, dword [eax + 0x220]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x78]
call fcn.00404ec8
cmp eax, 4
jle 0x51a962
mov eax, dword [0x520550]
mov eax, dword [eax]
call fcn.00462a08
jmp 0x51a962
mov eax, dword [0x5228dc]
mov edx, 0x51aafc
call fcn.00405014
jne 0x51a94b
mov eax, dword [0x520964]
mov eax, dword [eax]
mov edx, dword [eax + 0x2f8]
mov eax, dword [0x520964]
mov eax, dword [eax]
call fcn.005193fc
jmp 0x51a962
mov eax, dword [0x5206b4]
mov eax, dword [eax]
mov byte [eax + 0x5b], 0
mov eax, dword [0x5206b4]
mov eax, dword [eax]
call fcn.004660d8
mov eax, dword [0x5206b4]
mov eax, dword [eax]
call fcn.00465fec
mov eax, dword [0x5228e0]
push eax
call sub.kernel32.dll_ReleaseMutex
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51a99b
lea eax, [ebp - 0x78]
mov edx, 0x1a
call fcn.00404c2c
ret