Function at 0x18004acd0
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x350
mov qword [rsp + 0xe8], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x180101090]
xor rax, rsp
mov qword [rsp + 0x330], rax
mov rbp, rcx
call fcn.18004a9c0
mov rcx, rbp
call fcn.18004aa90
test eax, eax
jne 0x18004b1d6
mov r8, rbp
lea rdx, str.Scrnwatermark_to_file__s
lea rcx, str.athenwDbg
call fcn.18005c640
xor r15d, r15d
cmp dword [0x18010d9e8], r15d
jne 0x18004ad81
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x70], r15d
mov dword [rsp + 0x74], r15d
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xc8]
call sub.gdiplus.dll_GdiplusStartup
mov dword [0x18010d9e8], 1
mov word [rsp + 0x120], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x122]
call fcn.18009e990
lea rdx, [rsp + 0x120]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov rdi, rax
call fcn.180051898
mov r8d, eax
mov r9, rdi
lea rdx, str._08X_s
lea rcx, [rsp + 0xf0]
call fcn.180053a60
cmp qword [rax + 0x20], 8
jb 0x18004adea
mov rdx, qword [rax + 8]
jmp 0x18004adee
lea rdx, [rax + 8]
lea rcx, [rsp + 0x120]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp qword [rsp + 0x110], 8
jb 0x18004ae14
mov rcx, qword [rsp + 0xf8]
call fcn.18009a864
xor r8d, r8d
lea rdx, [rsp + 0x120]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rcx, [rsp + 0x120]
call fcn.18008e324
mov rsi, rax
test rax, rax
jne 0x18004ae55
lea rdx, str.ScrnCapWm_to_Bitmap_get_raw_size_fail_
lea rcx, str.athenwDbg
call fcn.18005c640
jmp 0x18004b1c8
mov dword [rsp + 0x30], r15d
lea rdx, [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x18004ae6f
mov dword [rsi + 0x10], eax
mov dword [rsp + 0x38], r15d
lea rdx, [rsp + 0x38]
mov rcx, qword [rsi + 8]
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x18004ae89
mov dword [rsi + 0x10], eax
mov r8d, dword [rsp + 0x38]
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.180049fe0
nop
cmp qword [rsp + 0x48], 0
jne 0x18004aefe
lea rdx, str._MakeWatermarkImage_failed
lea rcx, str.athenwDbg
call fcn.18005c640
nop
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x18004b1bb
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rdi + 0x10], eax
add eax, ebx
jne 0x18004b1bb
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0x14], ebx
add ebx, 0xffffffff
jne 0x18004b1bb
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
jmp 0x18004b1bb
mov qword [rsp + 0x40], r15
lea rdx, [rsp + 0x40]
mov rcx, qword [rsi + 8]
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov r14d, eax
mov r12, qword [rsp + 0x40]
mov qword [rsp + 0xd0], r12
mov rbx, qword [rsp + 0x48]
mov dword [rsp + 0x34], r15d
lea rdx, [rsp + 0x34]
mov rcx, qword [rbx + 8]
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x18004af40
mov dword [rbx + 0x10], eax
mov r13d, dword [rsp + 0x34]
mov dword [rsp + 0x3c], r15d
lea rdx, [rsp + 0x3c]
mov rcx, qword [rbx + 8]
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x18004af5f
mov dword [rbx + 0x10], eax
mov edi, dword [rsp + 0x3c]
mov qword [rsp + 0x58], r15
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, qword [rbx + 8]
call sub.gdiplus.dll_GdipCreateTexture
mov rbx, qword [rsp + 0x58]
xor r9d, r9d
xorps xmm6, xmm6
movaps xmm2, xmm6
movaps xmm1, xmm6
mov rcx, rbx
call sub.gdiplus.dll_GdipTranslateTextureTransform
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
call sub.gdiplus.dll_GdipFillRectangleI
test eax, eax
cmovne r14d, eax
mov dword [rsp + 0xd8], r14d
subss xmm6, xmm6
xor r9d, r9d
movaps xmm2, xmm6
movaps xmm1, xmm6
mov rcx, rbx
call sub.gdiplus.dll_GdipTranslateTextureTransform
mov rcx, rbx
call sub.gdiplus.dll_GdipDeleteBrush
mov r8d, 0x64
lea rdx, [rsp + 0x120]
mov rcx, rsi
call fcn.18008e574
test eax, eax
je 0x18004b063
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [rsp + 0x120]
lea rdx, str.save_wmimage_to_file__s_err__d
lea rcx, str.athenwDbg
call fcn.18005c640
nop
mov rcx, r12
call sub.gdiplus.dll_GdipDeleteGraphics
nop
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x18004b1bb
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rdi + 0x10], eax
add eax, ebx
jne 0x18004b1bb
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0x14], ebx
add ebx, 0xffffffff
jne 0x18004b1bb
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
jmp 0x18004b1bb
xor r8d, r8d
mov rdx, rbp
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea r13, [0x180108a10]
mov qword [rsp + 0xe0], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], r15
mov word [rsp + 0x80], r15w
xor eax, eax
or rbx, 0xffffffffffffffff
mov rcx, rbx
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbp
lea rcx, [rsp + 0x78]
call fcn.18000f510
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0xa0]
call fcn.180012880
mov rbp, rax
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetTickCount64
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18004b10f
call rax
mov rdi, rax
jmp 0x18004b117
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov rdx, rbp
lea rcx, [0x18010cef0]
call fcn.18000d650
mov qword [rax], rdi
cmp qword [rsp + 0xc0], 8
jb 0x18004b141
mov rcx, qword [rsp + 0xa8]
call fcn.18009a864
mov qword [rsp + 0xc0], 7
mov qword [rsp + 0xb8], r15
mov word [rsp + 0xa8], r15w
cmp qword [rsp + 0x98], 8
jb 0x18004b177
mov rcx, qword [rsp + 0x80]
call fcn.18009a864
nop
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, r12
call sub.gdiplus.dll_GdipDeleteGraphics
nop
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x18004b1bb
mov eax, ebx
lock xadd dword [rdi + 0x10], eax
add eax, 0xffffffff
jne 0x18004b1bb
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0x14], ebx
add ebx, 0xffffffff
jne 0x18004b1bb
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
call fcn.180099fe0
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret