Function at 0x40e428
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 0x40e89f
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 0x40e49d
mov ecx, dword [ebp - 4]
push ecx
mov eax, dword [ebp + 8]
push eax
call sub.USER32.dll_ReleaseDC
jmp 0x40e89f
mov edx, dword [ebp - 4]
push edx
call sub.GDI32.dll_CreateCompatibleDC
mov ebx, eax
test ebx, ebx
jne 0x40e4c7
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 0x40e89f
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 0x40e50c
mov byte [ebp - 0x94], 0xff
jmp 0x40e588
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.004cdfec
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 0x40e54c
adc edx, 0
mov eax, dword [ebp - 0x10]
sar eax, 1
jns 0x40e556
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 0x40e56a
adc edx, 0
mov eax, dword [ebp - 0xc]
sar eax, 1
jns 0x40e574
adc eax, 0
sub edx, eax
test esi, 1
mov dword [ebp - 0x18], edx
jne 0x40e588
mov dword [ebp - 0x14], 5
test esi, 0x10
je 0x40e5a4
push 1
call sub.GDI32.dll_GetStockObject
push eax
lea edx, [ebp - 0x30]
push edx
push ebx
call sub.USER32.dll_FillRect
jmp 0x40e5b6
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 0x40e5f6
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 0x40e658
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 0x40e852
movsx ecx, byte [ebp - 0x94]
inc ecx
je 0x40e74b
test esi, 0x40
je 0x40e6fd
mov dword [ebp - 0x14], 2
mov eax, esi
and eax, 0x80
test eax, eax
je 0x40e68b
mov dword [ebp - 0x14], 1
test esi, 8
je 0x40e69a
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 0x40e74b
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 0x40e6f5
lea edx, [ebp - 0x30]
push edx
push ebx
call fcn.004cd9a4
add esp, 8
push edi
call sub.USER32.dll_DestroyIcon
jmp 0x40e74b
push 1
push ebx
call sub.GDI32.dll_SetBkMode
mov eax, dword [0x4dda6c]
test eax, eax
je 0x40e717
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov edi, eax
lea eax, [ebp - 0x94]
push eax
call fcn.004cdfec
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 [0x4dda6c]
test edx, edx
je 0x40e74b
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 0x40e852
test esi, 0x80
jne 0x40e852
movsx eax, byte [ebp - 0x94]
inc eax
je 0x40e852
push 0x808080
push 0
push 0
call sub.GDI32.dll_CreatePen
test esi, 8
mov dword [ebp - 8], eax
je 0x40e7a6
push 6
call sub.GDI32.dll_GetStockObject
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov edi, eax
jmp 0x40e7b2
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 0x40e802
push 7
call sub.GDI32.dll_GetStockObject
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov edi, eax
jmp 0x40e812
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