Function at 0x1000ad90
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x1001b018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
push 0x4c
mov dword [ebp - 0x68], eax
call esi
push 0x4d
mov dword [ebp - 0x5c], eax
call esi
push 0x4e
mov dword [ebp - 0x58], eax
call esi
push 0x4f
call esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
sub edi, dword [ebp - 0x14]
sub esi, dword [ebp - 0x10]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
push edi
push ebx
mov dword [ebp - 0x48], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [ebp - 0x48]
push eax
push edx
mov dword [ebp - 0x54], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x5c]
push 0xcc0020
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x58]
push eax
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp - 0x48]
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x48], eax
cmp esi, eax
je 0x1000ae64
lea edx, [ebp - 0x48]
push edx
push eax
mov eax, dword [ebp - 0x54]
push eax
mov dword [esi], vtable.Gdiplus::Bitmap.0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
mov ecx, dword [ebp - 0x48]
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
mov dword [ebp - 0x48], esi
jmp 0x1000ae66
mov esi, eax
mov edx, dword [ebp - 0x50]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x10016630]
mov eax, dword [0x10016634]
mov dword [ebp - 0x64], ecx
mov ecx, dword [0x10016638]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x40], edx
mov edx, dword [0x1001663c]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x24]
mov edi, 1
lea eax, [ebp - 0x64]
push ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x28], eax
call fcn.1000aca0
cmp eax, 0xffffffff
jne 0x1000aef0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012a74
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp - 0x4c]
push edx
push edi
push ebx
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1000af82
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x44]
push eax
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x24]
push ecx
push edx
push eax
call dword [sym.imp.gdiplus.dll_GdipSaveImageToStream]
cmp eax, ebx
je 0x1000af22
mov dword [esi + 8], eax
jmp 0x1000af82
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x60]
push edx
push 2
push ebx
xor edi, edi
mov dword [ebp - 0x50], ebx
mov ecx, dword [eax]
push edi
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jne 0x1000af77
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push edi
push edi
push ebx
push edi
push eax
call edx
test eax, eax
jne 0x1000af77
mov eax, dword [ebp - 0x60]
mov esi, dword [ebp - 0x68]
call fcn.1000b2c0
mov eax, dword [esi]
mov esi, dword [esi + 4]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx]
lea edi, [ebp - 0x50]
push edi
sub esi, eax
push esi
push eax
mov eax, dword [edx + 0xc]
push ecx
call eax
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test esi, esi
je 0x1000af90
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.10012a74
mov esp, ebp
pop ebp
ret 8