Function at 0x100076a0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
push esi
test ebp, ebp
push edi
je 0x10007790
cmp dword [ebp], 0x4a424947
jne 0x10007790
mov eax, dword [ebp + 0xd8]
and eax, 3
cmp al, 1
jne 0x10007790
push 0
call dword [sym.imp.USER32.dll_GetDC]
lea ecx, [esp + 0x28]
mov ebx, eax
mov edx, dword [esp + 0x48]
push ecx
push 0x18
push edx
mov dword [esp + 0x24], ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x10007790
mov eax, dword [ebp + 0xb0]
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebp + 0xb4]
cmp eax, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jne 0x10007790
cmp ecx, dword [esp + 0x30]
jne 0x10007790
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
call edi
mov esi, eax
push 1
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], esi
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call edi
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x44], eax
push ecx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x42c
call fcn.10011419
mov edi, eax
xor eax, eax
add esp, 4
cmp edi, eax
jne 0x1000779d
mov edx, dword [esp + 0x44]
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
push edx
call edi
push esi
call edi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30
ret 8
mov dword [edi], 0x28
mov ecx, dword [ebp + 0xb0]
mov dword [edi + 4], ecx
mov ecx, 1
push ebp
mov dword [edi + 8], ecx
mov word [edi + 0xc], cx
mov word [edi + 0xe], cx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
call fcn.10002240
cmp eax, 0xffffffff
je 0x10007790
mov eax, dword [esp + 0x20]
mov edx, 0xff
mov ebx, eax
and eax, 7
mov ecx, eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
xor esi, esi
sar edx, cl
sar ebx, 3
test eax, eax
mov byte [esp + 0x48], dl
jle 0x1000788f
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
push 0xcc0020
push esi
push 0
push edx
push 1
push eax
push 0
push 0
push ecx
mov dword [esp + 0x48], ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [ebp + 0x14]
push 0
mov ecx, dword [esp + 0x14]
push edi
mov eax, dword [edx + esi*4]
mov edx, dword [esp + 0x20]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetDIBits]
cmp eax, 1
jne 0x100078df
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10007873
mov eax, dword [ebp + 0x14]
mov dl, byte [esp + 0x48]
mov ecx, dword [eax + esi*4]
lea eax, [ecx + ebx]
mov cl, byte [ecx + ebx]
or cl, dl
mov byte [eax], cl
lea eax, [ebx + 1]
jmp 0x10007877
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x14]
inc esi
mov edx, dword [ecx + esi*4 - 4]
mov byte [eax + edx], 0
mov eax, dword [esp + 0x1c]
cmp esi, eax
jl 0x10007804
push edi
call fcn.10011330
mov ecx, dword [esp + 0x48]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
add esp, 4
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x18]
push ecx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
test byte [ebp + 0xd8], 0x20
jne 0x100078d3
push ebp
call fcn.1000f7d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret 8
push edi
call fcn.10011330
mov eax, dword [esp + 0x48]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
add esp, 4
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x18]
push eax
jmp 0x10007788