Function at 0x3005deef
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
mov eax, dword [0x30001bc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
push eax
push ebx
mov dword [ebp - 0x328], 1
mov dword [ebp - 0x334], eax
mov dword [ebp - 0x31c], eax
call dword [sym.imp.USER32.dll_GetParent]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call edi
push 4
push ebx
mov dword [ebp - 0x32c], eax
call edi
cmp dword [ebp - 0x32c], 0
mov dword [ebp - 0x320], eax
je 0x3005e143
test eax, eax
je 0x3005e143
push dword [ebp - 0x32c]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
and dword [ebp - 0x328], 0
call edi
cmp dword [eax], 0
mov dword [ebp - 0x33c], eax
je 0x3005df96
push 0x105
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x3005dfab
add eax, 4
push eax
push 0x106
lea eax, [ebp - 0x10c]
push eax
call fcn.3003f6b8
push 0x105
lea eax, [ebp - 0x318]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
push eax
push 1
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp - 0x320]
call edi
mov edi, dword [eax + 0x28e]
cmp edi, ebx
je 0x3005dfea
cmp dword [edi], ebx
je 0x3005dfea
mov eax, dword [edi + 8]
mov dword [ebp - 0x31c], eax
push dword [ebp - 0x320]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [esi + 8], ebx
je 0x3005e03e
lea eax, [ebp - 0x324]
push eax
push ebx
call dword [sym.imp.ole32.dll_GetRunningObjectTable]
mov eax, dword [ebp - 0x324]
cmp eax, ebx
je 0x3005e028
push dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x324]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 8], ebx
mov dword [ebp - 0x334], 1
mov eax, dword [ebp - 0x33c]
mov dword [esi + 0xc], ebx
cmp dword [eax], ebx
jne 0x3005e137
cmp dword [ebp - 0x31c], ebx
je 0x3005e137
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.ole32.dll_CreateFileMoniker]
cmp dword [ebp - 0x330], ebx
je 0x3005e12d
lea eax, [ebp - 0x324]
push eax
push ebx
call dword [sym.imp.ole32.dll_GetRunningObjectTable]
mov eax, dword [ebp - 0x324]
cmp eax, ebx
je 0x3005e137
mov ecx, dword [eax]
lea edx, [ebp - 0x338]
push edx
push dword [ebp - 0x330]
mov edx, dword [ebp - 0x31c]
push dword [edx + 0x14]
push 1
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x324]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x334], ebx
mov eax, dword [ebp - 0x330]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x338]
mov dword [esi + 0xc], eax
mov dword [ebp - 0x328], ebx
je 0x3005e11f
cmp dword [edi], ebx
mov dword [ebp - 0x320], ebx
jle 0x3005e11f
lea eax, [edi + 8]
mov dword [ebp - 0x31c], eax
mov eax, dword [ebp - 0x31c]
mov eax, dword [eax]
cmp eax, ebx
je 0x3005e108
push 2
pop ecx
call fcn.3005b018
inc dword [ebp - 0x320]
mov eax, dword [ebp - 0x320]
add dword [ebp - 0x31c], 4
cmp eax, dword [edi]
jl 0x3005e0f4
cmp dword [esi + 0x10], ebx
jne 0x3005e137
mov dword [esi + 0x10], 2
jmp 0x3005e137
mov dword [ebp - 0x328], 1
push dword [ebp - 0x32c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x328]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30071b52
leave
ret 8