Function at 0x4096d0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44ac3d
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x45c020]
xor eax, esp
mov dword [esp + 0x2a0], eax
push ebx
push esi
push edi
mov eax, dword [0x45c020]
xor eax, esp
push eax
lea eax, [esp + 0x2b8]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
mov edi, ecx
push eax
mov ecx, str.done
call fcn.0040c420
lea ecx, [esp + 0x14]
push ecx
lea eax, [edi + 0x150]
call fcn.00443c30
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409751
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0040abb0
mov ecx, dword [edi + 8]
push ecx
mov ecx, edi
mov dword [0x45f978], 1
call fcn.0040ae40
mov esi, dword [edi + 0xc]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov ebx, eax
test ebx, ebx
je 0x409800
lea edx, [esp + 0x14]
push edx
push 0
push esi
mov dword [ebx], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x20], 0
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [edi + 0x1c]
mov esi, dword [edi + 0x24]
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x24], eax
sub esi, eax
mov eax, dword [edi + 0x20]
sub eax, ecx
lea edx, [esp + 0x34]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 4]
push edx
push eax
mov dword [esp + 0x30], ecx
call sub.gdiplus.dll_GdipGetImagePixelFormat
test eax, eax
je 0x4097d5
mov dword [ebx + 8], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push esi
push ecx
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, ebx
call fcn.004062b0
mov esi, eax
test esi, esi
jne 0x409818
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
mov ecx, dword [edi + 4]
push 1
push 2
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x409c4a
mov eax, dword [ebx + 4]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x409835
mov dword [ebx + 8], eax
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x20], 0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x409852
mov dword [ebx + 8], eax
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], 0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x409886
mov dword [esi + 8], eax
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x4098ab
mov dword [esi + 8], eax
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [esp + 0x14]
push eax
push edx
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0x20]
push eax
push 0xffffffffffffffff
mov dword [esp + 0x4c], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x28], 0
call sub.gdiplus.dll_GdipCreateSolidFill
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ecx
xor eax, eax
mov dword [esp + 0x2c0], eax
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
push edx
push eax
call sub.gdiplus.dll_GdipCreateFromHDC
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x2c0], 1
mov eax, dword [esi + 4]
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x30], 0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x409945
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x2c], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x40996a
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0
push 0
push eax
push ecx
call sub.gdiplus.dll_GdipFillRectangleI
test eax, eax
je 0x40998f
mov dword [esp + 0x40], eax
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x1c]
push 0
push 0
push edx
push eax
call sub.gdiplus.dll_GdipDrawImageI
test eax, eax
je 0x4099a9
mov dword [esp + 0x40], eax
cmp dword [0x460460], 0
jne 0x4099f2
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4099d4
mov edx, dword [esp + 0x1c]
push edx
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, dword [esp + 0x20]
push eax
jmp 0x409c45
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, dword [esp + 0x2c]
push ecx
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x409b4b
mov edx, dword [0x44e500]
mov ecx, dword [0x44e504]
mov eax, 1
mov dword [esp + 0x54], edx
mov edx, dword [0x44e508]
push 0x206
mov dword [esp + 0x54], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x5c], ecx
mov ecx, dword [0x44e50c]
mov dword [esp + 0x60], edx
lea eax, [esp + 0xaa]
lea edx, [esp + 0x30]
push 0
push eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x74], 4
mov dword [esp + 0x38], 0x64
mov dword [esp + 0x78], edx
mov word [esp + 0xb0], 0
call fcn.00446cf4
add esp, 0xc
lea ecx, [esp + 0xa4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0xa8]
call fcn.0040c420
push 0x24
push 0x44f3f8
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x2cc], 2
call fcn.0040d180
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409ab1
test al, 0x10
je 0x409ac2
mov edx, dword [esp + 0x10]
push edx
call fcn.0042a3c0
add esp, 4
test eax, eax
je 0x409b3a
push 0x13
push str._screen_capture.png
lea eax, [esp + 0x18]
push eax
call fcn.0040d180
lea ecx, [esp + 0x8c]
push ecx
push str.image_png
call fcn.004095e0
add esp, 8
test eax, eax
je 0x409b3a
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x50]
push edx
mov edx, dword [esi + 4]
lea eax, [esp + 0x90]
push eax
push ecx
push edx
call sub.gdiplus.dll_GdipSaveImageToFile
test eax, eax
mov byte [esp + 0x2c0], 1
je 0x409b18
mov dword [esi + 8], eax
jmp 0x409b42
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409b4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x409b4b
mov byte [esp + 0x2c0], 1
lea eax, [esp + 0x10]
call fcn.0040c560
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esp + 0x18]
push edx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
call edx
cmp dword [edi + 0xc4], 6
mov eax, dword [edi + 4]
push 1
push 2
push 0x111
push eax
jne 0x409ba2
mov dword [0x45f8a0], 1
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x409c36
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x44f8a4
lea ecx, [esp + 0x74]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x2c0], 3
mov edx, dword [edi + 0x20]
sub edx, dword [edi + 0x18]
mov esi, dword [sym.imp.MSVCR80.dll__itoa]
push 0xa
lea ecx, [esp + 0xa0]
push ecx
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x74]
call dword [0x44d25c]
push 0x44f848
lea ecx, [esp + 0x74]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov edx, dword [edi + 0x24]
sub edx, dword [edi + 0x1c]
push 0xa
lea ecx, [esp + 0xa0]
push ecx
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x74]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
lea ecx, [esp + 0x70]
mov byte [esp + 0x2c0], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x1c]
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
mov edx, dword [esp + 0x20]
push edx
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0x2b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a0]
xor ecx, esp
call fcn.0044664e
mov esp, ebp
pop ebp
ret