Function at 0x10005fb74
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get file attributes

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
sub rsp, 0x380
mov qword [rsp + 0x130], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x100142128]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov r12, rdx
mov r13, rcx
xor ebx, ebx
lea rdx, [r11 - 0x260]
mov rcx, qword [0x100145a40]
call fcn.10006bca8
nop
lea rdx, [0x10000a338]
lea rcx, [rsp + 0x138]
call fcn.100039f14
lea rcx, [rsp + 0x140]
cmp qword [rsp + 0x158], 8
cmovae rcx, qword [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10005fc79
lea rcx, [rsp + 0x140]
cmp qword [rsp + 0x158], 8
cmovae rcx, qword [rsp + 0x140]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, ebx
jne 0x10005fc79
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, ebx
cmovle edi, eax
cmp qword [rsp + 0x158], 8
jb 0x10005fc55
mov rcx, qword [rsp + 0x140]
cmp rcx, rbx
je 0x10005fc55
call sub.msvcrt.dll_free
mov esi, 7
mov qword [rsp + 0x158], rsi
mov qword [rsp + 0x150], rbx
mov word [rsp + 0x140], bx
mov eax, edi
jmp 0x1000600d7
mov word [rsp + 0x160], bx
lea rcx, [rsp + 0x140]
cmp qword [rsp + 0x158], 8
cmovae rcx, qword [rsp + 0x140]
lea r9, [rsp + 0x160]
xor r8d, r8d
lea rdx, [0x100008990]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp eax, ebx
jne 0x10005fd0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, ebx
cmovle edi, eax
cmp qword [rsp + 0x158], 8
jb 0x10005fce8
mov rcx, qword [rsp + 0x140]
cmp rcx, rbx
je 0x10005fce8
call sub.msvcrt.dll_free
mov esi, 7
mov qword [rsp + 0x158], rsi
mov qword [rsp + 0x150], rbx
mov word [rsp + 0x140], bx
mov eax, edi
jmp 0x1000600d7
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 7
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rbx
mov word [rsp + 0x40], bx
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x160]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x38]
call fcn.10002cf94
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, r12
call fcn.10002cd2c
nop
cmp qword [rsp + 0x58], 8
jb 0x10005fd85
mov rcx, qword [rsp + 0x40]
cmp rcx, rbx
je 0x10005fd85
call sub.msvcrt.dll_free
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rbx
mov word [rsp + 0x40], bx
mov rdx, qword [r12 + 0x18]
add rdx, 0xfffffffffffffffc
mov r8d, 4
mov rcx, r12
call fcn.10002a238
lea rdx, [0x10000a648]
mov rcx, r12
call fcn.100039f14
lea rcx, [rsp + 0x20]
call fcn.1000afb14
nop
cmp qword [r13 + 0x20], 8
jb 0x10005fdd2
mov rdx, qword [r13 + 8]
jmp 0x10005fdd6
lea rdx, [r13 + 8]
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xa0], rbx
mov word [rsp + 0x90], bx
lea rcx, [rsp + 0x88]
call fcn.10002c1f4
nop
mov eax, ebx
mov rcx, qword [rsp + 0x20]
cmp rcx, rbx
setne al
cmp eax, ebx
jne 0x10005fe17
mov ecx, 0x80004005
call fcn.10002c1d4
lea rdx, [rsp + 0x88]
call fcn.1000afd6c
nop
cmp qword [rsp + 0xa8], 8
jb 0x10005fe3d
mov rcx, qword [rsp + 0x90]
call sub.msvcrt.dll_free
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xa0], rbx
mov word [rsp + 0x90], bx
lea rax, [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x78], rbx
mov word [rsp + 0x68], bx
lea rdx, [0x100006508]
lea rcx, [rsp + 0x60]
call fcn.10002c1f4
nop
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rcx
cmp rcx, rbx
je 0x10005fe99
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x60]
call fcn.10005f964
nop
cmp qword [rsp + 0x80], 8
jb 0x10005febe
mov rcx, qword [rsp + 0x68]
call sub.msvcrt.dll_free
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x78], rbx
mov word [rsp + 0x68], bx
lea rax, [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0xc8], rbx
mov word [rsp + 0xb8], bx
lea rdx, [0x100006538]
lea rcx, [rsp + 0xb0]
call fcn.10002c1f4
nop
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rcx
cmp rcx, rbx
je 0x10005ff1d
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0xb0]
call fcn.10005f964
nop
cmp qword [rsp + 0xd0], 8
jb 0x10005ff48
mov rcx, qword [rsp + 0xb8]
call sub.msvcrt.dll_free
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0xc8], rbx
mov word [rsp + 0xb8], bx
lea rax, [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x120], rsi
mov qword [rsp + 0x118], rbx
mov word [rsp + 0x108], bx
lea rdx, [0x100006578]
lea rcx, [rsp + 0x100]
call fcn.10002c1f4
nop
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rcx
cmp rcx, rbx
je 0x10005ffad
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x100]
call fcn.10005f964
nop
cmp qword [rsp + 0x120], 8
jb 0x10005ffd8
mov rcx, qword [rsp + 0x108]
call sub.msvcrt.dll_free
mov qword [rsp + 0x120], rsi
mov qword [rsp + 0x118], rbx
mov word [rsp + 0x108], bx
cmp qword [r12 + 0x20], 8
jb 0x10005ffff
mov rdx, qword [r12 + 8]
jmp 0x100060004
lea rdx, [r12 + 8]
mov qword [rsp + 0xf8], rsi
mov qword [rsp + 0xf0], rbx
mov word [rsp + 0xe0], bx
lea rcx, [rsp + 0xd8]
call fcn.10002c1f4
nop
mov eax, ebx
mov rcx, qword [rsp + 0x20]
cmp rcx, rbx
setne al
cmp eax, ebx
jne 0x100060045
mov ecx, 0x80004005
call fcn.10002c1d4
lea rdx, [rsp + 0xd8]
call fcn.1000afc0c
nop
cmp qword [rsp + 0xf8], 8
jb 0x10006006b
mov rcx, qword [rsp + 0xe0]
call sub.msvcrt.dll_free
mov qword [rsp + 0xf8], rsi
mov qword [rsp + 0xf0], rbx
mov word [rsp + 0xe0], bx
mov rcx, qword [rsp + 0x20]
cmp rcx, rbx
je 0x100060094
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
cmp qword [rsp + 0x158], 8
jb 0x1000600b1
mov rcx, qword [rsp + 0x140]
cmp rcx, rbx
je 0x1000600b1
call sub.msvcrt.dll_free
mov qword [rsp + 0x158], rsi
mov qword [rsp + 0x150], rbx
mov word [rsp + 0x140], bx
jmp 0x1000600d5
mov eax, ebx
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.1000c8b30
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret