Function at 0x14003ec30
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x2f8]
sub rsp, 0x3e0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
xor edi, edi
mov dword [rsp + 0x34], edi
lea r15, [0x140102478]
mov qword [rbp + 0xa0], r15
lea r12, [0x1401025f8]
mov qword [rbp + 0xe0], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0xe8], eax
mov qword [rbp + 0xb8], rdi
mov qword [rbp + 0xc0], rdi
mov qword [rbp + 0xc0], 7
mov qword [rbp + 0xb8], rdi
mov word [rbp + 0xa8], di
mov qword [rbp + 0xc8], rdi
mov qword [rbp + 0xd0], rdi
mov qword [rbp + 0xd8], rdi
mov rax, qword [rbp + 0xe0]
movsxd rcx, dword [rax + 4]
mov ecx, dword [rbp + rcx + 0xe0]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov r8d, 0x208
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0xa0]
call fcn.140009620
nop
mov byte [rax + 8], 1
mov rcx, qword [rax]
call fcn.140002ef0
mov r8d, 0x208
mov rdx, qword [rax]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop
lea rcx, [rsp + 0x38]
call fcn.140009c60
lea rdx, [rbp + 0xa8]
cmp qword [rbp + 0xc0], 8
cmovae rdx, qword [rbp + 0xa8]
lea rcx, [rbp + 0x1e0]
call fcn.140047a90
nop
mov qword [rbp], r15
mov qword [rbp + 0x40], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x48], eax
mov qword [rbp + 0x18], rdi
mov qword [rbp + 0x20], rdi
mov qword [rbp + 0x20], 7
mov qword [rbp + 0x18], rdi
mov word [rbp + 8], di
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], rdi
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
mov ecx, dword [rbp + rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
call fcn.1400afc34
test al, al
je 0x14003edba
lea rcx, [rbp + 0x140]
call fcn.1400a55bc
nop
lea ebx, [rdi + 1]
jmp 0x14003ee2e
lea rax, [rbp - 0x50]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x10], r12
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [0x1400fc414]
lea rcx, [rbp - 0x50]
call fcn.140003cb0
nop
mov qword [rsp + 0x60], r15
mov qword [rbp - 0x60], r12
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [0x1400fc414]
lea rcx, [rsp + 0x60]
call fcn.140003cb0
nop
lea r9, [rbp - 0x50]
lea r8, [rsp + 0x60]
xor edx, edx
lea rcx, [rbp + 0x280]
call fcn.1400a5bdc
nop
mov ebx, 2
mov dword [rsp + 0x34], ebx
mov qword [rbp + 0xf0], r15
mov qword [rbp + 0x130], r12
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0xf0]
call fcn.140006eb0
nop
test bl, 2
je 0x14003ee6c
and ebx, 0xfffffffd
mov dword [rsp + 0x34], ebx
lea rcx, [rbp + 0x280]
call fcn.1400048d0
nop
test bl, 1
je 0x14003ee84
and ebx, 0xfffffffe
mov dword [rsp + 0x34], ebx
lea rcx, [rbp + 0x140]
call fcn.1400048d0
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x10], r12
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [0x1401054f0]
lea rcx, [rbp - 0x50]
call fcn.140003cb0
nop
lea r8, [rbp - 0x50]
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0xf0]
call fcn.14000e500
nop
test rax, rax
je 0x14003eed1
lea rdx, [rax + 8]
lea rax, [rbp + 8]
cmp rax, rdx
je 0x14003eee5
jmp 0x14003eed4
mov rdx, rdi
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp + 8]
call fcn.140004680
nop
lea rcx, [rbp + 0x140]
call fcn.1400048d0
nop
lea rcx, [rbp - 0x50]
call fcn.1400048d0
mov byte [0x14017bbb1], 1
mov byte [0x140173b49], 0
lea rsi, [0x140102478]
mov qword [rbp + 0x190], rsi
lea r14, [0x1401025f8]
mov qword [rbp + 0x1d0], r14
xor r9d, r9d
lea rdx, [0x14010a0a0]
lea rcx, [rbp + 0x190]
call fcn.140006ab0
nop
lea rax, [rbp - 0x50]
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x10], r14
xor r8d, r8d
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x50]
call fcn.140004120
nop
lea rcx, [rbp - 0x50]
call fcn.140099b10
mov qword [rsp + 0x60], r15
mov qword [rbp - 0x60], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x58], eax
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x68], di
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], rdi
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov ecx, dword [rbp + rcx - 0x60]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
lea rcx, str.setup.xml
call fcn.1400b7d68
mov r8, rax
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x30]
lea rdx, str.setup.xml
lea rcx, [rbp + 0x140]
call fcn.140009a00
nop
test rax, rax
je 0x14003effb
lea rbx, [rax + 8]
lea rax, [rsp + 0x68]
cmp rax, rbx
je 0x14003f02d
jmp 0x14003effe
mov rbx, rdi
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.140003130
mov rcx, qword [rsp + 0x78]
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x78], rax
mov qword [rbx + 0x10], rcx
mov rcx, qword [rbp - 0x80]
mov rax, qword [rbx + 0x18]
mov qword [rbp - 0x80], rax
mov qword [rbx + 0x18], rcx
lea rcx, [rbp + 0x140]
call fcn.1400048d0
nop
cmp dword [rbp + 0x240], 0
je 0x14003f0eb
lea rcx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003f081
test al, 0x10
jne 0x14003f081
test al, 1
je 0x14003f081
lea rcx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rcx, qword [rbp + 8]
and eax, 0xfffffffe
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [rbp + 0x240], 0
je 0x14003f0eb
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x260]
call fcn.140046550
mov rbx, rax
cmp rax, qword [rbp + 0x260]
je 0x14003f0eb
add rax, 0x20
lea rdx, [rax + 8]
cmove rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.1400077f0
test eax, eax
js 0x14003f0eb
cmp rbx, qword [rbp + 0x260]
je 0x14003f0eb
mov rdx, qword [rbx + 0x70]
mov qword [rsp + 0x20], rdi
lea r9, [rbp]
mov r8d, dword [rdx + 0x68]
lea rcx, [rbp + 0x1e0]
call fcn.140048320
mov ebx, eax
jmp 0x14003f0ed
mov ebx, edi
lea rcx, [rsp + 0x60]
call fcn.1400048d0
test ebx, ebx
jne 0x14003f1bd
cmp byte [0x140173b48], bl
jne 0x14003f113
cmp byte [0x14017bbb1], bl
je 0x14003f2b3
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x10], r14
xor r9d, r9d
lea rdx, str.SetupSuite.cpp
lea rcx, [rbp - 0x50]
call fcn.140006ab0
nop
mov qword [rsp + 0x60], rsi
mov qword [rbp - 0x60], r14
xor r9d, r9d
lea rdx, str.Error_extracting_setup.xml_no_setup.xml_was_present_in_the_setup_stream
lea rcx, [rsp + 0x60]
call fcn.140006ab0
nop
cmp byte [0x140173b48], 0
je 0x14003f176
cmp byte [0x14017bbb1], 0
jne 0x14003f168
call fcn.140099320
test al, al
je 0x14003f16f
mov byte [0x14017bbb1], 1
mov byte [0x140173b48], 0
cmp byte [0x14017bbb1], 0
je 0x14003f1a9
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rcx, qword [rsp + 0x68]
mov r8d, 0x150
call fcn.140099810
nop
lea rcx, [rsp + 0x60]
call fcn.140004280
nop
lea rcx, [rbp - 0x50]
jmp 0x14003f2ae
lea rax, [rbp - 0x50]
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x10], r12
xor r8d, r8d
lea rdx, [rbp]
lea rcx, [rbp - 0x50]
call fcn.140006eb0
nop
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rcx, [rbp - 0x50]
call fcn.1400a2ea4
test al, al
jne 0x14003f2d7
cmp byte [0x140173b48], al
jne 0x14003f209
cmp byte [0x14017bbb1], al
je 0x14003f2b3
mov qword [rsp + 0x60], rsi
mov qword [rbp - 0x60], r14
xor r9d, r9d
lea rdx, str.SetupSuite.cpp
lea rcx, [rsp + 0x60]
call fcn.140006ab0
nop
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x10], r14
xor r9d, r9d
lea rdx, str.The_system_cannot_find_the_file_specified.
lea rcx, [rbp - 0x50]
call fcn.140006ab0
nop
cmp byte [0x140173b48], 0
je 0x14003f26c
cmp byte [0x14017bbb1], 0
jne 0x14003f25e
call fcn.140099320
test al, al
je 0x14003f265
mov byte [0x14017bbb1], 1
mov byte [0x140173b48], 0
cmp byte [0x14017bbb1], 0
je 0x14003f29f
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rdx, qword [rsp + 0x68]
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
mov r8d, 0x157
call fcn.140099810
nop
lea rcx, [rbp - 0x50]
call fcn.140004280
nop
lea rcx, [rsp + 0x60]
call fcn.140004280
lea rcx, [rbp + 0xf8]
cmp qword [rbp + 0x110], 8
cmovae rcx, qword [rbp + 0xf8]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor bl, bl
jmp 0x14003f4ae
mov qword [rbp + 0x50], r15
mov qword [rbp + 0x90], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x98], eax
mov qword [rbp + 0x68], rdi
mov qword [rbp + 0x70], rdi
mov qword [rbp + 0x70], 7
mov qword [rbp + 0x68], rdi
mov word [rbp + 0x58], di
mov qword [rbp + 0x78], rdi
mov qword [rbp + 0x80], rdi
mov qword [rbp + 0x88], rdi
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
mov ecx, dword [rbp + rcx + 0x90]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
lea rdx, [rbp + 0x50]
lea rcx, [rbp]
call fcn.14003d7f0
cmp qword [rbp + 0x68], 0
jne 0x14003f43e
cmp byte [0x140173b48], 0
jne 0x14003f35f
cmp byte [0x14017bbb1], 0
je 0x14003f409
mov qword [rsp + 0x60], rsi
mov qword [rbp - 0x60], r14
xor r9d, r9d
lea rdx, str.SetupSuite.cpp
lea rcx, [rsp + 0x60]
call fcn.140006ab0
nop
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x10], r14
xor r9d, r9d
lea rdx, str.Unable_to_Extract_Suite_GUID_from_the_setup
lea rcx, [rbp - 0x50]
call fcn.140006ab0
nop
cmp byte [0x140173b48], 0
je 0x14003f3c2
cmp byte [0x14017bbb1], 0
jne 0x14003f3b4
call fcn.140099320
test al, al
je 0x14003f3bb
mov byte [0x14017bbb1], 1
mov byte [0x140173b48], 0
cmp byte [0x14017bbb1], 0
je 0x14003f3f5
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rdx, qword [rsp + 0x68]
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
mov r8d, 0x160
call fcn.140099810
nop
lea rcx, [rbp - 0x50]
call fcn.140004280
nop
lea rcx, [rsp + 0x60]
call fcn.140004280
lea rcx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp + 0xf8]
cmp qword [rbp + 0x110], 8
cmovae rcx, qword [rbp + 0xf8]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor bl, bl
jmp 0x14003f4a4
lea r8, [rbp + 0x58]
cmp qword [rbp + 0x70], 8
cmovae r8, qword [rbp + 0x58]
lea rax, str.SetupSuite.cpp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], 0x166
lea rdx, str.Suite_GUID_:__s
lea rcx, [rsp + 0x38]
call fcn.14000b8a0
lea rcx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp + 0xf8]
cmp qword [rbp + 0x110], 8
cmovae rcx, qword [rbp + 0xf8]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov bl, 1
lea rcx, [rbp + 0x50]
call fcn.1400048d0
nop
lea rcx, [rbp + 0x190]
call fcn.140004280
nop
lea rcx, [rbp + 0xf0]
call fcn.1400048d0
nop
lea rcx, [rbp]
call fcn.1400048d0
nop
lea rcx, [rbp + 0x1e0]
call fcn.140047e90
nop
lea rcx, [rbp + 0xa0]
call fcn.1400048d0
movzx eax, bl
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.1400b31f0
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret