Function at 0x1400c9074
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 [0x1401e7e78]
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.14013b230
test rsi, rsi
je 0x1400c910d
mov r8d, 0x104
lea rcx, [rbp]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rcx, [rbp]
call fcn.140125bf4
mov rbx, rax
test rax, rax
je 0x1400c910d
lea rdx, [0x1401a4d20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
test rdi, rdi
je 0x1400c912c
mov rdx, rdi
lea rcx, [rbp]
call fcn.140069a74
test al, al
je 0x1400c912c
mov eax, 1
jmp 0x1400c9341
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.1400c9394
xor r12d, r12d
test eax, eax
je 0x1400c9341
mov edi, 1
mov rsi, qword [rsp + 0x48]
cmp word [rbp], r12w
jne 0x1400c9299
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.1400c9048
mov ebx, reloc.SHELL32.dll_ILGetSize
lea rcx, [rsp + 0x50]
mov r8d, ebx
xor edx, edx
call fcn.14013b230
mov dword [rsp + 0x50], ebx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [rsp + 0x48], r12d
mov rbx, rax
test rax, rax
je 0x1400c921b
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 [0x14021c5e0]
mov qword [rsp + 0x68], rax
cmove rcx, rbx
lea rax, [0x1401a4de8]
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 0x1400c9291
lea rcx, [rbp]
call fcn.140125bf4
mov rbx, rax
test rax, rax
jne 0x1400c9299
mov r14d, edi
jmp 0x1400c9331
mov r15d, dword [rsp + 0x40]
lea rcx, [rbp]
mov r8d, r15d
mov rdx, rsi
call fcn.140069904
test al, al
jne 0x1400c9291
test rsi, rsi
je 0x1400c933e
test r15d, r15d
je 0x1400c9331
test rbx, rbx
je 0x1400c9331
lea rdx, [0x1401a4d20]
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 0x1400c9331
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 0x1400c933e
mov rcx, rsi
call fcn.14012008c
mov eax, r14d
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140139b10
add rsp, 0x328
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret