Function at 0x51f0f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b99ae
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
push edi
mov eax, dword [0x6360e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x40], edi
mov esi, ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x44], esi
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov eax, dword [0x65d354]
push 0
add eax, 0x54
mov dword [ebp - 0x3c], 1
push edi
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x38], eax
cmp eax, dword [ebp - 0x30]
je 0x51f189
mov ecx, dword [ebp - 0x34]
call fcn.0051fa70
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 0x2c], eax
test eax, eax
jle 0x51f529
mov edi, dword [esi + 0x10]
lea edx, [eax + 1]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], SysReAllocString
cmp edx, edi
ja 0x51f1ca
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x51f1bc
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], edx
mov word [eax + edx*2], cx
jmp 0x51f374
mov eax, dword [esi + 0x14]
mov ecx, edx
sub ecx, edi
mov dword [ebp - 0x10], eax
sub eax, edi
mov dword [ebp - 0x20], ecx
cmp ecx, eax
ja 0x51f210
cmp dword [ebp - 0x10], 8
mov eax, esi
mov dword [esi + 0x10], edx
mov dword [ebp - 0x18], esi
jb 0x51f1f0
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
lea edi, [eax + edi*2]
test ecx, ecx
je 0x51f205
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov word [eax + edx*2], cx
jmp 0x51f374
mov eax, dword [ebp - 0x28]
sub eax, edi
cmp eax, ecx
jb 0x51f580
mov edi, edx
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x51f231
mov edi, SysReAllocString
jmp 0x51f251
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
shr ecx, 1
sub eax, ecx
cmp dword [ebp - 0x10], eax
jbe 0x51f247
mov edi, SysReAllocString
jmp 0x51f251
mov eax, dword [ebp - 0x10]
add eax, ecx
cmp edi, eax
cmovb edi, eax
xor ecx, ecx
mov dword [ebp - 0x14], edi
add edi, 1
setb cl
neg ecx
or ecx, edi
cmp ecx, 0x7fffffff
ja 0x51f58a
add ecx, ecx
cmp ecx, 0x1000
jb 0x51f2a0
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x51f58a
push eax
call fcn.00577033
add esp, 4
test eax, eax
je 0x51f585
mov edx, dword [ebp - 0x1c]
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x51f2b9
test ecx, ecx
je 0x51f2b7
push ecx
call fcn.00577033
mov edx, dword [ebp - 0x1c]
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], eax
jmp 0x51f2bc
xor edi, edi
mov dword [ebp - 0x24], edi
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], edx
lea ecx, [eax + eax]
push ecx
jb 0x51f340
mov eax, dword [esi]
push eax
push edi
mov dword [ebp - 0x14], eax
call fcn.00578ab0
mov ecx, dword [ebp - 0x18]
add esp, 0xc
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x20]
add edx, edi
test ecx, ecx
je 0x51f300
xor eax, eax
mov edi, edx
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 [ebp - 0x1c]
xor ecx, ecx
mov word [edi + eax*2], cx
mov eax, dword [ebp - 0x10]
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x14]
cmp ecx, 0x1000
jb 0x51f334
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51f585
mov eax, edx
push ecx
push eax
call fcn.005772b4
add esp, 8
jmp 0x51f372
push esi
push edi
call fcn.00578ab0
mov ecx, dword [ebp - 0x18]
add esp, 0xc
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x20]
add edx, edi
test ecx, ecx
je 0x51f369
xor eax, eax
mov edi, edx
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 [ebp - 0x1c]
xor ecx, ecx
mov word [edi + eax*2], cx
mov dword [esi], edi
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x51f37e
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 0x10]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
cmp edx, eax
ja 0x51f3b0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x51f3a2
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], edx
mov word [eax + edx*2], cx
jmp 0x51f529
mov edi, dword [esi + 0x14]
mov ecx, edx
sub ecx, eax
mov dword [ebp - 0x14], edi
mov eax, edi
mov dword [ebp - 0x24], ecx
sub eax, dword [ebp - 0x10]
cmp ecx, eax
ja 0x51f3fb
mov dword [esi + 0x10], edx
mov eax, esi
mov dword [ebp - 0x20], esi
cmp edi, 8
jb 0x51f3d8
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
mov edi, dword [ebp - 0x10]
lea edi, [eax + edi*2]
test ecx, ecx
je 0x51f3f0
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov word [eax + edx*2], cx
jmp 0x51f529
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x10]
cmp eax, ecx
jb 0x51f580
mov edi, edx
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x51f41d
mov edi, SysReAllocString
jmp 0x51f43a
mov eax, dword [ebp - 0x14]
mov ecx, eax
shr ecx, 1
sub dword [ebp - 0x28], ecx
cmp eax, dword [ebp - 0x28]
jbe 0x51f433
mov edi, SysReAllocString
jmp 0x51f43a
add eax, ecx
cmp edi, eax
cmovb edi, eax
xor ecx, ecx
mov dword [ebp - 0x18], edi
add edi, 1
setb cl
neg ecx
or ecx, edi
cmp ecx, 0x7fffffff
ja 0x51f58a
add ecx, ecx
cmp ecx, 0x1000
jb 0x51f489
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x51f58a
push eax
call fcn.00577033
add esp, 4
test eax, eax
je 0x51f585
mov edx, dword [ebp - 0x2c]
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x51f4a2
test ecx, ecx
je 0x51f4a0
push ecx
call fcn.00577033
mov edx, dword [ebp - 0x2c]
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], eax
jmp 0x51f4a5
xor edi, edi
mov dword [ebp - 0x1c], edi
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x10], edx
lea ecx, [eax + eax]
push ecx
jb 0x51f54c
mov eax, dword [esi]
push eax
push edi
mov dword [ebp - 0x20], eax
call fcn.00578ab0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x24]
add edx, edi
test ecx, ecx
je 0x51f4ed
xor eax, eax
mov edi, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [edi + eax*2], cx
mov eax, dword [ebp - 0x14]
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x20]
cmp ecx, 0x1000
jb 0x51f51d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51f585
mov eax, edx
push ecx
push eax
call fcn.005772b4
add esp, 8
mov dword [esi], edi
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x30]
je 0x51f539
mov ecx, dword [ebp - 0x34]
call fcn.0051fbb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.00578ab0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x24]
add edx, edi
test ecx, ecx
je 0x51f575
xor eax, eax
mov edi, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x51f527
call fcn.004015dd
call fcn.0057c388
call fcn.00401539
int3