Function at 0x1400befc4
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x228]
sub rsp, 0x328
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rsi, qword [rbp + 0x2a0]
mov r12d, r8d
mov rdi, rdx
mov r15, rcx
xor r14d, r14d
lea rcx, [rbp]
and qword [rsp + 0x48], r14
xor edx, edx
and dword [rsp + 0x40], r14d
mov r8d, 0x20a
mov r13d, r9d
xor ebx, ebx
call fcn.14012d4b0
test rsi, rsi
je 0x1400bf05d
mov r8d, 0x104
lea rcx, [rbp]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rcx, [rbp]
call fcn.140118e88
mov rbx, rax
test rax, rax
je 0x1400bf05d
lea rdx, [0x1401b2570]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
test rdi, rdi
je 0x1400bf07c
mov rdx, rdi
lea rcx, [rbp]
call fcn.140064f38
test al, al
je 0x1400bf07c
mov eax, 1
jmp 0x1400bf291
mov al, byte [rbp + 0x2a8]
mov r8d, r13d
mov r9d, dword [rbp + 0x290]
mov edx, r12d
mov byte [rsp + 0x38], al
mov rcx, r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov eax, dword [rbp + 0x298]
mov dword [rsp + 0x20], eax
call fcn.1400bf2e4
xor r12d, r12d
test eax, eax
je 0x1400bf291
mov edi, 1
mov rsi, qword [rsp + 0x48]
cmp word [rbp], r12w
jne 0x1400bf1e9
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx r8d, word [rbp - 0x10]
mov eax, 0x51eb851f
movzx ecx, word [rbp - 4]
movzx r10d, word [rbp - 6]
movzx r11d, word [rbp - 8]
movzx ebx, word [rbp - 0xa]
movzx r9d, word [rbp - 0xe]
mul r8d
mov dword [rsp + 0x38], ecx
lea rcx, [rbp]
shr edx, 5
imul eax, edx, 0x64
lea rdx, str._02u_02u_02u_02u_02u_02u
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], ebx
sub r8d, eax
call fcn.1400bef98
mov ebx, reloc.SHELL32.dll_ILGetSize
lea rcx, [rsp + 0x50]
mov r8d, ebx
xor edx, edx
call fcn.14012d4b0
mov dword [rsp + 0x50], ebx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [rsp + 0x48], r12d
mov rbx, rax
test rax, rax
je 0x1400bf16b
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x48], eax
lea rax, str.PNG__.png_
mov rcx, qword [0x14022a9e8]
mov qword [rsp + 0x68], rax
cmove rcx, rbx
lea rax, [0x1401b2638]
mov qword [rsp + 0x58], rcx
mov qword [rbp - 0x48], rax
lea rcx, [rsp + 0x50]
lea rax, [rbp]
mov dword [rsp + 0x7c], edi
mov qword [rbp - 0x80], rax
lea rax, str.Save_screenshot
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x78], 0x105
mov dword [rbp - 0x50], 0x88080e
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x1400bf1e1
lea rcx, [rbp]
call fcn.140118e88
mov rbx, rax
test rax, rax
jne 0x1400bf1e9
mov r14d, edi
jmp 0x1400bf281
mov r15d, dword [rsp + 0x40]
lea rcx, [rbp]
mov r8d, r15d
mov rdx, rsi
call fcn.140064dc8
test al, al
jne 0x1400bf1e1
test rsi, rsi
je 0x1400bf28e
test r15d, r15d
je 0x1400bf281
test rbx, rbx
je 0x1400bf281
lea rdx, [0x1401b2570]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov qword [rsp + 0x30], r12
lea rcx, [rbp]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov r8d, edi
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400bf281
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], r12d
mov r8d, r15d
mov qword [rsp + 0x20], r12
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x1400bf28e
mov rcx, rsi
call fcn.140113e18
mov eax, r14d
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14012bda0
add rsp, 0x328
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret