Function at 0x14000d3e0
Capabilities:
Check if file exists
Copy file
Create directory
Get file attributes
Set file attributes

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x568]
sub rsp, 0x668
mov rax, qword [0x1400d33c0]
xor rax, rsp
mov qword [rbp + 0x550], rax
xor r13d, r13d
cmp qword [rcx + 0x10], 0x104
movzx r15d, r8b
mov r12, rdx
mov rbx, rcx
mov edi, r13d
mov dword [rsp + 0x34], r13d
jae 0x14000d9f6
cmp qword [rdx + 0x10], 0x104
jae 0x14000d9f6
lea rcx, [rbp - 0x50]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov qword [rsp + 0x6b0], rsi
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], r13
mov word [rbp - 0x50], r13w
call fcn.140007850
cmp qword [rbp - 0x38], 8
lea rcx, [rbp - 0x50]
cmovae rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000d5ea
cmp qword [rbp - 0x38], 8
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x300]
cmovae rdx, qword [rbp - 0x50]
mov r8d, 0x104
call fcn.140093790
test rax, rax
jne 0x14000d4bd
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
jmp 0x14000d535
cmp word [rbp + 0x300], di
jne 0x14000d4cb
mov r8, r13
jmp 0x14000d4e0
lea rax, [rbp + 0x300]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x14000d4d6
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
test r8, r8
jne 0x14000d503
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
jmp 0x14000d514
lea rdx, [rbp + 0x300]
lea rcx, [rsp + 0x70]
call fcn.140008160
lea rcx, [rsp + 0x70]
call fcn.140006420
cmp rax, 0xffffffffffffffff
je 0x14000d535
lea rcx, [rsp + 0x70]
or r8, 0xffffffffffffffff
mov rdx, rax
call fcn.140006370
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x50]
or r9, 0xffffffffffffffff
xor r8d, r8d
call fcn.140007850
cmp qword [rbp - 0x78], 8
jb 0x14000d55b
mov rcx, qword [rsp + 0x70]
call fcn.1400910f4
cmp qword [rbp - 0x40], rdi
je 0x14000d65d
lea rcx, [rbp - 0x10]
mov rdx, rbx
call fcn.14000d0f0
mov r8, qword [rbp]
test r8, r8
je 0x14000d9b4
cmp qword [rbp - 0x40], r8
jb 0x14000d5b5
or rax, 0xffffffffffffffff
lea r9, [rbp - 0x10]
lea rcx, [rbp - 0x50]
cmp r8, rax
cmovb rax, r8
cmp qword [rbp + 8], 8
cmovae r9, qword [rbp - 0x10]
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.140007ac0
test eax, eax
je 0x14000d9b4
mov eax, 3
mov r9d, 1
test r15b, r15b
lea rcx, [rbp + 0x30]
movzx r8d, r15b
mov rdx, rbx
cmovne r9d, eax
call fcn.140020900
cmp qword [rbx + 0x18], 8
jb 0x14000d665
mov rcx, qword [rbx]
jmp 0x14000d668
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x50]
call fcn.1400052d0
lea rcx, [rsp + 0x70]
mov rdx, rax
call fcn.14000d0f0
lea rcx, [rbp - 0x50]
cmp rcx, rax
je 0x14000d620
lea rcx, [rbp - 0x50]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
call fcn.140007850
cmp qword [rbp - 0x78], 8
jb 0x14000d631
mov rcx, qword [rsp + 0x70]
call fcn.1400910f4
cmp qword [rbp + 0x28], 8
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
jb 0x14000d653
mov rcx, qword [rbp + 0x10]
call fcn.1400910f4
cmp qword [rbp - 0x40], rdi
jne 0x14000d565
xor sil, sil
jmp 0x14000d9d8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000d684
lea rcx, [rbp + 0x30]
xor sil, sil
call fcn.140020ad0
jmp 0x14000d9b7
lea rcx, [rbp - 0x70]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x660], r14
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], r13
mov word [rbp - 0x70], r13w
call fcn.140007850
mov rcx, rbx
call fcn.14000da40
lea rcx, [rbp - 0x30]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
mov sil, 1
movzx r14d, al
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r13
mov word [rbp - 0x30], r13w
call fcn.140007850
test r15b, r15b
je 0x14000d730
mov rcx, r12
call fcn.14000da40
test al, al
je 0x14000d730
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.1400052d0
lea rcx, [rbp - 0x30]
cmp rcx, rax
je 0x14000d71d
lea rcx, [rbp - 0x30]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
call fcn.140007850
cmp qword [rbp - 0x78], 8
jb 0x14000d730
mov rcx, qword [rsp + 0x70]
call fcn.1400910f4
nop
cmp qword [rbp - 0x60], r13
je 0x14000d95f
lea rcx, [rsp + 0x70]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, r12
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
call fcn.140007850
cmp qword [rbp - 0x58], 8
lea rax, [rbp - 0x70]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x10]
cmovae rax, qword [rbp - 0x70]
cmp qword [rbp - 0x18], 8
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
cmovae rax, qword [rbp - 0x30]
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x50], rax
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rbp + 0x10], xmm0
call fcn.1400041c0
test al, al
jne 0x14000d7d9
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x30]
call fcn.140005000
test al, al
je 0x14000d94b
test r14b, r14b
je 0x14000d836
cmp qword [rbp - 0x78], 8
lea rcx, [rsp + 0x70]
cmovae rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000d804
shr eax, 4
and al, 1
jne 0x14000d8d5
cmp qword [rbp - 0x78], 8
lea rcx, [rsp + 0x70]
cmovae rcx, qword [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000d8d5
test dil, 4
je 0x14000d8d2
and edi, 0xfffffffb
jmp 0x14000d8c6
lea rcx, [rbp - 0x70]
call fcn.140005ac0
test al, al
jne 0x14000d8b7
lea rcx, [rsp + 0x70]
call fcn.140005ac0
test al, al
jne 0x14000d8b7
cmp qword [rbp - 0x60], 0x104
jae 0x14000d8b7
cmp qword [rbp - 0x80], 0x104
jae 0x14000d8b7
cmp qword [rbp - 0x78], 8
lea rbx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
cmovae rbx, qword [rsp + 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14000d8b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000d8b7
test al, 1
je 0x14000d8b3
and eax, 0xfffffffe
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
jmp 0x14000d8b9
xor al, al
test al, al
jne 0x14000d8d5
test dil, 8
je 0x14000d8d2
and edi, 0xfffffff7
lea rcx, [rbp + 0x300]
call fcn.140009830
xor sil, sil
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x30]
call fcn.140020cf0
lea rcx, [rbp - 0x70]
cmp rcx, rax
je 0x14000d8fe
lea rcx, [rbp - 0x70]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
call fcn.140007850
cmp qword [rbp + 0x28], 8
jb 0x14000d90e
mov rcx, qword [rbp + 0x10]
call fcn.1400910f4
cmp qword [rbp - 0x60], r13
je 0x14000d92f
lea rdx, [rbp + 0x300]
lea rcx, [rbp + 0x30]
call fcn.140020b90
mov r14d, dword [rax]
shr r14d, 4
and r14b, 1
cmp qword [rbp - 0x78], 8
jb 0x14000d940
mov rcx, qword [rsp + 0x70]
call fcn.1400910f4
test sil, sil
jne 0x14000d730
jmp 0x14000d95f
xor sil, sil
cmp qword [rbp - 0x78], 8
jb 0x14000d95f
mov rcx, qword [rsp + 0x70]
call fcn.1400910f4
cmp qword [rbp - 0x18], 8
mov r14, qword [rsp + 0x660]
jb 0x14000d977
mov rcx, qword [rbp - 0x30]
call fcn.1400910f4
cmp qword [rbp - 0x58], 8
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r13
mov word [rbp - 0x30], r13w
jb 0x14000d998
mov rcx, qword [rbp - 0x70]
call fcn.1400910f4
lea rcx, [rbp + 0x30]
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], r13
mov word [rbp - 0x70], r13w
call fcn.140020ad0
jmp 0x14000d9b7
xor sil, sil
cmp qword [rbp + 8], 8
jb 0x14000d9c7
mov rcx, qword [rbp - 0x10]
call fcn.1400910f4
mov qword [rbp + 8], 7
mov qword [rbp], r13
mov word [rbp - 0x10], r13w
cmp qword [rbp - 0x38], 8
jb 0x14000d9e8
mov rcx, qword [rbp - 0x50]
call fcn.1400910f4
movzx eax, sil
mov rsi, qword [rsp + 0x6b0]
jmp 0x14000d9f8
xor al, al
mov rcx, qword [rbp + 0x550]
xor rcx, rsp
call fcn.140091a70
add rsp, 0x668
pop r15
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret