Function at 0x1400019b4
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.140002570
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 0x140001a4e
lea rdx, [rdi + 0x1008]
mov rcx, rdi
call fcn.14000180c
test eax, eax
je 0x140001a4e
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 0x140001a7a
lea rdx, [0x140008554]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
xor r12d, r12d
and dword [rsp + 0x20], esi
jmp 0x140001a8b
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 0x140001a83
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 0x140001b2f
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 0x140001b54
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 0x140001b7b
lea rdx, [0x140008554]
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.irsetup.exe
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 0x140001c3a
mov ecx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x3c]
imul ecx, dword [rsp + 0x38]
imul rcx, rax
cmp rcx, 0x1e8480
jge 0x140001c50
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.140002670
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret