Function at 0x4033d0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, dword [ebp + 0xac]
mov ecx, dword [ebp + 0xa8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xa4]
mov edi, eax
mov edx, ecx
sub esi, edi
mov edi, dword [ebp + 0xb0]
sub edi, edx
mov dword [esp + 0x28], eax
push edi
push esi
lea eax, [edi + 0xf]
push ebx
cdq
and edx, 0xf
mov dword [esp + 0x30], ecx
add eax, edx
mov dword [esp + 0x38], edi
sar eax, 4
shl eax, 4
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [esp + 0x10]
push eax
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x34], eax
mov eax, edi
cdq
and edx, 0x1f
mov ecx, 0xb
add eax, edx
lea edi, [esp + 0x38]
sar eax, 5
mov dword [esp + 0x20], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x30]
lea edi, [ebp + 0xd0]
push eax
push esi
mov ecx, edi
xor ebx, ebx
mov word [esp + 0x4e], 0x20
mov dword [esp + 0x48], 0xffffffe0
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], 0x28
mov word [esp + 0x4c], 1
call sym.Screen2Exe.exe_public:_long_int___thiscall_CTPImage::Create_unsigned_int__unsigned_int_
test eax, eax
je 0x4034b3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x40352a
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push 0xcc0020
lea edx, [ebx + ecx]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push 0x20
push esi
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, ebx
mov edx, dword [edi + 8]
imul ecx, dword [edi + 0xc]
lea eax, [esp + 0x38]
push 0
push eax
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push eax
push 0x20
push 0
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetDIBits]
mov eax, dword [esp + 0x20]
add ebx, 0x20
dec eax
mov dword [esp + 0x20], eax
jne 0x4034cb
mov edx, dword [esp + 0x2c]
mov eax, edx
and eax, 0x8000001f
jns 0x40353c
dec eax
or eax, 0xffffffe0
inc eax
test eax, eax
mov dword [esp + 0x20], eax
jle 0x4035a5
mov ecx, dword [esp + 0x24]
push 0xcc0020
lea edx, [ebx + ecx]
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x20]
push ecx
push edx
push eax
push esi
mov esi, dword [esp + 0x28]
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x38]
mov ecx, eax
push 0
neg ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [edi + 0xc]
imul ecx, ebx
push edx
mov edx, dword [edi + 8]
lea ecx, [edx + ecx*4]
mov edx, dword [esp + 0x24]
push ecx
push eax
mov eax, dword [esp + 0x24]
push 0
push edx
push eax
call dword [sym.imp.GDI32.dll_GetDIBits]
mov edx, dword [esp + 0x2c]
jmp 0x4035a9
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
cmp ecx, edx
jle 0x4035d9
mov ebx, dword [edi + 0xc]
sub ecx, edx
imul ecx, dword [ebp + 0xdc]
imul ebx, edx
mov edx, dword [edi + 8]
xor eax, eax
shl ecx, 2
lea edi, [edx + ebx*4]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
push eax
call edi
mov ecx, dword [esp + 0x34]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call edi
mov edx, dword [esp + 0x18]
push edx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x54
ret