Function at 0x4b6fa0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x20c
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x220]
push ebp
push esi
push edi
cmp word [ecx], 0
je 0x4b6fca
mov eax, dword [ebx + 0x100c]
mov byte [esp + 0x13], 1
cmp word [eax], 0
je 0x4b6fcf
mov byte [esp + 0x13], 0
mov dword [ebx + 0x100c], ecx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b6fe0
mov eax, dword [esp + 0x228]
sub ecx, edx
mov edi, dword [esp + 0x224]
xor ebp, ebp
mov dword [ebx + 0x1014], eax
mov edx, str.ahk_
mov eax, dword [esp + 0x230]
sar ecx, 1
mov dword [ebx + 0x1018], eax
mov eax, dword [esp + 0x220]
mov dword [ebx + 0x1010], ecx
mov ecx, edi
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
mov dword [ebx], 0
mov dword [esp + 0x1c], ebp
call fcn.004b09f0
mov dword [esp + 0x14], eax
test eax, eax
je 0x4b73a5
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test ebp, ebp
je 0x4b706a
movzx eax, word [eax - 2]
cmp eax, 0x20
je 0x4b7066
cmp eax, 9
jne 0x4b7377
mov eax, dword [esp + 0x14]
push 2
lea esi, [eax + 8]
push 0x4e5fb4
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x4b70bc
or dword [ebx], 2
lea ecx, [esi + 4]
call fcn.0044f7c0
mov dword [ebx + 0x101c], eax
cmp eax, 0xffff
je 0x4b7311
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4b7311
pop edi
pop esi
pop ebp
mov dword [ebx + 0x101c], eax
pop ebx
add esp, 0x20c
ret 0x14
push 6
push str.parent
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x4b710e
or dword [ebx], 0x100
lea ecx, [esi + 0xc]
call fcn.0044f7c0
mov dword [ebx + 0x1020], eax
cmp eax, 0xffff
je 0x4b7311
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4b7311
pop edi
pop esi
pop ebp
mov dword [ebx + 0x1020], eax
pop ebx
add esp, 0x20c
ret 0x14
push 3
push 0x4f1d30
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x4b7135
or dword [ebx], 4
lea ecx, [esi + 6]
call fcn.004051f0
mov dword [ebx + 0x1024], eax
jmp 0x4b7311
push 5
push str.group
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x4b7228
or dword [ebx], 0x10
add esi, 0xa
movzx eax, word [esi]
cmp eax, 0x20
je 0x4b715d
cmp eax, 9
jne 0x4b7162
add esi, 2
jmp 0x4b7150
push 0xfd
lea eax, [esp + 0x24]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov bp, word [esp + 0x2c]
lea edi, [esp + 0x2c]
xor eax, eax
add esp, 0xc
mov word [esp + 0x21a], ax
test bp, bp
je 0x4b71fc
movzx esi, bp
mov eax, 0x4e5614
mov edx, 0x20
nop dword [eax + eax]
cmp si, dx
je 0x4b71c3
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x4b71a0
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x4b7191
jmp 0x4b71d1
test edi, edi
je 0x4b71d1
xor eax, eax
mov word [edi], ax
mov bp, word [esp + 0x20]
test bp, bp
je 0x4b71fc
mov esi, dword [0x4fcc24]
test esi, esi
je 0x4b71fc
lea eax, [esp + 0x20]
push eax
push dword [esi + 4]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x4b7215
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x4b71e0
mov dword [ebx + 0x1028], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret 0x14
mov dword [ebx + 0x1028], esi
test esi, esi
je 0x4b7206
mov ebp, dword [esp + 0x1c]
jmp 0x4b7311
push 3
push 0x4ed50c
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x4b7246
add esi, 6
mov eax, 0x102c
or dword [ebx], 0x20
jmp 0x4b7266
push 5
push str.class
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x4b7377
add esi, 0xa
mov eax, 0x808
or dword [ebx], 8
lea edi, [eax + ebx]
nop dword [eax]
movzx eax, word [esi]
cmp eax, 0x20
je 0x4b727d
cmp eax, 9
jne 0x4b7282
add esi, 2
jmp 0x4b7270
push 0x3ff
push esi
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
xor eax, eax
mov edx, str.ahk_
mov word [edi + 0x7fe], ax
mov ecx, edi
call fcn.004b09f0
test eax, eax
je 0x4b72e2
nop dword [eax + eax]
cmp eax, edi
je 0x4b72dd
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4b72d5
cmp ecx, 9
je 0x4b72d5
lea ecx, [eax + 8]
mov edx, str.ahk_
call fcn.004b09f0
test eax, eax
jne 0x4b72b0
jmp 0x4b72e2
xor ecx, ecx
mov word [eax - 2], cx
jmp 0x4b72e2
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebx + 0x102c]
cmp edi, ecx
jne 0x4b7311
mov eax, dword [ebx + 4]
cmp dword [eax + 0x20], 4
je 0x4b7309
push 0x5c
push ecx
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
jne 0x4b7309
mov al, 1
jmp 0x4b730b
xor al, al
mov byte [ebx + 0x182c], al
test ebp, ebp
jne 0x4b7378
mov edx, dword [esp + 0x224]
mov ecx, edx
call fcn.00414680
mov esi, dword [esp + 0x14]
cmp esi, eax
jbe 0x4b7378
or dword [ebx], 1
lea edi, [ebx + 8]
sub esi, edx
mov eax, 0x400
sar esi, 1
cmp esi, 0x400
cmova esi, eax
dec esi
push esi
push edx
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
lea ecx, [edi + 2]
xor eax, eax
mov word [edi + esi*2], ax
nop dword [eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4b7360
sub edi, ecx
sar edi, 1
mov dword [ebx + 0x1008], edi
jmp 0x4b7378
dec ebp
mov ecx, dword [esp + 0x14]
inc ebp
mov edx, str.ahk_
mov dword [esp + 0x1c], ebp
lea ecx, [ecx + 8]
call fcn.004b09f0
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4b704a
test ebp, ebp
jne 0x4b73e5
mov edi, dword [esp + 0x224]
push 0x3ff
lea esi, [ebx + 8]
mov dword [ebx], 1
push edi
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
lea ecx, [esi + 2]
xor eax, eax
mov word [esi + 0x7fe], ax
nop word [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4b73d0
sub esi, ecx
sar esi, 1
mov dword [ebx + 0x1008], esi
mov eax, dword [ebx]
cmp eax, dword [esp + 0x18]
jne 0x4b73f8
cmp byte [esp + 0x13], 0
je 0x4b74ce
mov ecx, dword [ebx + 0x1854]
lea esi, [ebx + 0x1854]
test ecx, ecx
je 0x4b74ce
test eax, eax
je 0x4b74ce
mov edi, esi
test al, 1
jne 0x4b742c
mov eax, dword [ebx + 0x100c]
cmp word [eax], 0
je 0x4b7449
lea edi, [ebx + 0x1854]
push 0x7fff
lea ebp, [ebx + 0x1860]
push ebp
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x4b7449
mov word [ebp], ax
mov esi, edi
test byte [ebx], 4
mov ebp, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x4b745f
lea eax, [ebx + 0x185c]
push eax
push dword [esi]
call ebp
test byte [ebx], 0x20
mov edi, esi
je 0x4b749f
lea eax, [esp + 0x18]
push eax
push dword [esi]
call ebp
test eax, eax
je 0x4b749f
movzx eax, byte [ebx + 0x182c]
lea edx, [ebx + 0x11a60]
push eax
push ecx
mov ecx, dword [esp + 0x20]
call fcn.0047ab30
add esp, 8
test eax, eax
jne 0x4b749f
mov word [ebx + 0x11a60], ax
lea edi, [ebx + 0x1854]
test byte [ebx], 8
je 0x4b74b8
push 0x101
lea eax, [ebx + 0x1185e]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetClassNameW]
test dword [ebx], 0x100
je 0x4b74ce
push dword [edi]
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebx + 0x1858], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20c
ret 0x14