Function at 0x486e40
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x20]
push ebx
push ebp
push esi
cmp word [edx], 0
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
je 0x486e65
mov eax, dword [edi + 0x1c]
mov byte [esp + 0x30], 1
cmp word [eax], 0
je 0x486e6a
mov byte [esp + 0x30], 0
mov dword [edi + 0x1c], edx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x486e70
mov eax, dword [esp + 0x2c]
sub edx, ecx
mov esi, dword [esp + 0x28]
mov ebp, esi
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0x24]
sar edx, 1
mov dword [edi + 4], eax
mov eax, dword [edi]
mov dword [edi + 0x20], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], 0
mov dword [edi], 0
xor eax, eax
mov edx, str.ahk_
mov ecx, ebp
mov dword [esp + 0x2c], eax
call fcn.004819d0
mov ebx, eax
test ebx, ebx
je 0x486fc1
nop dword [eax]
cmp ebx, esi
jbe 0x486ef2
movzx ecx, word [ebx - 2]
cmp ecx, 0x20
je 0x486ef2
cmp ecx, 9
jne 0x486f65
push 2
lea esi, [ebx + 8]
push 0x4db794
push esi
call fcn.0049ee52
add esp, 0xc
test eax, eax
je 0x486fb2
push 3
push 0x4db79c
push esi
call fcn.0049ee52
add esp, 0xc
test eax, eax
je 0x486fa5
push 5
push str.group
push esi
call fcn.0049ee52
add esp, 0xc
test eax, eax
je 0x486f98
push 3
push 0x4d402c
push esi
call fcn.0049ee52
add esp, 0xc
test eax, eax
je 0x486f8b
push 5
push str.class
push esi
call fcn.0049ee52
add esp, 0xc
test eax, eax
je 0x486f7e
mov esi, dword [esp + 0x28]
lea ecx, [ebx + 8]
mov edx, str.ahk_
call fcn.004819d0
mov ebx, eax
test ebx, ebx
jne 0x486ee0
jmp 0x486fc1
add esi, 0xa
mov dword [esp + 0x2c], 8
jmp 0x486fbd
add esi, 6
mov dword [esp + 0x2c], 0x20
jmp 0x486fbd
add esi, 0xa
mov dword [esp + 0x2c], 0x10
jmp 0x486fbd
add esi, 6
mov dword [esp + 0x2c], 4
jmp 0x486fbd
add esi, 4
mov dword [esp + 0x2c], 2
mov dword [esp + 0x18], esi
mov edx, dword [esp + 0x34]
mov eax, edx
sub eax, 2
je 0x4871ae
sub eax, 2
je 0x48719e
nop dword [eax]
movzx eax, word [ebp]
cmp eax, 0x20
je 0x486fee
cmp eax, 9
jne 0x486ff3
add ebp, 2
jmp 0x486fe0
cmp ebx, ebp
jne 0x48700a
cmp edx, 1
je 0x4871e3
mov edi, 0x4cdea8
jmp 0x4870ad
test ebx, ebx
je 0x4870ab
mov esi, dword [esp + 0x24]
test esi, esi
jne 0x487075
push esi
push ebx
call fcn.0049c861
mov ecx, dword [edi + 0xc]
sub eax, ebp
sar eax, 1
add esp, 8
inc eax
cmp eax, ecx
jbe 0x487075
cmp ecx, 0x400
jae 0x487044
mov dword [edi + 0xc], 0x400
mov ecx, 0x400
cmp ecx, eax
jae 0x487051
add ecx, ecx
cmp ecx, eax
jb 0x487048
mov dword [edi + 0xc], ecx
push dword [edi + 8]
call fcn.0049edd2
mov eax, dword [edi + 0xc]
add esp, 4
add eax, eax
push eax
call fcn.0049eded
add esp, 4
mov dword [edi + 8], eax
test eax, eax
je 0x4871fc
mov eax, dword [edi + 8]
mov ecx, ebx
sub ecx, ebp
sar ecx, 1
dec ecx
lea edi, [eax + esi*2]
mov dword [esp + 0x14], ecx
lea esi, [ecx + ecx]
push esi
push ebp
push edi
call fcn.0049c910
mov edx, dword [esp + 0x20]
xor eax, eax
mov word [esi + edi], ax
add esp, 0xc
mov eax, dword [esp + 0x24]
inc eax
add eax, edx
mov dword [esp + 0x24], eax
jmp 0x4870b1
mov edi, ebp
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x34]
lea eax, [ebp - 1]
cmp eax, 0x1f
ja case.0x4870c8.2
movzx eax, byte [eax + 0x487300]
jmp dword [eax*4 + 0x4872ec]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x10], edi
test ebx, ebx
je 0x4870e6
mov edi, edx
mov dword [ecx + 0x18], edi
mov edi, ecx
jmp 0x4871e1
lea edx, [edi + 2]
nop dword [eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4870f0
sub edi, edx
sar edi, 1
mov dword [ecx + 0x18], edi
mov edi, ecx
jmp 0x4871e1
cmp word [edi], 0
je 0x487137
mov esi, dword [0x4e8f6c]
test esi, esi
je 0x487137
nop dword [eax]
push edi
push dword [esi + 4]
call fcn.0049ecd1
add esp, 8
test eax, eax
je 0x48714e
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x487120
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x34], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14
mov edi, dword [esp + 0x10]
mov dword [edi + 0x34], esi
test esi, esi
je 0x487142
jmp 0x4871e1
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov dword [ecx + 0x38], edi
cmp dword [eax + 8], 4
je 0x487188
push 0x5c
push edi
call fcn.0049c861
add esp, 8
test eax, eax
jne 0x487188
mov edi, dword [esp + 0x10]
mov al, 1
mov byte [edi + 0x3c], al
jmp 0x4871e1
mov edi, dword [esp + 0x10]
xor al, al
mov byte [edi + 0x3c], al
jmp 0x4871e1
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x14], edi
mov edi, ecx
jmp 0x4871e1
mov ecx, ebp
call fcn.00481e00
mov ebp, dword [esp + 0x34]
mov dword [edi + 0x30], eax
jmp 0x4871e1
mov ecx, ebp
call fcn.00481e00
mov esi, eax
cmp esi, 0xffff
je 0x4871ca
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48720f
test byte [edi], 2
je 0x4871d4
cmp esi, dword [edi + 0x2c]
jne 0x48720f
mov ebp, dword [esp + 0x34]
mov dword [edi + 0x2c], esi
jmp 0x4871e1
mov edi, dword [esp + 0x10]
or dword [edi], ebp
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x34], eax
test eax, eax
je 0x487222
mov esi, dword [esp + 0x28]
jmp 0x486ec1
mov dword [edi + 0xc], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14
mov dword [edi + 0x2c], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14
mov eax, dword [edi]
cmp eax, dword [esp + 0x1c]
jne 0x487235
cmp byte [esp + 0x30], 0
je 0x4872dd
mov ecx, dword [edi + 0x64]
lea esi, [edi + 0x64]
test ecx, ecx
je 0x4872dd
test eax, eax
je 0x4872dd
mov ebx, esi
test al, 1
jne 0x48725d
mov eax, dword [edi + 0x1c]
cmp word [eax], 0
je 0x487277
lea ebx, [edi + 0x64]
push 0x7fff
lea ebp, [edi + 0x6c]
push ebp
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x487277
mov word [ebp], ax
mov esi, ebx
test byte [edi], 4
mov ebp, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x48728a
lea eax, [edi + 0x68]
push eax
push dword [esi]
call ebp
test byte [edi], 0x20
mov ebx, esi
je 0x4872c4
lea eax, [esp + 0x28]
push eax
push dword [esi]
call ebp
test eax, eax
je 0x4872c4
movzx eax, byte [edi + 0x3c]
lea edx, [edi + 0x1026c]
push eax
push ecx
mov ecx, dword [esp + 0x30]
call fcn.00428fba
add esp, 8
test eax, eax
jne 0x4872c4
mov word [edi + 0x1026c], ax
lea ebx, [edi + 0x64]
test byte [edi], 8
je 0x4872dd
push 0x101
lea eax, [edi + 0x1006a]
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetClassNameW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 0x14