Function at 0x413570
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c7ab
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x48b088]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x630], ecx
mov edx, dword [ebp + 0x10]
mov ecx, 0x54aacfb7
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x61c], 0x54621583
mov eax, dword [ebp - 0x61c]
sub ecx, eax
push 3
push 0
push 0
mov edi, dword [ecx]
push 0
add edi, 0x1f0db543
mov dword [ebp - 0x628], ebx
push 6
mov dword [ebp - 0x63c], edx
mov dword [ebp - 0x61c], edi
mov dword [edx], 0
call fcn.00423a70
add esp, 0x14
neg eax
sbb eax, eax
and eax, 0xc00
push ebx
add eax, 0x400
push 0
push eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.USER32.dll_IsWindowVisible]
mov dword [ebp - 0x624], eax
test eax, eax
je 0x4136d5
push 0xc8
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ebx, eax
mov edi, 0xc8
cmp ebx, 0x102
jne 0x41367f
lea ecx, [ecx]
cmp edi, 0x1b58
jae 0x41367f
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4136b8
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4136b8
push 0xc8
push dword [ebp - 0x624]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ebx, eax
add edi, 0xc8
cmp ebx, 0x102
je 0x413640
push dword [ebp - 0x624]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4136c9
cmp ebx, 0x102
je 0x4136c9
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x413971
mov ebx, dword [sym.imp.USER32.dll_IsWindowVisible]
push esi
call ebx
test eax, eax
jne 0x4136cf
jmp 0x413971
push dword [ebp - 0x624]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413971
mov ebx, dword [sym.imp.USER32.dll_IsWindowVisible]
mov edi, dword [ebp - 0x61c]
push 0x100
lea eax, [ebp - 0x410]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
jne 0x4136f3
mov word [ebp - 0x410], ax
push 0x100
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x413711
mov word [ebp - 0x210], ax
add edi, edi
lea ecx, [ebp - 0x410]
mov edx, 0x613cd660
push 1
sub edx, edi
call fcn.00404350
add esp, 4
test eax, eax
je 0x413764
mov edx, 0x613ce910
lea ecx, [ebp - 0x210]
push 1
sub edx, edi
call fcn.00404350
add esp, 4
test eax, eax
jne 0x4137ba
mov edx, 0x613ce920
lea ecx, [ebp - 0x210]
push 1
sub edx, edi
call fcn.00404350
add esp, 4
test eax, eax
jne 0x4137ba
mov eax, 0x613ce930
sub eax, edi
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00437474
add esp, 8
test eax, eax
jne 0x41379a
mov edx, 0x613ce954
lea ecx, [ebp - 0x210]
push 1
sub edx, edi
call fcn.00404350
add esp, 4
test eax, eax
jne 0x4137ba
push 0
push 0x1b58
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x4137ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
mov dword [ebp - 0x61c], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x413971
push esi
call ebx
test eax, eax
je 0x413971
lea eax, [ebp - 0x62c]
mov ecx, esi
push eax
lea edx, [ebp - 0x634]
call fcn.00411ac0
add esp, 4
test eax, eax
je 0x413971
mov ecx, dword [ebp - 0x628]
lea edx, [ebp - 0x618]
push 0x104
call fcn.00408db0
add esp, 4
test eax, eax
jne 0x413826
mov word [ebp - 0x618], ax
mov eax, 0x613ce990
lea ecx, [ebp - 0x620]
sub eax, edi
push eax
call fcn.00424fa0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x620]
mov ebx, dword [ebp - 0x634]
mov eax, 0x613ce9b0
push ebx
sub eax, edi
push eax
call fcn.004258c0
lea eax, [ebp - 0x618]
push eax
mov eax, 0x613ce9cc
lea ecx, [ebp - 0x620]
sub eax, edi
push eax
call fcn.004258e0
lea eax, [ebp - 0x620]
mov ecx, 0x48c580
push eax
call fcn.00425700
push 3
push 0
push 0
push 0
push 6
call fcn.00423a70
add esp, 0x14
test eax, eax
jne 0x413919
mov edx, dword [ebp - 0x61c]
lea eax, [ebp - 0x638]
push eax
push ecx
push dword [ebp - 0x62c]
mov ecx, dword [ebp - 0x628]
push ebx
push esi
call fcn.004034b0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4138f1
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x620]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4138ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
jmp 0x413973
mov ecx, dword [ebp - 0x630]
push dword [ebp - 0x638]
mov ecx, dword [ecx]
call fcn.0040a040
mov esi, eax
test esi, esi
je 0x413940
lea ecx, [ebp - 0x620]
call fcn.004139a0
mov eax, esi
jmp 0x413973
push dword [ebp - 0x62c]
mov ecx, dword [ebp - 0x630]
push ebx
push esi
push dword [ebp - 0x61c]
mov ecx, dword [ecx]
push dword [ebp - 0x628]
call fcn.00409fd0
mov esi, eax
test esi, esi
jne 0x4138c5
mov eax, dword [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x620]
add edx, 0xfffffff0
mov dword [eax], 1
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413971
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00431ac5
mov esp, ebp
pop ebp
ret 0xc