Function at 0x77c9b8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x77cc9b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x8400a8]
mov eax, dword [eax]
call fcn.0046f2ec
mov dword [ebp - 0x10], eax
mov eax, dword [0x8400a8]
mov eax, dword [eax]
call fcn.0046f2e0
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [0x8400a8]
mov eax, dword [eax]
call fcn.0046f30c
dec eax
jle 0x77ca52
mov eax, dword [ebp - 8]
call fcn.0043051c
mov eax, dword [eax + 0x14]
mov edx, 0xffffff
call fcn.0042af68
mov eax, dword [ebp - 8]
call fcn.0043051c
lea edx, [ebp - 0x30]
call fcn.0042ba08
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 8]
call fcn.0043051c
pop edx
call fcn.0042b3e0
call sub.user32.dll_GetDesktopWindow
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call sub.user32.dll_GetWindowDC
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x77ca79
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x77cca5
mov dl, 6
mov eax, dword [ebp - 8]
call fcn.0043152c
push 0x26
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_GetDeviceCaps
and eax, 0x100
cmp eax, 0x100
jne 0x77caef
mov eax, 0x404
call fcn.00402a80
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x404
call fcn.00403584
mov word [ebx], 0x300
lea eax, [ebx + 4]
push eax
push pe_nt_image_headers32
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_GetSystemPaletteEntries
mov esi, eax
mov word [ebx + 2], si
test si, si
je 0x77cae8
push ebx
call sub.gdi32.dll_CreatePalette
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, ebx
call fcn.00402aa0
mov eax, dword [0x8400a8]
mov eax, dword [eax]
call fcn.0046f2d4
mov esi, eax
mov eax, dword [0x8400a8]
mov eax, dword [eax]
call fcn.0046f2c8
mov edi, eax
mov eax, dword [0x8400a8]
mov eax, dword [eax]
call fcn.0046f2ec
mov dword [ebp - 0x10], eax
mov eax, dword [0x8400a8]
mov eax, dword [eax]
call fcn.0046f2e0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
call fcn.0043051c
call fcn.0042b4e0
xor eax, eax
push ebp
push 0x77cc58
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x8400a8]
mov eax, dword [eax]
call fcn.0046f30c
dec eax
jle 0x77cc1e
mov eax, dword [0x8400a8]
mov eax, dword [eax]
call fcn.0046f30c
dec eax
test eax, eax
jl 0x77cc4e
inc eax
mov dword [ebp - 0x20], eax
xor ebx, ebx
mov eax, dword [0x8400a8]
mov eax, dword [eax]
mov edx, ebx
call fcn.0046f2f8
call fcn.0046eff8
mov esi, eax
mov eax, dword [0x8400a8]
mov eax, dword [eax]
mov edx, ebx
call fcn.0046f2f8
call fcn.0046f02c
mov edi, eax
mov eax, dword [0x8400a8]
mov eax, dword [eax]
mov edx, ebx
call fcn.0046f2f8
call fcn.0046f044
mov dword [ebp - 0x10], eax
mov eax, dword [0x8400a8]
mov eax, dword [eax]
mov edx, ebx
call fcn.0046f2f8
call fcn.0046f010
mov dword [ebp - 0x14], eax
mov eax, dword [0x83ea18]
or eax, 0xcc0020
push eax
push edi
push esi
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x8400a8]
mov eax, dword [eax]
call fcn.0046f2c8
sub edi, eax
push edi
mov eax, dword [0x8400a8]
mov eax, dword [eax]
call fcn.0046f2d4
sub esi, eax
push esi
mov eax, dword [ebp - 8]
call fcn.0043051c
call fcn.0042ba2c
push eax
call sub.gdi32.dll_BitBlt
inc ebx
dec dword [ebp - 0x20]
jne 0x77cb72
jmp 0x77cc4e
mov eax, dword [0x83ea18]
or eax, 0xcc0020
push eax
push edi
push esi
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0043051c
call fcn.0042ba2c
push eax
call sub.gdi32.dll_BitBlt
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x77cc62
mov eax, dword [ebp - 8]
call fcn.0043051c
call fcn.0042b900
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.user32.dll_ReleaseDC
cmp byte [ebp - 9], 0
je 0x77cc91
push 0
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0077c84c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x77cca5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret