Function at 0x40d444
Capabilities:
Capture screenshot

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb0
mov ebx, eax
mov eax, ebx
call fcn.0040cf10
test al, al
jne 0x40d6d1
mov byte [esp + 0x20], 0
mov eax, ebx
call dword [ebx + 0x34]
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x56], eax
xor eax, eax
mov dword [ebx + 0x5a], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x10], eax
mov ebp, dword [ebx + 0x18]
cmp dword [ebx + 0x41], 0
je 0x40d49b
mov ecx, dword [ebx + 0x3d]
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 8]
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
jmp 0x40d4bf
mov esi, dword [ebx + 0x20]
test esi, esi
je 0x40d4bf
lea eax, [esp + 0x28]
push eax
push 0x18
push esi
call sub.gdi32.dll_GetObjectA
test eax, eax
je 0x40d4bf
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x30]
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov esi, eax
cmp byte [ebx + 0x3c], 1
jne 0x40d598
push 0
call sub.user32.dll_GetDC
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
push eax
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov edi, eax
mov eax, dword [esp + 4]
push eax
push 0
call sub.user32.dll_ReleaseDC
push edi
push esi
call sub.gdi32.dll_SelectObject
mov dword [esp], eax
mov eax, dword [ebx + 0x2c]
call fcn.00405bd8
push eax
call sub.gdi32.dll_CreateSolidBrush
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [ebx + 0x18]
push eax
mov eax, dword [ebx + 0x1c]
push eax
push 0
push 0
lea eax, [esp + 0x54]
push eax
call fcn.004054b8
lea eax, [esp + 0x44]
push eax
push esi
call sub.user32.dll_FillRect
mov eax, dword [esp + 0x18]
push eax
call sub.gdi32.dll_DeleteObject
cmp dword [ebx + 0x41], 0
je 0x40d572
mov eax, dword [esp]
push eax
push esi
call sub.gdi32.dll_SelectObject
push 0
mov eax, dword [ebx + 0x3d]
push eax
mov eax, dword [ebx + 0x41]
push eax
mov eax, dword [ebx + 0x18]
push eax
push 0
push edi
push esi
call sub.gdi32.dll_SetDIBits
jmp 0x40d589
push 0
mov eax, ebx
xor ecx, ecx
mov edx, esi
call fcn.0040cc5c
mov eax, dword [esp]
push eax
push esi
call sub.gdi32.dll_SelectObject
mov eax, ebx
call fcn.0040cbbc
mov dword [ebx + 0x20], edi
jmp 0x40d6b9
xor eax, eax
mov al, byte [ebx + 0x49]
movzx eax, byte [eax + 0x474328]
test eax, eax
jne 0x40d5b6
xor eax, eax
mov al, byte [0x474120]
movzx eax, byte [eax + 0x474328]
xor edi, edi
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
xchg ecx, eax
call fcn.0040ca58
mov dword [esp + 8], eax
cmp byte [ebx + 0x49], 5
jne 0x40d5d7
mov eax, dword [esp + 8]
call fcn.0040cb00
mov eax, dword [esp + 8]
call fcn.0040d430
imul dword [ebx + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
push eax
push 0
call sub.kernel32.dll_GlobalAlloc
mov dword [esp + 0xc], eax
mov eax, ebx
call fcn.0040cf24
mov dword [esp + 0x24], eax
cmp dword [esp + 0x24], 0
je 0x40d6d1
push 0
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 0x18]
mov edx, ebp
call fcn.00405578
push eax
push 0
mov eax, dword [esp + 0x38]
push eax
push esi
call sub.gdi32.dll_GetDIBits
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x18]
mov edx, ebp
call fcn.00405578
cmp eax, dword [esp + 0x1c]
je 0x40d693
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_GlobalFree
xor eax, eax
mov dword [esp + 0xc], eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
push esi
call sub.gdi32.dll_CreateDIBSection
mov edi, eax
mov byte [esp + 0x20], 1
push edi
push esi
call sub.gdi32.dll_SelectObject
mov dword [esp], eax
push 0
mov eax, ebx
xor ecx, ecx
mov edx, esi
call fcn.0040cc5c
mov eax, dword [esp]
push eax
push esi
call sub.gdi32.dll_SelectObject
mov eax, ebx
call fcn.0040cbbc
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x45], eax
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x41], eax
mov eax, dword [esp + 8]
mov dword [ebx + 0x3d], eax
mov dword [ebx + 0x20], edi
mov al, byte [esp + 0x20]
mov byte [ebx + 0x72], al
cmp dword [ebx + 0x4a], 0
je 0x40d6cb
push ebp
mov eax, ebx
mov ecx, dword [esp + 0x14]
mov edx, esi
call dword [ebx + 0x4a]
push esi
call sub.gdi32.dll_DeleteDC
add esp, 0x50
pop ebp
pop edi
pop esi
pop ebx
ret