Function at 0x407c00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20020
call fcn.004167f0
mov eax, dword [0x428008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 0x44c
push ebx
mov ebx, ecx
cmp word [ebp + 8], ax
jne 0x407e55
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 8], 0x701
jne 0x407e55
movups xmm0, xmmword [ebx + 0x68]
push esi
mov esi, dword [ebx + 0x68]
movups xmmword [ebx + 0x78], xmm0
mov edx, dword [ebx + 0x34]
movss xmm0, dword [0x428888]
mulss xmm0, dword [0x41f530]
lea eax, [esi + 4]
add esi, 0x10
mov dword [ebp - 0x20008], edx
movd xmm1, eax
cvtdq2ps xmm1, xmm1
push edi
mov edi, dword [ecx + 0xc]
mov dword [ebp - 0x20010], edi
addss xmm1, xmm0
movss xmm0, dword [0x428884]
mulss xmm0, dword [0x41f524]
cvttss2si eax, xmm1
mov dword [ebp - 0x20014], eax
mov eax, dword [ecx + 0x14]
sub eax, edi
mov edi, edx
add eax, esi
cvttss2si esi, xmm1
cmp esi, eax
cmovg eax, esi
mov esi, dword [ebx + 0x38]
cmp eax, edx
cmovl edi, eax
mov eax, dword [ebx + 0x6c]
add eax, 4
mov dword [ebp - 0x2001c], edi
movd xmm1, eax
cvtdq2ps xmm1, xmm1
addss xmm1, xmm0
cvttss2si eax, xmm1
mov dword [ebp - 0x20020], eax
mov eax, dword [ecx + 0x18]
cmp edi, edx
jl 0x407d04
sub eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
sub edx, dword [ebx + 0x68]
sub ecx, dword [ebp - 0x20010]
sub edx, 4
imul eax, ecx
mov dword [ebp - 0x20008], edx
cdq
idiv dword [ebp - 0x20008]
mov edx, dword [ebx + 0x6c]
add edx, 0x18
add eax, edx
jmp 0x407e0d
mov edx, dword [ebx + 0x6c]
add eax, 0x18
sub edx, dword [ecx + 0x10]
add eax, edx
push 0x20000
mov dword [ebp - 0x2000c], eax
lea eax, [ebp - 0x20004]
push 0
push eax
call fcn.0040b1c0
add esp, 0xc
lea eax, [ebp - 0x20004]
push 0x20000
push eax
push dword [ebx + 0xb0]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebp - 0x20004]
mov edi, 1
lea eax, [ecx + 2]
xor edx, edx
mov dword [ebp - 0x20010], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407d60
sub ecx, dword [ebp - 0x20010]
sar ecx, 1
je 0x407d96
nop word [eax + eax]
cmp word [ebp + edx*2 - 0x20004], 0xa
lea eax, [edi + 1]
cmovne eax, edi
inc edx
mov edi, eax
cmp edx, ecx
jb 0x407d80
push 0
push 0
push 0xba
push dword [ebx + 0xb0]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, eax
cmp edx, edi
jle 0x407e01
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0xc]
mov eax, ecx
imul eax, edx
cdq
idiv edi
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x20008]
add eax, 0x10
add eax, dword [ebx + 0x68]
cmp dword [ebp - 0x20014], eax
cmovg eax, dword [ebp - 0x20014]
cmp eax, edi
cmovl edi, eax
mov eax, dword [edx + 0x18]
sub eax, dword [edx + 0x10]
imul eax, ecx
mov ecx, edi
sub ecx, dword [ebx + 0x68]
sub ecx, 4
cdq
idiv ecx
mov ecx, dword [ebx + 0x6c]
add ecx, 0x18
add eax, ecx
jmp 0x407e0d
mov edi, dword [ebp - 0x2001c]
mov eax, dword [ebp - 0x2000c]
cmp dword [ebp - 0x20020], eax
lea ecx, [ebx + 0xb0]
push 6
cmovg eax, dword [ebp - 0x20020]
cmp eax, esi
mov dword [ebx + 0x70], edi
cmovl esi, eax
sub edi, dword [ebx + 0x68]
mov dword [ebx + 0x74], esi
sub edi, 4
sub esi, dword [ebx + 0x6c]
sub esi, 4
push esi
push edi
push 0
push 0
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
mov dword [ebx + 0xbc], 1
pop esi
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop ebx
call fcn.00409972
mov esp, ebp
pop ebp
ret 8