Function at 0x52f1c6
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x4c]
xor esi, esi
push eax
push dword [edi + 8]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
sub ecx, dword [ebp - 0x48]
sub eax, dword [ebp - 0x4c]
push ecx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x1c], eax
call ebx
push dword [edi + 0xc4]
push dword [ebp - 8]
call ebx
push 1
push dword [ebp - 8]
mov dword [ebp - 0x18], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ebx, dword [sym.imp.GDI32.dll_CreateRectRgn]
push esi
push esi
push esi
push esi
call ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
push edi
call fcn.0052f612
test eax, eax
je 0x52f2af
push dword [ebp + 8]
push edi
call fcn.0052f65e
test eax, eax
je 0x52f2af
mov eax, dword [ebp + 8]
cmp dword [ebp + 0xc], eax
je 0x52f2af
push eax
lea eax, [ebp - 0x2c]
mov ecx, edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call fcn.0052f49f
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call ebx
push 2
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_CombineRgn]
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp + 0xc]
push edi
call fcn.0052f612
test eax, eax
je 0x52f308
push dword [ebp + 0xc]
push edi
call fcn.0052f65e
test eax, eax
je 0x52f308
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
mov ecx, edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call fcn.0052f49f
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call ebx
push 2
mov ebx, eax
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_CombineRgn]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.GDI32.dll_GetRgnBox]
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov ebx, dword [ebp + 8]
push ebx
push edi
call fcn.0052f612
test eax, eax
je 0x52f3af
push ebx
push edi
call fcn.0052f65e
test eax, eax
je 0x52f3af
cmp dword [ebp + 0xc], ebx
je 0x52f3af
mov ecx, ebx
mov eax, edi
call fcn.0052f558
push dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 0x2c]
mov ecx, edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call fcn.0052f49f
mov ecx, dword [ebx + 0x74]
push esi
and ecx, 0xfffffff0
mov eax, ebx
call fcn.0051b72c
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x2c]
sub eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x28]
mov eax, edi
push dword [ebp - 0x2c]
push dword [ebp - 8]
call fcn.0052dafd
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 8]
push edi
call fcn.0052eae6
push dword [ebp + 0xc]
push edi
call fcn.0052f612
test eax, eax
je 0x52f431
push dword [ebp + 0xc]
push edi
call fcn.0052f65e
test eax, eax
je 0x52f431
mov ecx, dword [ebp + 0xc]
mov eax, edi
call fcn.0052f558
push dword [ebp + 0xc]
mov ebx, eax
lea eax, [ebp - 0x2c]
mov ecx, edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call fcn.0052f49f
mov ecx, dword [ebx + 0x74]
and ecx, 0xfffffff0
or ecx, dword [ebp + 0x10]
push esi
mov eax, ebx
call fcn.0051b72c
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x2c]
sub eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x28]
mov eax, edi
push dword [ebp - 0x2c]
push dword [ebp - 8]
call fcn.0052dafd
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 8]
push edi
call fcn.0052eae6
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
push 0xcc0020
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x3c]
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x18]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebx
leave
ret 0xc