Function at 0x4c8024
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov edi, eax
xor eax, eax
push ebp
push 0x4c867f
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4c864a
push dword fs:[edx]
mov dword fs:[edx], esp
xor ebx, ebx
mov eax, dword [0x4d1144]
mov eax, dword [eax]
call fcn.00478590
inc ebx
push edi
call sub.user32.dll_SetForegroundWindow
mov eax, 0x32
call fcn.00480614
push 0
push 0
push 0
push 0x12
call sub.user32.dll_keybd_event
push 0
push 0
push 0
push 0x46
call sub.user32.dll_keybd_event
push 0
push 2
push 0
push 0x46
call sub.user32.dll_keybd_event
push 0
push 2
push 0
push 0x12
call sub.user32.dll_keybd_event
mov eax, 0x96
call fcn.00480614
push 0x4c8690
push 0x4c86a4
call sub.user32.dll_FindWindowA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4c80d3
cmp ebx, 3
jl 0x4c805b
cmp ebx, 3
jne 0x4c80e9
mov dword [ebp - 4], 1
call fcn.00404348
jmp 0x4c8654
mov eax, 0x32
call fcn.00480614
lea eax, [ebp - 0x21]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetWindowRect
mov edx, dword [ebp - 0x1d]
add edx, 0x32
push edx
mov edx, dword [ebp - 0x19]
mov eax, dword [ebp - 0x21]
sub edx, eax
sar edx, 1
jns 0x4c8116
adc edx, 0
add edx, eax
add edx, 0x32
push edx
call sub.user32.dll_SetCursorPos
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_SetWindowPos
push 0
push 0
push 0
push 0
push 2
call sub.user32.dll_mouse_event
push 0
push 0
push 0
push 0
push 4
call sub.user32.dll_mouse_event
mov eax, 0x32
call fcn.00480614
mov eax, dword [ebp - 0xc]
call fcn.004c66a0
cmp eax, 3
jne 0x4c81d6
lea eax, [ebp - 0x21]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetWindowRect
mov edx, dword [ebp - 0x1d]
add edx, 0x32
push edx
mov edx, dword [ebp - 0x19]
mov eax, dword [ebp - 0x21]
sub edx, eax
sar edx, 1
jns 0x4c818e
adc edx, 0
add edx, eax
sub edx, 0x28
push edx
call sub.user32.dll_SetCursorPos
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_SetWindowPos
push 0
push 0
push 0
push 0
push 2
call sub.user32.dll_mouse_event
push 0
push 0
push 0
push 0
push 4
call sub.user32.dll_mouse_event
mov eax, 0x32
call fcn.00480614
xor ebx, ebx
mov eax, dword [0x4d1144]
mov eax, dword [eax]
call fcn.00478590
inc ebx
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_SetWindowPos
mov eax, 0x32
call fcn.00480614
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_SetForegroundWindow
mov eax, dword [0x4d0d78]
mov eax, dword [eax]
mov eax, dword [eax + 0x384]
mov eax, dword [eax + 0x22c]
xor edx, edx
call fcn.00442100
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x28]
xor edx, edx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x28]
mov edx, 0x19
call fcn.004c6ad8
mov eax, 0x32
call fcn.00480614
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_SetForegroundWindow
push 0
push 0
push 0
push 0xd
call sub.user32.dll_keybd_event
push 0
push 2
push 0
push 0xd
call sub.user32.dll_keybd_event
mov eax, 0x12c
call fcn.00480614
lea eax, [ebp - 8]
mov edx, 8
call fcn.004c67ec
test al, al
je 0x4c829a
mov dword [ebp - 4], 2
call fcn.00404348
jmp 0x4c8654
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_SetForegroundWindow
push 0
push 0
push 0
push 0xd
call sub.user32.dll_keybd_event
push 0
push 2
push 0
push 0xd
call sub.user32.dll_keybd_event
mov eax, 0x12c
call fcn.00480614
push 0x4c86b4
push 0x4c86a4
call sub.user32.dll_FindWindowA
mov esi, eax
test esi, esi
jne 0x4c82e5
cmp ebx, 3
jl 0x4c81d8
cmp ebx, 3
jne 0x4c82fb
mov dword [ebp - 4], 2
call fcn.00404348
jmp 0x4c8654
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
call sub.user32.dll_SetWindowPos
lea edx, [ebp - 0x2c]
mov eax, dword [0x4d0d78]
mov eax, dword [eax]
mov eax, dword [eax + 0x354]
call fcn.004587c0
mov eax, dword [ebp - 0x2c]
call fcn.004093ac
cmp eax, 5
jle 0x4c83ff
xor ebx, ebx
mov byte [ebp - 0x11], 0
mov eax, dword [0x4d1144]
mov eax, dword [eax]
call fcn.00478590
mov eax, 0x64
call fcn.00480614
inc ebx
push 0x4c86bc
push 0x4c86a4
call sub.user32.dll_FindWindowA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c8392
mov eax, dword [0x4d0d78]
mov eax, dword [eax]
mov eax, dword [eax + 0x3ec]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4c8392
mov dword [ebp - 4], 4
call fcn.00404348
jmp 0x4c8654
cmp dword [ebp - 8], 0
je 0x4c83e0
mov byte [ebp - 0x11], 1
push 0x4c86c8
push 0x4c86a4
call sub.user32.dll_FindWindowA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4c83cb
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_SetWindowPos
jmp 0x4c83e0
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetWindowPos
cmp ebx, 0xc
jne 0x4c83eb
cmp byte [ebp - 0x11], 0
je 0x4c83ff
cmp byte [ebp - 0x11], 0
je 0x4c8339
cmp dword [ebp - 8], 0
jne 0x4c8339
xor ebx, ebx
mov eax, dword [0x4d1144]
mov eax, dword [eax]
call fcn.00478590
inc ebx
mov eax, 0x32
call fcn.00480614
push 0
push 0x4c86d0
push 0
push esi
call sub.user32.dll_FindWindowExA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4c8435
cmp ebx, 3
jl 0x4c8401
cmp ebx, 3
jne 0x4c844b
mov dword [ebp - 4], 2
call fcn.00404348
jmp 0x4c8654
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
call sub.user32.dll_SetWindowPos
mov eax, dword [0x4d0d78]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov eax, dword [eax + 0x220]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4c84c6
call fcn.00402b60
mov eax, dword [0x4d0d78]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov ebx, dword [eax + 0x220]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
call fcn.004031b0
mov edx, eax
lea ecx, [ebp - 0x30]
mov eax, dword [0x4d0d78]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x30]
call fcn.00404dc0
push eax
push 0
push 0xc
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_SendMessageA
jmp 0x4c84f7
lea edx, [ebp - 0x34]
mov eax, dword [0x4d0d78]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x34]
call fcn.00404dc0
push eax
push 0
push 0xc
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_SendMessageA
mov eax, 0xc8
call fcn.00480614
push 0
push 0
push 7
push esi
call sub.user32.dll_SendMessageA
push 0
push 0
push 0
push 0x11
call sub.user32.dll_keybd_event
push 0
push 0
push 0
push 0xd
call sub.user32.dll_keybd_event
push 0
push 2
push 0
push 0xd
call sub.user32.dll_keybd_event
push 0
push 2
push 0
push 0x11
call sub.user32.dll_keybd_event
mov eax, 0x190
call fcn.00480614
push 0
push 0
push 0x10
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_SendMessageA
mov eax, 0x32
call fcn.00480614
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c8654
push 0
push 0
push 0x10
push 0x4c86bc
push 0x4c86a4
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 8]
mov edx, 7
call fcn.004c67ec
test al, al
je 0x4c85b3
xor ecx, ecx
mov edx, 0x64
mov eax, dword [ebp - 8]
call fcn.004c67a0
lea eax, [ebp - 8]
mov edx, 8
call fcn.004c67ec
test al, al
je 0x4c85d3
xor ecx, ecx
mov edx, 0x64
mov eax, dword [ebp - 8]
call fcn.004c67a0
lea eax, [ebp - 8]
mov edx, 9
call fcn.004c67ec
test al, al
je 0x4c85f3
xor ecx, ecx
mov edx, 0x64
mov eax, dword [ebp - 8]
call fcn.004c67a0
lea eax, [ebp - 8]
mov edx, 0xa
call fcn.004c67ec
test al, al
je 0x4c8613
xor ecx, ecx
mov edx, 0x64
mov eax, dword [ebp - 8]
call fcn.004c67a0
lea eax, [ebp - 0x10]
mov edx, 1
call fcn.004c67ec
test al, al
je 0x4c863a
xor ecx, ecx
mov edx, 0x12c
mov eax, dword [ebp - 0x10]
call fcn.004c67a0
mov dword [ebp - 4], 4
push 0
push 0
push 0x10
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_SendMessageA
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c8686
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00404908
lea eax, [ebp - 0x2c]
call fcn.004048e4
lea eax, [ebp - 0x28]
call fcn.004048e4
ret