Function at 0x417876
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 + reloc.GDI32.dll_CreateRectRgn]
test eax, eax
je 0x417950
push dword [ebp + 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
test eax, eax
je 0x417950
mov eax, dword [ebp + 8]
cmp dword [ebp + 0xc], eax
je 0x417950
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 + 0x30]
mov eax, dword [ebp - 0x34]
cmp eax, edi
jl 0x417925
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 + reloc.GDI32.dll_CreateRectRgn]
test eax, eax
je 0x4179b7
push dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
test eax, eax
je 0x4179b7
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 + 0x30]
cmp dword [ebp - 0x34], edi
jge 0x41798f
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 + reloc.GDI32.dll_CreateRectRgn]
test eax, eax
je 0x417a35
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x28]
test eax, eax
je 0x417a35
cmp dword [ebp + 0xc], edi
je 0x417a35
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x20]
mov edi, eax
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push eax
mov dword [edi + 0x60], 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.00418811
mov eax, dword [edi]
push ebx
push ebx
push dword [ebp - 8]
mov ecx, edi
call dword [eax + reloc.ADVAPI32.dll_RegQueryInfoKeyW]
push dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + reloc.GDI32.dll_CreateRectRgn]
test eax, eax
je 0x417a9e
push dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
test eax, eax
je 0x417a9e
push dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov ecx, dword [ebp + 0x10]
mov edi, eax
mov eax, dword [edi + 0x60]
mov dword [edi + 0x60], ecx
cmp ecx, eax
je 0x417a72
push eax
mov eax, edi
call fcn.0041b3b5
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.00418811
mov eax, dword [edi]
push ebx
push ebx
push dword [ebp - 8]
mov ecx, edi
call dword [eax + reloc.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [esi + 0x1c], ebx
je 0x417af1
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