Function at 0x46c6e0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539640
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xbc], esi
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xb8], eax
test edi, edi
jne 0x46c7e1
mov dword [ebp - 0xc0], edi
xorps xmm0, xmm0
lea ecx, [ebp - 0x98]
movups xmmword [ebp - 0x98], xmm0
call fcn.004f0c92
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [ebp - 0x88], xmm0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x88], vtable.CGdiObject.0
mov dword [ebp - 0x84], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x88], vtable.CRgn.0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
movups xmmword [ebp - 0x60], xmm0
movups xmmword [ebp - 0x70], xmm0
call fcn.004f0c92
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xc4], 0
test eax, eax
je 0x46c7cf
push eax
call fcn.004a36c0
add esp, 4
lea ecx, [ebp - 0x88]
push eax
call fcn.004f1075
lea eax, [ebp - 0x60]
push eax
test edi, edi
jne 0x46c806
call fcn.004a9030
add esp, 4
jmp 0x46c80f
mov eax, dword [edi + 0x20]
mov dword [ebp - 0xc0], eax
test eax, eax
je 0x46c741
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x46c741
jmp 0x46cf17
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0xb4]
test eax, eax
jne 0x46c826
movups xmm0, xmmword [ebp - 0x60]
movups xmmword [ebp - 0x38], xmm0
jmp 0x46c8b5
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [ebp + 0x14], 0
je 0x46c8b5
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x38]
push eax
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
cmp dword [ebp - 0x84], 0
je 0x46c8eb
xorps xmm0, xmm0
movq qword [ebp - 0x40], xmm0
mov dword [ebp - 0x40], vtable.CGdiObject.0
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 4
mov dword [ebp - 0x40], vtable.CRgn.0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [ebp - 0x40]
call fcn.004f1075
mov eax, dword [ebp - 0x84]
push 1
push dword [ebp - 0x3c]
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
mov byte [ebp - 4], 3
mov dword [ebp - 0x40], vtable.CRgn.0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.0040d850
cmp dword [ebp - 0x84], 0
je 0x46c8eb
mov edi, dword [esi + 0xc]
test edi, edi
je 0x46c8eb
cmp dword [esi + 0x34], 0
jne 0x46c8eb
push 0xffffffffffffffff
push edi
lea ecx, [esi + 0x2c]
call fcn.0046d660
lea eax, [edi*4]
push eax
push 0
push dword [esi + 0x30]
call fcn.00509680
add esp, 0xc
mov eax, dword [esi + 0xc]
xor edi, edi
mov dword [ebp - 0xb4], eax
test eax, eax
jle 0x46cd16
lea eax, [esi + 4]
mov dword [ebp - 0xd4], eax
test edi, edi
js 0x46cd11
cmp edi, dword [eax + 8]
jge 0x46cd11
mov eax, dword [eax + 4]
lea ecx, [edi*4]
add eax, ecx
mov dword [ebp - 0xd0], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x46ccac
lea eax, [esi + 0x18]
mov dword [ebp - 0xd8], eax
cmp edi, dword [eax + 8]
jge 0x46cd11
mov eax, dword [eax + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x50], xmm0
movups xmmword [ebp - 0x80], xmm0
lea eax, [eax + edi*8]
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xb0]
push eax
push 0x18
push dword [ecx + 4]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x46ccac
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xac]
mov esi, dword [eax]
add ecx, esi
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0xa8]
add eax, edx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x4c], edx
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x48], ecx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
mov esi, dword [ebp - 0xbc]
test eax, eax
je 0x46ccac
cmp dword [esi + 0x34], 0
jne 0x46ca37
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x46cd02
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
je 0x46ccac
mov esi, dword [ebp - 0xd0]
mov ecx, dword [esi]
test ecx, ecx
je 0x46ca03
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [ebp - 0xd4]
push 1
push edi
mov dword [esi], 0
call fcn.004e84d0
mov ecx, dword [ebp - 0xd8]
push 1
push edi
call fcn.0046d4b0
mov esi, dword [ebp - 0xbc]
dec edi
dec dword [ebp - 0xb4]
jmp 0x46ccac
lea eax, [esi + 0x2c]
mov dword [ebp - 0xc8], eax
cmp edi, dword [eax + 8]
jge 0x46cd11
mov ecx, dword [eax + 4]
xorps xmm0, xmm0
lea eax, [edi*4]
movq qword [ebp - 0x28], xmm0
add ecx, eax
mov dword [ebp - 0x28], vtable.CGdiObject.0
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 8
mov dword [ebp - 0x28], vtable.CRgn.0
mov byte [ebp - 4], 9
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], vtable.CGdiObject.0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x20], vtable.CRgn.0
mov byte [ebp - 4], 0xb
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], vtable.CGdiObject.0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x18], vtable.CRgn.0
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [ebp - 0x28]
call fcn.004f1075
mov ecx, dword [ebp - 0xb8]
mov eax, dword [ecx]
test eax, eax
je 0x46caf1
push 1
push eax
mov eax, dword [ebp - 0x24]
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [ebp - 0x20]
call fcn.004f1075
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x46cb1c
push 1
push eax
mov eax, dword [ebp - 0x1c]
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [ebp - 0x18]
call fcn.004f1075
push 1
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_CombineRgn]
push dword [ebp - 0x14]
call fcn.004a3760
add esp, 4
test eax, eax
je 0x46cb91
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x18], vtable.CRgn.0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x18]
call fcn.0040d850
mov byte [ebp - 4], 9
mov dword [ebp - 0x20], vtable.CRgn.0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x20]
call fcn.0040d850
mov byte [ebp - 4], 3
mov dword [ebp - 0x28], vtable.CRgn.0
jmp 0x46cca0
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.004a3700
add esp, 8
test eax, eax
jne 0x46ccbd
push dword [ebp - 0x24]
push dword [ebp - 0x14]
call fcn.004a3700
add esp, 8
test eax, eax
je 0x46cc67
mov esi, dword [ebp - 0xd0]
mov ecx, dword [esi]
test ecx, ecx
je 0x46cbd0
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [ebp - 0xd4]
push 1
push edi
mov dword [esi], 0
call fcn.004e84d0
mov ecx, dword [ebp - 0xd8]
push 1
push edi
call fcn.0046d4b0
mov ecx, dword [ebp - 0xb8]
mov eax, dword [ecx]
test eax, eax
je 0x46cc05
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0xc8]
push 1
push edi
call fcn.0046d450
dec dword [ebp - 0xb4]
dec edi
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x18], vtable.CRgn.0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x18]
call fcn.0040d850
mov byte [ebp - 4], 9
mov dword [ebp - 0x20], vtable.CRgn.0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x20]
call fcn.0040d850
mov byte [ebp - 4], 3
mov dword [ebp - 0x28], vtable.CRgn.0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0040d850
mov esi, dword [ebp - 0xbc]
jmp 0x46ccac
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x18], vtable.CRgn.0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x18]
call fcn.0040d850
mov byte [ebp - 4], 9
mov dword [ebp - 0x20], vtable.CRgn.0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x20]
call fcn.0040d850
mov byte [ebp - 4], 3
mov dword [ebp - 0x28], vtable.CRgn.0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0040d850
inc edi
cmp edi, dword [ebp - 0xb4]
jge 0x46cd16
lea eax, [esi + 4]
jmp 0x46c907
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x18], vtable.CRgn.0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x18]
call fcn.0040d850
mov byte [ebp - 4], 9
mov dword [ebp - 0x20], vtable.CRgn.0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x20]
call fcn.0040d850
mov byte [ebp - 4], 3
mov dword [ebp - 0x28], vtable.CRgn.0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0040d850
mov dword [ebp - 0xc4], 1
jmp 0x46ced6
call fcn.004e6c7b
mov esi, dword [ebp - 0xcc]
test esi, esi
jne 0x46cd44
push dword [ebp - 0xc0]
call dword [sym.imp.USER32.dll_GetDC]
push eax
lea ecx, [ebp - 0x98]
call fcn.004f1034
lea esi, [ebp - 0x98]
mov dword [ebp - 0xcc], esi
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x70]
call fcn.004f1034
test eax, eax
je 0x46ceb4
push 8
call fcn.004e6b1f
mov edi, eax
add esp, 4
mov dword [ebp - 0xc8], edi
mov byte [ebp - 4], 0x1b
test edi, edi
je 0x46cd9b
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi], vtable.CGdiObject.0
mov dword [edi + 4], 0
mov byte [ebp - 4], 0x1c
mov dword [edi], vtable.CBitmap.0
mov byte [ebp - 4], 0x1b
jmp 0x46cd9d
xor edi, edi
mov byte [ebp - 4], 3
test edi, edi
je 0x46ceb4
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
push ecx
push eax
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.004f1075
test eax, eax
je 0x46ceab
push dword [edi + 4]
push dword [ebp - 0x6c]
call fcn.004f1525
mov dword [ebp - 0xc8], eax
test eax, eax
je 0x46ceab
push 0
call fcn.00449d00
add esp, 4
call dword [sym.imp.GDI32.dll_GdiFlush]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
sub edx, eax
push 0xcc0020
push ecx
push eax
mov eax, dword [ebp - 0xcc]
sub esi, ecx
push dword [eax + 4]
push esi
push edx
push 0
push 0
push dword [ebp - 0x6c]
call dword [sym.imp.GDI32.dll_BitBlt]
xor esi, esi
mov ecx, 1
test eax, eax
push ecx
cmovne esi, ecx
mov dword [ebp - 0xc4], esi
call fcn.00449d00
mov eax, dword [ebp - 0xc8]
add esp, 4
push dword [eax + 4]
push dword [ebp - 0x6c]
call fcn.004f1525
test esi, esi
je 0x46ceab
mov esi, dword [ebp - 0xbc]
mov eax, dword [ebp - 0xc0]
lea ecx, [esi + 4]
push edi
mov dword [esi], eax
push dword [ecx + 8]
call fcn.004e8524
push dword [ebp - 0x34]
lea ecx, [esi + 0x18]
push dword [ebp - 0x38]
push dword [ecx + 8]
call fcn.0046d620
cmp dword [ebp - 0x84], 0
jne 0x46ce92
cmp dword [esi + 0x34], 0
je 0x46ceb4
lea ecx, [ebp - 0x88]
call fcn.004f1200
lea ecx, [esi + 0x2c]
push eax
push dword [ecx + 8]
call fcn.0046d5e0
jmp 0x46ceb4
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x46ced6
push eax
push dword [ebp - 0xc0]
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [ebp - 0x98]
call fcn.004f11c4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.004f0de8
mov byte [ebp - 4], 0
mov dword [ebp - 0x88], vtable.CRgn.0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.0040d850
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.004f0de8
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret 0x14