Function at 0x52411b
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
cmp dword [esi + 0x4c], 0
push ebx
push edi
je 0x5242ed
mov edi, dword [ebp + 8]
test edi, edi
je 0x5242ed
cmp dword [edi + 0x4c], 0
je 0x5242ed
lea ebx, [edi + 4]
push ebx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x5242ed
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 8]
mov edi, dword [ebx + 8]
sub edi, dword [ebx]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x14]
push dword [eax + 0x14]
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push edi
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 - 0x28], eax
call ebx
push dword [ebp - 0xc]
mov eax, esi
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push edi
push 0
push 0
push dword [ebp - 8]
call fcn.005240e0
mov eax, dword [esi + 0xc4]
test eax, eax
jne 0x5241ca
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x18]
push eax
push dword [ebp - 8]
call ebx
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
neg edx
push edx
mov edx, dword [ebp - 0x18]
neg edx
push edx
push dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x20]
push dword [ebp - 8]
call ebx
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
call dword [sym.imp.GDI32.dll_GetClipRgn]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x14]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
mov eax, dword [esi + 4]
add eax, ecx
mov dword [ebp - 0x1c], ecx
lea ecx, [eax + ebx]
mov dword [ebp + 8], edx
mov dword [ebp - 0x38], ecx
mov ecx, dword [esi + 8]
add ecx, edx
mov edx, dword [ebp - 0xc]
add edx, ecx
mov dword [ebp - 0x34], edx
lea edx, [eax + edi]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 0x1c]
add edx, ebx
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x10]
add eax, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
add edx, ecx
add edx, dword [ebp - 0xc]
push eax
push eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x44], ecx
call dword [sym.imp.USER32.dll_IntersectRect]
push dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push ebx
call dword [sym.imp.GDI32.dll_IntersectClipRect]
mov eax, dword [esi + 8]
add eax, dword [ebp + 8]
push 0xcc0020
add eax, dword [ebp - 0xc]
push 0
push 0
push dword [ebp - 8]
push dword [ebp - 0x14]
push edi
push eax
mov eax, dword [esi + 4]
add eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [ebp - 0x24], 1
jne 0x5242be
push dword [ebp - 0x20]
jmp 0x5242c0
push 0
push ebx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push dword [ebp - 0x20]
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
mov eax, dword [esi + 0x14]
push ebx
push dword [eax + 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop ebx
leave
ret 4