Function at 0x4584cf0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45dee6d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4612008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], eax
test ecx, ecx
jne 0x4584d35
mov dword [eax], ecx
jmp 0x4584ee5
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
inc eax
xor ecx, ecx
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
mov ebx, eax
cmove ebx, ecx
lea ecx, [ebx + 0x11]
call fcn.045723f0
mov esi, eax
lea ecx, [ebx*2 + 0x24]
shr ecx, 1
xor eax, eax
shr ecx, 1
mov edi, esi
rep stosd dword es:[edi], eax
adc ecx, ecx
mov dword [ebp - 0x14], esi
rep stosw word es:[edi], ax
lea eax, [ebx + 1]
mov dword [esi + 4], 1
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], eax
mov dword [esi + 8], ecx
mov dword [esi], 0
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 4], 0
push eax
mov eax, dword [ebp - 0x20]
push ecx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, dword [esi + 8]
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4584da5
mov eax, dword [esi + 0xc]
sub ebx, ecx
mov edx, dword [esi]
mov edi, esi
sar ebx, 1
mov dword [ebp - 0x20], edx
cmp eax, ebx
jae 0x4584e3a
lea ecx, [eax + 0x1011]
add ecx, ebx
mov dword [ebp - 0x18], ecx
lea ecx, [eax + 0x1001]
add ecx, ebx
mov dword [ebp - 0x1c], ecx
cmp ecx, eax
jbe 0x4584e3a
lea ecx, [eax + 0x1011]
add ecx, ebx
call fcn.045723f0
mov edi, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], edi
lea ecx, [eax*2 + 2]
xor eax, eax
shr ecx, 1
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x24]
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 0xc]
lea eax, [eax*2 + 0x20]
push eax
push esi
push edi
call fcn.045bf7d0
lea eax, [edi + 0x10]
push esi
mov dword [edi + 8], eax
call fcn.045c460a
mov eax, dword [ebp - 0x1c]
add esp, 0x10
mov edx, dword [ebp - 0x20]
mov esi, edi
mov dword [edi + 0xc], eax
add edi, 8
mov dword [esi], ebx
xor ecx, ecx
mov dword [ebp - 0x24], edi
mov eax, dword [edi]
mov word [eax + ebx*2], cx
cmp ebx, edx
ja 0x4584ec0
mov ecx, edx
mov eax, ebx
sub ecx, ebx
mov dword [ebp - 0x1c], ecx
cmp ebx, edx
jae 0x4584ec0
cmp ecx, 8
jb 0x4584eb3
mov ecx, dword [edi]
lea edx, [ecx + ebx*2]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x20]
lea ecx, [ecx + edx*2]
add ecx, 0xfffffffe
cmp dword [ebp - 0x18], edi
ja 0x4584e7a
cmp ecx, edi
jae 0x4584eb3
mov edi, dword [ebp - 0x1c]
mov ecx, edx
and edi, 7
sub ecx, edi
add eax, 8
cmp eax, ecx
jb 0x4584e84
mov edi, dword [ebp - 0x18]
sub ecx, ebx
add ecx, 7
mov dword [ebp - 0x1c], eax
shr ecx, 3
xor eax, eax
shl ecx, 4
shr ecx, 1
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, dword [ebp - 0x1c]
cmp eax, edx
jae 0x4584ec0
mov edi, dword [ebp - 0x24]
mov ecx, dword [edi]
xor ebx, ebx
mov word [ecx + eax*2], bx
inc eax
cmp eax, edx
jb 0x4584eb3
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
mov dword [edi], 0
cmp eax, edi
je 0x4584ed4
mov dword [edi], esi
jmp 0x4584ee3
add dword [esi + 4], 0xffffffff
jne 0x4584ee3
push esi
call fcn.045c460a
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.045bc602
mov esp, ebp
pop ebp
ret 4