Function at 0x48377c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
cmp dword [esi + 0x4c], 0
push ebx
push edi
je 0x483974
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x483974
cmp dword [ebx + 0x4c], 0
je 0x483974
lea edi, [ebx + 4]
push edi
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x483974
mov eax, dword [edi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 8]
mov ebx, dword [edi + 8]
sub ebx, dword [edi]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 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 ebx
push dword [ebp - 0x10]
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 [ebp - 0xc]
mov eax, esi
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push ebx
push 0
push 0
push dword [ebp - 8]
call fcn.00483741
mov eax, dword [esi + 0xc4]
test eax, eax
jne 0x48382b
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x18]
push eax
push dword [ebp - 8]
call edi
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 edi
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 edi, 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 + edi]
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 + ebx]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 0x1c]
add edx, edi
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]
add edx, ecx
add edx, dword [ebp - 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x44], ecx
test eax, eax
je 0x4838d0
add eax, 4
jmp 0x4838d2
xor eax, eax
push eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov edi, dword [sym.imp.USER32.dll_IntersectRect]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
push eax
call edi
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x38]
push eax
push eax
call edi
push dword [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push edi
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 ebx
push eax
mov eax, dword [esi + 4]
add eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
push eax
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [ebp - 0x24], 1
jne 0x483945
push dword [ebp - 0x20]
jmp 0x483947
push 0
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push dword [ebp - 0x20]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
call ebx
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x28]
call ebx
mov eax, dword [esi + 0x14]
push edi
push dword [eax + 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop ebx
leave
ret 4