Function at 0x503470
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56385b
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x5b7de4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x144], esi
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00530cf0
add esp, 0xc
lea eax, [ebp - 0x110]
push 0xff
push eax
push dword [esi + 0x140]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [esi + 0x164]
lea ecx, [ebp - 0x110]
add esi, 0x164
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x128], 0
mov dword [esi + 4], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x503506
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x128]
call fcn.0040a4a0
lea eax, [ebp - 0x128]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.00463300
mov edi, eax
add esp, 8
lea eax, [ebp - 0x128]
cmp eax, edi
je 0x50357a
mov ecx, eax
call fcn.00408f00
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x128], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x118], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov edx, dword [ebp - 0x12c]
cmp edx, 0x10
jb 0x5035b4
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5035aa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x503721
push edx
push ecx
call fcn.005189ee
add esp, 8
mov eax, dword [ebp - 0x144]
xor edi, edi
mov dword [ebp - 0x148], edi
mov eax, dword [eax + 0x160]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x5036a1
nop dword [eax]
nop dword [eax + eax]
mov ecx, dword [ebp - 0x144]
lea eax, [ebp - 0x128]
push edi
push eax
push dword [ebp - 0x144]
push dword [ebp - 0x144]
call fcn.004fdf70
test eax, eax
je 0x503670
mov ecx, dword [ebp - 0x144]
push edi
call fcn.004ffc20
mov edx, dword [esi + 4]
test eax, eax
js 0x50364e
mov ecx, edx
sub ecx, dword [esi]
sar ecx, 2
cmp eax, ecx
jae 0x50364e
mov ecx, dword [esi]
lea eax, [ecx + eax*4]
lea ecx, [ebp - 0x148]
push ecx
push eax
lea eax, [ebp - 0x14c]
mov ecx, esi
push eax
call fcn.00464d50
jmp 0x50366a
cmp dword [esi + 8], edx
je 0x50365b
mov dword [edx], edi
add dword [esi + 4], 4
jmp 0x503670
lea eax, [ebp - 0x148]
mov ecx, esi
push eax
push edx
call fcn.0040aeb0
mov edi, dword [ebp - 0x148]
mov eax, dword [ebp - 0x144]
inc edi
mov dword [ebp - 0x148], edi
mov eax, dword [eax + 0x160]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x5035f0
mov eax, dword [esi + 4]
sub eax, dword [esi]
mov esi, dword [ebp - 0x144]
push 0
sar eax, 2
push eax
push 0x102f
push dword [esi + 0x120]
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [ebp - 0x114]
cmp edx, 0x10
jb 0x503706
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5036fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x503726
push edx
push ecx
call fcn.005189ee
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005189ad
mov esp, ebp
pop ebp
ret
call fcn.00545078
call fcn.00545078
int3