Function at 0x10002110
Capabilities:
Get graphical window text

Disassembly:
mov al, byte [0x1000c010]
sub esp, 0x140
cmp al, 1
push ebx
push ebp
push esi
push edi
je 0x100023b1
mov eax, dword [0x1000c840]
test eax, eax
je 0x10002187
lea ecx, [esp + 0x50]
push 0x64
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x10002179
mov ecx, dword [0x1000c844]
lea eax, [ecx + ecx*8]
shl eax, 3
sub eax, ecx
or ecx, 0xffffffff
lea eax, [eax + eax*2]
lea edx, [eax*4 + 0x1000c0e4]
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea edx, [esp + 0x58]
push edx
call fcn.10002860
add esp, 0xc
test eax, eax
je 0x10002182
xor eax, eax
mov dword [0x1000c840], eax
jmp 0x10002187
mov eax, dword [0x1000c840]
xor bl, bl
test eax, eax
jne 0x100023b1
mov edx, 0x1000c298
mov al, byte [edx - 0x1d3]
test al, al
je 0x100021d2
cmp byte [edx - 1], 1
je 0x100021d0
cmp byte [edx], 1
je 0x100021cc
mov al, byte [edx - 2]
test al, al
jne 0x100021d2
xor eax, eax
lea ecx, [edx + 8]
cmp dword [ecx], 0
jne 0x100021c7
inc eax
add ecx, 0x1c
cmp eax, 0xa
jl 0x100021b7
jmp 0x100021cc
cmp eax, 0xa
jl 0x100021d2
mov byte [edx - 1], 1
mov bl, 1
add edx, 0x354
cmp edx, 0x1000c940
jl 0x10002196
test bl, bl
je 0x100023b1
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push eax
call edi
push 2
push eax
call edi
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x100023b1
jmp 0x10002212
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10002362
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10002362
lea eax, [esp + 0x50]
push 0x100
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x10002362
mov dword [esp + 0x14], 0
xor ebx, ebx
mov al, byte [ebx + 0x1000c297]
lea ebp, [ebx + 0x1000c0e4]
test al, al
je 0x10002341
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
dec edx
cmp byte [ebx + edx + 0x1000c0e4], 0x2a
jne 0x100022c7
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + edx + 0x20], 0
lea ecx, [esp + 0x20]
lea edx, [esp + 0x54]
push ecx
push edx
call fcn.10002860
add esp, 0xc
test eax, eax
jne 0x1000233d
jmp 0x100022fa
mov esi, ebp
lea eax, [esp + 0x50]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x100022f1
test cl, cl
je 0x100022ed
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x100022f1
add eax, 2
add esi, 2
test cl, cl
jne 0x100022cd
xor eax, eax
jmp 0x100022f6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000233d
lea esi, [ebp + 0x1bc]
xor eax, eax
mov ecx, esi
mov edi, dword [esp + 0x10]
mov edx, dword [ecx]
cmp edi, edx
je 0x10002319
inc eax
add ecx, 0x1c
cmp eax, 0xa
jl 0x10002304
jmp 0x1000231e
cmp eax, 0xa
jl 0x1000233d
push edi
call fcn.100020b0
add esp, 4
test al, al
jne 0x1000233d
xor eax, eax
mov ecx, esi
cmp dword [ecx], 0
je 0x1000237e
inc eax
add ecx, 0x1c
cmp eax, 0xa
jl 0x1000232f
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add ebx, 0x354
inc edx
cmp ebx, 0x6a8
mov dword [esp + 0x14], edx
jl 0x10002253
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push 2
push esi
call edi
test eax, eax
mov dword [esp + 0x10], eax
jne 0x1000220e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0x400
lea eax, [ecx + ecx*8]
push edi
shl eax, 3
sub eax, ecx
mov dword [0x1000c840], edi
mov dword [0x1000c844], ecx
lea eax, [eax + eax*2]
mov byte [eax*4 + 0x1000c297], 0
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret