Function at 0x101582e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ce59b
mov eax, dword fs:[0]
push eax
mov eax, 0x1844
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 + 0x14]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x183c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1838], eax
lea eax, [ebp - 0x1830]
push eax
push ebx
mov dword [ebp - 0x1840], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0x400
lea eax, [ebp - 0x1810]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x1810]
push eax
lea eax, [ebp - 0x1010]
push 0x400
push eax
call fcn.1017c1f6
lea ecx, [ebp - 0x1810]
add esp, 0xc
lea edx, [ecx + 2]
jmp 0x10158380
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10158380
sub ecx, edx
mov eax, 0x400
sar ecx, 1
sub eax, ecx
push edi
push eax
lea eax, [ebp - 0x1010]
lea eax, [eax + ecx*2]
push eax
call fcn.1017c1f6
add esp, 0xc
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0x31
push dword [ebp - 0x1840]
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 0x101583d2
sub ecx, edx
lea eax, [ebp - 0x1850]
push eax
sar ecx, 1
push ecx
push esi
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
movdqu xmm0, xmmword [ebp - 0x1830]
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
movdqu xmmword [ebp - 0x1820], xmm0
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10158410
push 0x410
sub ecx, edx
lea eax, [ebp - 0x1820]
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 - 0x1814]
lea eax, [ebp - 0x1010]
movdqu xmm0, xmmword [ebp - 0x1830]
sub edi, dword [ebp - 0x181c]
lea ecx, [ebp - 0x1834]
push eax
movdqu xmmword [ebp - 0x1820], xmm0
call fcn.100224c2
push 1
push 0x1021dc8c
lea ecx, [ebp - 0x1834]
mov dword [ebp - 4], 0
call fcn.1000d4a0
test esi, esi
jne 0x10158489
xor ecx, ecx
jmp 0x1015849f
mov ecx, esi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10158490
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x1834]
call fcn.1000d4a0
mov eax, dword [ebp - 0x1834]
lea ecx, [ebp - 0x1820]
push 0x410
push ecx
push dword [eax - 0xc]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [ebp - 0x1814]
sub eax, dword [ebp - 0x181c]
cmp edi, eax
je 0x101584f2
mov ecx, dword [ebp - 0x183c]
mov dword [ecx], 0
mov ecx, dword [ebp - 0x1838]
mov dword [ecx], edi
jmp 0x101586a1
mov eax, dword [ebp - 0x1838]
mov dword [eax], 0
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x810]
push 0x400
push eax
cmp edi, dword [ebp - 0x184c]
jle 0x10158633
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 0x10158530
sub ecx, edx
mov eax, edi
sar ecx, 1
lea esi, [ebp + ecx*2 - 0x812]
jmp 0x10158550
lea ecx, [ebp - 0x810]
cmp ecx, esi
jae 0x101585d4
movdqu xmm0, xmmword [ebp - 0x1830]
lea edx, [ecx + 2]
movdqu xmmword [ebp - 0x1820], xmm0
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10158570
push 0x410
sub ecx, edx
lea eax, [ebp - 0x1820]
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 - 0x1814]
sub eax, dword [ebp - 0x181c]
cmp edi, eax
jne 0x101585d4
sub esi, 2
lea ecx, [ebp - 0x810]
cmp ecx, esi
jae 0x10158550
cmp word [esi], 0x20
je 0x10158550
xor ecx, ecx
mov word [esi], cx
sub esi, 2
lea ecx, [ebp - 0x810]
cmp ecx, esi
jb 0x101585b7
jmp 0x10158550
mov ecx, dword [ebp - 0x1838]
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 0x10158626
jmp 0x1015866b
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 0x10158660
lea eax, [ebp - 0x1848]
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 - 0x1840]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 0x183c]
mov eax, dword [ebp - 0x1848]
mov dword [ecx], eax
mov edx, dword [ebp - 0x1834]
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 0x101586c8
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