Function at 0x48c190
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x18
mov edx, dword [esp + 0x28]
push ebx
push ebp
push esi
cmp word [edx], 0
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
lea ecx, [edi + 0x1c]
mov dword [esp + 0x20], ecx
je 0x48c1bd
mov eax, dword [ecx]
cmp word [eax], 0
jne 0x48c1bd
mov byte [esp + 0x38], 1
jmp 0x48c1c6
mov byte [esp + 0x38], 0
mov dword [esp + 0x20], ecx
mov dword [ecx], edx
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x48c1d0
mov eax, dword [esp + 0x34]
sub edx, ecx
mov ebp, dword [esp + 0x30]
mov esi, 1
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0x2c]
sar edx, 1
mov dword [edi + 4], eax
mov eax, dword [edi]
mov dword [edi + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x2c], 0
mov dword [edi], 0
xor eax, eax
mov edx, str.ahk_
mov ecx, ebp
mov dword [esp + 0x34], eax
call fcn.00486c20
mov ebx, eax
test ebx, ebx
je 0x48c333
nop dword [eax]
cmp ebx, dword [esp + 0x30]
jbe 0x48c259
movzx eax, word [ebx - 2]
cmp eax, 0x20
je 0x48c259
cmp eax, 9
je 0x48c259
lea esi, [ebx + 8]
jmp 0x48c2c8
push 2
lea esi, [ebx + 8]
push 0x4e1cd4
push esi
call fcn.004a4632
add esp, 0xc
test eax, eax
je 0x48c31c
push 3
push 0x4e1cdc
push esi
call fcn.004a4632
add esp, 0xc
test eax, eax
je 0x48c30d
push 5
push str.group
push esi
call fcn.004a4632
add esp, 0xc
test eax, eax
je 0x48c2fe
push 3
push 0x4da214
push esi
call fcn.004a4632
add esp, 0xc
test eax, eax
je 0x48c2ef
push 5
push str.class
push esi
call fcn.004a4632
add esp, 0xc
test eax, eax
je 0x48c2e0
mov edx, str.ahk_
mov ecx, esi
call fcn.00486c20
mov ebx, eax
test ebx, ebx
jne 0x48c240
jmp 0x48c32f
mov dword [esp + 0x34], 8
mov eax, 0xa
jmp 0x48c329
mov dword [esp + 0x34], 0x20
mov eax, 6
jmp 0x48c329
mov dword [esp + 0x34], 0x10
mov eax, 0xa
jmp 0x48c329
mov dword [esp + 0x34], 4
mov eax, 6
jmp 0x48c329
mov dword [esp + 0x34], 2
mov eax, 4
add eax, esi
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x3c]
mov eax, esi
sub eax, 2
je 0x48c50b
sub eax, 2
je 0x48c4ff
movzx eax, word [ebp]
cmp eax, 0x20
je 0x48c355
cmp eax, 9
jne 0x48c35a
add ebp, 2
jmp 0x48c347
cmp ebx, ebp
jne 0x48c371
cmp esi, 1
je 0x48c53a
mov edi, 0x4d3ee8
jmp 0x48c419
test ebx, ebx
je 0x48c417
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x48c3dd
push esi
push ebx
call fcn.004a203f
mov ecx, dword [edi + 0xc]
sub eax, ebp
sar eax, 1
add esp, 8
inc eax
cmp eax, ecx
jbe 0x48c3dd
cmp ecx, 0x400
jae 0x48c3ab
mov dword [edi + 0xc], 0x400
mov ecx, 0x400
cmp ecx, eax
jae 0x48c3b9
nop
add ecx, ecx
cmp ecx, eax
jb 0x48c3b0
mov dword [edi + 0xc], ecx
push dword [edi + 8]
call fcn.004a45b2
mov eax, dword [edi + 0xc]
add esp, 4
add eax, eax
push eax
call fcn.004a45cd
add esp, 4
mov dword [edi + 8], eax
test eax, eax
je 0x48c610
mov eax, dword [edi + 8]
mov ecx, ebx
sub ecx, ebp
sar ecx, 1
dec ecx
lea edi, [eax + esi*2]
mov dword [esp + 0x18], ecx
lea esi, [ecx + ecx]
push esi
push ebp
push edi
call fcn.004a20f0
mov edx, dword [esp + 0x24]
xor eax, eax
mov word [esi + edi], ax
add esp, 0xc
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x3c]
inc eax
add eax, edx
mov dword [esp + 0x2c], eax
jmp 0x48c41d
mov edi, ebp
mov edx, dword [esp + 0x18]
lea eax, [esi - 1]
cmp eax, 0x1f
ja case.0x48c430.2
movzx eax, byte [eax + 0x48c638]
jmp dword [eax*4 + 0x48c624]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x10], edi
test ebx, ebx
je 0x48c44e
mov edi, edx
mov dword [ecx + 0x18], edi
mov edi, ecx
jmp 0x48c538
lea edx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x48c451
sub edi, edx
sar edi, 1
mov dword [ecx + 0x18], edi
mov edi, ecx
jmp 0x48c538
cmp word [edi], 0
je 0x48c497
mov esi, dword [0x4f0078]
test esi, esi
je 0x48c497
nop word [eax + eax]
push edi
push dword [esi + 4]
call fcn.004a44b1
add esp, 8
test eax, eax
je 0x48c4ae
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x48c480
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x34], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x14
mov edi, dword [esp + 0x14]
mov dword [edi + 0x34], esi
test esi, esi
je 0x48c4a2
mov esi, dword [esp + 0x3c]
jmp 0x48c538
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 4]
mov dword [ecx + 0x38], edi
cmp dword [eax + 8], 4
je 0x48c4e9
push 0x5c
push edi
call fcn.004a203f
add esp, 8
test eax, eax
jne 0x48c4e9
mov edi, dword [esp + 0x14]
mov al, 1
mov byte [edi + 0x3c], al
jmp 0x48c538
mov edi, dword [esp + 0x14]
xor al, al
mov byte [edi + 0x3c], al
jmp 0x48c538
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x14], edi
mov edi, ecx
jmp 0x48c538
mov ecx, ebp
call fcn.00487070
mov dword [edi + 0x30], eax
jmp 0x48c538
mov ecx, ebp
call fcn.00487070
mov dword [edi + 0x2c], eax
cmp eax, 0xffff
je 0x48c538
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x48c538
mov dword [edi + 0x2c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x14
mov edi, dword [esp + 0x14]
or dword [edi], esi
mov eax, dword [esp + 0x34]
mov esi, eax
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x3c], esi
test eax, eax
jne 0x48c220
mov eax, dword [edi]
cmp eax, dword [esp + 0x24]
jne 0x48c563
cmp byte [esp + 0x38], 0
je 0x48c601
mov ecx, dword [edi + 0x64]
test ecx, ecx
je 0x48c601
test eax, eax
je 0x48c601
test al, 1
jne 0x48c586
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
cmp word [eax], 0
je 0x48c59d
push 0x7fff
lea esi, [edi + 0x6c]
push esi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x48c59d
mov word [esi], ax
test byte [edi], 4
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x48c5b1
lea eax, [edi + 0x68]
push eax
push dword [edi + 0x64]
call esi
test byte [edi], 0x20
je 0x48c5e7
lea eax, [esp + 0x30]
push eax
push dword [edi + 0x64]
call esi
test eax, eax
je 0x48c5e7
movzx eax, byte [edi + 0x3c]
lea edx, [edi + 0x1026c]
push eax
push ecx
mov ecx, dword [esp + 0x38]
call fcn.0042a2f6
add esp, 8
test eax, eax
jne 0x48c5e7
mov word [edi + 0x1026c], ax
test byte [edi], 8
je 0x48c601
push 0x101
lea eax, [edi + 0x1006a]
push eax
push dword [edi + 0x64]
call dword [sym.imp.USER32.dll_GetClassNameW]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x14
mov dword [edi + 0xc], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x14