Function at 0x14004e7b0
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 r15
lea rbp, [rsp - 0x570]
sub rsp, 0x670
mov rax, qword [0x1401750b8]
xor rax, rsp
mov qword [rbp + 0x560], rax
xor r12d, r12d
mov r15, rdx
cmp qword [rcx + 0x10], 0x104
mov ebx, r12d
mov dword [rsp + 0x50], ebx
mov rdi, rcx
jae 0x14004ed21
cmp qword [rdx + 0x10], 0x104
jae 0x14004ed21
or r9, 0xffffffffffffffff
mov qword [rsp + 0x6b0], rsi
xor r8d, r8d
mov qword [rbp - 0x58], 7
lea rcx, [rbp - 0x70]
mov qword [rbp - 0x60], r12
mov word [rbp - 0x70], r12w
call fcn.140029d5c
cmp qword [rbp - 0x58], 8
lea rcx, [rbp - 0x70]
cmovae rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004e9d9
cmp qword [rbp - 0x58], 8
lea rdx, [rbp - 0x70]
mov r8d, 0x104
lea rcx, [rbp + 0x310]
cmovae rdx, qword [rbp - 0x70]
call fcn.14011c1c8
test rax, rax
jne 0x14004e886
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r12
mov word [rsp + 0x70], r12w
jmp 0x14004e904
cmp word [rbp + 0x310], bx
jne 0x14004e894
mov r8, r12
jmp 0x14004e8aa
lea rax, [rbp + 0x310]
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], bx
jne 0x14004e8a0
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r12
mov word [rsp + 0x70], r12w
test r8, r8
jne 0x14004e8cd
mov qword [rbp - 0x80], r12
mov word [rsp + 0x70], r12w
jmp 0x14004e8de
lea rdx, [rbp + 0x310]
lea rcx, [rsp + 0x70]
call fcn.140029c40
xor edx, edx
lea rcx, [rsp + 0x70]
xor r8d, r8d
call fcn.140050760
cmp rax, 0xffffffffffffffff
je 0x14004e904
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x70]
mov rdx, rax
call fcn.14002b250
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.140059a60
lea rcx, [rsp + 0x70]
call fcn.1400599c0
cmp qword [rbp - 0x60], rbx
je 0x14004ea1c
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.14004e3a0
mov rcx, qword [rbp]
test rcx, rcx
je 0x14004ecfe
cmp qword [rbp + 8], 8
lea rax, [rbp - 0x10]
mov qword [rsp + 0x38], rcx
lea rdx, [rsp + 0x40]
cmovae rax, qword [rbp - 0x10]
lea rcx, [rsp + 0x30]
cmp qword [rbp - 0x58], 8
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x70]
movaps xmm0, xmmword [rsp + 0x30]
cmovae rax, qword [rbp - 0x70]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x38], rax
movdqa xmmword [rsp + 0x40], xmm0
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.140059020
test al, al
jne 0x14004ecfe
xor r8d, r8d
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x10]
call fcn.14005a480
test al, al
jne 0x14004ecfe
mov r9d, 3
lea rcx, [rbp + 0x30]
mov r8b, 1
mov rdx, rdi
call fcn.140069cf0
cmp qword [rdi + 0x18], 8
jb 0x14004ea24
mov rcx, qword [rdi]
jmp 0x14004ea27
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x70]
call fcn.14005a6a0
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14004e3a0
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140059a60
lea rcx, [rsp + 0x70]
call fcn.1400599c0
lea rcx, [rbp + 0x10]
call fcn.1400599c0
cmp qword [rbp - 0x60], rbx
jne 0x14004e926
xor sil, sil
jmp 0x14004ed0a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14004ea43
xor sil, sil
lea rcx, [rbp + 0x30]
call fcn.14006a050
jmp 0x14004ed01
or r9, 0xffffffffffffffff
mov qword [rsp + 0x6b8], r14
xor r8d, r8d
mov qword [rbp - 0x38], 7
mov rdx, rdi
mov qword [rbp - 0x40], r12
lea rcx, [rbp - 0x50]
mov word [rbp - 0x50], r12w
call fcn.140029d5c
mov rcx, rdi
call fcn.14004ed50
or r9, 0xffffffffffffffff
mov qword [rbp - 0x18], 7
xor r8d, r8d
mov qword [rbp - 0x20], r12
mov rdx, rdi
mov word [rbp - 0x30], r12w
lea rcx, [rbp - 0x30]
movzx r14d, al
mov sil, 1
call fcn.140029d5c
mov rcx, r15
call fcn.14004ed50
test al, al
je 0x14004ead1
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.14005a6a0
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140059a60
lea rcx, [rsp + 0x70]
call fcn.1400599c0
cmp qword [rbp - 0x40], r12
je 0x14004ecd9
or r9, 0xffffffffffffffff
mov qword [rbp - 0x78], 7
xor r8d, r8d
mov qword [rbp - 0x80], r12
mov rdx, r15
mov word [rsp + 0x70], r12w
lea rcx, [rsp + 0x70]
call fcn.140029d5c
cmp qword [rbp - 0x38], 8
lea rax, [rbp - 0x50]
lea rdx, [rsp + 0x60]
cmovae rax, qword [rbp - 0x50]
lea rcx, [rbp + 0x10]
cmp qword [rbp - 0x18], 8
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x30]
cmovae rax, qword [rbp - 0x30]
movaps xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x48], rax
movdqa xmmword [rsp + 0x60], xmm0
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp + 0x10], xmm0
call fcn.140059020
test al, al
jne 0x14004eb7a
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.14005a480
test al, al
je 0x14004eccc
test r14b, r14b
je 0x14004ebd6
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 0x14004eba5
shr eax, 4
and al, 1
jne 0x14004ec74
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 0x14004ec74
test bl, 2
je 0x14004ec71
and ebx, 0xfffffffd
jmp 0x14004ec65
lea rcx, [rbp - 0x50]
call fcn.14005b400
test al, al
jne 0x14004ec57
lea rcx, [rsp + 0x70]
call fcn.14005b400
test al, al
jne 0x14004ec57
cmp qword [rbp - 0x40], 0x104
jae 0x14004ec57
cmp qword [rbp - 0x80], 0x104
jae 0x14004ec57
cmp qword [rbp - 0x78], 8
lea rdi, [rsp + 0x70]
lea rcx, [rbp - 0x50]
cmovae rdi, qword [rsp + 0x70]
cmp qword [rbp - 0x38], 8
mov rdx, rdi
cmovae rcx, qword [rbp - 0x50]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14004ec57
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004ec57
test al, 1
je 0x14004ec53
and eax, 0xfffffffe
mov rcx, rdi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
jmp 0x14004ec59
xor al, al
test al, al
jne 0x14004ec74
test bl, 4
je 0x14004ec71
and ebx, 0xfffffffb
lea rcx, [rbp + 0x310]
call fcn.140068220
xor sil, sil
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x30]
call fcn.14006a290
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.140059a60
lea rcx, [rbp + 0x10]
call fcn.1400599c0
cmp qword [rbp - 0x40], r12
je 0x14004ecb7
lea rdx, [rbp + 0x310]
lea rcx, [rbp + 0x30]
call fcn.14006a140
mov r14d, dword [rax]
shr r14d, 4
and r14b, 1
lea rcx, [rsp + 0x70]
call fcn.1400599c0
test sil, sil
jne 0x14004ead1
jmp 0x14004ecd9
xor sil, sil
lea rcx, [rsp + 0x70]
call fcn.1400599c0
lea rcx, [rbp - 0x30]
call fcn.1400599c0
lea rcx, [rbp - 0x50]
call fcn.1400599c0
mov r14, qword [rsp + 0x6b8]
lea rcx, [rbp + 0x30]
call fcn.14006a050
jmp 0x14004ed01
xor sil, sil
lea rcx, [rbp - 0x10]
call fcn.1400599c0
lea rcx, [rbp - 0x70]
call fcn.1400599c0
movzx eax, sil
mov rsi, qword [rsp + 0x6b0]
jmp 0x14004ed23
xor al, al
mov rcx, qword [rbp + 0x560]
xor rcx, rsp
call fcn.140111850
add rsp, 0x670
pop r15
pop r12
pop rdi
pop rbx
pop rbp
ret