Function at 0x407980
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x437130
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
mov dword [esp + 0x10], ecx
push edi
push 0x44ad20
lea ecx, [esp + 0x14]
call fcn.00429030
lea ecx, [esp + 0x38]
mov dword [esp + 0x64], 0
call fcn.0042ed1e
mov byte [esp + 0x64], 1
call fcn.0042c45d
test eax, eax
je 0x4079d6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x4079d8
xor eax, eax
push eax
lea ecx, [esp + 0x4c]
call fcn.0042f2fd
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], 2
call fcn.0042ed1e
push 0
push 0
push 0
push str.DISPLAY
mov byte [esp + 0x74], 3
call dword [sym.imp.GDI32.dll_CreateDCA]
push eax
lea ecx, [esp + 0x2c]
call fcn.0042edd5
mov esi, dword [esp + 0x74]
lea ecx, [esp + 0x18]
mov edi, dword [esi + 0xc]
mov ebx, dword [esi + 4]
mov ebp, dword [esi + 8]
mov edx, dword [esi]
sub edi, ebx
sub ebp, edx
call fcn.00403880
mov dword [esp + 0x18], 0x4396f8
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x28]
neg eax
sbb eax, eax
mov byte [esp + 0x64], 4
and eax, ebx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x3c]
call fcn.0042edd5
mov eax, dword [esp + 0x2c]
push edi
push ebp
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x1c]
call fcn.0042f5a5
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call fcn.0042ef16
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esp + 0x3c]
push eax
push edx
call fcn.0042ef16
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x2c]
mov esi, dword [esi]
mov ebx, eax
lea eax, [esp + 0x28]
push 0xcc0020
neg eax
sbb eax, eax
push ecx
and eax, edx
push esi
push eax
push edi
push ebp
push 0
push 0
mov eax, dword [esp + 0x5c]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x4396ec
mov ecx, dword [esp + 0x50]
push 0x26
push ecx
mov byte [esp + 0x6c], 5
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test ah, 1
je 0x407b48
push 0x408
call fcn.00429881
mov esi, eax
lea eax, [esp + 0x4c]
add esp, 4
neg eax
mov word [esi], 0x300
mov ebp, dword [esp + 0x4c]
lea edx, [esi + 4]
sbb eax, eax
push edx
and eax, ebp
push 0xff
push 0
push eax
call dword [sym.imp.GDI32.dll_GetSystemPaletteEntries]
push esi
mov word [esi + 2], ax
call dword [sym.imp.GDI32.dll_CreatePalette]
push eax
lea ecx, [esp + 0x24]
call fcn.0042f5a5
push esi
call fcn.004298aa
add esp, 4
test ebx, ebx
je 0x407b4f
mov ebx, dword [ebx + 4]
mov eax, dword [esp + 0x3c]
push ebx
push eax
call fcn.0042ef16
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push 0
push edx
mov ecx, edi
call fcn.00407cb0
mov esi, eax
test esi, esi
jne 0x407b99
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 6
call fcn.0042f5fc
mov dword [esp + 0x18], esi
mov byte [esp + 0x64], 7
jmp 0x407bde
mov edx, dword [esp + 0x6c]
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x7c], esp
push edx
call fcn.00428d37
mov eax, dword [edi]
mov ecx, edi
push eax
push esi
call fcn.00407e90
test eax, eax
jne 0x407c26
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 8
call fcn.0042f5fc
mov dword [esp + 0x18], esi
mov byte [esp + 0x64], 9
lea ecx, [esp + 0x18]
call fcn.0042f5fc
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], 2
call fcn.0042ee53
lea ecx, [esp + 0x48]
mov byte [esp + 0x64], 1
call fcn.0042f36f
lea ecx, [esp + 0x38]
mov byte [esp + 0x64], 0
call fcn.0042ee53
lea ecx, [esp + 0x10]
mov dword [esp + 0x64], 0xffffffff
call fcn.00428fc2
xor eax, eax
jmp 0x407c96
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 0xa
call fcn.0042f5fc
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 0xb
call fcn.0042f5fc
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], 2
call fcn.0042ee53
lea ecx, [esp + 0x48]
mov byte [esp + 0x64], 1
call fcn.0042f36f
lea ecx, [esp + 0x38]
mov byte [esp + 0x64], 0
call fcn.0042ee53
lea ecx, [esp + 0x10]
mov dword [esp + 0x64], 0xffffffff
call fcn.00428fc2
mov eax, 1
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret 0xc