Function at 0x660a14b3
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
mov dword [eax], esi
je 0x660a14f6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
push edi
call fcn.660ce1fb
test eax, eax
jne 0x660a1554
mov dword [ebp - 4], 1
cmp dword [ebp - 0x14], esi
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x660a150d
push dword [ebp - 0x14]
call ebx
cmp dword [ebp - 8], esi
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
je 0x660a151d
push dword [ebp - 8]
call edi
cmp dword [ebp - 0x10], esi
je 0x660a1527
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 0x28], esi
je 0x660a1538
push dword [ebp - 0x28]
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 0x20], esi
je 0x660a1542
push dword [ebp - 0x20]
call ebx
cmp dword [ebp - 0xc], esi
je 0x660a154c
push dword [ebp - 0xc]
call edi
mov eax, dword [ebp - 4]
jmp 0x660a1629
push edi
call fcn.660ce771
push esi
push 1
push 1
mov dword [ebp - 0x24], eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_CreateBitmap]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x660a165d
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
call ebx
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x660a165d
push esi
call ebx
cmp eax, esi
mov dword [ebp - 8], eax
je 0x660a165d
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [ebp - 0x34]
push esi
push ecx
mov dword [ebp - 0x38], eax
push dword [ebp - 8]
mov eax, dword [edi]
push edi
call dword [eax + 0x2c]
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x660a14fd
mov eax, dword [ebp - 0x24]
cmp eax, esi
jne 0x660a15cf
mov eax, dword [0x6610e748]
push 1
push eax
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [edi]
lea ecx, [ebp + 8]
push ecx
push edi
call dword [eax + 0x14]
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x660a14fd
cmp dword [0x6610e71c], esi
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
je 0x660a1756
cmp word [ebp + 8], 1
jne 0x660a1756
push esi
call dword [sym.imp.USER32.dll_GetDC]
cmp eax, esi
mov dword [ebp - 0x2c], eax
jne 0x660a1630
mov eax, 0x8007000e
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 0x20], esi
je 0x660a167b
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x660a166a
call fcn.66072549
mov dword [ebp - 4], eax
jmp 0x660a14fd
push dword [ebp - 0x20]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp eax, esi
mov dword [ebp - 0x28], eax
jne 0x660a1687
mov dword [ebp - 4], 0x8007000e
jmp 0x660a14fd
mov eax, dword [ebp - 0x24]
cmp eax, esi
jne 0x660a1693
mov eax, dword [0x6610e748]
push 1
push eax
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_RealizePalette]
push 0xcc0020
push esi
push esi
push dword [ebp - 8]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push esi
push esi
push dword [ebp - 0xc]
call ebx
mov eax, dword [ebp - 0xc]
push dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0xffffff
push dword [ebp - 0x24]
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [edi]
lea ecx, [ebp - 0x30]
push ecx
push edi
call dword [eax + 0x40]
test eax, eax
jl 0x660a16f1
test byte [ebp - 0x30], 2
je 0x660a1718
mov eax, dword [ebp - 0x1c]
push esi
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x44], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_FillRect]
push 0xcc0020
push esi
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push esi
push esi
push dword [ebp - 0x10]
call ebx
mov eax, dword [edi]
push esi
push esi
push dword [ebp - 0x34]
push edi
call dword [eax + 0x2c]
push dword [ebp - 0x38]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], esi
mov dword [ecx], eax
jmp 0x660a14fd
mov eax, dword [ebp - 8]
jmp 0x660a16c2