Function at 0x1009d7e9
Capabilities:
Get graphical window text

Disassembly:
push 0x1c
mov eax, 0x10143a88
call fcn.101018b2
mov esi, ecx
mov eax, dword [0x1019a028]
mov dword [ebp - 0x10], eax
push dword [esi + 0x28]
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
push edi
lea ecx, [ebp - 0x10]
call fcn.10001a82
push ebx
lea ecx, [ebp - 0x10]
call fcn.10001a82
push edi
push eax
push dword [esi + 0x28]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.10001c5b
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.1000584b
call fcn.100e6014
cmp eax, ebx
pop ecx
jne 0x1009d87a
push 0x10
push ecx
mov eax, esp
mov dword [ebp - 0x18], esp
push ecx
mov dword [eax], 0x98
mov eax, esp
mov dword [eax], 0x106
mov dword [ebp - 0x18], esp
push dword [esi + 4]
call fcn.10018835
add esp, 0x10
jmp 0x1009da14
mov eax, dword [0x1019a028]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x1019e67c
mov byte [ebp - 4], 1
call fcn.1002a2ce
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 8], ebx
jne 0x1009d8bf
push 0x10
push ecx
mov eax, esp
mov dword [ebp - 0x18], esp
push ecx
mov dword [eax], 0x98
mov eax, esp
mov dword [ebp - 0x18], esp
mov dword [eax], 0x106
jmp 0x1009da01
mov eax, dword [esi + 0x30]
or dword [ebp - 0x18], 0xffffffff
cmp eax, ebx
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
je 0x1009d8e4
push ecx
push 0xffffffffffffffff
push 0x1a2
push dword [eax]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x1009d934
mov eax, dword [esi + 0x34]
xor ecx, ecx
sub eax, ebx
je 0x1009d8f7
dec eax
jne 0x1009d8fc
mov ecx, 0x107
jmp 0x1009d8fc
mov ecx, 0x108
push 0x24
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
push ecx
mov dword [eax], 0x98
movzx ecx, cx
mov eax, esp
mov dword [eax], ecx
mov dword [ebp - 0x1c], esp
push dword [esi + 4]
call fcn.10018835
add esp, 0x10
cmp eax, 7
je 0x1009da0c
push dword [ebp - 0x18]
mov ecx, dword [esi + 0x30]
call fcn.1009c490
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x1009d9d0
push dword [ebp - 0x14]
push 0xffffffffffffffff
push 0x1a2
push dword [eax]
call edi
cmp eax, 0xffffffff
jne 0x1009d9d0
push dword [ebp - 0x14]
mov eax, dword [esi + 0x2c]
push ebx
push 0x181
push dword [eax]
call edi
push dword [esi + 4]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.100490e2
cmp dword [ebp - 0x18], 0xffffffff
je 0x1009d9b3
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
lea edx, [ebp - 0x28]
push edx
push ecx
push eax
push dword [ebp - 0x20]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x1009d9b3
mov eax, dword [esi + 0x2c]
push ebx
push ebx
push 0x193
push dword [eax]
call edi
cmp dword [ebp - 0x28], eax
jle 0x1009d9b3
push dword [ebp - 0x28]
mov ecx, dword [esi + 0x2c]
call fcn.1009c47a
lea ecx, [ebp - 0x20]
call fcn.100490fe
lea ecx, [ebp - 0x14]
call fcn.100015d9
lea ecx, [ebp - 0x10]
call fcn.100015d9
xor eax, eax
inc eax
jmp 0x1009da1e
mov eax, dword [esi + 0x34]
xor ecx, ecx
sub eax, ebx
je 0x1009d9e3
dec eax
jne 0x1009d9e8
mov ecx, 0x109
jmp 0x1009d9e8
mov ecx, 0xd3
push 0x10
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
push ecx
mov dword [eax], 0x98
movzx ecx, cx
mov eax, esp
mov dword [ebp - 0x1c], esp
mov dword [eax], ecx
push dword [esi + 4]
call fcn.10018835
add esp, 0x10
lea ecx, [ebp - 0x14]
call fcn.100015d9
lea ecx, [ebp - 0x10]
call fcn.100015d9
xor eax, eax
call fcn.1010198a
ret