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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
push 0
mov eax, dword [ebp + 8]
push eax
call sub.USER32.dll_ValidateRect
lea edx, [ebp - 0x30]
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 0x40e887
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
sub ecx, eax
push ecx
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
sub edx, ecx
push edx
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
test edx, edx
jne 0x40e485
mov ecx, dword [ebp - 4]
push ecx
mov eax, dword [ebp + 8]
push eax
call sub.USER32.dll_ReleaseDC
jmp 0x40e887
mov edx, dword [ebp - 4]
push edx
call sub.GDI32.dll_CreateCompatibleDC
mov ebx, eax
test ebx, ebx
jne 0x40e4af
mov eax, dword [ebp - 0x1c]
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 0x40e887
mov eax, dword [ebp - 0x1c]
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0x20], eax
push 0xcc0020
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x24]
sub ecx, edx
push ecx
mov edx, dword [ebp - 0x28]
sub edx, eax
push edx
push 0
push 0
push ebx
call sub.GDI32.dll_BitBlt
test esi, 4
je 0x40e4f4
mov byte [ebp - 0x94], 0xff
jmp 0x40e570
push 0x64
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.USER32.dll_GetWindowTextA
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x94]
push ecx
call fcn.004cd3e4
pop ecx
push eax
lea eax, [ebp - 0x94]
push eax
push ebx
call sub.GDI32.dll_GetTextExtentPoint32A
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
sub edx, ecx
sar edx, 1
jns 0x40e534
adc edx, 0
mov eax, dword [ebp - 0x10]
sar eax, 1
jns 0x40e53e
adc eax, 0
sub edx, eax
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
sub edx, ecx
sar edx, 1
jns 0x40e552
adc edx, 0
mov eax, dword [ebp - 0xc]
sar eax, 1
jns 0x40e55c
adc eax, 0
sub edx, eax
test esi, 1
mov dword [ebp - 0x18], edx
jne 0x40e570
mov dword [ebp - 0x14], 5
test esi, 0x10
je 0x40e58c
push 1
call sub.GDI32.dll_GetStockObject
push eax
lea edx, [ebp - 0x30]
push edx
push ebx
call sub.USER32.dll_FillRect
jmp 0x40e59e
push 0
call sub.GDI32.dll_GetStockObject
push eax
lea ecx, [ebp - 0x30]
push ecx
push ebx
call sub.USER32.dll_FillRect
mov eax, esi
and eax, 0x80
test eax, eax
je 0x40e5de
push 6
call sub.GDI32.dll_GetStockObject
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov edi, eax
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov edx, dword [ebp - 0x30]
push edx
push ebx
call sub.GDI32.dll_MoveToEx
mov ecx, dword [ebp - 0x2c]
push ecx
mov eax, dword [ebp - 0x28]
push eax
push ebx
call sub.GDI32.dll_LineTo
push edi
push ebx
call sub.GDI32.dll_SelectObject
test esi, 0x20
je 0x40e640
push 6
call sub.GDI32.dll_GetStockObject
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov edi, eax
push 0
mov eax, dword [ebp - 0x24]
dec eax
push eax
mov edx, dword [ebp - 0x30]
push edx
push ebx
call sub.GDI32.dll_MoveToEx
mov ecx, dword [ebp - 0x24]
dec ecx
push ecx
mov eax, dword [ebp - 0x28]
push eax
push ebx
call sub.GDI32.dll_LineTo
push 0
mov edx, dword [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x30]
push ecx
push ebx
call sub.GDI32.dll_MoveToEx
mov eax, dword [ebp - 0x2c]
push eax
mov edx, dword [ebp - 0x28]
push edx
push ebx
call sub.GDI32.dll_LineTo
push edi
push ebx
call sub.GDI32.dll_SelectObject
jmp 0x40e83a
movsx ecx, byte [ebp - 0x94]
inc ecx
je 0x40e733
test esi, 0x40
je 0x40e6e5
mov dword [ebp - 0x14], 2
mov eax, esi
and eax, 0x80
test eax, eax
je 0x40e673
mov dword [ebp - 0x14], 1
test esi, 8
je 0x40e682
mov dword [ebp - 0x14], 1
lea edx, [ebp - 0x94]
push edx
call fcn.00401260
push eax
call sub.USER32.dll_LoadIconA
mov edi, eax
test edi, edi
je 0x40e733
push 3
push 0
push 0
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
sub eax, edx
push eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
sub ecx, eax
push ecx
push edi
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x14]
push ecx
push ebx
call sub.USER32.dll_DrawIconEx
mov eax, esi
and eax, 0x80
test eax, eax
je 0x40e6dd
lea edx, [ebp - 0x30]
push edx
push ebx
call fcn.004ccd9c
add esp, 8
push edi
call sub.USER32.dll_DestroyIcon
jmp 0x40e733
push 1
push ebx
call sub.GDI32.dll_SetBkMode
mov eax, dword [0x4dca54]
test eax, eax
je 0x40e6ff
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov edi, eax
lea eax, [ebp - 0x94]
push eax
call fcn.004cd3e4
pop ecx
push eax
lea edx, [ebp - 0x94]
push edx
mov ecx, dword [ebp - 0x18]
push ecx
mov eax, dword [ebp - 0x14]
push eax
push ebx
call sub.GDI32.dll_TextOutA
mov edx, dword [0x4dca54]
test edx, edx
je 0x40e733
push edi
push ebx
call sub.GDI32.dll_SelectObject
push 0xfffffffffffffff0
mov ecx, dword [ebp + 8]
push ecx
call sub.USER32.dll_GetWindowLongA
test eax, 0x800000
jne 0x40e83a
test esi, 0x80
jne 0x40e83a
movsx eax, byte [ebp - 0x94]
inc eax
je 0x40e83a
push 0x808080
push 0
push 0
call sub.GDI32.dll_CreatePen
test esi, 8
mov dword [ebp - 8], eax
je 0x40e78e
push 6
call sub.GDI32.dll_GetStockObject
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov edi, eax
jmp 0x40e79a
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov edi, eax
push 0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffffe
push eax
mov edx, dword [ebp - 0x30]
push edx
push ebx
call sub.GDI32.dll_MoveToEx
mov ecx, dword [ebp - 0x2c]
push ecx
mov eax, dword [ebp - 0x30]
push eax
push ebx
call sub.GDI32.dll_LineTo
mov edx, dword [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x28]
push ecx
push ebx
call sub.GDI32.dll_LineTo
push edi
push ebx
call sub.GDI32.dll_SelectObject
test esi, 8
je 0x40e7ea
push 7
call sub.GDI32.dll_GetStockObject
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov edi, eax
jmp 0x40e7fa
push 6
call sub.GDI32.dll_GetStockObject
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov edi, eax
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov edx, dword [ebp - 0x28]
dec edx
push edx
push ebx
call sub.GDI32.dll_MoveToEx
mov ecx, dword [ebp - 0x24]
dec ecx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
push eax
push ebx
call sub.GDI32.dll_LineTo
mov edx, dword [ebp - 0x24]
dec edx
push edx
mov ecx, dword [ebp - 0x30]
push ecx
push ebx
call sub.GDI32.dll_LineTo
push edi
push ebx
call sub.GDI32.dll_SelectObject
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.dll_DeleteObject
push 0xcc0020
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x30]
push eax
push ebx
mov ecx, dword [ebp - 0x24]
sub ecx, edx
push ecx
mov edx, dword [ebp - 0x28]
sub edx, eax
push edx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.dll_BitBlt
mov edx, dword [ebp - 0x20]
push edx
push ebx
call sub.GDI32.dll_SelectObject
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.GDI32.dll_DeleteObject
push ebx
call sub.GDI32.dll_DeleteDC
mov eax, dword [ebp - 4]
push eax
mov edx, dword [ebp + 8]
push edx
call sub.USER32.dll_ReleaseDC
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret