Function at 0x1000d380
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
push edi
push edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ebx
call fcn.1000e4c0
mov esi, eax
add esp, 8
cmp esi, edi
mov dword [esp + 0x20], esi
je 0x1000d3cd
cmp byte [ebp + 8], 0
je 0x1000d6b2
mov eax, dword [ebx]
cmp eax, edi
je 0x1000d3c6
push eax
call dword [sym.imp.GDI32.dll_DeleteMetaFile]
mov dword [ebx], esi
jmp 0x1000d6b2
cmp ebx, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], edi
je 0x1000d6b2
mov eax, dword [esp + 0x18]
mov ecx, 0x2d
mov esi, ebx
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
sub dword [esp + 0x3c], ecx
sub dword [esp + 0x40], edx
mov dword [esp + 0x30], eax
xor eax, eax
test byte [esp + 0x80], 2
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
je 0x1000d427
mov eax, 0x2710
xor edx, edx
div dword [esp + 0x7c]
mov dword [esp + 0x1c], eax
jmp 0x1000d42f
mov dword [esp + 0x1c], 0x64
mov eax, dword [esp + 0x78]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0x58
push edi
mov dword [esp + 0x20], edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [ebx + 0x14]
mov edx, dword [esp + 0x1c]
imul ecx, ecx, 0x64
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x44], eax
imul eax, dword [esp + 0x3c]
push ecx
push edx
push eax
call esi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x14]
imul eax, eax, 0x64
push eax
push ecx
push 0x5a
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
imul eax, dword [esp + 0x48]
push eax
call esi
mov dword [esp + 0x40], eax
mov eax, 8
cmp dword [esp + 0x48], eax
je 0x1000d4c5
mov edx, dword [esp + 0x44]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
push edx
push eax
push 0x9ec
call esi
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push ecx
push edx
push 0x9ec
mov dword [esp + 0x58], eax
call esi
mov dword [esp + 0x50], eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x1000d697
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
test esi, esi
mov dword [esp + 0x28], esi
je 0x1000d676
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 5
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_GetSysColorBrush]
test eax, eax
je 0x1000d51a
push eax
lea edx, [esp + 0x38]
push edx
push ebx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x30]
call fcn.1000d2e0
test eax, eax
mov edi, dword [sym.imp.GDI32.dll_SelectPalette]
mov dword [esp + 0x10], eax
je 0x1000d542
push 1
push eax
push ebx
call edi
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x1c]
and eax, 0xffff3ffd
push eax
push ecx
lea edx, [esp + 0x3c]
push edx
mov edx, ebx
lea ecx, [esp + 0x3c]
call fcn.100083d0
push 0
call fcn.1000e430
mov esi, eax
add esp, 4
test esi, esi
je 0x1000d65e
push 0
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push 0
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetWindowExtEx]
push 3
push esi
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000d5b6
push 1
push eax
push esi
call edi
push esi
call dword [sym.imp.GDI32.dll_RealizePalette]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push 0xcc0020
push 0
push 0
push ebx
push edx
push eax
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [esp + 0x24], 0
je 0x1000d605
push 1
push 0xf
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
call edi
mov ecx, dword [esp + 0x24]
push 1
push ecx
push ebx
call edi
test eax, eax
je 0x1000d605
cmp eax, dword [esp + 0x10]
je 0x1000d605
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_CloseMetaFile]
test eax, eax
mov dword [esp + 0x20], eax
je 0x1000d65e
cmp byte [ebp + 8], 0
je 0x1000d65e
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x80]
or eax, 0x1000
test al, 8
mov dword [esp + 0x80], eax
je 0x1000d642
and eax, 0xfffffff7
or eax, 0x40
mov dword [esp + 0x80], eax
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
test eax, eax
je 0x1000d653
push eax
call dword [sym.imp.GDI32.dll_DeleteMetaFile]
mov ecx, 0x2d
lea esi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1000d66e
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
test esi, esi
je 0x1000d688
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000d697
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test edi, edi
je 0x1000d6aa
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x48]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
cmp dword [ebx + 0x78], 0
je 0x1000d6c5
cmp byte [ebp + 8], 0
je 0x1000d6c5
mov ecx, ebx
call fcn.100055c0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4