Function at 0x1003a740
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c29f
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x1005d040]
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 dword [ebp - 0x18c], ecx
push 0
mov dword [ebp - 0x180], 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 0x17c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
mov dword [ebp - 0x184], eax
call esi
mov ebx, eax
push 1
mov dword [ebp - 0x188], ebx
call esi
mov edi, eax
push edi
push ebx
push dword [ebp - 0x17c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp - 0x184]
mov dword [ebp - 0x180], eax
call ebx
push 0xcc0020
push 0
push 0
push dword [ebp - 0x17c]
mov esi, eax
push edi
push dword [ebp - 0x188]
mov edi, dword [ebp - 0x184]
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
push edi
call ebx
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x17c]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0
push eax
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jns 0x1003a857
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_create_stream
call fcn.10002080
push 0x100456c0
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 0x1003abe0
push 0x34
lea eax, [ebp - 0x50]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x50], vtable.ATL::CImage.0
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.10038d30
mov esi, eax
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [esi + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x178]
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 0x180]
push eax
push 0x54
push ebx
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp eax, 0x54
jne 0x1003a928
mov esi, dword [ebp - 0x158]
mov eax, esi
mov ecx, dword [ebp - 0x15c]
cdq
mov edi, eax
mov dword [ebp - 0x44], ecx
movzx eax, word [ebp - 0x152]
xor edi, edx
mov dword [ebp - 0x38], eax
sub edi, edx
imul eax, ecx
mov byte [ebp - 0x34], 1
mov dword [ebp - 0x40], edi
add eax, 0x1f
cdq
and edx, 0x1f
lea ecx, [edx + eax]
mov edx, dword [ebp - 0x164]
sar ecx, 5
shl ecx, 2
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x48], edx
test esi, esi
jle 0x1003a956
lea eax, [edi - 1]
imul eax, ecx
add eax, edx
neg ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], ecx
jmp 0x1003a956
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x40], eax
movzx eax, word [ebp - 0x166]
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], 0
push ecx
push dword [ebp - 0x11c]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x30], 0xffffffff
mov byte [ebp - 0x33], 0
call fcn.10038eb0
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x11c]
call dword [sym.imp.SHLWAPI.dll_IStream_Size]
push dword [ebp - 0x11c]
mov esi, dword [ebp - 0x58]
call dword [sym.imp.SHLWAPI.dll_IStream_Reset]
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push esi
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.10044600
push esi
mov byte [ebp - 4], 1
push dword [ebp - 0x1c]
push dword [ebp - 0x11c]
call dword [sym.imp.SHLWAPI.dll_IStream_Read]
mov eax, dword [ebp - 0x11c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0xc0
lea eax, [ebp - 0x118]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x118], 0x10055b60
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x108], 0x10055974
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x180], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char____]
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_fstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x11c], eax
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
lea ecx, [ebp - 0x100]
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 0xb8], 0
mov byte [ebp - 0xc3], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x1005ed1c]
mov ecx, dword [0x1005ed20]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xc8], 0
mov eax, dword [ebp - 0x18c]
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0xf
jbe 0x1003aabc
mov eax, dword [eax]
push ecx
push 0x22
push eax
lea ecx, [ebp - 0x100]
call fcn.10045480
test eax, eax
lea ecx, [ebp - 0x118]
mov eax, dword [ebp - 0x118]
push 0
je 0x1003aaea
add ecx, dword [eax + 4]
push 0
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
jmp 0x1003aaf5
add ecx, dword [eax + 4]
push 2
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
sub eax, ecx
push 0
push eax
push ecx
lea ecx, [ebp - 0x108]
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__::write_char_const___long_long___int64__]
lea ecx, [ebp - 0x100]
call fcn.100453f0
test eax, eax
jne 0x1003ab34
push eax
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x118]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call esi
lea ecx, [ebp - 0x118]
call fcn.1003ac00
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1003ab93
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1003ab74
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003ab74
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1004a23a
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x1003ab9d
push eax
call esi
call fcn.10038d30
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, eax
lea edi, [esi + 4]
push edi
call ebx
add dword [esi + 0x1c], 0xffffffff
jne 0x1003abd7
push edi
call ebx
mov eax, dword [esi]
test eax, eax
je 0x1003abc6
push eax
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov dword [esi], 0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call esi
jmp 0x1003abdd
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call esi
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.10049dfd
mov esp, ebp
pop ebp
ret