Function at 0x10012c20
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x1002e018]
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 esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
sub esi, dword [ebp - 0x14]
sub edi, 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 edi
push esi
push ebx
mov dword [ebp - 0x4c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [ebp - 0x4c]
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 edi
mov edi, dword [ebp - 0x4c]
push esi
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
test esi, esi
je 0x10012cf4
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x4c]
push edx
push 0
push eax
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0x4c], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
mov ecx, dword [ebp - 0x4c]
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
jmp 0x10012cf6
xor esi, esi
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 [0x100236b4]
mov eax, dword [0x100236b8]
mov dword [ebp - 0x64], ecx
mov ecx, dword [0x100236bc]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x40], edx
mov edx, dword [0x100236c0]
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.10012b30
cmp eax, 0xffffffff
jne 0x10012d80
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001ed20
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp - 0x48]
push edx
push edi
push ebx
mov dword [ebp - 0x48], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x10012e12
mov edx, dword [ebp - 0x48]
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 0x10012db2
mov dword [esi + 8], eax
jmp 0x10012e12
mov eax, dword [ebp - 0x48]
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 0x10012e07
mov eax, dword [ebp - 0x48]
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 0x10012e07
mov edi, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x60]
mov edx, edi
call fcn.10013190
mov eax, dword [edi + 4]
mov edi, dword [edi + 8]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
lea ebx, [ebp - 0x50]
push ebx
sub edi, eax
push edi
push eax
mov eax, dword [edx + 0xc]
push ecx
call eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test esi, esi
je 0x10012e20
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.1001ed20
mov esp, ebp
pop ebp
ret 8