Function at 0x404a3d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44661d
mov eax, dword fs:[0]
push eax
mov eax, 0x100c
call fcn.00444cc0
mov eax, dword [0x492890]
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 eax, dword [ebp + 8]
mov esi, 0x400
mov edi, dword [ebp + 0xc]
xor bl, bl
push esi
mov dword [ebp - 0x1014], eax
lea eax, [ebp - 0x810]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push esi
lea eax, [ebp - 0x410]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
xor esi, esi
push 0x1ff
lea eax, [ebp - 0x410]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jg 0x404aca
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x404aa5
cmp word [ebp - 0x410], 0
je 0x404c9e
mov esi, 0x1ff
lea eax, [ebp - 0x810]
push esi
push eax
push dword [ebp - 0x1014]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x404c9e
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00404ec4
pop ecx
pop ecx
lea ecx, [ebp - 0x410]
cmp ecx, eax
jne 0x404b72
call fcn.0040421b
cmp dword [eax + 4], 1
ja 0x404c58
xor bl, bl
mov esi, 0x493920
cmp dword [0x493938], 0
mov dword [ebp - 0x1018], esi
je 0x404b44
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x1014], 1
and dword [ebp - 4], 0
mov dword [0x49391c], edi
or dword [ebp - 4], 0xffffffff
cmp dword [0x493938], 0
je 0x404c9e
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x404c9e
mov edi, 0x400
lea eax, [ebp - 0xc10]
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push edi
lea eax, [ebp - 0x1010]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x810]
push str.___PowerPoint
push eax
call fcn.00404ec4
add esp, 0x20
test eax, eax
jne 0x404bc4
lea eax, [ebp - 0x810]
push str.___Microsoft_PowerPoint
push eax
call fcn.00404ec4
pop ecx
pop ecx
test eax, eax
je 0x404be7
lea ecx, [ebp - 0x810]
cmp eax, ecx
jbe 0x404be7
sub eax, ecx
sar eax, 1
push eax
mov eax, ecx
push eax
lea eax, [ebp - 0xc10]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
lea eax, [ebp - 0x410]
push 0x44c26c
push eax
call sub.VCRUNTIME140.dll_wcsstr
mov esi, eax
lea eax, [ebp - 0x410]
push 0x5d
push eax
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 0x10
test esi, esi
je 0x404c36
test eax, eax
je 0x404c36
cmp eax, esi
jbe 0x404c36
sub eax, esi
sar eax, 1
dec eax
push eax
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x1010]
push 0x1ff
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
cmp word [ebp - 0xc10], 0
je 0x404c5c
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0xc10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x404c5c
mov bl, 1
jmp 0x404c9e
lea eax, [ebp - 0x410]
push str.PowerPoint
push eax
call sub.VCRUNTIME140.dll_wcsstr
mov esi, eax
lea eax, [ebp - 0xc10]
push eax
lea eax, [ebp - 0x410]
push eax
call sub.VCRUNTIME140.dll_wcsstr
add esp, 0x10
test esi, esi
je 0x404c9e
test eax, eax
je 0x404c9e
xor eax, eax
movzx ebx, bl
lea ecx, [ebp - 0x410]
inc eax
cmp esi, ecx
cmove ebx, eax
mov al, bl
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.00444460
leave
ret