Function at 0x106837c
Capabilities:
Capture screenshot

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
push esi
xor esi, esi
mov dword [ebp - 4], esi
call fcn.01066a57
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x1068603
push edi
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
cmp edi, esi
mov dword [ebp - 8], edi
je 0x1068602
lea eax, [ebp - 0x38]
push eax
push 0x18
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x10685f8
push ebx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
cmp ebx, esi
je 0x10685f7
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
xor edi, edi
inc edi
cmp eax, esi
mov dword [ebp - 4], eax
je 0x106846b
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x58], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dh, cl
push edi
push edi
mov word [ebp - 0x4a], si
mov word [ebp - 0x3a], si
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x50], dx
xor edx, edx
mov dh, ch
shr ecx, 0x10
mov word [ebp - 0x4e], dx
xor edx, edx
mov dh, cl
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x48], ecx
xor ecx, ecx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
mov ch, al
mov word [ebp - 0x4c], dx
mov word [ebp - 0x40], cx
xor ecx, ecx
mov ch, ah
shr eax, 0x10
mov word [ebp - 0x3e], cx
xor ecx, ecx
mov ch, al
lea eax, [ebp - 0x20]
push eax
push 2
lea eax, [ebp - 0x58]
push eax
push ebx
mov word [ebp - 0x3c], cx
call dword [ebp - 0xc]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp - 4], esi
je 0x10685f7
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x5c], eax
imul eax, ecx
shl eax, 2
push eax
mov dword [ebp - 0x60], 0x28
mov dword [ebp - 0x58], ecx
mov word [ebp - 0x54], di
mov word [ebp - 0x52], 0x20
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
cmp edi, esi
pop ecx
mov dword [ebp - 0x1c], edi
je 0x10685f7
mov eax, dword [ebp - 0x34]
imul eax, dword [ebp - 0x30]
shl eax, 2
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
mov dword [ebp + 0xc], eax
je 0x10685f0
mov ebx, dword [sym.imp.GDI32.dll_GetDIBits]
push esi
lea eax, [ebp - 0x60]
push eax
push edi
push dword [ebp - 0x30]
push esi
push dword [ebp - 4]
push dword [ebp - 8]
call ebx
push esi
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x30]
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call ebx
mov eax, dword [ebp - 0x34]
imul eax, dword [ebp - 0x30]
test eax, eax
mov dword [ebp + 0x14], esi
jle 0x10685d1
mov edx, dword [ebp + 0xc]
sub edx, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edx
mov ecx, 0xff
jmp 0x1068533
mov edx, dword [ebp - 0x10]
mov esi, dword [edx + edi]
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
mov edx, esi
shr edx, 0x18
mov edi, esi
mov ebx, 0xff0000
and eax, ebx
and edi, ebx
imul edi, edx
mov dword [ebp + 8], ecx
sub dword [ebp + 8], edx
imul eax, dword [ebp + 8]
add eax, edi
mov dword [ebp + 0x10], edx
xor edx, edx
mov edi, ecx
div edi
mov edx, esi
and edx, ecx
imul edx, dword [ebp + 0x10]
and eax, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
and eax, ecx
imul eax, dword [ebp + 8]
add eax, edx
xor edx, edx
div edi
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0xc]
and eax, ecx
add edx, eax
mov eax, dword [edi]
mov dword [ebp - 0x18], edx
mov edx, 0xff00
and eax, edx
imul eax, dword [ebp + 8]
and esi, edx
imul esi, dword [ebp + 0x10]
add eax, esi
xor edx, edx
mov esi, ecx
div esi
mov edx, dword [ebp - 0x18]
and eax, 0xff00
add edx, eax
inc dword [ebp + 0x14]
mov dword [edi], edx
mov eax, dword [ebp - 0x34]
imul eax, dword [ebp - 0x30]
add edi, 4
cmp dword [ebp + 0x14], eax
mov dword [ebp - 0xc], edi
jl 0x1068530
mov edi, dword [ebp - 0x1c]
xor esi, esi
push esi
lea eax, [ebp - 0x60]
push eax
push edi
push dword [ebp - 0x30]
push esi
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_SetDIBits]
push dword [ebp + 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
push dword [ebp - 8]
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
mov eax, dword [ebp - 4]
pop esi
leave
ret 0x10