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

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x2c0
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x14012a4f8]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov rbx, rcx
xor r13d, r13d
mov ebp, r13d
mov dword [rsp + 0x30], r13d
call fcn.1400970e0
test eax, eax
jne 0x14009738c
mov dword [rbx + 0x18], 0x191
jmp 0x14009763b
mov rdx, qword [rbx + 0xc8]
add rdx, 0x50
lea rcx, [rbx + 0x28]
call fcn.1400927e0
test eax, eax
jne 0x1400973d0
mov rax, qword [rbx + 0xc8]
cmp qword [rax + 0x70], 8
jb 0x1400973b8
mov rcx, qword [rax + 0x58]
jmp 0x1400973bc
lea rcx, [rax + 0x58]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rbx + 0x18], 0x199
xor eax, eax
jmp 0x14009763b
cmp qword [rbx + 0x48], 8
jb 0x1400973dd
mov rdx, qword [rbx + 0x30]
jmp 0x1400973e1
lea rdx, [rbx + 0x30]
lea rcx, [rbx + 0xd8]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rbx + 0xd8]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140097435
lea rcx, [rbx + 0xd8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140097427
test al, 1
je 0x140097427
and eax, 0xfffffffe
mov edx, eax
lea rcx, [rbx + 0xd8]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor edx, edx
lea rcx, [rbx + 0xd8]
call fcn.14007e7c0
xor edx, edx
lea rcx, [rbx + 0xd8]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [rsp + 0xa0], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0xa2]
call fcn.1400ad2f0
lea r8, str.update.xml
lea rdx, [rbx + 0xd8]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov rdx, qword [rbx + 0xc8]
cmp qword [rdx + 0x70], 8
jb 0x140097492
mov rcx, qword [rdx + 0x58]
jmp 0x140097496
lea rcx, [rdx + 0x58]
xor r8d, r8d
lea rdx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov rdx, qword [rbx + 0xc8]
cmp qword [rdx + 0x70], 8
jb 0x1400974bb
mov rcx, qword [rdx + 0x58]
jmp 0x1400974bf
lea rcx, [rdx + 0x58]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r11, qword [rbx + 0xc8]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xa0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [r11 + 0x50]
lea rdx, [rsp + 0xa0]
call fcn.140025a70
cmp qword [rbx + 0x68], rbp
je 0x140097636
mov ecx, 0xa0
call fcn.1400aee14
mov r12, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x1400975bb
mov qword [rsp + 0x80], 7
mov qword [rsp + 0x78], r13
mov word [rsp + 0x68], r13w
xor r8d, r8d
lea rdx, [0x1400f9500]
lea rcx, [rsp + 0x60]
call fcn.140025a70
nop
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r13
mov word [rsp + 0x40], r13w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbx + 0xd8]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbx + 0xd8]
lea rcx, [rsp + 0x38]
call fcn.140025a70
nop
mov ebp, 3
mov dword [rsp + 0x30], ebp
lea rax, [rbx + 0xa0]
lea rdx, [rbx + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x38]
mov rcx, r12
call fcn.140096f20
jmp 0x1400975be
mov rax, r13
mov rdx, rax
lea rcx, [rbx + 0xd0]
call fcn.140092af0
nop
test bpl, 2
je 0x1400975fd
and ebp, 0xfffffffd
cmp qword [rsp + 0x58], 8
jb 0x1400975e9
mov rcx, qword [rsp + 0x40]
call fcn.1400ad0b8
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r13
mov word [rsp + 0x40], r13w
test bpl, 1
je 0x140097618
cmp qword [rsp + 0x80], 8
jb 0x140097618
mov rcx, qword [rsp + 0x68]
call fcn.1400ad0b8
mov edx, 2
mov rcx, qword [rbx + 0xd0]
call fcn.140096bf0
test eax, eax
jne 0x140097636
mov dword [rbx + 0x18], 0x192
jmp 0x14009763b
mov eax, 1
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1400ad2c0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret