Function at 0x486e00
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x218
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x22c]
push ebp
push esi
push edi
cmp word [ecx], 0
lea edx, [ebx + 0x100c]
mov dword [esp + 0x24], edx
je 0x486e32
mov eax, dword [edx]
cmp word [eax], 0
jne 0x486e32
mov byte [esp + 0x17], 1
jmp 0x486e3b
mov byte [esp + 0x17], 0
mov dword [esp + 0x24], edx
mov dword [edx], ecx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x486e40
mov eax, dword [esp + 0x234]
sub ecx, edx
mov dword [ebx + 0x1014], eax
xor edi, edi
mov eax, dword [esp + 0x23c]
mov edx, str.ahk_
sar ecx, 1
mov dword [ebx + 0x1018], eax
mov eax, dword [esp + 0x22c]
mov dword [ebx + 0x1010], ecx
mov ecx, dword [esp + 0x230]
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov dword [esp + 0x1c], eax
mov dword [ebx], 0
mov dword [esp + 0x18], edi
call fcn.004812d0
mov ebp, eax
mov dword [esp + 0x20], ebp
test ebp, ebp
je 0x4871ba
nop word [eax + eax]
test edi, edi
je 0x486ec6
movzx eax, word [ebp - 2]
cmp eax, 0x20
je 0x486ec6
cmp eax, 9
jne 0x487190
push 2
lea esi, [ebp + 8]
push 0x4dc7cc
push esi
call fcn.0049f2a2
add esp, 0xc
test eax, eax
jne 0x486f1b
or dword [ebx], 2
lea ecx, [ebp + 0xc]
call fcn.00481720
mov dword [ebx + 0x101c], eax
cmp eax, 0xffff
je 0x487130
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x487130
mov dword [ebx + 0x101c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 0x14
push 3
push 0x4dc7d4
push esi
call fcn.0049f2a2
add esp, 0xc
test eax, eax
jne 0x486f45
or dword [ebx], 4
lea ecx, [ebp + 0xe]
call fcn.00481720
mov dword [ebx + 0x1020], eax
jmp 0x487130
push 5
push str.group
push esi
call fcn.0049f2a2
add esp, 0xc
test eax, eax
jne 0x48703b
or dword [ebx], 0x10
lea eax, [ebp + 0x12]
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x486f70
cmp ecx, 9
jne 0x486f75
add eax, 2
jmp 0x486f63
push 0xfd
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004aa8c4
mov bp, word [esp + 0x34]
lea edi, [esp + 0x34]
xor eax, eax
add esp, 0xc
mov word [esp + 0x222], ax
test bp, bp
je 0x48700b
movzx esi, bp
mov eax, 0x4d4670
mov edx, 0x20
nop dword [eax]
cmp si, dx
je 0x486fd3
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x486fb0
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x486fa3
jmp 0x486fe1
test edi, edi
je 0x486fe1
xor eax, eax
mov word [edi], ax
mov bp, word [esp + 0x28]
test bp, bp
je 0x48700b
mov esi, dword [0x4e9e8c]
test esi, esi
je 0x48700b
lea eax, [esp + 0x28]
push eax
push dword [esi + 4]
call fcn.0049f121
add esp, 8
test eax, eax
je 0x487024
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x486ff0
mov dword [ebx + 0x1024], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 0x14
mov dword [ebx + 0x1024], esi
test esi, esi
je 0x487015
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
jmp 0x487130
push 3
push 0x4d5038
push esi
call fcn.0049f2a2
add esp, 0xc
test eax, eax
jne 0x48705e
or dword [ebx], 0x20
mov eax, 0x1028
mov ecx, 0xe
jmp 0x487083
push 5
push str.class
push esi
call fcn.0049f2a2
add esp, 0xc
test eax, eax
jne 0x487190
or dword [ebx], 8
mov eax, 0x808
mov ecx, 0x12
lea esi, [eax + ebx]
lea eax, [ecx + ebp]
nop dword [eax]
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x48709d
cmp ecx, 9
jne 0x4870a2
add eax, 2
jmp 0x487090
push 0x3ff
push eax
push esi
call fcn.004aa8c4
add esp, 0xc
xor eax, eax
mov edx, str.ahk_
mov word [esi + 0x7fe], ax
mov ecx, esi
call fcn.004812d0
test eax, eax
je 0x487102
nop word [eax + eax]
cmp eax, esi
je 0x4870fd
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4870f5
cmp ecx, 9
je 0x4870f5
lea ecx, [eax + 8]
mov edx, str.ahk_
call fcn.004812d0
test eax, eax
jne 0x4870d0
jmp 0x487102
xor ecx, ecx
mov word [eax - 2], cx
jmp 0x487102
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebx + 0x1028]
cmp esi, ecx
jne 0x487130
mov eax, dword [ebx + 4]
cmp dword [eax + 8], 4
je 0x487128
push 0x5c
push ecx
call fcn.0049ccaf
add esp, 8
test eax, eax
jne 0x487128
mov al, 1
jmp 0x48712a
xor al, al
mov byte [ebx + 0x1828], al
test edi, edi
jne 0x487191
mov edx, dword [esp + 0x230]
mov ecx, edx
call fcn.004138e0
cmp ebp, eax
jbe 0x487191
or dword [ebx], 1
lea edi, [ebx + 8]
mov esi, ebp
mov eax, 0x400
sub esi, edx
sar esi, 1
cmp esi, 0x400
cmova esi, eax
dec esi
push esi
push edx
push edi
call fcn.004aa8c4
add esp, 0xc
lea ecx, [edi + 2]
xor eax, eax
mov word [edi + esi*2], ax
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x487175
sub edi, ecx
sar edi, 1
mov dword [ebx + 0x1008], edi
mov edi, dword [esp + 0x18]
jmp 0x487191
dec edi
mov eax, 8
inc edi
mov edx, str.ahk_
mov dword [esp + 0x18], edi
lea ecx, [eax + ebp]
call fcn.004812d0
mov ebp, eax
mov dword [esp + 0x20], eax
test ebp, ebp
jne 0x486eb0
test edi, edi
jne 0x4871f9
push 0x3ff
push dword [esp + 0x234]
lea esi, [ebx + 8]
mov dword [ebx], 1
push esi
call fcn.004aa8c4
add esp, 0xc
lea ecx, [esi + 2]
xor eax, eax
mov word [esi + 0x7fe], ax
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4871e4
sub esi, ecx
sar esi, 1
mov dword [ebx + 0x1008], esi
mov eax, dword [ebx]
cmp eax, dword [esp + 0x1c]
jne 0x48720c
cmp byte [esp + 0x17], 0
je 0x4872bf
mov ecx, dword [ebx + 0x1850]
test ecx, ecx
je 0x4872bf
test eax, eax
je 0x4872bf
test al, 1
jne 0x487232
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
cmp word [eax], 0
je 0x48724c
push 0x7fff
lea esi, [ebx + 0x1858]
push esi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x48724c
mov word [esi], ax
test byte [ebx], 4
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x487266
lea eax, [ebx + 0x1854]
push eax
push dword [ebx + 0x1850]
call esi
test byte [ebx], 0x20
je 0x4872a2
lea eax, [esp + 0x1c]
push eax
push dword [ebx + 0x1850]
call esi
test eax, eax
je 0x4872a2
movzx eax, byte [ebx + 0x1828]
lea edx, [ebx + 0x11a58]
push eax
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004291cb
add esp, 8
test eax, eax
jne 0x4872a2
mov word [ebx + 0x11a58], ax
test byte [ebx], 8
je 0x4872bf
push 0x101
lea eax, [ebx + 0x11856]
push eax
push dword [ebx + 0x1850]
call dword [sym.imp.USER32.dll_GetClassNameW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x218
ret 0x14