Function at 0x10007472
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
cmp dword [ebp + 8], 0x18
push ebx
push esi
push edi
jg 0x100076ce
xor ebx, ebx
push ebx
push ebx
push ebx
push 0x100944b0
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.GDI32.dll_CreateDCA]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
mov dword [ebp - 0xc], edi
call esi
push 0xa
push edi
mov dword [ebp - 0x18], eax
call esi
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp - 4]
call esi
push 0xcc0020
push ebx
push ebx
push edi
push dword [ebp - 8]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x18]
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x1c]
push dword [ebp - 4]
call esi
push 1
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
pop esi
cmp eax, esi
jg 0x10007680
mov dword [ebp + 8], esi
mov cl, byte [ebp + 8]
mov eax, esi
shl eax, cl
shl eax, 2
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x38]
push eax
push 0x18
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 8]
mov word [ebp - 0x52], ax
push 8
movzx eax, ax
imul eax, edi
add eax, 0x1f
mov word [ebp - 0x54], si
and al, 0xe0
pop esi
cdq
idiv esi
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x60], 0x28
add ecx, 0x28
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [0x1009323c], ecx
mov dword [0x1008e124], edi
mov esi, eax
mov eax, dword [ebp - 0x30]
imul esi, eax
add esi, ecx
mov dword [0x1008e120], eax
cmp esi, dword [0x10093238]
mov dword [ebp - 0x20], esi
je 0x100076a9
mov eax, dword [0x1009322c]
cmp eax, ebx
je 0x100075bf
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x1009322c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x1009322c], eax
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
je 0x100076a9
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0xa
lea esi, [ebp - 0x60]
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
push 0xf
mov dword [ebp - 0x18], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov esi, dword [sym.imp.GDI32.dll_SelectPalette]
mov edi, dword [sym.imp.GDI32.dll_RealizePalette]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x10007618
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push ebx
mov dword [ebp + 8], eax
push dword [ebp - 0x1c]
push eax
call esi
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
call edi
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
push ebx
push eax
lea eax, [eax + ecx + 0x28]
push eax
push dword [ebp - 0x30]
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_GetDIBits]
cmp dword [ebp - 0x14], ebx
je 0x10007653
push 1
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call esi
push dword [ebp - 0xc]
call edi
push dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x18]
push dword [ebp - 8]
mov dword [0x1009322c], eax
mov eax, dword [ebp - 0x20]
mov dword [0x10093238], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push dword [ebp - 4]
call esi
mov al, 1
jmp 0x100076d0
push 4
pop ecx
cmp eax, ecx
jle 0x10007695
push 8
pop ecx
cmp eax, ecx
jle 0x10007695
push 0x10
pop ecx
cmp eax, ecx
jg 0x1000769d
mov dword [ebp + 8], ecx
jmp 0x10007511
mov dword [ebp + 8], 0x18
jmp 0x1000751e
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push dword [ebp - 4]
call esi
mov dword [0x10093238], ebx
mov dword [0x1009323c], ebx
xor al, al
pop edi
pop esi
pop ebx
leave
ret