Function at 0x1096d92
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x111121c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x40], edi
je 0x1096dd2
cmp ecx, edi
jne 0x1096dd9
cmp dword [ebp + 0xc], edi
jne 0x1096dd9
mov dword [ebp - 0x40], 0x80070057
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x50]
push eax
push edi
push 0x43c
push esi
mov dword [ebp - 0x50], edi
call ebx
test eax, eax
jne 0x1096dfa
mov dword [ebp - 0x40], 0x80004005
cmp dword [ebp - 0x40], edi
jl 0x1097005
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov edi, eax
push esi
mov dword [ebp - 0x60], edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [edi + edi*2]
lea edi, [eax + ecx*2 + 1]
lea eax, [edi + edi]
push eax
mov dword [ebp - 0x48], edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x44], eax
jne 0x1096e3c
mov dword [ebp - 0x40], 0x8007000e
cmp dword [ebp - 0x40], ecx
jl 0x1096ffc
cmp dword [ebp + 0xc], ecx
mov word [eax], cx
je 0x1096e56
push eax
push edi
push 0xd
push esi
call ebx
jmp 0x1096ec8
push 0x2f
pop ecx
xor eax, eax
lea edi, [ebp - 0x13c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x13c]
push eax
push 0
push 0x43d
push esi
mov dword [ebp - 0x13c], 0xbc
mov dword [ebp - 0x138], 0x10000
call ebx
mov ax, word [ebp - 0x132]
mov ecx, dword [ebp - 0x4c]
push dword [ebp - 0x44]
mov word [ecx + 0xa], ax
xor eax, eax
lea edi, [ebp - 0x80]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x48]
add eax, eax
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
push 0x45e
push esi
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x78], 0x4b0
call ebx
mov edi, dword [ebp - 0x48]
xor esi, esi
cmp dword [ebp - 0x60], esi
mov dword [ebp - 0x54], esi
jbe 0x1096fde
lea eax, [edi + edi]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x58], esi
je 0x1096fd5
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edx, dword [ebp - 0x58]
cmp edx, dword [ebp - 0x60]
jae 0x1096fd5
push 0xe
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x3c], 0x38
mov esi, 0x1009918
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
push 1
lea esi, [ebp - 0x3c]
push esi
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
mov dword [ebp - 0x40], eax
jl 0x1096fca
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x54]
or dword [ebp - 0x5c], 0xffffffff
mov esi, dword [ebp - 0x24]
lea edi, [eax + ecx]
mov ecx, dword [ebp - 0x68]
xor edx, edx
lea eax, [ecx + 0x10]
cmp esi, dword [eax]
je 0x1096f62
inc edx
add eax, 8
cmp edx, 0x3e
jb 0x1096f50
mov ecx, dword [ebp - 0x5c]
jmp 0x1096f66
mov ecx, dword [ecx + edx*8 + 0xc]
push ecx
call fcn.01096cc7
test eax, eax
mov dword [ebp - 0x5c], eax
je 0x1096fc4
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp - 0x48]
mov esi, eax
mov eax, dword [ebp - 0x54]
lea eax, [eax + esi - 1]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x44]
lea eax, [eax + edi*2]
push eax
push dword [ebp - 0x4c]
call ebx
mov eax, dword [ebp - 0x48]
sub eax, edi
push eax
push dword [ebp - 0x5c]
mov eax, dword [ebp - 0x44]
lea eax, [eax + edi*2]
push eax
call ebx
mov eax, dword [ebp - 0x48]
sub eax, esi
sub eax, edi
push eax
mov eax, dword [ebp - 0x4c]
add eax, 2
push eax
mov eax, dword [ebp - 0x44]
add esi, edi
lea eax, [eax + esi*2]
push eax
call ebx
mov esi, dword [ebp - 0x24]
mov eax, dword [esi]
push esi
call dword [eax + 8]
inc dword [ebp - 0x58]
mov edi, dword [ebp - 0x48]
jmp 0x1096ef4
push dword [ebp - 0x4c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x40], 0
jl 0x1096ff3
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x6c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x64]
mov dword [eax], edi
jmp 0x1096ffc
push dword [ebp - 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x40]
pop edi
pop esi
pop ebx
call fcn.0105ec09
leave
ret 0x14