Function at 0x401358
Capabilities:
Capture screenshot
Delete file
Open clipboard
Write clipboard data

Disassembly:
push ebp
sub esp, 0x324
lea ebp, [esp - 4]
mov eax, dword [0x43b028]
xor eax, ebp
mov dword [ebp + 0x324], eax
push 0x54
mov eax, 0x426e31
call fcn.004239ba
mov eax, dword [ebp + 0x330]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x4c]
push ecx
xor esi, esi
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call edi
push 1
mov ebx, eax
call edi
mov ecx, dword [ebp - 0x44]
cmp ecx, ebx
jle 0x4013b6
mov ecx, ebx
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x40]
cmp edx, eax
jle 0x4013c2
mov edx, eax
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x4c], esi
jge 0x4013d2
mov eax, dword [ebp - 0x4c]
neg eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp - 0x48]
cmp eax, esi
jge 0x4013e3
neg eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x48], eax
sub ecx, dword [ebp - 0x4c]
sub edx, eax
cmp ecx, esi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x2c], ecx
jle 0x4016b9
cmp edx, esi
jle 0x4016b9
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x24]
call edi
push esi
call dword [sym.imp.USER32.dll_GetDC]
push dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push dword [ebp - 0x18]
mov dword [ebp - 0x50], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x3c]
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
push esi
push esi
push dword [ebp - 0x20]
call dword [sym.imp.GDI32.dll_BitBlt]
push 3
push esi
push esi
push esi
push esi
push 0xfffffffffffffffe
push dword [ebp - 0x24]
call edi
push ebx
call sub.mfc90u.dll_CGdiObject::FromHandle
mov edi, eax
cmp dword [ebp + 0x334], esi
je 0x4014c0
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
cmp edi, esi
jne 0x4014a2
xor eax, eax
jmp 0x4014a5
mov eax, dword [edi + 4]
push eax
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, edi
call sub.mfc90u.dll_CGdiObject::Detach
jmp 0x40168b
lea ecx, [ebp - 0x18]
call dword [0x4299ec]
mov byte [ebp - 4], 1
push dword [ebp + 0x338]
lea eax, [ebp - 0x18]
push 0x42a130
push str._s__s
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x10
push 1
push esi
push esi
push str.Portable_Network_Graphics__.png__.png
push 6
push dword [ebp - 0x18]
lea ecx, [ebp]
push 0x42a1ac
push esi
call sub.mfc90u.dll_CFileDialog::CFileDialog
lea ecx, [ebp]
mov byte [ebp - 4], 2
call sub.mfc90u.dll_CFileDialog::DoModal
cmp eax, 1
jne 0x401676
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp]
call sub.mfc90u.dll_CFileDialog::GetPathName
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call dword [0x4299a4]
push 0x2e
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Left]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push str..bmp
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
push dword [ebp - 0x20]
call sub.mfc90u.dll_CDC::FromHandle
push edi
push ecx
mov ebx, eax
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call dword [0x4299a4]
mov ecx, ebx
call fcn.004016ea
cmp eax, esi
je 0x401664
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x38], esi
call sub.gdiplus.dll_GdipCreateBitmapFromFile
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x30], esi
call sub.gdiplus.dll_GdipGetImageEncodersSize
push dword [ebp - 0x30]
call dword [sym.imp.MSVCR90.dll_malloc]
pop ecx
mov ebx, eax
push ebx
push dword [ebp - 0x30]
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x10]
call sub.gdiplus.dll_GdipGetImageEncoders
xor edi, edi
cmp dword [ebp - 0x10], esi
jbe 0x401649
add ebx, 0x30
mov eax, dword [ebx]
mov ecx, str.image_png
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401622
cmp dx, si
je 0x40161e
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401622
add eax, 4
add ecx, 4
cmp dx, si
jne 0x4015fc
xor eax, eax
jmp 0x401627
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x401636
inc edi
add ebx, 0x4c
cmp edi, dword [ebp - 0x10]
jb 0x4015f5
jmp 0x401649
imul edi, edi, 0x4c
add edi, dword [ebp - 0x28]
push esi
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x38]
call sub.gdiplus.dll_GdipSaveImageToFile
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR90.dll_free]
pop ecx
push dword [ebp - 0x5c]
call sub.gdiplus.dll_GdipDisposeImage
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.004226dc
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push dword [ebp - 0x34]
push esi
mov esi, dword [sym.imp.USER32.dll_ReleaseDC]
call esi
push dword [ebp - 0x3c]
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x50]
push dword [ebp - 0x20]
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call esi
push dword [ebp - 0x20]
call esi
lea ecx, [ebp + 0x338]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x324]
xor ecx, ebp
call fcn.00423038
add ebp, 0x328
leave
ret 0xc