Function at 0x10007218
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x10087004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowLongA]
push edi
mov edi, ecx
mov dword [ebp - 0x130], eax
push 0xfffffffffffffff0
push edi
mov dword [ebp - 0x134], edi
call esi
push 0xffffffffffffffec
push edi
mov dword [ebp - 0x124], eax
call esi
and dword [ebp - 0x120], 0
mov esi, eax
push edi
mov dword [ebp - 0x12c], esi
mov byte [ebp - 0x111], 0
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, eax
mov dword [ebp - 0x118], esi
cmp esi, 0x100
jle 0x100072ae
lea eax, [esi + 0x10]
push eax
call fcn.100455ea
mov ebx, eax
mov dword [ebp - 0x120], ebx
pop ecx
test ebx, ebx
je 0x100072ae
lea ecx, [esi + 1]
push ecx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov esi, ebx
mov dword [ebp - 0x11c], ebx
jmp 0x100072da
push 0x100
lea eax, [ebp - 0x110]
mov byte [ebp - 0x110], 0
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea esi, [ebp - 0x110]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x11c], esi
cmp byte [esi], 0x5b
mov dword [ebp - 0x128], esi
jne 0x1000732b
inc esi
cmp byte [esi], 0x5b
je 0x1000732b
push 0x5d
push esi
call fcn.1002b1c0
pop ecx
pop ecx
test eax, eax
je 0x1000732b
lea ebx, [eax + 1]
mov dword [ebp - 0x11c], esi
push ebx
mov byte [eax], 0
mov dword [ebp - 0x128], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
push 0
push 0xc
push edi
mov dword [ebp - 0x118], eax
call dword [sym.imp.USER32.dll_DefWindowProcA]
mov byte [ebp - 0x111], 1
push 0x11b
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x1000768a
mov eax, dword [ebp - 0x12c]
test al, 0x10
je 0x1000736a
and eax, 0xffffffef
push eax
push 0xffffffffffffffec
push edi
mov dword [ebp - 0x12c], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov byte [ebx + 0x22], 1
mov ecx, dword [ebp - 0x130]
mov esi, dword [ebp - 0x12c]
mov eax, dword [ecx + 4]
mov dword [ebx + 9], eax
mov eax, dword [ecx + 8]
xor ecx, ecx
push ecx
push ecx
push 0x31
mov dword [ebx + 0xd], eax
mov eax, dword [ebp - 0x124]
push edi
mov dword [ebx + 0x11], edi
mov dword [ebx + 1], eax
mov dword [ebx + 5], esi
mov byte [ebx + 0x39], cl
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0x124]
mov edx, esi
mov dword [ebx + 0x79], eax
call fcn.10006700
mov byte [ebx + 0x74], al
mov byte [ebx + 0xd9], al
mov eax, dword [ebp - 0x124]
mov word [ebx + 0x48], 0x4e00
test eax, 0x8000
je 0x100073d8
mov byte [ebx + 0x27], 1
test al, 0x40
je 0x100073e0
mov byte [ebx + 0x21], 1
cmp byte [ebx + 0x22], 0
jne 0x1000752e
test al, 0x20
je 0x1000752e
mov ecx, dword [0x100899c4]
test ecx, ecx
jne 0x100074b6
mov esi, dword [ebp - 0x130]
mov edi, 0x100899d8
push edi
push 0x100899d0
push 0x28
mov ecx, dword [esi + 4]
pop edx
call fcn.100062ce
mov ecx, dword [esi + 4]
push 0
push 0
push 0x29
pop edx
mov dword [0x100899c4], eax
call fcn.100062ce
mov ecx, dword [esi + 4]
push 0
push 0
push 0x2a
pop edx
mov dword [0x100899dc], eax
call fcn.100062ce
mov ecx, dword [0x100899c4]
add esp, 0x18
mov dword [0x100899e0], eax
test ecx, ecx
jne 0x100074b6
cmp dword [0x100899dc], ecx
jne 0x100074b6
push str.K7CmnRes.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push 0x100899d0
mov esi, eax
push 0x28
pop edx
mov ecx, esi
call fcn.100062ce
push 0
push 0
push 0x29
pop edx
mov ecx, esi
mov dword [0x100899c4], eax
call fcn.100062ce
push 0
push 0
push 0x2a
pop edx
mov ecx, esi
mov dword [0x100899dc], eax
call fcn.100062ce
add esp, 0x18
mov dword [0x100899e0], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [0x100899c4]
mov eax, dword [0x1008799c]
lea edi, [ebx + 0x9e]
mov dword [ebx + 0x75], eax
lea esi, [ebx + 0x39]
mov dword [ebx + 0x3b], ecx
mov word [ebx + 0x39], 0x4200
mov byte [ebx + 0x49], 0x4e
mov byte [ebx + 0x3f], 1
mov eax, dword [0x100899d8]
mov dword [ebx + 0x40], eax
mov eax, dword [0x100899d0]
mov dword [ebx + 0x44], eax
push 0x19
mov eax, dword [0x100899dc]
pop ecx
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x134]
mov byte [ebx + 0xae], 0x4e
mov dword [ebx + 0xa0], eax
mov byte [ebx + 0x9f], 0x42
mov byte [ebx + 0xa4], 1
mov eax, dword [0x100899d8]
mov dword [ebx + 0xa5], eax
mov eax, dword [0x100899d0]
mov dword [ebx + 0xa9], eax
mov byte [ebx + 0x1f], 1
cmp byte [ebp - 0x111], 0
mov byte [ebp - 0x112], 0
je 0x100075e6
push 0x1008935c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp - 0x11c]
lea eax, [ebp - 0x112]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push dword [ebx + 9]
call fcn.1000832d
add esp, 0x14
mov esi, eax
push 0x1008935c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 1
jne 0x10007585
mov byte [ebx + 0x38], 1
cmp byte [ebp - 0x112], 0
je 0x100075e6
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x1000759f
push eax
call fcn.100455e5
pop ecx
push edi
xor esi, esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 0x11c], eax
test eax, eax
je 0x100075ec
lea ecx, [eax + 0x10]
push ecx
call fcn.100455ea
mov esi, eax
pop ecx
test esi, esi
je 0x100075ec
mov eax, dword [ebp - 0x11c]
inc eax
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x118], eax
jmp 0x100075f2
mov esi, dword [ebp - 0x120]
mov eax, dword [ebp - 0x118]
mov edx, dword [ebp - 0x128]
lea ecx, [ebx + 0x39]
push ecx
push ebx
push eax
mov ecx, edi
mov byte [ebx + 0x20], 1
call fcn.10008a0c
add esp, 0xc
test byte [ebp - 0x124], 0x20
jne 0x1000761b
cmp byte [ebx + 0x1f], 0
je 0x10007639
mov edx, dword [ebp - 0x128]
lea eax, [ebx + 0x9e]
push eax
push ebx
push dword [ebp - 0x118]
mov ecx, edi
call fcn.10008a0c
add esp, 0xc
cmp byte [ebx + 0x27], 0
je 0x10007659
push 6
push dword [ebx + 0x96]
xor eax, eax
push dword [ebx + 0x92]
push eax
push eax
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebx
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push dword [ebp - 0x130]
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.USER32.dll_DefWindowProcA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x10007688
push esi
call fcn.100455e5
pop ecx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10029e88
leave
ret