Function at 0x47802e
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push edi
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, dword [esi + 0xc]
sub edi, dword [esi + 4]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 8]
push 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 - 0x1c], eax
call ebx
push dword [esi + 0x18]
push dword [ebp - 8]
call ebx
push 1
push dword [ebp - 8]
mov dword [ebp - 0x18], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
test eax, eax
je 0x478108
push dword [ebp + 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
test eax, eax
je 0x478108
mov eax, dword [ebp + 8]
cmp dword [ebp + 0xc], eax
je 0x478108
mov edx, dword [esi]
push ebx
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov ecx, esi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call dword [edx + 0x48]
mov eax, dword [ebp - 0x34]
cmp eax, edi
jl 0x4780dd
mov eax, edi
push dword [ebp - 0x30]
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call dword [sym.imp.GDI32.dll_CreateRectRgn]
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]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
test eax, eax
je 0x47816f
push dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
test eax, eax
je 0x47816f
mov eax, dword [esi]
push ebx
lea ecx, [ebp - 0x3c]
push ecx
push dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call dword [eax + 0x48]
cmp dword [ebp - 0x34], edi
jge 0x478147
mov edi, dword [ebp - 0x34]
push dword [ebp - 0x30]
push edi
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push 2
mov edi, eax
push edi
push dword [ebp - 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_CombineRgn]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.GDI32.dll_GetRgnBox]
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov edi, dword [ebp + 8]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x3c]
test eax, eax
je 0x4781ed
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x40]
test eax, eax
je 0x4781ed
cmp dword [ebp + 0xc], edi
je 0x4781ed
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x38]
mov edi, eax
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push eax
mov dword [edi + 0x64], ebx
mov edx, dword [edi + 0x10]
push ecx
sub edx, eax
push edx
mov edx, dword [edi + 0xc]
sub edx, ecx
push edx
push eax
push ecx
push dword [ebp - 8]
mov eax, esi
call fcn.0047a4c9
mov eax, dword [edi]
push ebx
push ebx
push dword [ebp - 8]
mov ecx, edi
call dword [eax + 4]
push dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
test eax, eax
je 0x47824b
push dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
test eax, eax
je 0x47824b
push dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
mov edx, dword [ebp + 0x10]
mov edi, eax
mov ecx, edi
call fcn.00470fc4
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 0x10]
push eax
push ecx
sub edx, eax
push edx
mov edx, dword [edi + 0xc]
sub edx, ecx
push edx
push eax
push ecx
push dword [ebp - 8]
mov eax, esi
call fcn.0047a4c9
mov eax, dword [edi]
push ebx
push ebx
push dword [ebp - 8]
mov ecx, edi
call dword [eax + 4]
cmp dword [esi + 0x1c], ebx
je 0x47829e
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_OffsetRgn]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
push 0xcc0020
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
push eax
mov eax, dword [esi + 8]
add eax, dword [ebp - 0x28]
push eax
mov eax, dword [esi + 4]
add eax, dword [ebp - 0x2c]
push eax
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 edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push dword [ebp - 0xc]
call edi
push dword [ebp - 0x10]
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop ebx
leave
ret 0xc