Function at 0x1400cd410
Capabilities:
Check if file exists
Create process on windows
Delete directory
Delete file
Set file attributes

Disassembly:
push rbp
lea rbp, [rsp - 0x12b0]
mov eax, 0x13b0
call fcn.14024c240
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x13c8], rbx
mov qword [rsp + 0x13d0], rsi
mov qword [rsp + 0x13d8], rdi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x12a0], rax
mov rdi, rcx
mov rax, qword [rcx]
call qword [rax + 0x98]
test al, al
je 0x1400cd6b5
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x88]
cmp eax, 1
jne 0x1400cd9bd
xor esi, esi
mov dword [rbp + 0x2a0], esi
xor edx, edx
mov r8d, 0x7fc
lea rcx, [rbp + 0x2a4]
call fcn.14024b970
mov dword [rbp + 0xaa0], esi
xor edx, edx
mov r8d, 0x7fc
lea rcx, [rbp + 0xaa4]
call fcn.14024b970
mov dword [rbp + 0x90], esi
xor edx, edx
mov r8d, 0x204
lea rcx, [rbp + 0x94]
call fcn.14024b970
mov r11, qword [rdi]
mov rcx, rdi
call qword [r11 + 0xb0]
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.1400cce20
nop
mov rax, qword [rdi]
mov r9d, 0x400
lea r8, [rbp + 0x2a0]
xor edx, edx
mov rcx, rdi
call qword [rax + VarBstrFromDisp]
test eax, eax
je 0x1400cd56a
mov r8d, 0x104
lea rdx, [rbp + 0x2a0]
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rcx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add ebx, eax
cmp ebx, 0x104
jae 0x1400cd56a
lea rdx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400cd590
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400cd626
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x90]
call fcn.14024b970
mov r11, qword [rdi]
mov r9d, 0x400
lea r8, [rbp + 0xaa0]
mov edx, 1
mov rcx, rdi
call qword [r11 + WSAStartup]
test eax, eax
je 0x1400cd626
mov r8d, 0x104
lea rdx, [rbp + 0xaa0]
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rcx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add ebx, eax
cmp ebx, 0x104
jae 0x1400cd626
lea rdx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400cd70a
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x80]
call fcn.14024b970
xor r11d, r11d
mov qword [rsp + 0x58], r11
mov qword [rsp + 0x60], r11
mov qword [rsp + 0x68], r11
mov dword [rbp - 0x80], 0x68
mov dword [rbp - 0x44], 1
mov word [rbp - 0x40], si
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400cd6bc
lea rcx, [rbp - 0x10]
call fcn.14004db80
xor eax, eax
jmp 0x1400cd9c2
mov rbx, qword [rsp + 0x58]
mov dword [rsp + 0x50], esi
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x1400cd6ef
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [rdi]
mov edx, 2
mov rcx, rdi
call qword [r11 + 0x80]
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400cd964
mov r8d, 0x104
lea rdx, [rbp + 0x2a0]
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rdi, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rdi, qword [rbp + 0x18]
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add ebx, eax
cmp ebx, 0x104
jae 0x1400cd784
lea rdx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400cd7d1
mov edx, 0x20
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, esi
nop dword [rax]
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400cd7d1
lea ecx, [rax + 0xa]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x64
jl 0x1400cd7b0
mov r8d, 0x104
lea rdx, [rbp + 0x2a0]
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rcx, [rbp + 0x40]
cmp qword [rbp + 0x58], 8
cmovae rcx, qword [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add ebx, eax
cmp ebx, 0x104
jae 0x1400cd833
lea rdx, [rbp + 0x40]
cmp qword [rbp + 0x58], 8
cmovae rdx, qword [rbp + 0x40]
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400cd863
mov edx, 0x20
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8d, 0x104
lea rdx, [rbp + 0x2a0]
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rcx, str.MFNP_ALRDY_INST.ini
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add ebx, eax
cmp ebx, 0x104
jae 0x1400cd8b7
lea rdx, str.MFNP_ALRDY_INST.ini
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400cd8e7
mov edx, 0x20
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0x2a0]
lea rdx, str.UNINSTALLPATH
mov rcx, rax
call qword [r9 + 0x18]
lea rdx, str.DEFAULT
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400cd956
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0x2a0]
lea rdx, str.UNINSTALLDEFAULTPATH
mov rcx, rax
call qword [r9 + 0x18]
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop
lea rcx, [rbp + 0x68]
call fcn.1400360d0
cmp qword [rbp + 0x58], 8
jb 0x1400cd97d
mov rcx, qword [rbp + 0x40]
call fcn.1401026ec
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x50], rsi
mov word [rbp + 0x40], si
cmp qword [rbp + 0x30], 8
jb 0x1400cd99d
mov rcx, qword [rbp + 0x18]
call fcn.1401026ec
mov qword [rbp + 0x30], 7
mov qword [rbp + 0x28], rsi
mov word [rbp + 0x18], si
cmp qword [rbp + 8], 8
jb 0x1400cd9bd
mov rcx, qword [rbp - 0x10]
call fcn.1401026ec
mov eax, 1
mov rcx, qword [rbp + 0x12a0]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x13b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret