Function at 0x43cd70
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7866
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 ebx, ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CDC::CDC
push ebx
push ebx
push ebx
push str.DISPLAY
mov byte [ebp - 4], 2
call dword [sym.imp.GDI32.dll_CreateDCW]
push eax
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CDC::Attach
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0x4bc520
mov esi, dword [ebp + 0x28]
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp - 0x2c]
push esi
push edi
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_CGdiObject::Attach
lea ecx, [ebp - 0x40]
call sub.MFC42u.DLL_CDC::CDC
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x30]
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 - 0x40]
call sub.MFC42u.DLL_CDC::Attach
lea ecx, [ebp - 0x40]
test ecx, ecx
je 0x43ce1f
mov ecx, dword [ebp - 0x3c]
cmp ecx, ebx
jne 0x43ce73
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.004b05ce
mov dword [ebp - 0x1c], 0x4bc50c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CGdiObject::DeleteObject
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 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 - 0x18]
lea eax, [ebp - 0x1c]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call sub.MFC42u.DLL_CDC::SelectGdiObject
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp + 0x24]
lea eax, [ebp - 0x30]
push 0x40cc0020
neg eax
sbb eax, eax
push edx
mov edx, dword [ebp - 0x3c]
and eax, ecx
mov ecx, dword [ebp + 0x1c]
push ecx
push eax
push esi
push edi
push ebx
push ebx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x30]
mov esi, dword [sym.imp.USER32.dll_ReleaseDC]
neg eax
sbb eax, eax
and eax, edi
push eax
push ebx
call esi
mov eax, dword [ebp - 0x3c]
push eax
push ebx
call esi
mov esi, dword [ebp - 0x18]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov dword [ebp + 0x28], eax
cmp eax, ebx
mov byte [ebp - 4], 6
je 0x43ceed
push ebx
push esi
mov ecx, eax
call fcn.00429180
mov esi, eax
jmp 0x43ceef
xor esi, esi
mov edx, dword [esi + 4]
lea ecx, [ebp + 0x24]
push ecx
push edx
mov dword [ebp + 0x28], esi
mov dword [ebp + 0x24], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x43cf09
mov dword [esi + 8], eax
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp + 0x1c]
sub edi, esi
mov esi, dword [ebp + 0x10]
push eax
push 0
push 0x30803
sub esi, edx
push 0
mov ebx, 0x4bc4d0
push edi
push esi
mov dword [ebp - 0xac], ebx
mov dword [ebp + 0x1c], 0
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa8], ecx
mov eax, dword [ebp + 0x28]
lea edx, [ebp - 0x44]
push edx
mov dword [ebp + 0x24], 0
mov ecx, dword [eax + 4]
push ecx
call sub.gdiplus.dll_GdipGetImagePixelFormat
test eax, eax
je 0x43cf6f
mov edx, dword [ebp + 0x28]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x44]
lea eax, [ebp + 0x14]
push eax
push 0
push ecx
push 0
push edi
push esi
mov dword [ebp - 0x7c], ebx
mov dword [ebp + 0x14], 0
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp + 0x20]
mov byte [ebp - 4], 8
cmp esi, ecx
jne 0x43cfac
mov al, byte [ebp + 0x3c]
test al, al
jne 0x43d003
mov edi, dword [ebp + 0x28]
jmp 0x43d006
lea edx, [ebp - 0x7c]
xor ebx, ebx
test edx, edx
mov dword [ebp + 0x20], ebx
je 0x43cfc5
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 0x43cfde
mov edx, eax
mov eax, dword [edx + 4]
jmp 0x43cfe0
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
jne 0x43cffd
lea eax, [ebp - 0x7c]
mov dword [ebp + 0x24], eax
push ebx
call sub.gdiplus.dll_GdipDeleteGraphics
mov edi, dword [ebp + 0x24]
mov edx, dword [edi + 4]
lea ecx, [ebp + 0x3c]
push ecx
push edx
mov dword [ebp + 0x3c], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x43d021
mov dword [edi + 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 0x43d047
push 0x4d4ec0
lea ecx, [ebp - 0x14]
call fcn.004b03dc
cmp esi, 2
jne 0x43d059
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 0x43d098
lea edx, [ebp - 0x6c]
push edx
push 0x4d3540
jmp 0x43d1de
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 0x43d0e5
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 0x43d0e7
mov bl, 1
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 9
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x43d105
lea ecx, [ebp - 0x6c]
push ecx
push str.image_jpeg
jmp 0x43d1de
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 0x43d13e
lea ecx, [ebp - 0x6c]
push ecx
push str.image_png
jmp 0x43d1de
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 0x43d174
lea ecx, [ebp - 0x6c]
push ecx
push str.image_gif
jmp 0x43d1de
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 0x43d1aa
lea ecx, [ebp - 0x6c]
push ecx
push str.image_tiff
jmp 0x43d1de
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 0x43d1e6
lea ecx, [ebp - 0x6c]
push ecx
push str.image_ico
call fcn.0043c750
add esp, 8
mov eax, dword [ebp + 0x30]
cmp eax, 0xa
mov dword [ebp - 0x20], eax
jl 0x43d1f6
cmp eax, 0x64
jle 0x43d1fd
mov dword [ebp - 0x20], 0x41
mov edx, dword [0x4c0f14]
mov ecx, dword [0x4c0f18]
mov dword [ebp - 0x98], edx
mov edx, dword [0x4c0f1c]
mov dword [ebp - 0x94], ecx
mov ecx, dword [0x4c0f20]
mov dword [ebp - 0x90], edx
mov eax, 1
mov dword [ebp - 0x8c], ecx
lea edx, [ebp - 0x20]
push 0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x84], 4
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x80], edx
call sub.MFC42u.DLL_COleStreamFile::COleStreamFile
push 0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xb
call sub.MFC42u.DLL_COleStreamFile::CreateMemoryStream
mov eax, dword [ebp - 0x5c]
push 0
push 0
lea ecx, [ebp - 0x5c]
call dword [eax + 0x30]
lea ecx, [ebp - 0x5c]
call sub.MFC42u.DLL_COleStreamFile::GetStream
lea ecx, [ebp - 0x9c]
lea edx, [ebp - 0x6c]
push ecx
push edx
push eax
mov eax, dword [edi + 4]
push eax
call sub.gdiplus.dll_GdipSaveImageToStream
test eax, eax
je 0x43d297
mov dword [edi + 8], eax
lea ecx, [ebp - 0x5c]
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 - 0x5c]
add esp, 4
lea ecx, [ebp - 0x5c]
mov ebx, eax
push 0
push 0
call dword [edx + 0x30]
mov eax, dword [esi]
lea ecx, [ebp - 0x5c]
push eax
push ebx
call sub.MFC42u.DLL_COleStreamFile::Read
lea ecx, [ebp - 0x5c]
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 0x43d305
mov edx, dword [ecx]
push 1
call dword [edx]
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_CGdiObject::DeleteObject
lea ecx, [ebp - 0x5c]
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 - 0x78]
push eax
call sub.gdiplus.dll_GdipDisposeImage
mov ecx, dword [ebp + 0x1c]
push ecx
call sub.gdiplus.dll_GdipDisposeImage
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.004b05ce
mov dword [ebp - 0x1c], 0x4bc50c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xc
call sub.MFC42u.DLL_CGdiObject::DeleteObject
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 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