Function at 0x1001717a
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
push edi
xor eax, eax
mov byte [ebp - 0x11], dl
push eax
push eax
push eax
push str.DISPLAY
mov ebx, ecx
call dword [sym.imp.GDI32.dll_CreateDCA]
mov esi, eax
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp + 8]
mov edi, eax
mov dword [ebp - 0x24], edi
call fcn.100175fe
mov ecx, eax
mov eax, edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x100171c6
test eax, eax
jne 0x100171e1
mov ecx, dword [ebp + 8]
shl ecx, 4
mov ecx, dword [ecx + 0x1006fd70]
call fcn.10017643
mov ecx, eax
mov eax, edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x10017231
test eax, eax
je 0x10017231
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x20]
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
shl eax, 4
mov ecx, dword [eax + 0x1006fd70]
call fcn.10017679
push dword [ebp - 8]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x10017246
push dword [ebp - 0x10]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push edi
call esi
push 0
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x10062774
mov ecx, ebx
call fcn.100020bd
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
jne 0x10017265
push dword [ebp - 0x10]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push edi
call esi
push dword [ebp - 0xc]
jmp 0x1001722b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
push 0xcc0020
push eax
push ecx
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push eax
push ecx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_StretchBlt]
test eax, eax
je 0x10017252
cmp byte [ebp - 0x11], 0
je 0x100172f7
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0x14
push eax
call dword [0x10072764]
test eax, eax
je 0x100172f7
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x100172f7
mov edi, dword [ebp - 0x54]
mov esi, dword [ebp - 0x50]
sub edi, dword [ebp - 0x88]
sub esi, dword [ebp - 0x84]
push dword [ebp - 0x7c]
sub edi, dword [ebp - 0x20]
sub esi, dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x80]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x58]
push esi
push edi
mov edi, dword [ebp - 0x24]
push edi
call dword [sym.imp.USER32.dll_DrawIcon]
mov esi, dword [ebp - 0xc]
cmp byte [ebp + 0xc], 0
je 0x10017333
mov eax, dword [0x10070170]
test eax, eax
je 0x10017327
push 0x660046
xor ecx, ecx
push ecx
push ecx
push eax
push dword [ebp - 8]
push dword [ebp - 0x18]
push ecx
push ecx
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
jmp 0x10017333
mov eax, dword [ebp + 0x10]
mov dword [0x10070170], edi
mov byte [eax], 1
lea eax, [ebp - 0x78]
push eax
push 0x18
pop eax
push eax
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x10017252
mov eax, dword [ebp - 0x66]
imul eax, dword [ebp - 0x68]
movzx edx, ax
xor eax, eax
inc eax
cmp dx, ax
jne 0x10017360
mov ecx, eax
jmp 0x10017393
push 4
pop ecx
mov dword [ebp - 8], ecx
cmp dx, cx
jbe 0x10017396
push 8
pop ecx
mov dword [ebp - 8], ecx
cmp dx, cx
jbe 0x10017396
push 0x10
pop ecx
mov dword [ebp - 8], ecx
cmp dx, cx
jbe 0x10017396
push 0x18
pop ecx
cmp dx, cx
ja 0x10017390
mov dword [ebp - 8], ecx
push 0x28
jmp 0x100173a0
push 0x20
pop ecx
mov dword [ebp - 8], ecx
shl eax, cl
lea eax, [eax*4 + 0x28]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push 0x18
pop ecx
mov dword [esi], 0x28
mov eax, dword [ebp - 0x74]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [esi + 8], eax
mov ax, word [ebp - 0x68]
mov word [esi + 0xc], ax
mov ax, word [ebp - 0x66]
mov word [esi + 0xe], ax
mov eax, dword [ebp - 8]
cmp ax, cx
jae 0x100173e1
mov cl, al
xor eax, eax
inc eax
shl eax, cl
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 8]
add eax, 7
and dword [esi + 0x10], 0
and dword [esi + 0x24], 0
cdq
and edx, 7
movzx ecx, cx
add eax, edx
sar eax, 3
imul eax, ecx
imul eax, dword [esi + 8]
push eax
push 0
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10017252
push 0
push esi
push eax
movzx eax, word [esi + 8]
push eax
push 0
push dword [ebp - 0xc]
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x1001745b
push dword [ebp - 0x10]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push edi
call esi
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x10017231
mov eax, 0x4d42
mov word [ebp - 0x34], ax
mov eax, dword [esi]
mov ecx, dword [esi + 0x20]
lea ecx, [eax + ecx*4]
mov eax, dword [esi + 0x14]
add ecx, 0xe
add eax, ecx
mov dword [ebp - 0x32], eax
xor eax, eax
mov dword [ebp - 0x2e], eax
mov ecx, dword [esi + 0x20]
mov eax, dword [esi]
lea eax, [eax + ecx*4]
add eax, 0xe
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x2a], eax
call fcn.1000210e
lea ecx, [ebp - 0xa4]
call fcn.1000210e
push 0xe
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x4c]
call fcn.10002556
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xa4]
call fcn.1000346f
push 0x28
push esi
lea ecx, [ebp - 0x4c]
call fcn.10002556
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xa4]
call fcn.1000346f
push dword [esi + 0x14]
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x4c]
push esi
call fcn.10002556
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xa4]
call fcn.1000346f
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
cmp edi, dword [0x10070170]
je 0x10017518
push edi
call esi
lea eax, [ebp - 0xa4]
mov ecx, ebx
push eax
call fcn.1000207d
lea ecx, [ebp - 0xa4]
call fcn.10002000
lea ecx, [ebp - 0x4c]
call fcn.10002000
jmp 0x1001723d