Function at 0xb77310
Capabilities:
Get graphical window text

Disassembly:
push 0x324
mov eax, 0xbcac66
call fcn.00bc132b
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x314], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x318], ebx
test eax, eax
je 0xb7736f
mov esi, 0xb12cd0
push 1
push 0xffffffffffffffff
push dword [esi]
push 0xffffffffffffffff
push edi
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringOrdinal]
dec eax
sub eax, 1
je 0xb77367
add esi, 0xc
cmp esi, 0xb12cf4
jne 0xb77345
xor esi, esi
test esi, esi
jne 0xbf100e
mov eax, ebx
call fcn.00bc12da
ret 0xc
cmp dword [esi + 8], ebx
je 0xbf120e
push 0x80
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x31c]
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_GetClassNameW]
dec eax
cmp eax, 0x7f
ja 0xbf120e
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00bc259b
mov edi, dword [esi + 8]
add esp, 0xc
test edi, edi
je 0xbf120e
cmp dword [edi], 0
je 0xbf120e
push 1
push 0xffffffffffffffff
push dword [edi + 4]
lea eax, [ebp - 0x210]
push 0xffffffffffffffff
push eax
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringOrdinal]
cmp eax, 2
jne 0xbf11fe
cmp dword [edi + 8], 0
je 0xbf11ee
cmp word [ebp - 0x110], 0
jne 0xbf10c6
push 0x80
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x31c]
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_GetWindowTextW]
dec eax
cmp eax, 0x7f
ja 0xbf120e
cmp word [ebp - 0x110], 0
je 0xbf120e
mov ebx, dword [ebp - 0x314]
lea eax, [ebx + 0x24]
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
lea ecx, [ebp - 0x320]
push ecx
push dword [edi + 8]
lea ecx, [ebx + 0x5c]
call fcn.00c8852e
mov ebx, eax
cmp ebx, 0x8002802b
jne 0xbf11bc
push 0
push 0x80
lea eax, [ebp - 0x310]
push eax
push dword [edi + 8]
call dword [sym.imp.api_ms_win_core_string_l2_1_1.dll_SHLoadIndirectString]
mov ebx, eax
test ebx, ebx
js 0xbf11bc
xor eax, eax
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x324], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x32c]
push 0xffffffffffffffff
lea eax, [ebp - 0x310]
push eax
call fcn.00b7ace0
mov ebx, eax
test ebx, ebx
js 0xbf11ad
mov eax, dword [ebp - 0x32c]
xor ecx, ecx
mov dword [ebp - 0x32c], ecx
mov dword [ebp - 0x324], ecx
mov dword [ebp - 0x328], ecx
mov ecx, dword [edi + 8]
mov dword [ebp - 0x330], eax
call fcn.00c889b6
sub esp, 0xc
lea ecx, [ebp - 0x330]
push ecx
push eax
push dword [edi + 8]
push ecx
mov ecx, dword [ebp - 0x314]
lea ecx, [ecx + 0x5c]
call fcn.00c88640
mov ebx, eax
test ebx, ebx
js 0xbf11ad
mov ecx, dword [ebp - 0x314]
lea eax, [ebp - 0x320]
push eax
push dword [edi + 8]
lea ecx, [ecx + 0x5c]
call fcn.00c8852e
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x32c]
call fcn.00b7a9bd
mov eax, dword [ebp - 0x314]
add eax, 0x24
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test ebx, ebx
js 0xbf11f8
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x110]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x320]
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringOrdinal]
cmp eax, 2
jne 0xbf11f8
mov ebx, dword [edi]
mov dword [ebp - 0x318], ebx
jmp 0xbf11fe
mov ebx, dword [ebp - 0x318]
add edi, 0xc
test ebx, ebx
je 0xbf1052
jmp 0xb7736f
mov ebx, dword [esi + 4]
jmp 0xb7736f