Function at 0x140002440
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor r13d, r13d
mov dword [rbp - 0x48], 1
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], r13
xor r8d, r8d
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x50]
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov r15, rax
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r14, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
lea ecx, [r13 + 1]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
mov r8d, eax
mov edx, edi
mov rcx, r15
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rsi, rax
mov rdx, rax
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov r12, rax
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], ebx
mov r9d, edi
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.GDI32.dll_BitBlt]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov qword [rbp - 0x58], rax
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
lea r9, [rbp - 0x30]
lea r8, str.screenshot__Y_m_d__H_M_S.bmp
lea edx, [r13 + 0x64]
lea rcx, [rbp]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
lea rax, [rbp]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], r13b
jne 0x140002560
lea rdx, [rbp]
lea rcx, [rsp + 0x68]
call fcn.1400032d0
nop
lea r8, [rsp + 0x68]
cmp qword [rbp - 0x80], 0xf
cmova r8, qword [rsp + 0x68]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
mov r8, rbx
lea rcx, [rbp - 0x78]
call fcn.140003050
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 7
cmova rdx, qword [rbp - 0x78]
lea r8, [rsp + 0x68]
cmp qword [rbp - 0x80], 0xf
cmova r8, qword [rsp + 0x68]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdx
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x140002639
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002634
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002634
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000429c
lea rdi, [rbp - 0x78]
cmp qword [rbp - 0x60], 7
cmova rdi, qword [rbp - 0x78]
mov qword [rsp + 0x58], r13
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
mov dword [rsp + 0x60], r13d
mov dword [rsp + 0x50], r13d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call qword [sym.imp.gdiplus.dll_GdipGetImageEncodersSize]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14000270d
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14000270d
mov r8, rax
mov edx, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.gdiplus.dll_GdipGetImageEncoders]
mov r8d, r13d
mov r10d, dword [rsp + 0x60]
test r10d, r10d
je 0x140002704
lea r11, str.image_bmp
nop word [rax + rax]
mov eax, r8d
imul r9, rax, 0x68
mov rdx, qword [r9 + rbx + 0x40]
mov rax, r13
nop
movzx ecx, word [rdx + rax*2]
cmp cx, word [r11 + rax*2]
jne 0x14000279f
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r11 + rax*2 + 2]
jne 0x14000279f
add rax, 2
cmp rax, 0xa
jne 0x1400026d0
movups xmm0, xmmword [r9 + rbx]
movups xmmword [rsp + 0x68], xmm0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r9d, r9d
lea r8, [rsp + 0x68]
mov rdx, rdi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.gdiplus.dll_GdipSaveImageToFile]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.gdiplus.dll_GdipDisposeImage]
mov rdx, r12
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov rdx, qword [rbp - 0x60]
cmp rdx, 7
jbe 0x1400027b5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400027b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400027b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
inc r8d
cmp r8d, r10d
jb 0x1400026c0
jmp 0x140002704
call fcn.14000429c
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140004240
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret