Function at 0x4035d6
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x40a7a4]
xor eax, esp
mov dword [esp + 0x268], eax
cmp byte [0x40eabd], 0
push ebx
push esi
push edi
jne 0x403624
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.dwmapi.dll_DwmIsCompositionEnabled]
test eax, eax
js 0x403619
cmp dword [esp + 0x18], 0
je 0x403619
push 0x258
jmp 0x40361e
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
mov byte [0x40e87d], bl
call fcn.00404b1e
test al, al
jne 0x40363c
xor al, al
jmp 0x403956
call fcn.00401b29
test al, al
jne 0x403663
mov dl, 1
mov ecx, 0x420b
call fcn.004026e0
test al, al
je 0x403635
xor dl, dl
mov ecx, 0x40a8bc
call fcn.00402767
jmp 0x403635
call fcn.00404ae1
test al, al
je 0x40367a
xor dl, dl
mov ecx, 0x2730
call fcn.004026e0
jmp 0x403635
cmp dword [0x40e870], ebx
jne 0x403635
push 0xff
lea eax, [esp + 0x74]
mov byte [0x40e1bc], 1
push eax
push 0x2711
push dword [0x40e848]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x30
pop esi
push esi
lea eax, [esp + 0x34]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x40eab8]
add esp, 0xc
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], 0x4039a3
mov dword [esp + 0x44], eax
push 1
push eax
mov dword [esp + 0x60], str.OneNoteM.ScreenCapture
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x60], ebx
call dword [sym.imp.USER32.dll_RegisterClassExW]
push ebx
push ebx
push ebx
push ebx
mov esi, 0x40e7d0
push esi
call dword [sym.imp.USER32.dll_SetRect]
push ebx
call dword [sym.imp.USER32.dll_GetDC]
and dword [esp + 0x20], 0
mov ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], ebx
push eax
push 0x40396b
push 0
push ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], 0x40e860
mov dword [esp + 0x3c], 0x40e89c
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
mov eax, dword [esp + 0x24]
dec dword [0x40e7dc]
push ebx
mov edi, dword [eax + 8]
mov esi, dword [eax + 0xc]
sub edi, dword [eax]
sub esi, dword [eax + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
push edi
push ebx
mov dword [0x40e860], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, dword [0x40e7d8]
mov ebx, dword [0x40e7dc]
sub edi, dword [0x40e7d0]
sub ebx, dword [0x40e7d4]
cmp byte [0x40eabd], 0
mov dword [0x40e89c], eax
je 0x403796
call fcn.00403c09
mov byte [esp + 0x13], 1
test al, al
jne 0x40379b
mov byte [esp + 0x13], 0
push dword [0x40e89c]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [0x40e860]
call esi
cmp byte [esp + 0x13], 0
jne 0x4037ed
push 0x180
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
push 0x40cc0020
push dword [0x40e7d4]
push dword [0x40e7d0]
push dword [esp + 0x24]
push ebx
push edi
push 0
push 0
push dword [0x40e860]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [0x40e860]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
push edi
push dword [0x40e860]
mov dword [0x40e850], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [0x40e850]
mov dword [0x40e854], eax
call esi
push ebx
push edi
push 0
push 0
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 0xffffff
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
lea eax, [esp + 0x60]
push esi
push eax
push dword [0x40e850]
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov word [esp + 0x14], 0
call fcn.0040247f
neg al
sbb al, al
and al, 0xaa
add al, 0x55
mov byte [esp + 0x16], al
xor eax, eax
mov byte [esp + 0x17], al
push dword [esp + 0x14]
push ebx
push edi
push eax
push eax
push dword [0x40e860]
push ebx
push edi
push eax
push eax
push dword [0x40e850]
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
push dword [esp + 0x18]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
xor eax, eax
push eax
push dword [0x40eab8]
push eax
push eax
push ebx
push edi
push dword [0x40e7d4]
lea eax, [esp + 0x8c]
push dword [0x40e7d0]
push 0x90000000
push eax
push str.OneNoteM.ScreenCapture
push 8
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x4038da
call fcn.00403e4d
jmp 0x403635
push eax
mov dword [0x40e870], eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [0x40e870]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [0x40e870]
call dword [sym.imp.USER32.dll_SetCapture]
push 0x7f03
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0x40e7c0
call dword [sym.imp.USER32.dll_SetRectEmpty]
push 0x100
push ebx
push ebx
push dword [0x40e870]
mov byte [0x40e7e0], bl
call dword [sym.imp.USER32.dll_RedrawWindow]
xor ecx, ecx
cmp byte [0x40eab4], cl
push ebx
push ebx
setne cl
xor dl, dl
push 1
push ebx
add ecx, 0x2726
call fcn.00402b8c
mov al, 1
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004072ea
mov esp, ebp
pop ebp
ret