Function at 0x41c1f0
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
mov r11, rsp
sub rsp, 0x248
mov qword [rsp + 0x128], 0xfffffffffffffffe
mov qword [r11 - 8], rbx
mov qword [r11 - 0x10], rsi
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
mov qword [r11 - 0x30], r14
mov qword [r11 - 0x38], r15
mov r15, r9
mov rsi, r8
xor r12d, r12d
mov dword [rsp + 0x58], r12d
mov qword [0x005eace8], r12
mov dword [0x005eacf0], r12d
mov dword [0x005eacf4], r12d
xor eax, eax
mov byte [r11 + 0x20], al
lea r8, [r11 + 0x20]
lea rdx, [0x005610a8]
lea rcx, [r11 - 0x58]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
nop
xor eax, eax
mov byte [rsp + 0x50], al
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x108]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const____ptr64____ptr64]
nop
test r15, r15
jne 0x41c317
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r15, rax
test rax, rax
jne 0x41c317
mov byte [rsp + 0x268], al
lea r8, [rsp + 0x268]
lea rdx, str.no_foreground_window
lea rcx, [rsp + 0xa8]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x130]
call qword [sym.imp.msvcrt.dll_public:_void___cdecl_exception::constructor_void____ptr64]
nop
lea rax, [0x00562e50]
mov qword [rsp + 0x130], rax
mov dword [rsp + 0x148], r12d
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x150]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
nop
lea rdx, [0x005c54a8]
lea rcx, [rsp + 0x130]
call sub.msvcrt.dll__CxxThrowException
nop
mov rcx, r15
call fcn.0041bba0
test al, al
je 0x41c32c
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov r15, rax
mov ecx, 0x18
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov r13, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x41c380
mov rcx, r15
call qword [sym.imp.USER32.dll_GetWindowDC]
mov qword [r13], rax
mov byte [r13 + 8], 0
mov qword [r13 + 0x10], r15
mov rcx, r13
call fcn.0042d300
test al, al
jne 0x41c383
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x64], eax
lea rdx, [0x005c5448]
lea rcx, [rsp + 0x64]
call sub.msvcrt.dll__CxxThrowException
mov r13, r12
test r13, r13
setne byte [rsp + 0xa8]
mov qword [rsp + 0xb0], r13
mov ecx, 0x18
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov r14, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x41c3ea
mov rcx, qword [r13]
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov qword [r14], rax
mov byte [r14 + 8], 1
mov qword [r14 + 0x10], r12
mov rcx, r14
call fcn.0042d300
test al, al
jne 0x41c3ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x5c], eax
lea rdx, [0x005c5448]
lea rcx, [rsp + 0x5c]
call sub.msvcrt.dll__CxxThrowException
mov r14, r12
test r14, r14
setne byte [rsp + 0xf8]
mov qword [rsp + 0x100], r14
lea rdx, [rsp + 0x98]
mov rcx, r15
call qword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [rsp + 0xa0]
sub edi, dword [rsp + 0x98]
mov dword [rsp + 0x60], edi
mov ebx, dword [rsp + 0xa4]
sub ebx, dword [rsp + 0x9c]
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x7c], r12d
mov dword [rsp + 0x80], r12d
mov dword [rsp + 0x84], r12d
mov rdx, qword [rsi + 8]
test rdx, rdx
cmove rdx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x78]
mov r8d, dword [rsi + 0x10]
mov rcx, qword [r14]
call qword [sym.imp.USER32.dll_DrawTextA]
mov esi, gethostbyname
cmp eax, 0xc8
cmovbe esi, eax
add esi, ebx
mov dword [rsp + 0x54], esi
mov r8d, esi
mov edx, edi
mov rcx, qword [r13]
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov qword [rsp + 0x78], rax
mov rdx, rax
mov rcx, qword [r14]
call qword [sym.imp.GDI32.dll_SelectObject]
mov r12, rax
mov rdx, qword [r13]
mov dword [rsp + 0x40], 0xcc0020
xor eax, eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], ebx
mov r9d, edi
xor r8d, r8d
xor edx, edx
mov rcx, qword [r14]
call qword [sym.imp.GDI32.dll_BitBlt]
mov dword [rsp + 0x68], 0
lea ecx, [rbx + 1]
mov dword [rsp + 0x6c], ecx
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x74], esi
mov rsi, qword [r14]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SetBkColor]
mov edi, eax
mov edx, 0xffffff
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SetTextColor]
mov ebx, eax
mov ecx, 4
call qword [sym.imp.GDI32.dll_GetStockObject]
mov r8, rax
lea rdx, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.USER32.dll_FillRect]
mov rax, qword [rsp + 0x260]
mov rdx, qword [rax + 8]
test rdx, rdx
cmove rdx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, dword [rax + 0x10]
mov rcx, rsi
call qword [sym.imp.USER32.dll_DrawTextA]
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SetTextColor]
mov edx, edi
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SetBkColor]
mov rdx, r12
mov rcx, qword [r14]
call qword [sym.imp.GDI32.dll_SelectObject]
xor edx, edx
lea r8d, [rdx + 0x28]
lea rcx, [rsp + 0xc8]
call sub.msvcrt.dll_memset
mov dword [rsp + 0xc8], 0x28
mov edi, dword [rsp + 0x60]
mov dword [rsp + 0xcc], edi
mov esi, dword [rsp + 0x54]
mov dword [rsp + 0xd0], esi
mov word [rsp + 0xd4], 1
mov word [rsp + 0xd6], 0x18
xor ecx, ecx
mov dword [rsp + 0xd8], ecx
mov dword [rsp + 0x30], ecx
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9d, esi
xor r8d, r8d
mov r12, qword [rsp + 0x78]
mov rdx, r12
mov rcx, qword [r14]
call qword [sym.imp.GDI32.dll_GetDIBits]
xor r11d, r11d
mov byte [rsp + 0x51], r11b
mov edx, dword [rsp + 0xdc]
lea r9, [rsp + 0x51]
xor r8d, r8d
lea rcx, [rsp + 0x78]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_unsigned_long_long_unsigned___int64___char__class_std::allocator_char__const____ptr64____ptr64]
nop
mov rdx, rax
lea rcx, [rsp + 0x108]
call qword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rbx, qword [r14]
xor edx, edx
lea rcx, [rsp + 0x108]
call qword [sym.imp.msvcp60.dll_public:_char____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0xc8]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xd0]
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.GDI32.dll_GetDIBits]
mov rcx, r12
call qword [sym.imp.GDI32.dll_DeleteObject]
nop
cmp byte [rsp + 0xf8], 0
je 0x41c6be
cmp byte [r14 + 8], 0
je 0x41c6a8
mov rcx, qword [r14]
call qword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x41c6b5
mov rdx, qword [r14]
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, r14
call fcn.00442df0
nop
cmp byte [rsp + 0xa8], 0
je 0x41c6f2
cmp byte [r13 + 8], 0
je 0x41c6db
mov rcx, qword [r13]
call qword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x41c6e9
mov rdx, qword [r13]
mov rcx, qword [r13 + 0x10]
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, r13
call fcn.00442df0
nop
cmp qword [rsp + 0x118], 0
jne 0x41c779
xor eax, eax
mov byte [rsp + 0x268], al
lea r8, [rsp + 0x268]
lea rdx, str.empty_screenshot
lea rcx, [rsp + 0xa8]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x170]
call qword [sym.imp.msvcrt.dll_public:_void___cdecl_exception::constructor_void____ptr64]
nop
lea rax, [0x00562e50]
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x188], 0
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x190]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
nop
lea rdx, [0x005c54a8]
lea rcx, [rsp + 0x170]
call sub.msvcrt.dll__CxxThrowException
nop
mov qword [0x005eace8], r15
mov dword [0x005eacf0], edi
mov dword [0x005eacf4], esi
mov rax, qword [rsp + 0x260]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9d, esi
lea r8, [rsp + 0x108]
mov edx, dword [rsp + 0x258]
mov rbx, qword [rsp + 0x250]
mov rcx, rbx
call fcn.0041be10
nop
mov dword [rsp + 0x58], 1
lea rcx, [rsp + 0x108]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x1f0]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rax, rbx
mov rbx, qword [rsp + 0x240]
mov rsi, qword [rsp + 0x238]
mov rdi, qword [rsp + 0x230]
mov r12, qword [rsp + 0x228]
mov r13, qword [rsp + 0x220]
mov r14, qword [rsp + 0x218]
mov r15, qword [rsp + 0x210]
add rsp, 0x248
ret