Function at 0x1001ad20
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
push esi
xor esi, esi
mov dword [ebp - 8], 0
push edi
mov eax, dword [ebx]
push 4
mov dword [ebp - 0x28], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
call dword [eax + 0x5c]
mov dword [ebp - 0x4c], eax
mov ecx, ebx
mov eax, dword [ebx]
push 7
call dword [eax + 8]
lea ecx, [ebp - 0x74]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp eax, 0x18
jne 0x1001ad8d
cmp word [ebp - 0x62], 8
ja 0x1001ad8d
mov edx, dword [ebp + 0x2c]
mov ecx, ebx
call fcn.1001bdd0
jmp 0x1001ad90
mov eax, dword [ebp + 0x2c]
push 0
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001b066
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
add eax, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x5c]
mov eax, dword [ebx]
push 2
push ecx
mov ecx, ebx
mov dword [ebp - 0x5c], edx
call dword [eax + 0xa8]
test eax, eax
je 0x1001b066
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x5c]
push dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x58]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 8], eax
test eax, eax
je 0x1001b066
mov eax, dword [ebp + 0x28]
push 0
push eax
push dword [ebp + 0x24]
push 4
push eax
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1001b066
push eax
push dword [ebp - 8]
call edi
push dword [ebx + 4]
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x1001b066
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebx + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1001b066
push eax
push esi
call edi
push 8
push esi
mov dword [ebp - 0x3c], eax
call dword [sym.imp.GDI32.dll_SetMapMode]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.GDI32.dll_SetWindowExtEx]
push 0
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push esi
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
push 4
push esi
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
push 0xcc0020
push 0
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.GDI32.dll_StretchDIBits]
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1001b066
push 0
push 1
push 1
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call dword [sym.imp.GDI32.dll_CreateBitmap]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x1001b066
push eax
push dword [ebp - 0xc]
call edi
push dword [ebp - 0x34]
mov edi, dword [sym.imp.GDI32.dll_SetBkColor]
push dword [ebp - 8]
mov dword [ebp - 0x44], eax
call edi
push 0x330008
push dword [ebp + 0x18]
mov esi, eax
push dword [ebp + 0x14]
push dword [ebp - 8]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push 0
push 0
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
push dword [ebp - 8]
call edi
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x1001b05d
push 0
push 1
push 1
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call dword [sym.imp.GDI32.dll_CreateBitmap]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1001b063
push eax
push esi
call edi
push 0x330008
push dword [ebp + 0x18]
mov dword [ebp - 0x48], eax
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebx]
mov ecx, ebx
push 3
call dword [eax + 0x5c]
push 0x8800c6
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push 0
push 0
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x10]
push dword [ebx + 4]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov esi, dword [ebp - 0x18]
push 3
push esi
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
push 0x8800c6
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push 0
push 0
push dword [ebp - 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
push dword [ebx + 4]
call sym.HncBaseDraw.dll_HncDRGetPrinterTech
test eax, 0x10000
jne 0x1001b033
mov eax, dword [ebx]
mov ecx, ebx
push 4
call dword [eax + 0x5c]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 0xee0086
push ecx
push eax
push 0
push 0
push esi
push ecx
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
push dword [ebx + 4]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov dword [ebp - 0x34], 1
jmp 0x1001b06d
mov ecx, dword [ebp + 0x10]
sub esp, 8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
push ecx
push eax
sub esp, 8
push esi
push ecx
push eax
push dword [ebp + 8]
mov ecx, ebx
call fcn.100aa650
add esp, 0x28
mov dword [ebp - 0x34], 1
jmp 0x1001b06d
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x1c], 0
je 0x1001b084
push dword [ebp - 0x38]
push dword [ebp - 8]
call edi
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 8]
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
je 0x1001b094
push eax
call edi
cmp dword [ebp - 0x20], 0
je 0x1001b0ad
push dword [ebp - 0x3c]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x20]
call dword [sym.imp.GDI32.dll_DeleteObject]
test esi, esi
je 0x1001b0b4
push esi
call edi
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x1001b0d2
push dword [ebp - 0x44]
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
jmp 0x1001b0d8
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1001b0e2
push eax
call edi
cmp dword [ebp - 0x24], 0
je 0x1001b0f9
push dword [ebp - 0x48]
push dword [ebp - 0x28]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x24]
call esi
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1001b103
push eax
call edi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1001b113
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [ebx]
mov ecx, ebx
push dword [ebp - 0x4c]
call dword [edx + 0x68]
mov eax, dword [ebp - 0x34]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret