Function at 0x1006c1d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009a768
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x162c
call fcn.10076300
push ebx
push esi
mov eax, 0x100e5da0
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006c201
sub eax, edx
mov dword [esp + 0x20], eax
je 0x1006c639
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx + 8]
cmp eax, 0xbd04
jne 0x1006c593
xor eax, eax
mov ecx, 0xc
lea edi, [esp + 0x94]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0xc]
stosw word es:[edi], ax
push 0x32
lea eax, [esp + 0x98]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClassNameA]
mov edi, str.TRichEdit2
lea esi, [esp + 0x94]
mov ecx, 0xb
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1006c639
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
mov dword [esp + 0x20], esi
je 0x1006c639
lea eax, [esp + 0xc8]
push eax
push 0xff
push 0xd
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0xc8]
push ecx
lea ecx, [esp + 0x10]
call fcn.10011f50
lea edx, [esp + 0x28]
push edx
xor eax, eax
mov ecx, 0x19
lea edi, [esp + 0x2c]
push str.wcTM7A
mov dword [esp + 0x164c], 0
rep stosd dword es:[edi], eax
call fcn.1003a410
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
add esp, 8
test ecx, ecx
jl 0x1006c575
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.10076a37
add esp, 8
test eax, eax
je 0x1006c575
sub eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1006c575
lea ecx, [esp + 0x14]
call fcn.10001ff0
lea ecx, [esp + 0x18]
call fcn.10001ff0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push esi
mov byte [esp + 0x1650], 2
call fcn.1006b350
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
add esp, 0xc
test eax, eax
je 0x1006c563
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x1006c563
xor eax, eax
mov ecx, 0x19
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push eax
push str.0s
call fcn.1003a410
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
add esp, 8
test ecx, ecx
jl 0x1006c563
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.10076a37
add esp, 8
test eax, eax
je 0x1006c563
sub eax, dword [esp + 0xc]
mov esi, eax
cmp esi, 0xffffffff
je 0x1006c563
lea ecx, [esp + 0x1c]
call fcn.10001ff0
add esi, 2
push esi
lea edx, [esp + 0x14]
mov bl, 3
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x164c], bl
call fcn.10003c10
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1648], 4
call fcn.100029e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1644], bl
call fcn.10002010
xor eax, eax
mov ecx, 0x19
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push eax
push str.wcTM7A
call fcn.1003a410
mov esi, dword [esp + 0x24]
mov eax, dword [esi - 0xc]
add esp, 8
test eax, eax
jl 0x1006c452
lea ecx, [esp + 0x28]
push ecx
push esi
call fcn.10076a37
add esp, 8
test eax, eax
je 0x1006c452
sub eax, esi
cmp eax, 0xffffffff
je 0x1006c452
push eax
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
call fcn.10003b90
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1648], 5
call fcn.100029e0
lea ecx, [esp + 0x10]
call fcn.10002010
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
call fcn.10001ff0
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x164c], 6
call fcn.1006b940
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx - 0xc]
add esp, 8
test eax, eax
je 0x1006c551
mov ecx, 0x51a
xor eax, eax
lea edi, [esp + 0x1cc]
mov dword [esp + 0x1c8], 0
rep stosd dword es:[edi], eax
mov dword [esp + 0x1cc], 2
lea ebx, [ebx]
mov cl, byte [eax + 0x100e5da0]
mov byte [esp + eax + 0x1d0], cl
inc eax
test cl, cl
jne 0x1006c4b0
lea edx, [esp + 0x238]
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1006c4d0
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x29c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1006c4e7
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x300]
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1006c500
mov eax, dword [ebx - 0xc]
cmp eax, 0x1000
jb 0x1006c519
mov eax, 0x1000
push eax
lea edx, [esp + 0x462]
push ebx
push edx
call fcn.100770f0
mov eax, dword [0x1010e218]
add esp, 0xc
test eax, eax
je 0x1006c53c
test al, 1
je 0x1006c53c
test al, 4
je 0x1006c551
lea eax, [esp + 0x1c8]
push section..inidata
push eax
call fcn.1006b590
add esp, 8
lea ecx, [esp + 0x10]
call fcn.10002010
lea ecx, [esp + 0x1c]
call fcn.10002010
lea ecx, [esp + 0x18]
call fcn.10002010
lea ecx, [esp + 0x14]
call fcn.10002010
lea ecx, [esp + 0xc]
call fcn.10002010
mov ecx, dword [esp + 0x163c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0xb001
jne 0x1006c639
call fcn.1008cdb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [0x100e720c]
xor esi, esi
test eax, eax
mov dword [esp + 0x1644], 7
jle 0x1006c610
test esi, esi
jl 0x1006c5f9
cmp esi, eax
jge 0x1006c5f9
mov eax, dword [0x100e7208]
lea edi, [eax + esi*8]
push edi
lea ecx, [esp + 0x24]
call fcn.100029e0
mov edi, dword [edi + 4]
cmp edi, dword [ebx + 0xc]
mov dword [esp + 0x24], edi
je 0x1006c5fe
mov eax, dword [0x100e720c]
inc esi
cmp esi, eax
jl 0x1006c5c7
jmp 0x1006c610
jmp fcn.10088eec
cmp esi, 0xffffffff
je 0x1006c610
push 1
push esi
mov ecx, 0x100e7204
call fcn.100117b0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x1644], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1006c639
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x163c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret