Function at 0x51cd80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60e910
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x67e4d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp - 0x5c]
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x51cdbd
xor eax, eax
jmp 0x51cf76
mov edx, dword [ebp - 0x5c]
cmp dword [edx + 0x14], 0
jne 0x51cdcd
xor eax, eax
jmp 0x51cf76
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
add eax, 1
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
shl eax, 1
call fcn.005374d0
mov dword [ebp - 0x6c], esp
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x64], edx
cmp dword [ebp - 0x64], 0
jne 0x51ce00
xor eax, eax
jmp 0x51cf76
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp - 0x5c]
mov ecx, dword [ecx + 0x14]
call fcn.0051cc00
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x64]
push edx
lea ecx, [ebp - 0x28]
call fcn.0040ec80
mov dword [ebp - 4], 0
push 0
push 0xa
lea ecx, [ebp - 0x28]
call fcn.0049c750
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0xffffffff
je 0x51ceca
mov eax, dword [ebp - 0x68]
push eax
push 0
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00486970
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x74], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x74]
call fcn.0040e9d0
push eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0x5c]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x14]
mov edx, dword [eax + 0x19c]
call edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0040ebb0
mov eax, dword [ebp - 0x68]
push eax
push 0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00486970
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
call fcn.0040e9d0
push eax
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x58]
call fcn.0040ebb0
jmp 0x51cf34
lea ecx, [ebp - 0x28]
call fcn.0040e9d0
push eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp - 0x5c]
mov edx, dword [edx]
mov ecx, dword [eax + 0x14]
mov eax, dword [edx + 0x19c]
call eax
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebp - 0x5c]
cmp eax, dword [ecx + 4]
jne 0x51cf34
push 0
push 0
push 0xb0
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
and eax, 0xf
mov ecx, dword [ebp - 0x60]
sub ecx, 1
cmp eax, ecx
je 0x51cf34
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x60]
push eax
push 0xb1
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0
push 0x620200
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp - 0x5c]
mov edx, dword [edx]
mov ecx, dword [eax + 0x14]
mov eax, dword [edx + 0x20]
call eax
mov ecx, eax
call fcn.00462b70
mov dword [ebp - 0x80], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ebb0
mov eax, dword [ebp - 0x80]
lea esp, [ebp - 0x84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00536569
mov esp, ebp
pop ebp
ret 0x10