Function at 0x660a2300
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [eax], esi
je 0x660a2353
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 8]
call fcn.660cf481
test eax, eax
jne 0x660a23d5
mov dword [ebp - 8], 1
cmp dword [ebp - 0x30], esi
je 0x660a236d
mov eax, dword [ebp + 8]
push esi
push esi
push dword [ebp - 0x34]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp - 0x38], esi
je 0x660a237e
push dword [ebp - 0x3c]
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 0x10], esi
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x660a238e
push dword [ebp - 0x10]
call ebx
cmp dword [ebp - 0x20], esi
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
je 0x660a239e
push dword [ebp - 0x20]
call edi
cmp dword [ebp - 0xc], esi
je 0x660a23a8
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 0x28], esi
je 0x660a23b9
push dword [ebp - 0x28]
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 0x24], esi
je 0x660a23c3
push dword [ebp - 0x24]
call ebx
cmp dword [ebp - 0x14], esi
je 0x660a23cd
push dword [ebp - 0x14]
call edi
mov eax, dword [ebp - 8]
jmp 0x660a24b2
push dword [ebp + 8]
call fcn.660cf9f7
push esi
push 1
pop edi
mov dword [ebp - 0x2c], eax
push edi
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_CreateBitmap]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x660a24e6
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
call ebx
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x660a24e6
push esi
call ebx
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x20], ebx
je 0x660a24e6
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x34]
push esi
mov ecx, dword [eax]
push edx
push ebx
push eax
mov dword [ebp - 0x38], edi
call dword [ecx + 0x2c]
cmp eax, esi
mov dword [ebp - 8], eax
jl 0x660a235a
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edi
cmp eax, esi
jne 0x660a245c
mov eax, dword [0x6610f74c]
push edi
mov edi, dword [sym.imp.GDI32.dll_SelectPalette]
push eax
push ebx
call edi
push ebx
mov ebx, dword [sym.imp.GDI32.dll_RealizePalette]
call ebx
mov eax, dword [ebp + 8]
lea edx, [ebp - 2]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
cmp eax, esi
mov dword [ebp - 8], eax
jl 0x660a235a
cmp dword [0x6610f720], esi
je 0x660a25c0
cmp word [ebp - 2], 1
jne 0x660a25c0
push esi
call dword [sym.imp.USER32.dll_GetDC]
cmp eax, esi
mov dword [ebp - 0x40], eax
jne 0x660a24b9
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 - 0x40]
mov dword [ebp - 0x24], eax
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 0x24], esi
je 0x660a2504
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, esi
mov dword [ebp - 0x14], eax
jne 0x660a24f3
call fcn.66072d39
mov dword [ebp - 8], eax
jmp 0x660a235a
push dword [ebp - 0x24]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp eax, esi
mov dword [ebp - 0x28], eax
jne 0x660a2510
mov dword [ebp - 8], 0x8007000e
jmp 0x660a235a
mov eax, dword [ebp - 0x2c]
cmp eax, esi
jne 0x660a251c
mov eax, dword [0x6610f74c]
push 1
push eax
push dword [ebp - 0x14]
call edi
mov edi, dword [ebp - 0x14]
push edi
call ebx
push 0xcc0020
push esi
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push esi
push esi
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0xffffff
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x44]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
test eax, eax
jl 0x660a2570
test byte [ebp - 0x44], 2
je 0x660a2597
mov eax, dword [ebp - 0x1c]
push esi
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x50], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_FillRect]
push 0xcc0020
push esi
push esi
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push esi
push esi
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov dword [ecx], eax
jmp 0x660a235a
mov edi, dword [ebp - 0x20]
jmp 0x660a2543