Function at 0x52774b
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [esi + 0x20], 0
push ebx
push edi
mov ebx, eax
je 0x527983
test ebx, ebx
je 0x527983
cmp dword [ebx + 0x4c], 0
je 0x527983
lea edi, [ebx + 4]
push edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x527983
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
sub eax, dword [edi]
sub edx, dword [edi + 4]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
test ecx, ecx
je 0x5277a2
mov edi, dword [ecx]
jmp 0x5277a4
mov edi, dword [edi]
mov dword [ebp - 8], edi
test ecx, ecx
je 0x5277b0
mov edi, dword [ecx + 4]
jmp 0x5277b3
mov edi, dword [ebx + 8]
mov dword [ebp - 4], edi
test ecx, ecx
je 0x5277bf
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x5277d1
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 4]
mov dword [ebp - 0x10], eax
jmp 0x5277d4
mov dword [ebp - 0x10], edx
and dword [ebp - 0x20], 0
cmp dword [ebp + 0xc], 0
jne 0x5277f1
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x20], 1
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 0x18]
mov dword [ebp + 8], eax
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x28], eax
call edi
push dword [ebx + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
push dword [eax]
mov eax, esi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 0
push 0
push dword [ebp + 8]
call fcn.00527713
push dword [esi + 0x18]
push dword [ebp + 8]
call edi
mov ecx, dword [ebx + 8]
neg ecx
push ecx
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx]
neg ecx
push ecx
push dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
push dword [ebp - 0x1c]
push dword [ebp + 8]
call edi
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.GDI32.dll_GetClipRgn]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 4]
add ecx, eax
add ecx, dword [ebp + 0x10]
mov dword [ebp - 0x38], ecx
mov ecx, dword [esi + 8]
add ecx, edx
add ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x14]
add ecx, eax
add ecx, dword [ebp - 8]
add ecx, dword [ebp + 0x10]
mov dword [ebp - 0x30], ecx
mov ecx, dword [esi + 8]
add edx, ecx
add edx, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
add edx, ecx
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp + 0x10]
add eax, edx
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 8]
add eax, ecx
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0xc]
add eax, edx
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x10]
add eax, ecx
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_IntersectClipRect]
mov eax, dword [ebp - 4]
sub eax, dword [ebx + 8]
mov ecx, dword [ebp - 0xc]
push 0xcc0020
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ecx]
mov ebx, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
mov eax, dword [esi + 8]
push dword [ebp - 0x10]
add eax, dword [ebp - 4]
push dword [ebp - 0x14]
add eax, dword [ebp + 0x14]
push eax
mov eax, dword [esi + 4]
add eax, dword [ebp - 8]
add eax, dword [ebp + 0x10]
push eax
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [ebp - 0x18], 1
jne 0x527949
push dword [ebp - 0x1c]
jmp 0x52794b
push 0
push ebx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x28]
call edi
cmp dword [ebp - 0x20], 0
je 0x527983
push ebx
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop ebx
leave
ret 0x10