Function at 0x10005860
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x80
mov eax, dword [0x100d3fe0]
xor eax, esp
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x84]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
mov ebx, ecx
mov ecx, dword [eax + 4]
push esi
push edi
mov dword [esp + 0x24], ebx
cmp ecx, 0x8d2
jne 0x1000589b
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
jmp 0x100058e3
cmp ecx, 0x113
jne 0x10005b75
cmp dword [eax + 8], 0x7d5
jne 0x10005b75
mov eax, dword [ebx + 0x10]
push eax
call ebp
test eax, eax
jne 0x100058db
push 0x7d5
mov ecx, ebx
call fcn.100038e0
mov dword [ebx + 0x10], 0
mov eax, 1
jmp 0x10005b80
mov esi, dword [ebx + 0x10]
mov eax, 6
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
cmp eax, 6
jne 0x10005b71
push esi
call ebp
test eax, eax
je 0x100058d1
push esi
mov ecx, ebx
call fcn.10001ef0
mov ebx, eax
mov dword [esp + 0x38], ebx
cmp ebx, edi
je 0x100058d1
lea ecx, [esp + 0x20]
push ecx
push 0x100c5ca0
push edi
push esi
call dword [0x100d6cc4]
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x10005b4c
push edi
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x28]
push ecx
push edi
push 0x100d6c84
push edi
push eax
call fcn.100024c0
add esp, 0x24
cmp eax, 1
jne 0x10005b40
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
push ecx
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, 5
jle 0x10005b34
cmp dword [ebx + 4], eax
je 0x10005b34
push 0x4e
lea ecx, [esp + 0x42]
xor eax, eax
push edi
push ecx
mov word [esp + 0x48], ax
call fcn.1007f650
add esp, 0xc
push 0x28
lea edx, [esp + 0x40]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x100bac7c
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
cmp eax, edi
je 0x100059c5
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x1c]
cmp eax, edi
jne 0x100059d7
mov esi, 2
jmp 0x100059e6
mov edx, ecx
sub edx, eax
cmp edx, 5
lea esi, [eax - 2]
jle 0x100059e6
lea esi, [ecx - 9]
lea eax, [ecx - 3]
cmp esi, eax
jg 0x10005b31
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
mov ecx, 3
mov word [esp + 0x2c], cx
mov ebp, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov ebp, dword [esp + 0x40]
mov ecx, esi
mov dword [esp + 0x44], ecx
mov ebx, dword [edx]
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [ebx + 0x28]
mov dword [eax + 0xc], ecx
call edx
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x10005b1d
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
cmp eax, edi
je 0x10005a61
cmp word [ecx + eax*2 - 4], 0x3a
je 0x10005a61
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x10], edi
jmp 0x10005b1d
xor edx, edx
mov word [ecx + eax*2 - 4], dx
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov ebp, dword [esp + 0x40]
inc esi
mov ecx, esi
mov dword [esp + 0x44], ecx
mov ebx, dword [edx]
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [ebx + 0x28]
mov dword [eax + 0xc], ecx
call edx
cmp dword [esp + 0x14], edi
je 0x10005af7
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x10005acc
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0xc]
push edx
push edi
push eax
push edi
lea edx, [esp + 0x4c]
push edx
jmp 0x10005af0
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
push eax
lea ecx, [ebx + 0xc]
call fcn.10001960
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ecx
push edi
lea edx, [esp + 0x44]
push edx
push edi
push eax
mov ecx, ebx
push 6
call fcn.10003990
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x10005b0a
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x10005b1d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x1c]
inc esi
lea edx, [ecx - 3]
cmp esi, edx
jle 0x100059f1
mov ebx, dword [esp + 0x38]
mov dword [ebx + 4], ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x10005b5b
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x10005b6a
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, 1
jmp 0x10005b80
xor eax, eax
jmp 0x10005b80
xor eax, eax
cmp ecx, 0x113
setne al
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1007fec9
add esp, 0x80
ret 4