Function at 0x10009141
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push edi
xor ebx, ebx
push 0x10
mov edi, ecx
push ebx
push edi
mov dword [ebp - 0x1c], ebx
call fcn.1001b590
add esp, 0xc
push ebx
push ebx
push ebx
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x10009311
push esi
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push eax
call esi
push 0xa
push dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
call esi
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x10009302
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x18], esi
je 0x100092f9
push dword [ebp - 8]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push ebx
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [ebp - 0x38]
push eax
push 0x18
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp - 0x26]
imul eax, dword [ebp - 0x28]
xor ecx, ecx
inc ecx
cmp ax, cx
ja 0x10009208
push 2
mov dword [ebp - 4], ecx
pop eax
jmp 0x1000922f
push 4
pop ecx
cmp ax, cx
ja 0x10009214
push 0x10
jmp 0x10009202
push 8
pop ecx
cmp ax, cx
ja 0x10009226
mov dword [ebp - 4], ecx
mov eax, 0x100
jmp 0x1000922f
mov dword [ebp - 4], 0x10
xor eax, eax
movzx eax, ax
lea eax, [eax*4 + 0x28]
push eax
mov dword [edi + 8], eax
call fcn.1001b998
cmp eax, ebx
pop ecx
mov dword [edi], eax
je 0x100092e4
push dword [edi + 8]
push ebx
push eax
call fcn.1001b590
mov esi, dword [edi]
mov eax, dword [ebp - 0x10]
mov cx, word [ebp - 4]
add esp, 0xc
push ebx
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esi], 0x28
mov dword [esi + 8], eax
mov word [esi + 0xc], 1
mov word [esi + 0xe], cx
mov dword [esi + 0x10], ebx
push dword [edi]
push ebx
push eax
push ebx
push dword [ebp - 8]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_GetDIBits]
cmp dword [esi + 0x14], ebx
jne 0x100092b1
movzx eax, word [ebp - 4]
imul eax, dword [ebp - 0x10]
add eax, 0x1f
cdq
push 0x20
pop ecx
idiv ecx
imul eax, dword [ebp - 0x14]
shl eax, 2
mov dword [esi + 0x14], eax
mov esi, dword [esi + 0x14]
push esi
mov dword [edi + 0xc], esi
call fcn.1001b998
cmp eax, ebx
pop ecx
mov dword [edi + 4], eax
je 0x100092e4
push ebx
push dword [edi]
push eax
push dword [ebp - 0x14]
push ebx
push dword [ebp - 8]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x100092e4
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp - 0x1c], ebx
pop esi
jne 0x1000932c
push dword [edi + 4]
call fcn.1001b588
push dword [edi]
call fcn.1001b588
push 0x10
push ebx
push edi
call fcn.1001b590
add esp, 0x14
mov eax, edi
pop edi
pop ebx
leave
ret