Function at 0x10017080
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10192ad6
mov eax, dword fs:[0]
push eax
sub esp, 0x864
mov eax, dword [0x101fd000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x83c], edi
mov dword [ebp - 0x83c], edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x10017283
push 0x800
lea eax, [ebp - 0x828]
push 0
push eax
call fcn.101695f0
add esp, 0xc
lea eax, [ebp - 0x828]
push 0x400
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x10017283
lea eax, [ebp - 0x828]
push eax
lea ecx, [ebp - 0x854]
call fcn.10015670
push 0
push 0
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x854]
cmp dword [ebp - 0x840], 7
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmova eax, dword [ebp - 0x854]
push 0
push dword [ebp - 0x844]
push eax
push 0
push 0xfde9
call esi
mov edi, eax
mov dword [ebp - 0x82c], 0
push ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x834]
movq qword [ebp - 0x834], xmm0
lea eax, [edi + 1]
push eax
call fcn.1000e640
cmp dword [ebp - 0x840], 7
lea eax, [ebp - 0x854]
push 0
cmova eax, dword [ebp - 0x854]
push 0
push edi
push dword [ebp - 0x834]
push dword [ebp - 0x844]
push eax
push 0
push 0xfde9
call esi
mov eax, dword [ebp - 0x834]
mov byte [eax + edi], 0
mov edi, dword [ebp - 0x838]
xorps xmm0, xmm0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x834]
mov ecx, edx
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100171d6
sub ecx, esi
push ecx
push edx
mov ecx, edi
call fcn.1000dcd0
mov edx, dword [ebp - 0x834]
test edx, edx
je 0x10017240
mov ecx, dword [ebp - 0x82c]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x10017218
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017334
push ecx
push edx
call fcn.10165540
add esp, 8
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x82c], 0
mov ecx, dword [ebp - 0x840]
cmp ecx, 7
jbe 0x10017317
mov edx, dword [ebp - 0x854]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001730d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017334
jmp 0x1001730d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea esi, [ebp - 0x13]
nop
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 0x10017290
push ecx
lea eax, [ebp - 0x13]
push eax
push esi
lea ecx, [ebp - 0x870]
call fcn.10002ca0
lea eax, [ebp - 0x870]
mov dword [ebp - 4], 2
push eax
mov edx, str.W_e:
mov ecx, edi
call fcn.10002730
mov ecx, dword [ebp - 0x85c]
add esp, 4
cmp ecx, 0xf
jbe 0x10017317
mov edx, dword [ebp - 0x870]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001730d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017339
push ecx
push edx
call fcn.10165540
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 - 0x10]
xor ecx, ebp
call fcn.1016550f
mov esp, ebp
pop ebp
ret
call fcn.1016cb5f
call fcn.1016cb5f
int3