Function at 0x406f90
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004166e0
mov eax, dword [0x43ffb4]
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.004166e0
push 0x104
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.004166e0
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 0x40712c
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 0x407050
test dl, dl
je 0x40704c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407050
add eax, 2
add ecx, 2
test dl, dl
jne 0x407030
xor eax, eax
jmp 0x407055
sbb eax, eax
or eax, 1
test eax, eax
jne 0x407105
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 0x407080
sub eax, edx
nop dword [eax]
dec eax
cmp byte [ebp + eax - 0x20c], 0x5f
jne 0x407090
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 0x4070b0
lea edx, [ebp - 0x310]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4070c5
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4070d5
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 0x4070f2
mov ax, word [0x43f8e8]
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 0x407020
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 0x40716c
nop word [eax + eax]
cmp al, 0xa
je 0x40715c
cmp al, 0xd
je 0x40715c
cmp al, 0x20
jne 0x407164
lea eax, [edx + 1]
cmp eax, ecx
cmove edx, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x407150
inc edx
mov esi, ecx
dec ecx
cmp byte [edx], 0
jne 0x40717e
mov byte [ebp - 0x108], 0
jmp 0x4071b8
cmp ecx, edx
jbe 0x40719d
mov al, byte [ecx]
cmp al, 0xa
je 0x407190
cmp al, 0xd
je 0x407190
cmp al, 0x20
jne 0x407198
lea eax, [esi - 1]
cmp eax, ecx
cmove esi, ecx
dec ecx
cmp ecx, edx
ja 0x407182
sub esi, edx
lea eax, [ebp - 0x108]
push esi
push edx
push eax
call fcn.00416160
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 0x4071c3
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.004137fd
mov esp, ebp
pop ebp
ret