Function at 0x490030
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x57b8b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], vtable.CBitmap.0
mov eax, dword [edi + 8]
lea ecx, [esp + 0x78]
push eax
mov dword [esp + 0xb0], esi
call sub.MFC42.DLL_CClientDC::CClientDC
lea ecx, [esp + 0x24]
mov byte [esp + 0xac], 1
call fcn.004eab2e
push 0x69ab30
lea ecx, [esp + 0x4c]
mov byte [esp + 0xb0], 2
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [edi + 8]
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0xb0], 3
mov edx, dword [eax + 0x20]
mov dword [esp + 0x48], esi
push edx
mov byte [esp + 0x1b], 0
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [edi + 0x120], esi
jne 0x4900e8
mov ecx, dword [edi + 0x124]
mov eax, 0x3ff00000
cmp ecx, eax
jne 0x4900e8
cmp dword [edi + 0x128], esi
jne 0x4900e8
cmp dword [edi + 0x12c], eax
je 0x490117
fild dword [esp + 0x40]
fmul qword [edi + 0x128]
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x3c]
mov ebx, eax
fmul qword [edi + 0x120]
call sub.MSVCRT.dll__ftol
push ebx
push eax
push esi
lea eax, [esp + 0x40]
push esi
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ebp, dword [esp + 0x7c]
lea eax, [esp + 0x78]
neg eax
sbb eax, eax
and eax, ebp
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
sub eax, ecx
mov ecx, dword [esp + 0x3c]
push eax
sub ecx, ebp
push ecx
mov ecx, dword [esp + 0x84]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esp + 0x28]
push eax
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], eax
call sub.MFC42.DLL_CDC::SetMapMode
mov eax, dword [esp + 0x2c]
push 0x26
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test ah, 1
je 0x4901f8
cmp dword [edi + 0xc], esi
jne 0x4901db
push 8
call sub.MFC42.DLL_operatornew
add esp, 4
cmp eax, esi
je 0x4901be
mov dword [eax + 4], esi
mov dword [eax], 0x5865c4
mov ebx, eax
jmp 0x4901c0
xor ebx, ebx
mov ecx, dword [esp + 0x28]
mov dword [edi + 0xc], ebx
push ecx
mov byte [esp + 0x17], 1
call dword [sym.imp.GDI32.dll_CreateHalftonePalette]
push eax
mov ecx, ebx
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [edi + 0xc]
push esi
push edx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CDC::SelectPalette
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov al, byte [edi + 0x119]
test al, al
je 0x490214
mov ecx, dword [edi + 0x10]
lea edx, [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CDC::FillSolidRect_1
mov al, byte [edi + 0x11a]
test al, al
je 0x490259
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
sub ecx, edx
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x7c]
sub edx, eax
lea eax, [esp + 0x78]
neg eax
sbb eax, eax
push 0xcc0020
and eax, ebx
push esi
push esi
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push esi
push esi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x490269
mov ecx, dword [edi + 8]
lea eax, [esp + 0x24]
push eax
mov edx, dword [ecx]
call dword [edx + 0xf8]
mov eax, dword [edi + 0xc]
cmp eax, esi
je 0x490277
mov ebx, dword [eax + 4]
cmp ebx, esi
jne 0x490281
push 0xf
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ebx, eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x8c]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
push esi
mov dword [esp + 0x54], 0x28
lea eax, [ecx + ecx*2]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov word [esp + 0x60], 1
lea eax, [eax*8 + 0x1f]
mov word [esp + 0x62], 0x18
sar eax, 3
and al, 0xfc
mov dword [esp + 0x64], esi
imul eax, edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
push esi
push ebx
push ebp
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push 0x28
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
cmp ebx, esi
jne 0x490332
mov ecx, dword [esp + 0x14]
push esi
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebp
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x490433
mov edx, dword [esp + 0x58]
mov ecx, 0xa
lea esi, [esp + 0x50]
mov edi, ebx
lea eax, [esp + 0x18]
push 0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x20]
push ebx
neg eax
sbb eax, eax
push 0
and eax, ecx
push edx
push 0
push eax
push ebp
call dword [sym.imp.GDI32.dll_GetDIBits]
mov ecx, 0xa
mov esi, ebx
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x58]
test eax, eax
jne 0x490399
mov eax, dword [esp + 0x5e]
and eax, 0xffff
imul eax, dword [esp + 0x54]
add eax, 0x1f
and al, 0xe0
cdq
and edx, 7
add eax, edx
sar eax, 3
imul eax, edi
add eax, 0x28
push 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov esi, eax
test esi, esi
je 0x4904dd
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push 0
neg eax
lea edx, [esi + ecx]
push esi
sbb eax, eax
push edx
and eax, ebx
push edi
push 0
push eax
push ebp
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x4903eb
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
push 0
push eax
jmp 0x4904eb
mov ecx, dword [esp + 0x14]
push 0
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebp
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x48]
push eax
push ecx
lea edx, [ecx + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push 0x64
push esi
call fcn.004969a0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [esp + 0x20]
xor esi, esi
mov eax, dword [esp + 0x44]
cmp eax, esi
je 0x490446
push esi
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CDC::SelectPalette
mov al, byte [esp + 0x13]
test al, al
je 0x49045f
mov ecx, dword [edi + 0xc]
cmp ecx, esi
je 0x49045c
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [edi + 0xc], esi
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x49046a
mov esi, dword [eax + 4]
mov ecx, dword [esp + 0x28]
push esi
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x48]
mov byte [esp + 0xac], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0xac], 1
call sub.MFC42.DLL_CDC::CDC
lea ecx, [esp + 0x78]
mov byte [esp + 0xac], 0
call fcn.004eaedc
mov dword [esp + 0x18], vtable.CGdiObject.0
lea ecx, [esp + 0x18]
mov dword [esp + 0xac], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa0
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0x14]
push 0
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebp
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x49042d