Function at 0x100165c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a64d6
mov eax, dword fs:[0]
push eax
sub esp, 0x864
mov eax, dword [0x10216040]
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 0x100167c3
push 0x800
lea eax, [ebp - 0x828]
push 0
push eax
call fcn.1017cab0
add esp, 0xc
lea eax, [ebp - 0x828]
push 0x400
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x100167c3
lea eax, [ebp - 0x828]
push eax
lea ecx, [ebp - 0x854]
call fcn.100146e0
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.1000d7e0
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 0x10016716
sub ecx, esi
push ecx
push edx
mov ecx, edi
call fcn.1000d570
mov edx, dword [ebp - 0x834]
test edx, edx
je 0x10016780
mov ecx, dword [ebp - 0x82c]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x10016758
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016874
push ecx
push edx
call fcn.10178716
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 0x10016857
mov edx, dword [ebp - 0x854]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001684d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016874
jmp 0x1001684d
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 0x100167d0
push ecx
lea eax, [ebp - 0x13]
push eax
push esi
lea ecx, [ebp - 0x870]
call fcn.10002dc0
lea eax, [ebp - 0x870]
mov dword [ebp - 4], 2
push eax
mov edx, str.W_e:
mov ecx, edi
call fcn.10002820
mov ecx, dword [ebp - 0x85c]
add esp, 4
cmp ecx, 0xf
jbe 0x10016857
mov edx, dword [ebp - 0x870]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001684d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016879
push ecx
push edx
call fcn.10178716
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.101786e5
mov esp, ebp
pop ebp
ret
call fcn.1018001f
call fcn.1018001f
int3