Function at 0x4de710
Capabilities:
Capture screenshot
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x586c60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
push esi
push edi
xor edi, edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x98], edi
call fcn.00572d84
mov ebx, dword [esp + 0xa8]
mov ebp, dword [esp + 0xac]
cmp ebx, 0xffffffff
mov byte [esp + 0x98], 1
jne 0x4de78e
cmp ebp, 0xffffffff
jne 0x4de78e
mov eax, dword [esp + 0xa0]
cmp eax, edi
je 0x4dea6a
mov eax, dword [eax + 8]
push 7
push eax
call dword [sym.imp.GDI32.dll_GetCurrentObject]
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
jmp 0x4de890
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], 0x5916cc
mov esi, dword [esp + 0xa0]
mov byte [esp + 0x98], 2
cmp esi, edi
jne 0x4de7b1
xor eax, eax
jmp 0x4de7b4
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CDC::Attach
mov edx, dword [esi + 4]
push ebp
push ebx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CGdiObject::Attach
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x28]
neg eax
sbb eax, eax
and eax, ecx
push eax
mov eax, dword [esp + 0x48]
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
cmp esi, edi
jne 0x4de7fc
xor eax, eax
jmp 0x4de7ff
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x44]
push 0xcc0020
push edi
push edi
push eax
push ebp
push ebx
push edi
push edi
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x44]
push 0xf00021
push ebp
push ebx
push edi
push edi
push edx
call dword [sym.imp.GDI32.dll_PatBlt]
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CGdiObject::DeleteObject
cmp esi, edi
jne 0x4de83b
xor esi, esi
jmp 0x4de83e
mov esi, dword [esi + 4]
mov eax, dword [esp + 0x44]
push 0xcc0020
push edi
push edi
push esi
push ebp
push ebx
push edi
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x48]
push 7
push ecx
call dword [sym.imp.GDI32.dll_GetCurrentObject]
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov edx, dword [eax + 4]
mov dword [esp + 0x28], 0x5916f4
mov dword [esp + 0x14], edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x98], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x28], 0x5916e0
cmp dword [esp + 0x14], edi
je 0x4dea6a
push edi
push edi
push edi
push str.DISPLAY
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ebp, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
push 0xe
push ebx
call ebp
push 0xc
push ebx
mov esi, eax
call ebp
imul esi, eax
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ebp, 1
cmp esi, ebp
jg 0x4de9c3
mov dword [esp + 0x10], ebp
mov cl, byte [esp + 0x10]
mov eax, ebp
shl eax, cl
shl eax, 2
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x50]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x54]
mov word [esp + 0x76], ax
and eax, 0xffff
imul eax, ecx
add eax, 0x1f
mov esi, dword [esp + 0x58]
cdq
and edx, 0x1f
mov word [esp + 0x74], bp
add eax, edx
mov edx, dword [esp + 0x18]
mov ebp, eax
mov dword [esp + 0x68], 0x28
sar ebp, 5
imul ebp, esi
shl ebp, 2
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], esi
lea eax, [edx + ebp + 0x28]
mov dword [esp + 0x78], edi
push eax
push 0x42
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, 0xa
lea esi, [esp + 0x68]
mov edi, eax
push 0xf
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov esi, eax
test esi, esi
je 0x4de9fe
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push 0
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebx
mov esi, eax
call dword [sym.imp.GDI32.dll_RealizePalette]
jmp 0x4dea02
cmp esi, 4
jg 0x4de9d5
mov dword [esp + 0x10], 4
jmp 0x4de8df
cmp esi, 8
jg 0x4de9e7
mov dword [esp + 0x10], 8
jmp 0x4de8df
xor eax, eax
cmp esi, 0x10
setg al
dec eax
and al, 0xf8
add eax, 0x18
mov dword [esp + 0x10], eax
jmp 0x4de8ee
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x58]
push 0
lea ecx, [eax + edi + 0x28]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push 0
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetDIBits]
test esi, esi
je 0x4dea43
push 1
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebx
call dword [sym.imp.GDI32.dll_RealizePalette]
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0xa4]
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4dea99
lea ecx, [esp + 0x40]
mov byte [esp + 0x98], 0
call sub.MFC42.DLL_CDC::CDC
lea ecx, [esp + 0xa4]
mov dword [esp + 0x98], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4deb27
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
lea edx, [esp + 0x20]
mov word [esp + 0x36], ax
mov word [esp + 0x38], ax
push eax
push edx
lea eax, [esp + 0x38]
lea ebp, [edi + ebp + 0x36]
push 0xe
add edi, 0x36
push eax
push esi
mov word [esp + 0x44], 0x4d42
mov dword [esp + 0x46], ebp
mov dword [esp + 0x4e], edi
call ebx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push 0
push ecx
push ebp
push edx
push esi
call ebx
mov ebx, dword [esp + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x40]
mov byte [esp + 0x98], 0
call sub.MFC42.DLL_CDC::CDC
lea ecx, [esp + 0xa4]
mov dword [esp + 0x98], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret 0x10