Function at 0x429270
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
cmp dword [ebx + 0x7c], esi
jne 0x4292b6
push esi
call dword [sym.imp.USER32.dll_GetDC]
cmp eax, esi
mov dword [ebx + 0x7c], eax
jne 0x4292b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.GetDC_NULL__ERROR_d
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 8]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x20]
push eax
call fcn.00429230
mov esi, eax
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x9c]
lea esi, [ebp - 0x10]
mov edi, eax
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [ebx + 0xa8]
mov edi, str.C:projectsAmmyy_sources_target_trDesktop.cpp
mov esi, 0x47a230
push dword [ebx + 0xa4]
push dword [ebx + 0xa0]
push dword [eax]
push str.source_desktop_metrics:___d___d___d___d_
push edi
push 2
push esi
call fcn.0040e807
add esp, 0x20
push dword [ebx + 0x7c]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [ebx + 0x78], eax
jne 0x42933d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.CreateCompatibleDC___ERROR_d
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 8]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0x26
push dword [ebx + 0x7c]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test al, 1
jne 0x42936a
lea eax, [ebp - 8]
push str.ERROR:_root_device_doesnt_support_BitBlt
push eax
call fcn.004109c8
pop ecx
lea eax, [ebp - 8]
pop ecx
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0x26
push dword [ebx + 0x78]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test al, 0x80
jne 0x429397
lea eax, [ebp - 8]
push str.ERROR:_memory_device_doesnt_support_GetDIBits
push eax
call fcn.004109c8
pop ecx
lea eax, [ebp - 8]
pop ecx
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebx + 0xa8]
sub eax, dword [ebx + 0xa0]
push eax
mov eax, dword [ebx + 0xa4]
sub eax, dword [ebx + 0x9c]
push eax
push dword [ebx + 0x7c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [ebx + 0x80], eax
jne 0x4293ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.CreateCompatibleBitmap___ERROR_d
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 8]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
push str.created_memory_bitmap
push edi
push 2
push esi
call fcn.0040e807
add esp, 0x10
xor ecx, ecx
lea eax, [ebx + 0xb0]
mov word [ebx + 0xbe], cx
push ecx
push eax
push ecx
push 1
push ecx
mov dword [eax], 0x28
push dword [ebx + 0x80]
push dword [ebx + 0x78]
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x42944f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.GetDIBits__1_ERROR_d
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 8]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
xor ecx, ecx
lea eax, [ebx + 0xb0]
push ecx
push eax
push ecx
push 1
push ecx
push dword [ebx + 0x80]
push dword [ebx + 0x78]
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x429496
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.GetDIBits__2_ERROR_d
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 8]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
push str.got_bitmap_format
push edi
push 2
push esi
call fcn.0040e807
add esp, 0x10
push 0xe
push dword [ebx + 0x7c]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push str.DBG:display_context_has__d_planes_
push edi
push 2
push esi
call fcn.0040e807
add esp, 0x14
push 0xe
push dword [ebx + 0x78]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push str.DBG:memory_context_has__d_planes_
push edi
push 2
push esi
call fcn.0040e807
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
add esp, 0x14
push 0xe
push dword [ebx + 0x78]
call edi
cmp eax, 1
je 0x429511
lea eax, [ebp - 8]
push str.ERROR:_current_display_is_PLANAR__not_CHUNKY
push eax
call fcn.004109c8
pop ecx
lea eax, [ebp - 8]
pop ecx
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [ebx + 0xb8]
lea esi, [ebx + 0xb8]
call sub.MSVCRT.dll_abs
pop ecx
push 0x26
push dword [ebx + 0x78]
neg eax
mov dword [esi], eax
call edi
not eax
shr eax, 8
and eax, 1
pop edi
mov dword [ebx + 0xac], eax
pop esi
pop ebx
leave
ret