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

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1030]
mov eax, 0x1130
call fcn.1401b39e0
sub rsp, rax
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x1168], rbx
mov qword [rsp + 0x1170], rsi
mov qword [rsp + 0x1178], rdi
mov rax, qword [0x1402a87a8]
xor rax, rsp
mov qword [rbp + 0x1020], rax
mov rsi, rcx
mov qword [rbp - 0x48], rcx
mov eax, dword [0x1403a0018]
mov dword [rsp + 0x6c], eax
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x9f0]
call fcn.1401b8ea0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xc00]
call fcn.1401b8ea0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x7e0]
call fcn.1401b8ea0
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x20]
call fcn.1401b8ea0
call qword [sym.imp.WINMM.dll_timeGetTime]
mov edi, eax
mov dword [rsp + 0x68], eax
mov dword [rsi + 0x24], 3
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
lea rdx, [rbp - 0x40]
mov rcx, rsi
call fcn.140008820
mov r12d, dword [rbp - 0x38]
mov r15d, dword [rbp - 0x34]
sub r15d, dword [rbp - 0x3c]
sub r12d, dword [rbp - 0x40]
je 0x140013bda
test r15d, r15d
je 0x140013bda
call qword [sym.imp.WINMM.dll_timeGetTime]
sub eax, edi
mov r9d, eax
lea r8, str._SetCaptureSource_...__lu__r_n
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.1400033e0
lea rcx, [rbp - 0x20]
call fcn.14001f8d0
lea rax, [rbp + 0x7e0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x1400134f9
lea r8, [0x1402650f0]
mov edx, 0x104
lea rcx, [rbp + 0x7e0]
call fcn.1401c573c
call fcn.1401c39b0
mov ebx, eax
cmp word [0x1403c0c10], 0
jne 0x140013523
lea r9, [0x1403c0c10]
mov r8d, eax
xor edx, edx
lea rcx, [rbp + 0x7e0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea r8d, [rbx + 0xa]
lea r9, [rbp + 0x9f0]
lea rdx, [0x140260f70]
lea rcx, [rbp + 0x7e0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea r8d, [rbx + 0x14]
lea r9, [rbp + 0xc00]
lea rdx, [0x140260f70]
lea rcx, [rbp + 0x7e0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rcx, [0x1403c0c10]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp + 0x9f0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp + 0xc00]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x7c], r15d
sub r12d, dword [rsp + 0x70]
sub r15d, dword [rsp + 0x74]
mov r13d, r15d
imul r13d, r12d
shl r13d, 2
mov ecx, r13d
call fcn.14003159c
mov r14, rax
mov r8d, r13d
xor edx, edx
mov rcx, rax
call fcn.1401b8ea0
cmp qword [0x1403be3e0], 0
jne 0x14001362b
lea rbx, [0x1403be3e0]
mov qword [rsp + 0x20], rbx
lea r9, [0x1402505a0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1401f9d60]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x14001362b
mov qword [rsp + 0x20], rbx
lea r9, [0x1402505a0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1401f9d50]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x14001362b
lea r8, str.Dxgi_Access_failed_on_1st...
jmp 0x140013be7
call qword [sym.imp.WINMM.dll_timeGetTime]
sub eax, edi
mov r9d, eax
lea r8, str._Dxgi_...__lu_
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.1400033e0
lea rcx, [rbp - 0x20]
call fcn.14001f8d0
xor edi, edi
nop word [rax + rax]
lea r8, [rsp + 0x70]
mov rdx, r14
mov rcx, rsi
call fcn.140008930
mov ebx, eax
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, reloc.OLEAUT32.dll_SetErrorInfo
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
test ebx, ebx
jns 0x14001368e
cmp edi, 0x14
jl 0x140013660
call qword [sym.imp.WINMM.dll_timeGetTime]
mov qword [rsp + 0x50], 0
mov rcx, qword [0x1403be3e0]
mov r10, qword [rcx]
lea eax, [r12*4]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], eax
lea r9, [0x1401f9d80]
mov r8d, r15d
mov edx, r12d
call qword [r10 + LoadRegTypeLib]
test eax, eax
jns 0x140013717
lea r8, str.Read_Bitmap_failed...
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.1400033e0
lea rcx, [rbp - 0x20]
call fcn.14001f8d0
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140013bff
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140013bff
call qword [sym.imp.WINMM.dll_timeGetTime]
xor r13d, r13d
mov qword [rsp + 0x60], r13
mov rcx, qword [0x1403be3e0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
call qword [rax + VarBstrFromDisp]
mov ebx, eax
call qword [sym.imp.WINMM.dll_timeGetTime]
test ebx, ebx
js 0x14001375d
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov r8d, 0x40000000
lea rdx, [0x1403c0c10]
call qword [rax + 0x78]
mov ebx, eax
call qword [sym.imp.WINMM.dll_timeGetTime]
mov qword [rsp + 0x48], r13
test ebx, ebx
js 0x1400137a6
mov rcx, qword [0x1403be3e0]
mov rax, qword [rcx]
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [0x1401f9d70]
call qword [rax + 0x40]
mov ebx, eax
test eax, eax
js 0x1400137a6
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov r8d, 2
mov rdx, qword [rsp + 0x60]
call qword [rax + 0x18]
mov ebx, eax
call qword [sym.imp.WINMM.dll_timeGetTime]
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x58], r13
test ebx, ebx
js 0x1400137d1
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x40]
call qword [rax + 0x50]
mov ebx, eax
mov edi, dword [0x1403b2d24]
test ebx, ebx
js 0x140013860
mov qword [rbp - 0x6a], r13
mov word [rbp - 0x62], r13w
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x58], xmm0
mov dword [rbp - 0x70], 1
mov ebx, 4
mov word [rbp - 0x6c], bx
lea rax, str.ImageQuality
mov qword [rbp - 0x60], rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov word [rsp + 0x70], bx
xorps xmm0, xmm0
cvtsi2sd xmm0, rdi
divsd xmm0, qword [0x140268928]
cvtpd2ps xmm0, xmm0
movss dword [rsp + 0x78], xmm0
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea r9, [rsp + 0x70]
lea r8, [rbp - 0x70]
lea edx, [rbx - 3]
call qword [rax + 0x20]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x58]
call qword [rax + 0x18]
mov ebx, eax
jmp 0x14001387e
lea r8, str.New_Frame_failed..._r_n
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.1400033e0
lea rcx, [rbp - 0x20]
call fcn.14001f8d0
call qword [sym.imp.WINMM.dll_timeGetTime]
test ebx, ebx
js 0x14001389b
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov r8d, r15d
mov edx, r12d
call qword [rax + 0x20]
jmp 0x1400138b9
lea r8, str.Propbag_init_failed..._r_n
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.1400033e0
lea rcx, [rbp - 0x20]
call fcn.14001f8d0
call qword [sym.imp.WINMM.dll_timeGetTime]
xor eax, eax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
lea rdx, [rbp - 0x30]
call qword [rax + 0x20]
mov ebx, eax
test eax, eax
js 0x1400138f1
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
lea rdx, [rbp - 0x30]
call qword [rax + 0x30]
mov ebx, eax
jmp 0x14001390f
lea r8, str.GetPixelFormat_failed..._r_n
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.1400033e0
lea rcx, [rbp - 0x20]
call fcn.14001f8d0
call qword [sym.imp.WINMM.dll_timeGetTime]
test ebx, ebx
js 0x140013930
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
call qword [rax + 0x58]
mov ebx, eax
jmp 0x14001394e
lea r8, str.SetPixelFormat_failed..._r_n
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.1400033e0
lea rcx, [rbp - 0x20]
call fcn.14001f8d0
call qword [sym.imp.WINMM.dll_timeGetTime]
test ebx, ebx
js 0x140013967
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x60]
mov ebx, eax
jmp 0x140013985
lea r8, str.WriteSource_failed..._r_n
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.1400033e0
lea rcx, [rbp - 0x20]
call fcn.14001f8d0
call qword [sym.imp.WINMM.dll_timeGetTime]
test ebx, ebx
js 0x14001399e
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x58]
mov ebx, eax
jmp 0x1400139bc
lea r8, str.Frame_Commit_failed..._r_n
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.1400033e0
lea rcx, [rbp - 0x20]
call fcn.14001f8d0
call qword [sym.imp.WINMM.dll_timeGetTime]
mov rcx, r14
call fcn.140031594
test ebx, ebx
jns 0x140013a39
lea r8, str.Encode_Commit_failed..._r_n
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.1400033e0
lea rcx, [rbp - 0x20]
call fcn.14001f8d0
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400139fe
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140013a0f
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140013a20
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400136fe
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x1400136fe
call qword [sym.imp.WINMM.dll_timeGetTime]
movsd xmm0, qword [str.DX11]
movsd qword [rbp + 0xe10], xmm0
movzx eax, word [0x140265480]
mov word [rbp + 0xe18], ax
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0xe1a]
call fcn.1401b8ea0
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, dword [rsp + 0x68]
sub eax, ebx
mov r8d, eax
lea rdx, str._Mon_1__DX11__lu_
lea rcx, [rbp + 0xe10]
call fcn.140003350
xor r8d, r8d
lea rdx, [rbp + 0x9f0]
lea rcx, [0x1403c0c10]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140013acc
lea r8, str.CopyFile_failed..._r_n
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.1400033e0
lea rcx, [rbp - 0x20]
call fcn.14001f8d0
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r8d, r8d
lea rdx, [rbp + 0xc00]
lea rcx, [rbp + 0x9f0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rax, [rbp + 0xe10]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x20], eax
lea r8, [rbp - 0x20]
lea rcx, [rbp + 0xc00]
call fcn.140013c40
test eax, eax
jne 0x140013b28
lea r8, str.Adding_compressed_image_failed..._r_n
jmp 0x1400139d5
call qword [sym.imp.WINMM.dll_timeGetTime]
sub eax, ebx
mov r9d, eax
lea r8, str.compressed_...__lu__r_n
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.1400033e0
lea rcx, [rbp - 0x20]
call fcn.14001f8d0
lea rcx, [0x1403c0c10]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp + 0x9f0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp + 0xc00]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140013b8a
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140013b9b
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140013bac
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140013bbd
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140013bce
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, rsi
call fcn.140007f70
mov al, 1
jmp 0x140013c09
dec dword [0x1403bb014]
lea r8, str.Output_Access_failed..._r_n
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.1400033e0
lea rcx, [rbp - 0x20]
call fcn.14001f8d0
nop
mov rcx, rsi
call fcn.140007f70
xor al, al
mov rcx, qword [rbp + 0x1020]
xor rcx, rsp
call fcn.1401b2ef0
lea r11, [rsp + 0x1130]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret