Function at 0x4047e9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44507b
mov eax, dword fs:[0]
push eax
mov eax, 0x100c
call fcn.00443750
mov eax, dword [0x48f85c]
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 0x404876
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x404851
cmp word [ebp - 0x410], 0
je 0x404a4a
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 0x404a4a
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00404c70
pop ecx
pop ecx
lea ecx, [ebp - 0x410]
cmp ecx, eax
jne 0x40491e
call fcn.00403fdb
cmp dword [eax + 4], 1
ja 0x404a04
xor bl, bl
mov esi, 0x490824
cmp dword [0x49083c], 0
mov dword [ebp - 0x1018], esi
je 0x4048f0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x1014], 1
and dword [ebp - 4], 0
mov dword [0x490820], edi
or dword [ebp - 4], 0xffffffff
cmp dword [0x49083c], 0
je 0x404a4a
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x404a4a
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.00404c70
add esp, 0x20
test eax, eax
jne 0x404970
lea eax, [ebp - 0x810]
push str.___Microsoft_PowerPoint
push eax
call fcn.00404c70
pop ecx
pop ecx
test eax, eax
je 0x404993
lea ecx, [ebp - 0x810]
cmp eax, ecx
jbe 0x404993
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 0x44a1fc
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 0x4049e2
test eax, eax
je 0x4049e2
cmp eax, esi
jbe 0x4049e2
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 0x404a08
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0xc10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x404a08
mov bl, 1
jmp 0x404a4a
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 0x404a4a
test eax, eax
je 0x404a4a
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.00442ef0
leave
ret