Function at 0x520c68
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
push esi
push edi
mov dword [ebp - 0x11c], 1
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x13c], 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x124], eax
push 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x124], 0
je 0x520f8c
cmp dword [ebp - 0x114], 0
je 0x520f8c
mov dword [ebp - 0x11c], 0
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
cmp dword [eax], 0
je 0x520d25
push 0x105
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x520d3c
mov eax, dword [ebp - 0x118]
add eax, 4
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x105
lea eax, [ebp - 0x348]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x110]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
mov eax, dword [eax + 0x28e]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x520dab
mov eax, dword [ebp - 0x128]
cmp dword [eax], 0
je 0x520dab
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 8]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 0
je 0x520e32
lea eax, [ebp - 0x138]
push eax
push 0
call dword [sym.imp.ole32.dll_GetRunningObjectTable]
cmp dword [ebp - 0x138], 0
je 0x520e0c
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x138]
mov eax, dword [eax]
call dword [eax + 0x10]
mov eax, dword [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x138]
mov eax, dword [eax]
call dword [eax + 8]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax]
call dword [eax + 8]
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], 0
mov dword [ebp - 0x130], 1
mov eax, dword [ebp + 0xc]
mov dword [eax + 0xc], 0
mov eax, dword [ebp - 0x118]
cmp dword [eax], 0
jne 0x520f7f
cmp dword [ebp - 0x13c], 0
je 0x520f7f
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.ole32.dll_CreateFileMoniker]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x520f75
lea eax, [ebp - 0x138]
push eax
push 0
call dword [sym.imp.ole32.dll_GetRunningObjectTable]
cmp dword [ebp - 0x138], 0
je 0x520f70
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x13c]
mov eax, dword [eax + 0x14]
push eax
push 1
mov eax, dword [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x138]
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x138]
mov eax, dword [eax]
call dword [eax + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0xc], eax
mov dword [ebp - 0x11c], 0
cmp dword [ebp - 0x130], 0
je 0x520f59
mov dword [ebp - 0x12c], 0
jmp 0x520f0e
inc dword [ebp - 0x12c]
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x12c]
cmp dword [eax], ecx
jle 0x520f59
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x128]
cmp dword [ecx + eax*4 + 8], 0
je 0x520f54
push 2
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x128]
mov eax, dword [ecx + eax*4 + 8]
push eax
call fcn.00519c09
add esp, 8
jmp 0x520f08
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0
jne 0x520f70
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x10], 2
jmp 0x520f7f
mov dword [ebp - 0x11c], 1
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x11c]
jmp 0x520f97
pop edi
pop esi
pop ebx
leave
ret