Function at 0x495550
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5298e8
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push esi
mov esi, ecx
mov eax, dword [esi + 0x1d4]
test eax, eax
je 0x495580
lea ecx, [esi + 0x1d0]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [esi + 0x48]
test eax, eax
jle 0x4958fc
push ebx
push ebp
push edi
lea ecx, [esp + 0x14]
call fcn.00401860
mov dword [esp + 0x14], 0x53bdb8
mov eax, dword [esi + 0x1f8]
mov ecx, dword [esi + 0x1f0]
sub eax, ecx
push 0xbb8
push eax
push 0
lea eax, [esp + 0x58]
push 0
push eax
mov dword [esp + 0x98], 0
call dword [sym.imp.USER32.dll_SetRect]
lea ecx, [esp + 0x1c]
call fcn.004c72cc
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
mov byte [esp + 0x88], 1
call ebx
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
sub eax, edi
sub ecx, edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
push ecx
call ebp
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x14]
test edx, edx
je 0x49563b
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49563b
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [0x571ab0]
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CDC::SelectObject_2
push 0x5672c8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x6c]
push 0x420
push edx
mov ecx, dword [eax - 8]
mov byte [esp + 0x8c], 2
push ecx
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
call dword [eax + 0x70]
lea ecx, [esp + 0x10]
mov byte [esp + 0x84], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
sub ecx, edx
push 1
mov dword [esi + 0x1e4], ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CDC::SetBkMode
lea edx, [esp + 0x4c]
push 0xffffff
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CDC::FillSolidRect
push 0xff
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CDC::SetTextColor
mov eax, dword [esi + 0x44]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov edi, dword [eax]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x48], ecx
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x3c]
push 0x10
push edx
mov ecx, dword [eax - 8]
mov byte [esp + 0x8c], 3
push ecx
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
call dword [eax + 0x70]
lea ecx, [esp + 0x10]
mov byte [esp + 0x84], 1
call sub.MFC42.DLL_CString::CString
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x3c]
push 0x410
push edx
mov ecx, dword [eax - 8]
mov byte [esp + 0x8c], 4
push ecx
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
call dword [eax + 0x70]
mov byte [esp + 0x84], 1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
mov eax, ecx
mov dword [esp + 0x38], ecx
sub eax, edi
mov dword [esp + 0x30], edi
cdq
idiv dword [esi + 0x1e4]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x34], edx
mov dword [esi + 0x1ec], eax
imul eax, dword [esi + 0x1e8]
add eax, ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x38], eax
call fcn.004c72cc
push 0
mov byte [esp + 0x88], 5
call ebx
push eax
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x2c]
sub eax, ebx
sub ecx, edi
push eax
mov eax, dword [esp + 0x64]
push ecx
push eax
lea edi, [esi + 0x1d0]
call ebp
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
test edi, edi
je 0x49580f
mov edi, dword [edi + 4]
test edi, edi
je 0x49580f
mov ecx, dword [esp + 0x60]
push edi
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
lea edx, [esp + 0x2c]
push 0xffffff
push edx
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CDC::FillSolidRect
mov eax, dword [esi + 0x1ec]
xor edi, edi
test eax, eax
jle 0x495880
mov edx, dword [esi + 0x1e4]
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi + 0x1e8]
mov ebp, edx
sub ebx, ecx
imul ebp, edi
mov ecx, edx
push 0xcc0020
add ecx, eax
lea eax, [esp + 0x20]
imul ecx, edi
neg eax
sbb eax, eax
push ebp
and eax, dword [esp + 0x28]
push 0
push eax
mov eax, dword [esp + 0x70]
push edx
push ebx
push ecx
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x1ec]
inc edi
cmp edi, eax
jl 0x49582e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CDC::DeleteDC
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CDC::DeleteDC
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
sub ecx, edx
mov edx, dword [esp + 0x38]
mov dword [esi + 0x1d8], ecx
sub edx, eax
lea ecx, [esp + 0x5c]
mov dword [esi + 0x1dc], edx
mov byte [esp + 0x84], 1
call sub.MFC42.DLL_CDC::CDC
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 0
call sub.MFC42.DLL_CDC::CDC
mov dword [esp + 0x14], str.e_fL7
lea ecx, [esp + 0x14]
mov dword [esp + 0x84], 6
call sub.MFC42.DLL_CGdiObject::DeleteObject
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
pop esi
mov dword fs:[0], ecx
add esp, 0x78
ret