Function at 0x4b79b0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x210
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x224]
push ebp
push esi
push edi
cmp word [ecx], 0
lea edx, [ebx + 0x100c]
mov dword [esp + 0x20], edx
je 0x4b79e2
mov eax, dword [edx]
cmp word [eax], 0
jne 0x4b79e2
mov byte [esp + 0x13], 1
jmp 0x4b79eb
mov byte [esp + 0x13], 0
mov dword [esp + 0x20], edx
mov dword [edx], ecx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b79f0
mov eax, dword [esp + 0x22c]
sub ecx, edx
mov dword [ebx + 0x1014], eax
xor edi, edi
mov eax, dword [esp + 0x234]
mov edx, str.ahk_
sar ecx, 1
mov dword [ebx + 0x1018], eax
mov eax, dword [esp + 0x224]
mov dword [ebx + 0x1010], ecx
mov ecx, dword [esp + 0x228]
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
mov dword [ebx], 0
mov dword [esp + 0x14], edi
call fcn.004b13c0
mov ebp, eax
mov dword [esp + 0x1c], ebp
test ebp, ebp
je 0x4b7dbc
nop word [eax + eax]
test edi, edi
je 0x4b7a76
movzx eax, word [ebp - 2]
cmp eax, 0x20
je 0x4b7a76
cmp eax, 9
jne 0x4b7d92
push 2
lea esi, [ebp + 8]
push 0x4e6fb4
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4b7acc
or dword [ebx], 2
lea ecx, [ebp + 0xc]
call fcn.00450280
mov dword [ebx + 0x101c], eax
cmp eax, 0xffff
je 0x4b7d31
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4b7d31
pop edi
pop esi
pop ebp
mov dword [ebx + 0x101c], eax
pop ebx
add esp, 0x210
ret 0x14
push 6
push str.parent
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4b7b22
or dword [ebx], 0x100
lea ecx, [ebp + 0x14]
call fcn.00450280
mov dword [ebx + 0x1020], eax
cmp eax, 0xffff
je 0x4b7d31
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4b7d31
pop edi
pop esi
pop ebp
mov dword [ebx + 0x1020], eax
pop ebx
add esp, 0x210
ret 0x14
push 3
push 0x4f2ce0
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4b7b4d
or dword [ebx], 4
lea ecx, [ebp + 0xe]
call fcn.004054a0
mov dword [ebx + 0x1024], eax
jmp 0x4b7d31
push 5
push str.group
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4b7c4c
or dword [ebx], 0x10
lea eax, [ebp + 0x12]
nop dword [eax]
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x4b7b7d
cmp ecx, 9
jne 0x4b7b82
add eax, 2
jmp 0x4b7b70
push 0xfd
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov bp, word [esp + 0x30]
lea edi, [esp + 0x30]
xor eax, eax
add esp, 0xc
mov word [esp + 0x21e], ax
test bp, bp
je 0x4b7c1c
movzx esi, bp
mov eax, 0x4e6614
mov edx, 0x20
nop dword [eax + eax]
cmp si, dx
je 0x4b7be3
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x4b7bc0
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x4b7bb1
jmp 0x4b7bf1
test edi, edi
je 0x4b7bf1
xor eax, eax
mov word [edi], ax
mov bp, word [esp + 0x24]
test bp, bp
je 0x4b7c1c
mov esi, dword [0x4fdba4]
test esi, esi
je 0x4b7c1c
lea eax, [esp + 0x24]
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 0x4b7c35
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x4b7c00
mov dword [ebx + 0x1028], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x210
ret 0x14
mov dword [ebx + 0x1028], esi
test esi, esi
je 0x4b7c26
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
jmp 0x4b7d31
push 3
push 0x4ee544
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4b7c6e
or dword [ebx], 0x20
lea eax, [ebp + 0xe]
mov ecx, 0x102c
jmp 0x4b7c92
push 5
push str.class
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4b7d92
or dword [ebx], 8
lea eax, [ebp + 0x12]
mov ecx, 0x808
lea esi, [ecx + ebx]
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x4b7ca2
cmp ecx, 9
jne 0x4b7ca7
add eax, 2
jmp 0x4b7c95
push 0x3ff
push eax
push esi
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 [esi + 0x7fe], ax
mov ecx, esi
call fcn.004b13c0
test eax, eax
je 0x4b7d02
cmp eax, esi
je 0x4b7cfd
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4b7cf5
cmp ecx, 9
je 0x4b7cf5
lea ecx, [eax + 8]
mov edx, str.ahk_
call fcn.004b13c0
test eax, eax
jne 0x4b7cd0
jmp 0x4b7d02
xor ecx, ecx
mov word [eax - 2], cx
jmp 0x4b7d02
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebx + 0x102c]
cmp esi, ecx
jne 0x4b7d31
mov eax, dword [ebx + 4]
cmp dword [eax + 0x20], 4
je 0x4b7d29
push 0x5c
push ecx
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
jne 0x4b7d29
mov al, 1
jmp 0x4b7d2b
xor al, al
mov byte [ebx + 0x182c], al
test edi, edi
jne 0x4b7d93
mov edx, dword [esp + 0x228]
mov ecx, edx
call fcn.00414b20
cmp ebp, eax
jbe 0x4b7d93
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 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
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4b7d77
sub edi, ecx
sar edi, 1
mov dword [ebx + 0x1008], edi
mov edi, dword [esp + 0x14]
jmp 0x4b7d93
dec edi
mov eax, 8
inc edi
mov edx, str.ahk_
mov dword [esp + 0x14], edi
lea ecx, [eax + ebp]
call fcn.004b13c0
mov ebp, eax
mov dword [esp + 0x1c], eax
test ebp, ebp
jne 0x4b7a60
test edi, edi
jne 0x4b7dfc
push 0x3ff
push dword [esp + 0x22c]
lea esi, [ebx + 8]
mov dword [ebx], 1
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
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4b7de7
sub esi, ecx
sar esi, 1
mov dword [ebx + 0x1008], esi
mov eax, dword [ebx]
cmp eax, dword [esp + 0x18]
jne 0x4b7e0f
cmp byte [esp + 0x13], 0
je 0x4b7edc
mov ecx, dword [ebx + 0x1854]
test ecx, ecx
je 0x4b7edc
test eax, eax
je 0x4b7edc
test al, 1
jne 0x4b7e35
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
cmp word [eax], 0
je 0x4b7e4f
push 0x7fff
lea esi, [ebx + 0x1860]
push esi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x4b7e4f
mov word [esi], ax
test byte [ebx], 4
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x4b7e69
lea eax, [ebx + 0x185c]
push eax
push dword [ebx + 0x1854]
call esi
test byte [ebx], 0x20
je 0x4b7ea5
lea eax, [esp + 0x18]
push eax
push dword [ebx + 0x1854]
call esi
test eax, eax
je 0x4b7ea5
movzx eax, byte [ebx + 0x182c]
lea edx, [ebx + 0x11a60]
push eax
push ecx
mov ecx, dword [esp + 0x20]
call fcn.0047ba50
add esp, 8
test eax, eax
jne 0x4b7ea5
mov word [ebx + 0x11a60], ax
test byte [ebx], 8
je 0x4b7ec2
push 0x101
lea eax, [ebx + 0x1185e]
push eax
push dword [ebx + 0x1854]
call dword [sym.imp.USER32.dll_GetClassNameW]
test dword [ebx], 0x100
je 0x4b7edc
push dword [ebx + 0x1854]
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, 0x210
ret 0x14