Function at 0x490500
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x57b8f9
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 + 0x1c], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 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 0x4905b8
mov ecx, dword [edi + 0x124]
mov eax, 0x3ff00000
cmp ecx, eax
jne 0x4905b8
cmp dword [edi + 0x128], esi
jne 0x4905b8
cmp dword [edi + 0x12c], eax
je 0x4905e7
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 + 0x18]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
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 0x4906c8
cmp dword [edi + 0xc], esi
jne 0x4906ab
push 8
call sub.MFC42.DLL_operatornew
add esp, 4
cmp eax, esi
je 0x49068e
mov dword [eax + 4], esi
mov dword [eax], 0x5865c4
mov ebx, eax
jmp 0x490690
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 0x4906e4
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 0x490729
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 0x490739
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 0x490747
mov ebx, dword [eax + 4]
cmp ebx, esi
jne 0x490751
push 0xf
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ebx, eax
mov edx, dword [esp + 0x18]
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 + 0x24], 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 0x490802
mov ecx, dword [esp + 0x20]
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 0x490936
mov edx, dword [esp + 0x58]
mov ecx, 0xa
lea esi, [esp + 0x50]
mov edi, ebx
lea eax, [esp + 0x14]
push 0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
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 0x490869
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 0x4909e0
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x14]
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 0x4908bb
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x20]
push 0
push eax
jmp 0x4909ee
mov ecx, dword [esp + 0x20]
push 0
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebp
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x8c]
call sub.MFC42.DLL_CFile::CFile
mov edi, dword [esp + 0x1c]
push 0
push 0x1001
lea ecx, [esp + 0x94]
lea eax, [edi + 0x14]
mov byte [esp + 0xb4], 4
push eax
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x490915
lea ecx, [esp + 0x8c]
push esi
push ecx
mov ecx, edi
call fcn.00491130
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x8c]
mov byte [esp + 0xac], 3
call fcn.004eb6ec
mov edi, dword [esp + 0x1c]
xor esi, esi
mov eax, dword [esp + 0x44]
cmp eax, esi
je 0x490949
push esi
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CDC::SelectPalette
mov al, byte [esp + 0x13]
test al, al
je 0x490962
mov ecx, dword [edi + 0xc]
cmp ecx, esi
je 0x49095f
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [edi + 0xc], esi
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x49096d
mov esi, dword [eax + 4]
mov eax, dword [esp + 0x28]
push esi
push eax
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 + 0x14], vtable.CGdiObject.0
lea ecx, [esp + 0x14]
mov dword [esp + 0xac], 5
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa0
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0x20]
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 0x490930