Function at 0x439c40
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b75c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], edi
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CDC::CDC
push edi
push edi
push edi
push str.DISPLAY
mov byte [ebp - 4], 2
call dword [sym.imp.GDI32.dll_CreateDCW]
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_CDC::Attach
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], 0x4bc520
mov esi, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x30]
push esi
push ebx
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CGdiObject::Attach
lea ecx, [ebp - 0x54]
call sub.MFC42u.DLL_CDC::CDC
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
neg eax
sbb eax, eax
mov byte [ebp - 4], 4
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x54]
call sub.MFC42u.DLL_CDC::Attach
lea ecx, [ebp - 0x54]
test ecx, ecx
je 0x439cef
mov ecx, dword [ebp - 0x50]
cmp ecx, edi
jne 0x439d43
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.004b05ce
mov dword [ebp - 0x20], 0x4bc50c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CGdiObject::DeleteObject
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 0x4bc480
mov byte [ebp - 4], 1
call fcn.004b05ce
lea ecx, [ebp + 0x38]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call sub.MFC42u.DLL_CDC::SelectGdiObject
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp + 0x24]
lea eax, [ebp - 0x34]
push 0x40cc0020
neg eax
sbb eax, eax
push edx
mov edx, dword [ebp - 0x50]
and eax, ecx
mov ecx, dword [ebp + 0x1c]
push ecx
push eax
push esi
push ebx
push edi
push edi
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ebx, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
mov esi, dword [sym.imp.USER32.dll_ReleaseDC]
neg eax
sbb eax, eax
and eax, ebx
push eax
push edi
call esi
mov eax, dword [ebp - 0x50]
push eax
push edi
call esi
mov esi, dword [ebp - 0x1c]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov dword [ebp + 0x28], eax
cmp eax, edi
mov byte [ebp - 4], 6
je 0x439dbd
push edi
push esi
mov ecx, eax
call fcn.00429180
mov ebx, eax
jmp 0x439dbf
xor ebx, ebx
mov edx, dword [ebx + 4]
lea ecx, [ebp + 0x24]
push ecx
push edx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x24], edi
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, edi
je 0x439dd9
mov dword [ebx + 8], eax
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp + 0x24]
sub edi, esi
mov esi, dword [ebp + 0x10]
push eax
push 0
push 0x30803
sub esi, edx
push 0
push edi
push esi
mov dword [ebp - 0x7c], 0x4bc4d0
mov dword [ebp + 0x24], 0
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x18], 0
mov eax, dword [ebx + 4]
lea edx, [ebp + 0x1c]
push edx
push eax
call sub.gdiplus.dll_GdipGetImagePixelFormat
test eax, eax
je 0x439e2f
mov dword [ebx + 8], eax
mov edx, dword [ebp + 0x1c]
lea ecx, [ebp + 0x24]
push ecx
push 0
push edx
push 0
push edi
push esi
mov dword [ebp - 0x44], 0x4bc4d0
mov dword [ebp + 0x24], 0
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0x20]
mov byte [ebp - 4], 8
cmp esi, ecx
jne 0x439e83
mov al, byte [ebp + 0x3c]
test al, al
je 0x439e7e
lea eax, [ebp - 0x7c]
lea ecx, [ebp - 0x18]
push eax
push ecx
push ebx
call fcn.004394f0
add esp, 0xc
jmp 0x439ef0
mov dword [ebp - 0x18], ebx
jmp 0x439ef0
lea edx, [ebp - 0x44]
xor ebx, ebx
test edx, edx
mov dword [ebp + 0x20], ebx
je 0x439e9c
lea ecx, [ebp + 0x20]
push ecx
push eax
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov ebx, dword [ebp + 0x20]
push 2
push ebx
call sub.gdiplus.dll_GdipSetSmoothingMode
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x439eb5
mov edx, eax
mov eax, dword [edx + 4]
jmp 0x439eb7
xor eax, eax
push edi
push esi
push 0
push 0
push eax
push ebx
call sub.gdiplus.dll_GdipDrawImageRectI
mov dword [ebp + 0x20], eax
mov al, byte [ebp + 0x3c]
test al, al
je 0x439ee4
lea eax, [ebp - 0x7c]
lea ecx, [ebp - 0x18]
push eax
lea edx, [ebp - 0x44]
push ecx
push edx
call fcn.004394f0
add esp, 0xc
jmp 0x439eea
lea eax, [ebp - 0x44]
mov dword [ebp - 0x18], eax
push ebx
call sub.gdiplus.dll_GdipDeleteGraphics
mov esi, dword [ebp - 0x18]
lea ecx, [ebp + 0x3c]
push ecx
mov dword [ebp + 0x3c], 0
mov edx, dword [esi + 4]
push edx
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x439f0e
mov dword [esi + 8], eax
push 0x4d353c
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_4
mov esi, dword [ebp + 0x34]
mov byte [ebp - 4], 9
cmp esi, 1
jne 0x439f34
push 0x4d4ec0
lea ecx, [ebp - 0x14]
call fcn.004b03dc
cmp esi, 2
jne 0x439f46
push 0x4d4ebc
lea ecx, [ebp - 0x14]
call fcn.004b03dc
push 0x4d4eb8
lea ecx, [ebp + 0x3c]
call sub.MFC42u.DLL_CString::CString_4
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebp - 0x14]
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
push eax
push ecx
call esi
add esp, 8
lea ecx, [ebp + 0x3c]
test eax, eax
sete bl
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x439f88
lea edx, [ebp - 0x8c]
push edx
push 0x4d3540
jmp 0x43a0dd
push 0x4d353c
lea ecx, [ebp + 0x20]
call sub.MFC42u.DLL_CString::CString_4
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
mov byte [ebp - 4], 0xa
call esi
add esp, 8
test eax, eax
je 0x439fd5
push 0x4d3538
lea ecx, [ebp + 0x3c]
call sub.MFC42u.DLL_CString::CString_4
mov edx, dword [ebp + 0x3c]
mov eax, dword [ebp - 0x14]
push edx
push eax
call esi
add esp, 8
lea ecx, [ebp + 0x3c]
test eax, eax
sete bl
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x439fd7
mov bl, 1
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 9
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x439ff8
lea ecx, [ebp - 0x8c]
push ecx
push str.image_jpeg
jmp 0x43a0dd
push 0x4d4ec0
lea ecx, [ebp + 0x3c]
call sub.MFC42u.DLL_CString::CString_4
mov edx, dword [ebp + 0x3c]
mov eax, dword [ebp - 0x14]
push edx
push eax
call esi
add esp, 8
lea ecx, [ebp + 0x3c]
test eax, eax
sete bl
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x43a034
lea ecx, [ebp - 0x8c]
push ecx
push str.image_png
jmp 0x43a0dd
push 0x4d4ebc
lea ecx, [ebp + 0x3c]
call sub.MFC42u.DLL_CString::CString_4
mov edx, dword [ebp + 0x3c]
mov eax, dword [ebp - 0x14]
push edx
push eax
call esi
add esp, 8
lea ecx, [ebp + 0x3c]
test eax, eax
sete bl
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x43a06d
lea ecx, [ebp - 0x8c]
push ecx
push str.image_gif
jmp 0x43a0dd
push 0x4d4eb4
lea ecx, [ebp + 0x3c]
call sub.MFC42u.DLL_CString::CString_4
mov edx, dword [ebp + 0x3c]
mov eax, dword [ebp - 0x14]
push edx
push eax
call esi
add esp, 8
lea ecx, [ebp + 0x3c]
test eax, eax
sete bl
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x43a0a6
lea ecx, [ebp - 0x8c]
push ecx
push str.image_tiff
jmp 0x43a0dd
push 0x4d4eb0
lea ecx, [ebp + 0x3c]
call sub.MFC42u.DLL_CString::CString_4
mov edx, dword [ebp + 0x3c]
mov eax, dword [ebp - 0x14]
push edx
push eax
call esi
add esp, 8
lea ecx, [ebp + 0x3c]
test eax, eax
sete bl
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x43a0e5
lea ecx, [ebp - 0x8c]
push ecx
push str.image_ico
call fcn.0043c750
add esp, 8
mov eax, dword [ebp + 0x30]
cmp eax, 0xa
mov dword [ebp - 0x24], eax
jl 0x43a0f5
cmp eax, 0x64
jle 0x43a0fc
mov dword [ebp - 0x24], 0x41
mov edx, dword [0x4c0f14]
mov ecx, dword [0x4c0f18]
mov dword [ebp - 0xa8], edx
mov edx, dword [0x4c0f1c]
mov dword [ebp - 0xa4], ecx
mov ecx, dword [0x4c0f20]
mov dword [ebp - 0xa0], edx
mov eax, 1
mov dword [ebp - 0x9c], ecx
lea edx, [ebp - 0x24]
push 0
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x94], 4
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x90], edx
call sub.MFC42u.DLL_COleStreamFile::COleStreamFile
push 0
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xb
call sub.MFC42u.DLL_COleStreamFile::CreateMemoryStream
mov eax, dword [ebp - 0x6c]
push 0
push 0
lea ecx, [ebp - 0x6c]
call dword [eax + 0x30]
lea ecx, [ebp - 0x6c]
call sub.MFC42u.DLL_COleStreamFile::GetStream
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0xac]
push edx
lea edx, [ebp - 0x8c]
push edx
push eax
mov eax, dword [ecx + 4]
mov esi, ecx
push eax
call sub.gdiplus.dll_GdipSaveImageToStream
test eax, eax
je 0x43a1a1
mov dword [esi + 8], eax
lea ecx, [ebp - 0x6c]
call sub.MFC42u.DLL_COleStreamFile::GetLength
mov esi, dword [ebp + 0x18]
push eax
mov dword [esi], eax
call sub.MFC42u.DLL_operatornew
mov edx, dword [ebp - 0x6c]
add esp, 4
lea ecx, [ebp - 0x6c]
mov ebx, eax
push 0
push 0
call dword [edx + 0x30]
mov eax, dword [esi]
lea ecx, [ebp - 0x6c]
push eax
push ebx
call sub.MFC42u.DLL_COleStreamFile::Read
lea ecx, [ebp - 0x6c]
call sub.MFC42u.DLL_COleStreamFile::Close
mov edi, str.C:_ss.jpg
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1ac]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x28]
test ecx, ecx
je 0x43a20f
mov edx, dword [ecx]
push 1
call dword [edx]
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CGdiObject::DeleteObject
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 9
call fcn.004b05e6
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0x40]
mov esi, 0x4bc4c8
push eax
mov dword [ebp - 0x44], esi
call sub.gdiplus.dll_GdipDisposeImage
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x7c], esi
push ecx
call sub.gdiplus.dll_GdipDisposeImage
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.004b05ce
mov dword [ebp - 0x20], 0x4bc50c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xc
call sub.MFC42u.DLL_CGdiObject::DeleteObject
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 0x4bc480
mov byte [ebp - 4], 1
call fcn.004b05ce
lea ecx, [ebp + 0x38]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret