Function at 0x140087080
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1030]
mov eax, 0x1130
call fcn.14024c240
sub rsp, rax
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x1170], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x1020], rax
mov r12, r9
mov esi, r8d
mov r13, rdx
mov r15, qword [rbp + 0x1090]
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_XCopyFileWithDstDirs
lea rcx, [rsp + 0x68]
call fcn.1400075a0
nop
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], esi
mov r9, r13
lea r8, str.lpSrc___s__cVer___d__lpcDriverName___s
mov edx, 1
lea rcx, [rsp + 0x68]
call fcn.140007780
xor r14d, r14d
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x58], r14
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xf0]
mov edi, eax
mov dword [rsp + 0x7c], eax
test r13, r13
jne 0x140087164
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r14 + 2]
lea rcx, [rsp + 0x68]
call fcn.140007780
nop
lea rcx, [rsp + 0x68]
call fcn.140007730
xor eax, eax
jmp 0x1400877dd
cmp esi, 0x400
cmove esi, r14d
test esi, esi
je 0x140087174
dec esi
mov word [rbp + 0x1b0], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1b2]
call fcn.14024b970
mov dword [rsp + 0x78], 0x208
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
lea rdx, str.mscms.dll
call qword [rax + 0x20]
test rax, rax
je 0x140087219
lea rdx, str.GetColorDirectoryW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140087219
lea r8, [rsp + 0x78]
lea rdx, [rbp + 0x1b0]
xor ecx, ecx
call rax
test eax, eax
je 0x140087219
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140087219
xor edx, edx
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140087219
lea r9, [rbp + 0x1b0]
lea r8, str._t_t_t_s_Failed_Create_Color_Directory.
lea edx, [rax + 7]
lea rcx, [rsp + 0x68]
call fcn.140007780
mov word [rbp - 0x70], r14w
xor eax, eax
mov qword [rbp - 0x6e], rax
mov dword [rbp - 0x66], eax
mov word [rbp - 0x62], ax
mov word [rbp - 0x60], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x5e]
call fcn.14024b970
mov word [rbp + 0x9f0], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x9f2]
call fcn.14024b970
or ebx, 0xffffffff
test edi, edi
cmovne ebx, r14d
nop word [rax + rax]
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rdi, qword [rax]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], ebx
lea rcx, [rbp + 0x7e0]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0xe10]
mov r8d, esi
mov rdx, r12
mov rcx, rax
call qword [rdi + 0x328]
test eax, eax
jne 0x1400872e8
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rdi, qword [rax]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x60]
mov r8, r12
lea rdx, [rbp + 0x7e0]
mov rcx, rax
call qword [rdi + 0x130]
test eax, eax
je 0x1400872f8
inc ebx
cmp ebx, 2
jge 0x1400877b2
jmp 0x140087270
mov rdx, r13
lea rcx, [rbp + 0xc00]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbp + 0xc00]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
xor esi, esi
cmp dword [rsp + 0x60], esi
jbe 0x1400877b2
mov r13d, r14d
imul r13, r13, 0x410
mov rax, qword [rsp + 0x58]
lea r9, [r13 + rax]
lea rax, [r9 + 0x208]
mov qword [rsp + 0x20], rax
lea r8, str._t_t_t_s____s_.
mov edx, 7
lea rcx, [rsp + 0x68]
call fcn.140007780
mov rdx, qword [rsp + 0x58]
lea rcx, [r13 + rdx]
lea rdx, [0x1402dc4e0]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x14008739a
mov rax, qword [rsp + 0x58]
lea r9, [r13 + rax + 0x208]
lea r8, str._t_t_t_s_is_not_registered_with_DestinationDirs.
mov edx, 7
lea rcx, [rsp + 0x68]
call fcn.140007780
jmp 0x14008773e
lea rdx, [rbp + 0xc00]
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [rsp + 0x7c], 0
jbe 0x1400876b6
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0x104
lea r9, [rbp - 0x60]
mov r8d, 8
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x7e0]
call fcn.140247424
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x60]
lea r8, [rbp - 0x70]
mov edx, 0x104
lea rcx, [rbp + 0x9f0]
call fcn.140248e70
call fcn.140102a14
mov ecx, esi
test rax, rax
setne cl
test ecx, ecx
je 0x14008776e
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
lea rcx, [rbp - 0x60]
lea rax, [rbp - 0x60]
test rax, 0xffffffffffff0000
jne 0x140087477
movzx edi, cx
mov ecx, edi
call fcn.1401027e8
test rax, rax
je 0x14008755d
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140005b00
mov rbx, qword [rsp + 0x50]
jmp 0x14008755d
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x60]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x1400874e5
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14008755d
cmp dword [rdx + 0x10], eax
jge 0x1400874ba
cmp dword [rbx - 0xc], eax
jl 0x14008774d
mov dword [rbx - 0x10], esi
mov word [rbx], si
jmp 0x14008755d
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400874d1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
jmp 0x14008755d
mov r12d, dword [rbx - 0x10]
lea rsi, [rbp - 0x60]
sub rsi, rbx
sar rsi, 1
test ecx, ecx
js 0x140087763
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14008751d
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140005e40
mov rbx, qword [rsp + 0x50]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x140087541
lea r8, [rbx + rsi*2]
call fcn.1402457b4
jmp 0x14008754a
lea r8, [rbp - 0x60]
call fcn.1402471ac
cmp edi, dword [rbx - 0xc]
jg 0x140087758
mov dword [rbx - 0x10], edi
xor esi, esi
mov word [r12 + rbx], si
mov edx, 0x5c
mov rcx, rbx
call fcn.140249468
test rax, rax
jne 0x140087574
or eax, 0xffffffff
jmp 0x14008757a
sub rax, rbx
sar rax, 1
mov r8d, 1
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.14003fdd0
mov edx, 0x5c
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call fcn.140249468
test rax, rax
jne 0x1400875a8
or eax, 0xffffffff
jmp 0x1400875ae
sub rax, rdi
sar rax, 1
mov r8d, eax
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x50]
call fcn.1400475a0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x14008761a
cmp dword [rdi + 0x10], 0
jl 0x14008760b
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14008760b
call fcn.140006190
mov rbx, rax
or ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140087600
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x50], rax
jmp 0x14008761a
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140005d50
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140087639
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x50]
cmp dword [rdi - 0x10], 0
jg 0x140087649
or eax, 0xffffffff
jmp 0x140087666
mov edx, 0x5c
mov rcx, rdi
call fcn.140247344
test rax, rax
jne 0x140087660
or eax, 0xffffffff
jmp 0x140087666
sub rax, rdi
sar rax, 1
mov r8d, 1
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.14003fdd0
mov rdi, qword [rsp + 0x50]
mov rdx, rdi
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
nop
lea rdx, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400876b6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsp + 0x58]
lea rdx, [r13 + rax + 0x208]
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp + 0x5d0]
test r15, r15
jne 0x1400876e8
mov rax, qword [rsp + 0x58]
lea rdx, [r13 + rax]
jmp 0x1400876eb
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbp + 0x5d0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov rdx, qword [rsp + 0x58]
lea rdx, [r13 + rdx + 0x208]
lea rcx, [rbp + 0x5d0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xor r8d, r8d
lea rdx, [rbp + 0x5d0]
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14008773e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
je 0x140087779
inc r14d
cmp r14d, dword [rsp + 0x60]
jae 0x1400877b2
jmp 0x140087321
mov ecx, 0x80070057
call fcn.140005210
int3
mov ecx, 0x80070057
call fcn.140005210
int3
mov ecx, 0x80070057
call fcn.140005210
nop
mov ecx, 0x80004005
call fcn.140005210
int3
mov rcx, qword [0x1403b9770]
mov rax, qword [rcx]
mov edx, 0xa4
call qword [rax + 0x18]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x68]
call fcn.140007780
nop
lea rcx, [rsp + 0x68]
call fcn.140007730
xor eax, eax
jmp 0x1400877dd
mov r9d, 1
lea r8, str.return___08x
lea edx, [r9 + 1]
lea rcx, [rsp + 0x68]
call fcn.140007780
nop
lea rcx, [rsp + 0x68]
call fcn.140007730
mov eax, 1
mov rcx, qword [rbp + 0x1020]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x1170]
add rsp, 0x1130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret