Function at 0x5bb2685f
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5bb70c3c]
push ebx
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
stosd dword es:[edi], eax
mov esi, ecx
cmp dword [esi + 0x24], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
stosd dword es:[edi], eax
jne 0x5bb2689a
xor esi, esi
jmp 0x5bb26aa0
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, eax
inc edi
push edi
lea eax, [ebp - 8]
push eax
call fcn.5baaee23
test eax, eax
jl 0x5bb26893
mov eax, dword [ebp - 8]
push edi
mov byte [eax], bl
push dword [ebp - 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push ebx
xor edi, edi
inc edi
push edi
push edi
push dword [ebp - 8]
call sub.MSOERT2.dll_UlStripWhitespace
test eax, eax
jne 0x5bb268ec
cmp dword [esi + 0x10], 2
sete al
dec eax
and eax, 0xfffffde9
add eax, 0x1a14
jmp 0x5bb2694c
mov ecx, dword [esi + 0x28]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.5bb2c49f
test eax, eax
jl 0x5bb26893
cmp dword [ebp - 0x14], ebx
jne 0x5bb2691b
xor eax, eax
cmp dword [esi + 0x10], 2
sete al
dec eax
and eax, 0xfffffded
add eax, 0x1a15
jmp 0x5bb2694c
mov ecx, dword [esi + 0x28]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.5bb2c5c8
test eax, eax
jl 0x5bb26893
cmp dword [ebp - 0x18], ebx
jne 0x5bb26972
xor eax, eax
cmp dword [esi + 0x10], 2
sete al
dec eax
and eax, 0xfffffdfc
add eax, 0x1a16
push 0x5ba5f15a
push sub.SHLWAPI.dll_Ordinal_107
push 0x40
push ebx
push eax
push 0x1073
push dword [esi + 0xc]
push dword [0x5bb73708]
call sub.MSOERT2.dll_MessageBoxInstW
jmp 0x5bb26893
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx + 8]
shr eax, 1
not eax
and eax, edi
jl 0x5bb26893
test dword [esi + 8], 2
jne 0x5bb26998
cmp eax, edi
jne 0x5bb26998
mov esi, edi
jmp 0x5bb26aa0
call fcn.5bb2e996
test eax, eax
je 0x5bb269d3
push 0x5ba5f15a
push sub.SHLWAPI.dll_Ordinal_107
push 0x40
push ebx
push 0x1815
push 0x1073
push dword [esi + 0xc]
push dword [0x5bb73708]
call sub.MSOERT2.dll_MessageBoxInstW
mov ecx, dword [esi + 0x28]
call fcn.5bb2ea17
jmp 0x5bb26893
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov eax, dword [ebp - 0x14]
shl eax, 5
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x28]
push edx
push ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x24]
push 2
mov word [ebp - 0x28], 0x41
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov ecx, eax
xor eax, eax
cmp ecx, ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jl 0x5bb26893
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax*2]
shl eax, 3
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x28]
push edx
push ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x24]
push 3
mov word [ebp - 0x28], 0x41
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov ecx, eax
xor eax, eax
cmp ecx, ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jl 0x5bb26893
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x28]
push edx
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x24]
push ebx
mov word [ebp - 0x28], 0x1e
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov ecx, eax
xor eax, eax
cmp ecx, ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jl 0x5bb26893
mov eax, dword [esi + 0x28]
and dword [eax + 8], 0xfffffffd
and dword [esi + 8], 0xfffffffd
xor esi, esi
inc esi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.5ba7b96f
cmp dword [ebp - 0x10], ebx
je 0x5bb26ac1
mov eax, dword [0x5bb73714]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call fcn.5ba7b9fa
cmp dword [ebp - 0xc], ebx
je 0x5bb26ae2
mov eax, dword [0x5bb73714]
push dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
cmp dword [ebp - 8], ebx
je 0x5bb26aff
mov eax, dword [0x5bb73714]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.5bb3f314
leave
ret