Function at 0x10015d64
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push ebx
push esi
push edi
xor eax, eax
mov byte [ebp - 5], dl
push eax
push eax
push eax
push str.DISPLAY
mov ebx, ecx
call dword [sym.imp.GDI32.dll_CreateDCA]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp + 8]
mov edi, eax
mov dword [ebp - 0x14], edi
call fcn.100161e8
mov dword [ebp - 0x1c], eax
mov esi, edx
mov dword [ebp - 0xc], esi
test eax, eax
je 0x10015dac
test esi, esi
jne 0x10015dc5
mov ecx, dword [ebp + 8]
shl ecx, 4
mov ecx, dword [ecx + 0x1006edb0]
call fcn.1001622b
mov esi, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], esi
test eax, eax
je 0x10016118
test esi, esi
je 0x10016118
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x28]
shl eax, 4
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov ecx, dword [eax + 0x1006edb0]
call fcn.1001625f
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x10015e1a
push dword [ebp - 0x10]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push edi
call esi
push 0
jmp 0x10016112
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
je 0x100160ff
mov eax, dword [ebp - 0x1c]
push 0xcc0020
push esi
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x10]
push esi
push eax
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_StretchBlt]
test eax, eax
je 0x100160ff
cmp byte [ebp - 5], 0
je 0x10015eb7
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0x14
push eax
call dword [0x10071774]
test eax, eax
je 0x10015eb7
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x10015eb7
mov edi, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x48]
sub edi, dword [ebp - 0x80]
sub esi, dword [ebp - 0x7c]
push dword [ebp - 0x74]
sub edi, dword [ebp - 0x28]
sub esi, dword [ebp - 0x24]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x78]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x50]
push esi
push edi
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.USER32.dll_DrawIcon]
mov esi, dword [ebp - 0xc]
cmp byte [ebp + 0xc], 0
je 0x10015ef1
mov eax, dword [0x1006edac]
test eax, eax
je 0x10015ee5
push 0x660046
xor ecx, ecx
push ecx
push ecx
push eax
push esi
push dword [ebp - 0x1c]
push ecx
push ecx
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
jmp 0x10015ef1
mov eax, dword [ebp + 0x10]
mov dword [0x1006edac], edi
mov byte [eax], 1
lea eax, [ebp - 0x70]
push eax
push 0x18
pop edi
push edi
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x100160ff
mov eax, dword [ebp - 0x5e]
imul eax, dword [ebp - 0x60]
movzx ecx, ax
xor eax, eax
inc eax
cmp cx, ax
jne 0x10015f20
mov esi, eax
jmp 0x10015f53
push 4
pop esi
cmp cx, si
jbe 0x10015f53
push 8
pop esi
cmp cx, si
jbe 0x10015f53
push 0x10
pop esi
cmp cx, si
jbe 0x10015f53
cmp cx, di
ja 0x10015f50
push 0x28
push 0x40
mov esi, edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x18
pop edx
mov ecx, edx
jmp 0x10015f71
push 0x20
pop esi
movzx ecx, si
shl eax, cl
mov dword [ebp - 0xc], ecx
lea eax, [eax*4 + 0x28]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 0xc]
push 0x18
pop edx
mov edi, eax
mov dword [edi], 0x28
mov eax, dword [ebp - 0x6c]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x68]
mov dword [edi + 8], eax
mov ax, word [ebp - 0x60]
mov word [edi + 0xc], ax
mov ax, word [ebp - 0x5e]
mov word [edi + 0xe], ax
cmp si, dx
jae 0x10015fa2
xor eax, eax
inc eax
shl eax, cl
mov dword [edi + 0x20], eax
mov eax, dword [edi + 4]
and dword [edi + 0x10], 0
add eax, 7
and dword [edi + 0x24], 0
cdq
and edx, 7
movzx ecx, si
add eax, edx
sar eax, 3
imul eax, ecx
imul eax, dword [edi + 8]
push eax
push 0
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100160ff
movzx ecx, word [edi + 8]
push 0
push edi
push eax
push ecx
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x1001601d
push dword [ebp - 0x10]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x10016118
mov esi, dword [edi + 0x20]
mov eax, 0x4d42
mov word [ebp - 0x2c], ax
mov eax, dword [edi + 0x14]
lea ecx, [esi*4 + 0xe]
add ecx, dword [edi]
add eax, ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x2a], eax
xor eax, eax
mov dword [ebp - 0x26], eax
lea eax, [esi*4 + 0xe]
add eax, dword [edi]
mov dword [ebp - 0x22], eax
call fcn.10001fd4
lea ecx, [ebp - 0x9c]
call fcn.10001fd4
push 0xe
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.10002358
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x9c]
call fcn.10002f6f
push 0x28
push edi
lea ecx, [ebp - 0x44]
call fcn.10002358
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x9c]
call fcn.10002f6f
push dword [edi + 0x14]
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 0x44]
push esi
call fcn.10002358
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x9c]
call fcn.10002f6f
push dword [ebp - 0x18]
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
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x1006edac]
je 0x100160dc
push eax
call esi
lea eax, [ebp - 0x9c]
mov ecx, ebx
push eax
call fcn.10001f4e
lea ecx, [ebp - 0x9c]
call fcn.10001f0f
lea ecx, [ebp - 0x44]
call fcn.10001f0f
jmp 0x10016124
push dword [ebp - 0x10]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x10061c24
mov ecx, ebx
call fcn.10001f8b
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret