Function at 0x4b7f30
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 0x4b7f62
mov eax, dword [edx]
cmp word [eax], 0
jne 0x4b7f62
mov byte [esp + 0x13], 1
jmp 0x4b7f6b
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 0x4b7f70
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.004b1850
mov ebp, eax
mov dword [esp + 0x1c], ebp
test ebp, ebp
je 0x4b833c
nop word [eax + eax]
test edi, edi
je 0x4b7ff6
movzx eax, word [ebp - 2]
cmp eax, 0x20
je 0x4b7ff6
cmp eax, 9
jne 0x4b8312
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 0x4b804c
or dword [ebx], 2
lea ecx, [ebp + 0xc]
call fcn.004505c0
mov dword [ebx + 0x101c], eax
cmp eax, 0xffff
je 0x4b82b1
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4b82b1
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 0x4b80a2
or dword [ebx], 0x100
lea ecx, [ebp + 0x14]
call fcn.004505c0
mov dword [ebx + 0x1020], eax
cmp eax, 0xffff
je 0x4b82b1
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4b82b1
pop edi
pop esi
pop ebp
mov dword [ebx + 0x1020], eax
pop ebx
add esp, 0x210
ret 0x14
push 3
push 0x4f2f38
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4b80cd
or dword [ebx], 4
lea ecx, [ebp + 0xe]
call fcn.00405520
mov dword [ebx + 0x1024], eax
jmp 0x4b82b1
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 0x4b81cc
or dword [ebx], 0x10
lea eax, [ebp + 0x12]
nop dword [eax]
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x4b80fd
cmp ecx, 9
jne 0x4b8102
add eax, 2
jmp 0x4b80f0
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 0x4b819c
movzx esi, bp
mov eax, 0x4e6614
mov edx, 0x20
nop dword [eax + eax]
cmp si, dx
je 0x4b8163
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x4b8140
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x4b8131
jmp 0x4b8171
test edi, edi
je 0x4b8171
xor eax, eax
mov word [edi], ax
mov bp, word [esp + 0x24]
test bp, bp
je 0x4b819c
mov esi, dword [0x4fdb8c]
test esi, esi
je 0x4b819c
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 0x4b81b5
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x4b8180
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 0x4b81a6
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
jmp 0x4b82b1
push 3
push 0x4ee58c
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4b81ee
or dword [ebx], 0x20
lea eax, [ebp + 0xe]
mov ecx, 0x102c
jmp 0x4b8212
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 0x4b8312
or dword [ebx], 8
lea eax, [ebp + 0x12]
mov ecx, 0x808
lea esi, [ecx + ebx]
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x4b8222
cmp ecx, 9
jne 0x4b8227
add eax, 2
jmp 0x4b8215
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.004b1850
test eax, eax
je 0x4b8282
cmp eax, esi
je 0x4b827d
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4b8275
cmp ecx, 9
je 0x4b8275
lea ecx, [eax + 8]
mov edx, str.ahk_
call fcn.004b1850
test eax, eax
jne 0x4b8250
jmp 0x4b8282
xor ecx, ecx
mov word [eax - 2], cx
jmp 0x4b8282
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebx + 0x102c]
cmp esi, ecx
jne 0x4b82b1
mov eax, dword [ebx + 4]
cmp dword [eax + 0x20], 4
je 0x4b82a9
push 0x5c
push ecx
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
jne 0x4b82a9
mov al, 1
jmp 0x4b82ab
xor al, al
mov byte [ebx + 0x182c], al
test edi, edi
jne 0x4b8313
mov edx, dword [esp + 0x228]
mov ecx, edx
call fcn.00414b30
cmp ebp, eax
jbe 0x4b8313
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 0x4b82f7
sub edi, ecx
sar edi, 1
mov dword [ebx + 0x1008], edi
mov edi, dword [esp + 0x14]
jmp 0x4b8313
dec edi
mov eax, 8
inc edi
mov edx, str.ahk_
mov dword [esp + 0x14], edi
lea ecx, [eax + ebp]
call fcn.004b1850
mov ebp, eax
mov dword [esp + 0x1c], eax
test ebp, ebp
jne 0x4b7fe0
test edi, edi
jne 0x4b837c
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 0x4b8367
sub esi, ecx
sar esi, 1
mov dword [ebx + 0x1008], esi
mov eax, dword [ebx]
cmp eax, dword [esp + 0x18]
jne 0x4b838f
cmp byte [esp + 0x13], 0
je 0x4b845c
mov ecx, dword [ebx + 0x1854]
test ecx, ecx
je 0x4b845c
test eax, eax
je 0x4b845c
test al, 1
jne 0x4b83b5
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
cmp word [eax], 0
je 0x4b83cf
push 0x7fff
lea esi, [ebx + 0x1860]
push esi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x4b83cf
mov word [esi], ax
test byte [ebx], 4
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x4b83e9
lea eax, [ebx + 0x185c]
push eax
push dword [ebx + 0x1854]
call esi
test byte [ebx], 0x20
je 0x4b8425
lea eax, [esp + 0x18]
push eax
push dword [ebx + 0x1854]
call esi
test eax, eax
je 0x4b8425
movzx eax, byte [ebx + 0x182c]
lea edx, [ebx + 0x11a60]
push eax
push ecx
mov ecx, dword [esp + 0x20]
call fcn.0047bd80
add esp, 8
test eax, eax
jne 0x4b8425
mov word [ebx + 0x11a60], ax
test byte [ebx], 8
je 0x4b8442
push 0x101
lea eax, [ebx + 0x1185e]
push eax
push dword [ebx + 0x1854]
call dword [sym.imp.USER32.dll_GetClassNameW]
test dword [ebx], 0x100
je 0x4b845c
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