Function at 0x408940
Capabilities:
Capture screenshot
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x41b014]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x24]
push eax
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push 0
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 1
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x3c], 0
push eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
mov dword [esp + 0xc], eax
call esi
push 0
mov edi, eax
call esi
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
push esi
push dword [esp + 0x10]
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [esp + 0x10]
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
push dword [esp + 0x14]
push edi
push esi
push 0
push 0
push dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0
push dword [esp + 0x1c]
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 0
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x20], 0
push eax
call dword [sym.imp.gdiplus.dll_GdipGetImageEncodersSize]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x408ad2
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
test edi, edi
je 0x408ad2
push edi
push dword [esp + 0x20]
push dword [esp + 0x30]
call dword [sym.imp.gdiplus.dll_GdipGetImageEncoders]
xor esi, esi
cmp dword [esp + 0x28], esi
jbe 0x408ac8
add edi, 0x30
nop dword [eax]
mov ecx, dword [edi]
mov eax, str.image_jpeg
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x408aad
test dx, dx
je 0x408aa9
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x408aad
add ecx, 4
add eax, 4
test dx, dx
jne 0x408a87
xor eax, eax
jmp 0x408ab2
sbb eax, eax
or eax, 1
test eax, eax
je 0x408b3c
inc esi
add edi, 0x4c
cmp esi, dword [esp + 0x28]
jb 0x408a80
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x40]
push 0
push eax
push dword [esp + 0x20]
push edi
call dword [sym.imp.gdiplus.dll_GdipSaveImageToFile]
push 0
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x2c]
push edi
call dword [sym.imp.gdiplus.dll_GdipSaveImageToStream]
push dword [esp + 0xc]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [esp + 0x14]
call esi
push dword [esp + 8]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
push dword [esp + 0x2c]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
xor ecx, esp
call fcn.00410a23
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x10]
imul eax, esi, 0x4c
push ecx
movups xmm0, xmmword [eax + ecx]
movups xmmword [esp + 0x44], xmm0
jmp 0x408ac9