Function at 0x101586f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ce5db
mov eax, dword fs:[0]
push eax
mov eax, 0x1044
call fcn.1017c420
mov eax, dword [0x1024bd20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x103c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1038], eax
lea eax, [ebp - 0x1030]
push eax
push edi
mov dword [ebp - 0x1040], edi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0x400
lea eax, [ebp - 0x1010]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0x31
push edi
mov ebx, eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10158784
sub ecx, edx
lea eax, [ebp - 0x1050]
push eax
sar ecx, 1
push ecx
push esi
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
movdqu xmm0, xmmword [ebp - 0x1030]
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
movdqu xmmword [ebp - 0x1020], xmm0
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101587c0
push 0x410
sub ecx, edx
lea eax, [ebp - 0x1020]
push eax
sar ecx, 1
lea eax, [ebp - 0x1010]
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov edi, dword [ebp - 0x1014]
lea eax, [ebp - 0x1010]
movdqu xmm0, xmmword [ebp - 0x1030]
sub edi, dword [ebp - 0x101c]
lea ecx, [ebp - 0x1034]
push eax
movdqu xmmword [ebp - 0x1020], xmm0
call fcn.100224c2
push 1
push 0x1021dc8c
lea ecx, [ebp - 0x1034]
mov dword [ebp - 4], 0
call fcn.1000d4a0
test esi, esi
jne 0x10158839
xor ecx, ecx
jmp 0x1015884f
mov ecx, esi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10158840
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x1034]
call fcn.1000d4a0
mov eax, dword [ebp - 0x1034]
lea ecx, [ebp - 0x1020]
push 0x410
push ecx
push dword [eax - 0xc]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [ebp - 0x1014]
sub eax, dword [ebp - 0x101c]
cmp edi, eax
je 0x101588a2
mov ecx, dword [ebp - 0x103c]
mov dword [ecx], 0
mov ecx, dword [ebp - 0x1038]
mov dword [ecx], edi
jmp 0x10158a51
mov eax, dword [ebp - 0x1038]
mov dword [eax], 0
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x810]
push 0x400
push eax
cmp edi, dword [ebp - 0x104c]
jle 0x101589e3
call fcn.1017c1f6
lea ecx, [ebp - 0x810]
add esp, 0xc
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101588e0
sub ecx, edx
mov eax, edi
sar ecx, 1
lea esi, [ebp + ecx*2 - 0x812]
jmp 0x10158900
lea ecx, [ebp - 0x810]
cmp ecx, esi
jae 0x10158984
movdqu xmm0, xmmword [ebp - 0x1030]
lea edx, [ecx + 2]
movdqu xmmword [ebp - 0x1020], xmm0
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10158920
push 0x410
sub ecx, edx
lea eax, [ebp - 0x1020]
push eax
sar ecx, 1
lea eax, [ebp - 0x810]
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [ebp - 0x1014]
sub eax, dword [ebp - 0x101c]
cmp edi, eax
jne 0x10158984
sub esi, 2
lea ecx, [ebp - 0x810]
cmp ecx, esi
jae 0x10158900
cmp word [esi], 0x20
je 0x10158900
xor ecx, ecx
mov word [esi], cx
sub esi, 2
lea ecx, [ebp - 0x810]
cmp ecx, esi
jb 0x10158967
jmp 0x10158900
mov ecx, dword [ebp - 0x1038]
mov dword [ecx], eax
lea eax, [ebp - 0x810]
sub esi, eax
lea eax, [ebp - 0x1010]
add esi, 2
sar esi, 1
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.1017c1f6
push 0x1021dc8c
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.1017c18a
lea ecx, [ebp - 0x810]
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101589d6
jmp 0x10158a1b
call fcn.1017c1f6
push 0x1021dc8c
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.1017c18a
lea ecx, [ebp - 0x810]
add esp, 0x18
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10158a10
lea eax, [ebp - 0x1048]
sub ecx, edx
push eax
sar ecx, 1
lea eax, [ebp - 0x810]
push ecx
push eax
mov eax, dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push ebx
call eax
push ebx
push dword [ebp - 0x1040]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 0x103c]
mov eax, dword [ebp - 0x1048]
mov dword [ecx], eax
mov edx, dword [ebp - 0x1034]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10158a78
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1017868e
mov esp, ebp
pop ebp
ret