Function at 0x401e10
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44055d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x44a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
cdq
sub eax, edx
mov edi, eax
push 1
sar edi, 1
call esi
cdq
lea ecx, [edi - 2]
sub eax, edx
mov dword [ebp - 0x24], ecx
sar eax, 1
add eax, 0xfffffffe
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
jne 0x401e91
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error:_Unable_to_get_device_context.
call fcn.004027e0
push 0x402a00
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x4020ea
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
jne 0x401ec8
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error:_Unable_to_create_compatible_device_context.
call fcn.004027e0
push 0x402a00
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push edi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x4020ea
push 4
push 4
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
test ebx, ebx
jne 0x401f0b
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error:_Unable_to_create_compatible_bitmap.
call fcn.004027e0
push 0x402a00
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x4020ea
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x401f40
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error:_Unable_to_select_object.
call fcn.004027e0
push 0x402a00
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x401ef6
push 0xcc0020
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
push edi
push 4
push 4
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x401f93
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error:_Unable_to_perform_BitBlt_operation.
call fcn.004027e0
push 0x402a00
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push dword [ebp - 0x20]
mov eax, dword [sym.imp.GDI32.dll_SelectObject]
push esi
call eax
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x401ef6
push dword [ebp - 0x20]
mov eax, dword [sym.imp.GDI32.dll_SelectObject]
push esi
call eax
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
push 0x40
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.0043f469
add esp, 4
mov dword [ebp - 0x1c], eax
lea esi, [eax + 0x40]
push 0x40
push 0
push eax
mov dword [ebp - 0x14], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
push dword [ebp - 0x1c]
push 0x40
push ebx
call dword [sym.imp.GDI32.dll_GetBitmapBits]
test eax, eax
jne 0x402035
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error:_Unable_to_get_bitmap_bits.
call fcn.004027e0
push 0x402a00
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4020b4
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub esi, edx
je 0x4020b7
mov edi, 0xfffffffe
lea ecx, [edx + 2]
sub edi, edx
cmp byte [ecx - 2], 0xa6
jbe 0x40206f
mov al, byte [ecx - 1]
sub al, 0x11
cmp al, 0xa6
ja 0x40206f
mov al, byte [ecx]
cmp al, 0xa6
jbe 0x40206f
movzx eax, al
cmp eax, 0x14e
jb 0x40207b
add ecx, 4
lea eax, [edi + ecx]
cmp eax, esi
jb 0x402050
jmp 0x4020b7
cmp byte [0x44a518], 0
je 0x4020b7
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0
call fcn.00402a30
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push 0
push 0
push 0
push 0x50
call esi
push 0
push 2
push 0
push 0x50
call esi
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x4020ea
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x4020e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4020e0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043f6ef
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043f45b
mov esp, ebp
pop ebp
ret