Function at 0x4070c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x44f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0041cce0
mov eax, dword [0x449954]
movups xmm0, xmmword [str.CTXOPConntion_Class]
push 0xf0
mov dword [ebp - 0x1fc], eax
lea eax, [ebp - 0x1f8]
push 0
push eax
movups xmmword [ebp - 0x20c], xmm0
call fcn.0041cce0
push 0x104
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.0041cce0
add esp, 0x24
lea eax, [ebp - 0x20c]
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebx, eax
test ebx, ebx
je 0x40725c
push edi
nop dword [eax]
nop dword [eax + eax]
mov ecx, str.CTXOPConntion_Class
lea eax, [ebp - 0x20c]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407180
test dl, dl
je 0x40717c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407180
add eax, 2
add ecx, 2
test dl, dl
jne 0x407160
xor eax, eax
jmp 0x407185
sbb eax, eax
or eax, 1
test eax, eax
jne 0x407235
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x20c]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4071b0
sub eax, edx
nop dword [eax]
dec eax
cmp byte [ebp + eax - 0x20c], 0x5f
jne 0x4071c0
lea ecx, [ebp - 0x20b]
add ecx, eax
lea edx, [ebp - 0x310]
sub edx, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4071e0
lea edx, [ebp - 0x310]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4071f5
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407205
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x407222
mov ax, word [0x449288]
mov word [edi], ax
push 2
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameA]
test ebx, ebx
jne 0x407150
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x108]
lea edx, [ebp - 0x108]
dec edx
lea ecx, [ebp - 0x108]
test al, al
je 0x40729c
nop word [eax + eax]
cmp al, 0xa
je 0x40728c
cmp al, 0xd
je 0x40728c
cmp al, 0x20
jne 0x407294
lea eax, [edx + 1]
cmp eax, ecx
cmove edx, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x407280
inc edx
mov esi, ecx
dec ecx
cmp byte [edx], 0
jne 0x4072ae
mov byte [ebp - 0x108], 0
jmp 0x4072e8
cmp ecx, edx
jbe 0x4072cd
mov al, byte [ecx]
cmp al, 0xa
je 0x4072c0
cmp al, 0xd
je 0x4072c0
cmp al, 0x20
jne 0x4072c8
lea eax, [esi - 1]
cmp eax, ecx
cmove esi, ecx
dec ecx
cmp ecx, edx
ja 0x4072b2
sub esi, edx
lea eax, [ebp - 0x108]
push esi
push edx
push eax
call fcn.0041c760
add esp, 0xc
mov byte [ebp + esi - 0x108], 0
lea ecx, [ebp - 0x108]
pop esi
lea edx, [ecx + 1]
pop ebx
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4072f3
sub ecx, edx
lea eax, [ebp - 0x108]
cmp ecx, 4
mov edx, str.NULL
mov ecx, dword [ebp - 4]
cmovbe eax, edx
xor ecx, ebp
call fcn.00419df9
mov esp, ebp
pop ebp
ret