Function at 0x5376b7
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x68
push ebx
push edi
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esi + 0xc]
sub ecx, dword [esi + 4]
mov ebx, eax
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 8]
mov dword [esp + 8], ebx
push eax
push ecx
push dword [esp + 0x18]
mov dword [esp + 0x20], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
mov dword [esp + 0x34], eax
call edi
push dword [esi + 0x18]
mov dword [esp + 0x28], eax
push ebx
call edi
push 1
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ebx, dword [sym.imp.GDI32.dll_CreateRectRgn]
xor edi, edi
push edi
push edi
push edi
push edi
call ebx
push dword [ebp + 8]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
test eax, eax
je 0x5378fc
push dword [ebp + 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x4c]
test eax, eax
je 0x5378fc
mov eax, dword [ebp + 8]
cmp dword [ebp + 0xc], eax
je 0x5378fc
mov edx, dword [esi]
push edi
lea ecx, [esp + 0x34]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
call dword [edx + 0x58]
mov eax, dword [esi + 0x64]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
cmp ecx, eax
je 0x5377db
dec ecx
cmp ecx, eax
je 0x5377db
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x48]
test eax, eax
je 0x5377db
mov eax, dword [ebp + 8]
mov edx, dword [esi]
dec eax
push eax
mov ecx, esi
call dword [edx + 0x44]
mov edx, dword [esi]
mov dword [esp + 0x1c], eax
push edi
lea eax, [esp + 0x54]
push eax
mov eax, dword [ebp + 8]
dec eax
push eax
mov ecx, esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
call dword [edx + 0x58]
mov eax, dword [esp + 0x50]
inc eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x64]
mov ecx, dword [ebp + 8]
cmp ecx, eax
je 0x537831
inc ecx
cmp ecx, eax
je 0x537831
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x48]
test eax, eax
je 0x537831
mov eax, dword [ebp + 8]
mov edx, dword [esi]
inc eax
push eax
mov ecx, esi
call dword [edx + 0x44]
mov edx, dword [esi]
mov dword [esp + 0x20], eax
push edi
lea eax, [esp + 0x64]
push eax
mov eax, dword [ebp + 8]
inc eax
push eax
mov ecx, esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
call dword [edx + 0x58]
mov eax, dword [esp + 0x68]
dec eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x38], eax
jge 0x53783f
mov eax, dword [esp + 0x38]
push dword [esp + 0x3c]
push eax
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call ebx
push 2
push eax
push dword [esp + 0x14]
mov dword [esp + 0x24], eax
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_CombineRgn]
push dword [esp + 0x18]
push dword [esp + 0xc]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp + 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x44]
mov edx, dword [ebp + 8]
xor ecx, ecx
cmp edx, dword [esi + 0x64]
push edi
sete cl
mov dword [esp + 0x1c], eax
call fcn.0051b72c
push dword [esp + 0x34]
mov eax, dword [esp + 0x40]
push dword [esp + 0x34]
sub eax, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
push eax
push dword [esp + 0x44]
mov eax, esi
push dword [esp + 0x44]
push dword [esp + 0x20]
call fcn.00527713
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
je 0x5378da
mov eax, dword [ecx]
push edi
push edi
push dword [esp + 0x10]
call dword [eax + 4]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
push edi
push edi
push dword [esp + 0x10]
call dword [eax + 4]
mov ecx, dword [esp + 0x20]
cmp ecx, edi
je 0x5378fc
mov eax, dword [ecx]
push edi
push edi
push dword [esp + 0x10]
call dword [eax + 4]
push dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
test eax, eax
je 0x5379da
push dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x4c]
test eax, eax
je 0x5379da
mov eax, dword [esi]
push edi
lea ecx, [esp + 0x34]
push ecx
push dword [ebp + 0xc]
mov ecx, esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
call dword [eax + 0x58]
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x14]
jl 0x53794e
mov eax, dword [esp + 0x14]
push dword [esp + 0x3c]
push eax
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call ebx
push 2
mov ebx, eax
push ebx
push dword [esp + 0x14]
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_CombineRgn]
push ebx
push dword [esp + 0xc]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x44]
mov ebx, eax
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 0x64]
jne 0x53799b
xor ecx, ecx
inc ecx
jmp 0x53799e
mov ecx, dword [ebp + 0x10]
push edi
mov eax, ebx
call fcn.0051b72c
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 0x10]
push eax
push ecx
sub edx, eax
push edx
mov edx, dword [ebx + 0xc]
sub edx, ecx
push edx
push eax
push ecx
push dword [esp + 0x20]
mov eax, esi
call fcn.00527713
mov eax, dword [ebx]
push edi
push edi
push dword [esp + 0x10]
mov ecx, ebx
call dword [eax + 4]
mov ebx, dword [sym.imp.GDI32.dll_CreateRectRgn]
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x10]
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
call dword [sym.imp.GDI32.dll_GetRgnBox]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
cmp dword [esi + 0x20], edi
je 0x537ab7
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x537ab7
push dword [esi + 8]
push dword [esi + 4]
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_OffsetRgn]
push edi
push edi
push edi
push edi
call ebx
push eax
push dword [esp + 0x14]
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_GetClipRgn]
push dword [esp + 0xc]
mov ebx, dword [sym.imp.GDI32.dll_SelectClipRgn]
push dword [esp + 0x14]
mov dword [esp + 0x24], eax
call ebx
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
push 0xcc0020
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
push eax
mov eax, dword [esi + 8]
add eax, dword [esp + 0x5c]
push eax
mov eax, dword [esi + 4]
add eax, dword [esp + 0x5c]
push eax
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [esp + 0x1c], 1
jne 0x537aa6
push dword [esp + 0x20]
jmp 0x537aa7
push edi
push dword [esp + 0x14]
call ebx
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0x24]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0xc]
call edi
push dword [esp + 0x28]
push dword [esp + 0xc]
call edi
push dword [esp + 8]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x2c]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push dword [esp + 0xc]
call edi
push dword [esp + 0x10]
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc