Function at 0x140001ca4
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get disk size
Get file attributes
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x14000c030]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rdi, rcx
mov ebx, 0x104
lea rdx, [rbp + 0x280]
mov ecx, ebx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rcx, [rsp + 0x50]
mov r8d, ebx
xor edx, edx
call fcn.140002880
lea rdx, [rsp + 0x50]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, [rdi + 0x1008]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jle 0x140001d3e
lea rdx, [rdi + 0x1008]
mov rcx, rdi
call fcn.140001a6c
test eax, eax
je 0x140001d3e
lea rdx, [rdi + 0x1008]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rsp + 0x50]
lea rbx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
cmp byte [rcx + rbx - 1], 0x5c
je 0x140001d6a
lea rdx, [0x1400083d4]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
xor r12d, r12d
and dword [rsp + 0x20], esi
jmp 0x140001d7b
inc r12d
mov dword [rsp + 0x20], r12d
lea r9, str._ir_sf_temp
lea r8, [rsp + 0x50]
lea rdx, str._s_s__d
lea rcx, [rbp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r8, [rbp + 0x60]
lea rdx, str._sirsetup.exe
lea rcx, [rbp + 0x170]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140001d73
lea rcx, [rbp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x140001e1f
lea rdx, str.c:_temp
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x140001e44
lea rcx, [rdi + 8]
lea rdx, str.Could_not_determine_a_temp_directory_name.__Try_running_setup.exe__T:_Path_
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, 0x38
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
cmp byte [rcx + rbx - 1], 0x5c
je 0x140001e6b
lea rdx, [0x1400083d4]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x50]
lea rcx, [rdi + 0x1224]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rdi + 0x1328]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, str.by_
lea rcx, [rdi + 0x1224]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x50]
lea rcx, [rdi + 0x142c]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, str.lua5.1.dll
lea rcx, [rdi + 0x142c]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov al, byte [rsp + 0x51]
mov r11b, byte [rsp + 0x50]
mov byte [rsp + 0x31], al
mov al, byte [rsp + 0x52]
lea r9, [rsp + 0x3c]
mov byte [rsp + 0x32], al
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x30]
mov byte [rsp + 0x30], r11b
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x33], 0
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x140001f2a
mov ecx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x3c]
imul ecx, dword [rsp + 0x38]
imul rcx, rax
cmp rcx, 0x1e8480
jge 0x140001f40
lea rcx, [rdi + 8]
lea rdx, str.You_must_have_at_least_2MB_of_free_space_on_your_TEMP_drive_
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, 0x39
lea rcx, [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, esi
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140002980
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret