Function at 0x40af30
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
push ebx
push esi
push edi
push 0
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], ecx
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], 0x64
push eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
test eax, eax
jne 0x40b13d
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call esi
push 0
mov edi, eax
call esi
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x40b133
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x14], eax
test eax, eax
je 0x40b12a
push edi
push esi
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x20], eax
test eax, eax
je 0x40b120
push eax
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
push ebx
push edi
push esi
push 0
push 0
push dword [esp + 0x34]
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 0
push dword [esp + 0x28]
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0
push eax
call dword [sym.imp.gdiplus.dll_GdipGetImageEncodersSize]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40b0b2
push eax
call fcn.004edf2c
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
je 0x40b0b2
push edi
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.gdiplus.dll_GdipGetImageEncoders]
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x40b0a9
add edi, 0x30
mov eax, dword [edi]
mov ecx, str.image_png
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b08e
test dx, dx
je 0x40b08a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b08e
add eax, 4
add ecx, 4
test dx, dx
jne 0x40b068
xor eax, eax
jmp 0x40b093
sbb eax, eax
or eax, 1
test eax, eax
je 0x40b146
inc esi
add edi, 0x4c
cmp esi, dword [esp + 0xc]
jb 0x40b061
mov edi, dword [esp + 0x18]
push edi
call fcn.004ed7d6
add esp, 4
mov eax, dword [0x510af8]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x54], eax
mov eax, dword [0x510afc]
mov dword [esp + 0x58], eax
mov eax, dword [0x510b00]
mov dword [esp + 0x5c], eax
mov eax, dword [0x510b04]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x54], 1
push eax
push dword [esp + 0x30]
mov dword [esp + 0x74], 4
push esi
mov dword [esp + 0x74], 1
call dword [sym.imp.gdiplus.dll_GdipSaveImageToFile]
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [esp + 0x2c]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x18]
imul ecx, esi, 0x4c
add ecx, edx
push edx
mov eax, dword [ecx]
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x50], eax
jmp 0x40b0aa