Function at 0x491420
Capabilities:
Capture screenshot
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff20
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0x20
mov dword [ebp - 0x14], 9
push 0
push 0
push 0x7f
mov eax, dword [ebp + 8]
push eax
call sub.USER32.dll_SendMessageA
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
test edx, edx
jne 0x491468
push 0
push 1
push 0x7f
mov ecx, dword [ebp + 8]
push ecx
call sub.USER32.dll_SendMessageA
mov dword [ebp - 0x1c], eax
push 0
mov eax, dword [ebp + 8]
push eax
call sub.USER32.dll_ValidateRect
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.USER32.dll_GetClientRect
mov eax, dword [ebp + 8]
push eax
call sub.USER32.dll_GetDC
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
test edx, edx
je 0x491ac1
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.USER32.dll_GetWindowLongA
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
push eax
call sub.USER32.dll_IsWindowEnabled
test eax, eax
jne 0x4914b8
or esi, 0x80
call sub.USER32.dll_GetFocus
mov edx, dword [ebp + 8]
cmp eax, edx
jne 0x4914ca
or esi, 0x200
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.USER32.dll_GetWindowLongA
test ah, 1
je 0x4914e0
or esi, 0x100
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x3c]
sub eax, edx
push eax
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
sub ecx, eax
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.GDI32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x491517
mov eax, dword [ebp - 4]
push eax
mov edx, dword [ebp + 8]
push edx
call sub.USER32.dll_ReleaseDC
jmp 0x491ac1
mov ecx, dword [ebp - 4]
push ecx
call sub.GDI32.dll_CreateCompatibleDC
mov ebx, eax
test ebx, ebx
jne 0x491541
mov eax, dword [ebp - 0x20]
push eax
call sub.GDI32.dll_DeleteObject
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.USER32.dll_ReleaseDC
jmp 0x491ac1
mov eax, dword [ebp - 0x20]
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0x24], eax
push 0xcc0020
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x34]
sub ecx, edx
push ecx
mov edx, dword [ebp - 0x38]
sub edx, eax
push edx
push 0
push 0
push ebx
call sub.GDI32.dll_BitBlt
push 0x80
lea eax, [ebp - 0xc0]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.USER32.dll_GetWindowTextA
lea edx, [ebp - 0xc0]
mov dword [ebp - 0x18], edx
xor edx, edx
mov eax, dword [ebp - 0x18]
mov cl, byte [eax]
test cl, cl
je 0x4915af
movsx ecx, cl
cmp ecx, 0x7c
jne 0x4915ab
mov byte [eax], 0
jmp 0x4915af
inc edx
inc eax
jmp 0x491598
test byte [ebp - 0x2f], 2
je 0x4915ec
test esi, 0x100
jne 0x4915ec
mov eax, dword [ebp + 8]
push eax
push 0
push 0x136
mov edx, dword [ebp + 8]
push edx
call sub.USER32.dll_GetParent
push eax
call sub.USER32.dll_SendMessageA
mov edi, eax
lea eax, [ebp - 0x40]
push edi
push eax
push ebx
call sub.USER32.dll_FillRect
push edi
call sub.GDI32.dll_DeleteObject
jmp 0x49160c
push 0xf
call sub.USER32.dll_GetSysColor
push eax
call sub.GDI32.dll_CreateSolidBrush
mov edi, eax
lea eax, [ebp - 0x40]
push edi
push eax
push ebx
call sub.USER32.dll_FillRect
push edi
call sub.GDI32.dll_DeleteObject
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004d2f1c
pop ecx
push eax
mov eax, dword [ebp - 0x18]
push eax
push ebx
call sub.GDI32.dll_GetTextExtentPoint32A
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x491707
mov ecx, dword [ebp - 0x18]
mov al, byte [ecx]
test al, al
je 0x49163f
test byte [ebp - 0x2f], 4
je 0x491648
mov dword [ebp - 0x10], 0x20
jmp 0x49164f
mov dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
sub eax, ecx
sar eax, 1
jns 0x49165e
adc eax, 0
mov edx, dword [ebp - 0x10]
sar edx, 1
jns 0x491668
adc edx, 0
sub eax, edx
test byte [ebp - 0x2f], 0x10
je 0x491691
mov ecx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x40]
sub ecx, edi
sar ecx, 1
jns 0x49167f
adc ecx, 0
sub ecx, edx
mov edx, dword [ebp - 0xc]
sar edx, 1
jns 0x49168b
adc edx, 0
sub ecx, edx
mov edx, ecx
jmp 0x491694
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x10]
sub edi, dword [ebp - 0x40]
add ecx, edx
cmp ecx, edi
jle 0x4916a5
xor edx, edx
test esi, 0x80
je 0x4916cb
push 0x13
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x10]
push ecx
push eax
push edx
push 0
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0
push ebx
call sub.USER32.dll_DrawStateA
jmp 0x491707
test byte [ebp - 0x2f], 4
je 0x4916ed
push 0xb
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x1c]
push ecx
push eax
push edx
push ebx
call sub.USER32.dll_DrawIconEx
jmp 0x491707
push 3
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x1c]
push ecx
push eax
push edx
push ebx
call sub.USER32.dll_DrawIconEx
mov eax, dword [ebp - 0x18]
mov dl, byte [eax]
test dl, dl
je 0x4917ea
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
add eax, edx
mov ecx, dword [ebp - 0x14]
add eax, ecx
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x14]
sub eax, edx
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0xcc], ecx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xc4], eax
push 1
push ebx
call sub.GDI32.dll_SetBkMode
test esi, 0x80
je 0x491767
push 0x11
call sub.USER32.dll_GetSysColor
push eax
push ebx
call sub.GDI32.dll_SetTextColor
jmp 0x491775
push 0x12
call sub.USER32.dll_GetSysColor
push eax
push ebx
call sub.GDI32.dll_SetTextColor
mov eax, dword [0x5b00ec]
test eax, eax
je 0x491789
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov edi, eax
jmp 0x491799
push 0xc
call sub.GDI32.dll_GetStockObject
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov edi, eax
test byte [ebp - 0x2f], 0x10
je 0x4917c2
push 0x8025
lea eax, [ebp - 0xd0]
push eax
mov edx, dword [ebp - 0x18]
push edx
call fcn.004d2f1c
pop ecx
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push ebx
call sub.USER32.dll_DrawTextA
jmp 0x4917e3
push 0x8024
lea eax, [ebp - 0xd0]
push eax
mov edx, dword [ebp - 0x18]
push edx
call fcn.004d2f1c
pop ecx
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push ebx
call sub.USER32.dll_DrawTextA
push edi
push ebx
call sub.GDI32.dll_SelectObject
test byte [ebp - 0x2f], 2
je 0x4918a0
test esi, 0x100
jne 0x4918a0
test esi, 0x80
jne 0x4918a0
test esi, 0x20
jne 0x491820
test esi, 0x40
je 0x49199b
mov dword [ebp - 0x10], 2
test esi, 0x40
je 0x491836
mov dword [ebp - 0x10], 3
push 0xd
call sub.USER32.dll_GetSysColor
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.GDI32.dll_CreatePen
mov dword [ebp - 0x28], eax
push 5
call sub.GDI32.dll_GetStockObject
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov edi, eax
mov eax, dword [ebp - 0x28]
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x38]
push ecx
mov eax, dword [ebp - 0x3c]
inc eax
push eax
mov edx, dword [ebp - 0x40]
inc edx
push edx
push ebx
call sub.GDI32.dll_Rectangle
mov ecx, dword [ebp - 0x2c]
push ecx
push ebx
call sub.GDI32.dll_SelectObject
push edi
push ebx
call sub.GDI32.dll_SelectObject
mov eax, dword [ebp - 0x28]
push eax
call sub.GDI32.dll_DeleteObject
jmp 0x49199b
push 0x10
call sub.USER32.dll_GetSysColor
push eax
push 1
push 0
call sub.GDI32.dll_CreatePen
mov dword [ebp - 0x28], eax
push 0x14
call sub.USER32.dll_GetSysColor
push eax
push 1
push 0
call sub.GDI32.dll_CreatePen
test esi, 0x40
mov dword [ebp - 0x2c], eax
jne 0x4918d8
test esi, 0x100
je 0x4918e6
mov edx, dword [ebp - 0x28]
push edx
push ebx
call sub.GDI32.dll_SelectObject
mov edi, eax
jmp 0x4918f2
mov eax, dword [ebp - 0x2c]
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov edi, eax
push 0
mov eax, dword [ebp - 0x34]
add eax, 0xfffffffe
push eax
mov edx, dword [ebp - 0x40]
push edx
push ebx
call sub.GDI32.dll_MoveToEx
mov ecx, dword [ebp - 0x3c]
push ecx
mov eax, dword [ebp - 0x40]
push eax
push ebx
call sub.GDI32.dll_LineTo
mov edx, dword [ebp - 0x3c]
push edx
mov ecx, dword [ebp - 0x38]
push ecx
push ebx
call sub.GDI32.dll_LineTo
push edi
push ebx
call sub.GDI32.dll_SelectObject
test esi, 0x40
jne 0x491938
test esi, 0x100
je 0x491946
mov eax, dword [ebp - 0x2c]
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov edi, eax
jmp 0x491952
mov eax, dword [ebp - 0x28]
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov edi, eax
push 0
mov eax, dword [ebp - 0x3c]
push eax
mov edx, dword [ebp - 0x38]
dec edx
push edx
push ebx
call sub.GDI32.dll_MoveToEx
mov ecx, dword [ebp - 0x34]
dec ecx
push ecx
mov eax, dword [ebp - 0x38]
dec eax
push eax
push ebx
call sub.GDI32.dll_LineTo
mov edx, dword [ebp - 0x34]
dec edx
push edx
mov ecx, dword [ebp - 0x40]
push ecx
push ebx
call sub.GDI32.dll_LineTo
push edi
push ebx
call sub.GDI32.dll_SelectObject
mov eax, dword [ebp - 0x28]
push eax
call sub.GDI32.dll_DeleteObject
mov edx, dword [ebp - 0x2c]
push edx
call sub.GDI32.dll_DeleteObject
test byte [ebp - 0x2f], 8
je 0x491a33
test esi, 0x80
je 0x4919c3
push 0x11
call sub.USER32.dll_GetSysColor
push eax
push 1
push 0
call sub.GDI32.dll_CreatePen
mov dword [ebp - 0x28], eax
jmp 0x4919d7
push 0x12
call sub.USER32.dll_GetSysColor
push eax
push 1
push 0
call sub.GDI32.dll_CreatePen
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
push ebx
call sub.GDI32.dll_SelectObject
mov edi, eax
push 0
push 0
push 0
push ebx
call sub.GDI32.dll_MoveToEx
mov eax, dword [ebp - 0x34]
dec eax
push eax
push 0
push ebx
call sub.GDI32.dll_LineTo
mov edx, dword [ebp - 0x34]
dec edx
push edx
mov ecx, dword [ebp - 0x38]
dec ecx
push ecx
push ebx
call sub.GDI32.dll_LineTo
push 0
mov eax, dword [ebp - 0x38]
dec eax
push eax
push ebx
call sub.GDI32.dll_LineTo
push 0
push 0
push ebx
call sub.GDI32.dll_LineTo
push edi
push ebx
call sub.GDI32.dll_SelectObject
mov edx, dword [ebp - 0x28]
push edx
call sub.GDI32.dll_DeleteObject
test esi, 0x200
je 0x491a74
mov dword [ebp - 0xe0], 2
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0xe0]
add ecx, 0xfffffffe
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xdc], 2
mov eax, dword [ebp - 0x34]
add eax, 0xfffffffe
mov dword [ebp - 0xd4], eax
push edx
push ebx
call sub.USER32.dll_DrawFocusRect
push 0xcc0020
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x40]
push eax
push ebx
mov ecx, dword [ebp - 0x34]
sub ecx, edx
push ecx
mov edx, dword [ebp - 0x38]
sub edx, eax
push edx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.dll_BitBlt
mov ecx, dword [ebp - 0x24]
push ecx
push ebx
call sub.GDI32.dll_SelectObject
mov eax, dword [ebp - 0x20]
push eax
call sub.GDI32.dll_DeleteObject
push ebx
call sub.GDI32.dll_DeleteDC
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.USER32.dll_ReleaseDC
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret