Function at 0x4035dc
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x40d118]
xor eax, esp
mov dword [esp + 0x268], eax
cmp byte [0x40da65], 0
push ebx
push esi
push edi
jne 0x40362a
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.dwmapi.dll_DwmIsCompositionEnabled]
test eax, eax
js 0x40361f
cmp dword [esp + 0x18], 0
je 0x40361f
push 0x258
jmp 0x403624
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
mov byte [0x40d821], bl
call fcn.00404b82
test al, al
jne 0x403642
xor al, al
jmp 0x40395c
call fcn.00401b37
test al, al
jne 0x403669
mov dl, 1
mov ecx, 0x420b
call fcn.00402684
test al, al
je 0x40363b
xor dl, dl
mov ecx, 0x40958c
call fcn.0040270c
jmp 0x40363b
call fcn.00404b45
test al, al
je 0x403680
xor dl, dl
mov ecx, 0x2730
call fcn.00402684
jmp 0x40363b
cmp dword [0x40d818], ebx
jne 0x40363b
push 0xff
lea eax, [esp + 0x74]
mov byte [0x40d16c], 1
push eax
push 0x2711
push dword [0x40d7f4]
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 [0x40da60]
add esp, 0xc
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], 0x4039a9
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, 0x40d770
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 0x403971
push 0
push ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], 0x40d80c
mov dword [esp + 0x3c], 0x40d840
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
mov eax, dword [esp + 0x24]
dec dword [0x40d77c]
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 [0x40d80c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, dword [0x40d778]
mov ebx, dword [0x40d77c]
sub edi, dword [0x40d770]
sub ebx, dword [0x40d774]
cmp byte [0x40da65], 0
mov dword [0x40d840], eax
je 0x40379c
call fcn.00403c0f
mov byte [esp + 0x13], 1
test al, al
jne 0x4037a1
mov byte [esp + 0x13], 0
push dword [0x40d840]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [0x40d80c]
call esi
cmp byte [esp + 0x13], 0
jne 0x4037f3
push 0x180
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
push 0x40cc0020
push dword [0x40d774]
push dword [0x40d770]
push dword [esp + 0x24]
push ebx
push edi
push 0
push 0
push dword [0x40d80c]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [0x40d80c]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
push edi
push dword [0x40d80c]
mov dword [0x40d7fc], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [0x40d7fc]
mov dword [0x40d800], 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 [0x40d7fc]
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov word [esp + 0x14], 0
call fcn.00402425
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 [0x40d80c]
push ebx
push edi
push eax
push eax
push dword [0x40d7fc]
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 [0x40da60]
push eax
push eax
push ebx
push edi
push dword [0x40d774]
lea eax, [esp + 0x8c]
push dword [0x40d770]
push 0x90000000
push eax
push str.OneNoteM.ScreenCapture
push 8
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x4038e0
call fcn.00403e53
jmp 0x40363b
push eax
mov dword [0x40d818], eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [0x40d818]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [0x40d818]
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 0x40d760
call dword [sym.imp.USER32.dll_SetRectEmpty]
push 0x100
push ebx
push ebx
push dword [0x40d818]
mov byte [0x40d780], bl
call dword [sym.imp.USER32.dll_RedrawWindow]
xor ecx, ecx
cmp byte [0x40da5c], cl
push ebx
push ebx
setne cl
xor dl, dl
push 1
push ebx
add ecx, 0x2726
call fcn.00402b62
mov al, 1
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407209
mov esp, ebp
pop ebp
ret