Function at 0x10012df0
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029b06
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x868
mov eax, dword [0x10037040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x840], edi
mov dword [ebp - 0x844], edi
mov dword [ebp - 0x844], edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x1001300a
push 0x800
lea eax, [ebp - 0x830]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x830]
push 0x400
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x1001300a
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x85c]
call fcn.100120d0
push 0
push 0
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x85c]
cmp dword [ebp - 0x848], 7
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmova eax, dword [ebp - 0x85c]
push 0
push dword [ebp - 0x84c]
push eax
push 0
push 0xfde9
call esi
mov edi, eax
mov dword [ebp - 0x834], 0
push ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x83c]
movq qword [ebp - 0x83c], xmm0
lea eax, [edi + 1]
push eax
call fcn.1000a4f0
cmp dword [ebp - 0x848], 7
lea eax, [ebp - 0x85c]
push 0
cmova eax, dword [ebp - 0x85c]
push 0
push edi
push dword [ebp - 0x83c]
push dword [ebp - 0x84c]
push eax
push 0
push 0xfde9
call esi
mov eax, dword [ebp - 0x83c]
mov byte [eax + edi], 0
mov edi, dword [ebp - 0x840]
xorps xmm0, xmm0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x83c]
mov ecx, edx
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10012f60
sub ecx, esi
push ecx
push edx
mov ecx, edi
call fcn.10009bd0
mov edx, dword [ebp - 0x83c]
test edx, edx
je 0x10012fc6
mov ecx, dword [ebp - 0x834]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x10012f9e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013004
push ecx
push edx
call fcn.10026cc1
add esp, 8
mov dword [ebp - 0x83c], 0
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 0
mov ecx, dword [ebp - 0x848]
cmp ecx, 7
jbe 0x100130a2
mov edx, dword [ebp - 0x85c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10013098
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10013098
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea esi, [ebp - 0x17]
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
mov ah, dl
shl al, 2
add ah, al
add ah, ah
sub cl, ah
add cl, 0x30
mov byte [esi], cl
mov ecx, edx
test ecx, ecx
jne 0x10013015
push ecx
lea eax, [ebp - 0x17]
push eax
push esi
lea ecx, [ebp - 0x878]
call fcn.10002120
lea eax, [ebp - 0x878]
mov dword [ebp - 4], 2
push eax
mov edx, str.W_e:
mov ecx, edi
call fcn.10001ba0
mov ecx, dword [ebp - 0x864]
add esp, 4
cmp ecx, 0xf
jbe 0x100130a2
mov edx, dword [ebp - 0x878]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10013098
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10013098
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10026cc1
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10026c90
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret