Function at 0x40eae0
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 0x40ef57
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 0x40eb55
mov ecx, dword [ebp - 4]
push ecx
mov eax, dword [ebp + 8]
push eax
call sub.USER32.dll_ReleaseDC
jmp 0x40ef57
mov edx, dword [ebp - 4]
push edx
call sub.GDI32.dll_CreateCompatibleDC
mov ebx, eax
test ebx, ebx
jne 0x40eb7f
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 0x40ef57
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 0x40ebc4
mov byte [ebp - 0x94], 0xff
jmp 0x40ec40
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.004d2f1c
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 0x40ec04
adc edx, 0
mov eax, dword [ebp - 0x10]
sar eax, 1
jns 0x40ec0e
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 0x40ec22
adc edx, 0
mov eax, dword [ebp - 0xc]
sar eax, 1
jns 0x40ec2c
adc eax, 0
sub edx, eax
test esi, 1
mov dword [ebp - 0x18], edx
jne 0x40ec40
mov dword [ebp - 0x14], 5
test esi, 0x10
je 0x40ec5c
push 1
call sub.GDI32.dll_GetStockObject
push eax
lea edx, [ebp - 0x30]
push edx
push ebx
call sub.USER32.dll_FillRect
jmp 0x40ec6e
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 0x40ecae
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 0x40ed10
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 0x40ef0a
movsx ecx, byte [ebp - 0x94]
inc ecx
je 0x40ee03
test esi, 0x40
je 0x40edb5
mov dword [ebp - 0x14], 2
mov eax, esi
and eax, 0x80
test eax, eax
je 0x40ed43
mov dword [ebp - 0x14], 1
test esi, 8
je 0x40ed52
mov dword [ebp - 0x14], 1
lea edx, [ebp - 0x94]
push edx
call fcn.00401288
push eax
call sub.USER32.dll_LoadIconA
mov edi, eax
test edi, edi
je 0x40ee03
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 0x40edad
lea edx, [ebp - 0x30]
push edx
push ebx
call fcn.004d28d4
add esp, 8
push edi
call sub.USER32.dll_DestroyIcon
jmp 0x40ee03
push 1
push ebx
call sub.GDI32.dll_SetBkMode
mov eax, dword [0x4ed30c]
test eax, eax
je 0x40edcf
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov edi, eax
lea eax, [ebp - 0x94]
push eax
call fcn.004d2f1c
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 [0x4ed30c]
test edx, edx
je 0x40ee03
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 0x40ef0a
test esi, 0x80
jne 0x40ef0a
movsx eax, byte [ebp - 0x94]
inc eax
je 0x40ef0a
push 0x808080
push 0
push 0
call sub.GDI32.dll_CreatePen
test esi, 8
mov dword [ebp - 8], eax
je 0x40ee5e
push 6
call sub.GDI32.dll_GetStockObject
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov edi, eax
jmp 0x40ee6a
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 0x40eeba
push 7
call sub.GDI32.dll_GetStockObject
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov edi, eax
jmp 0x40eeca
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