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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1280]
mov eax, 0x1380
call fcn.1401e33b0
sub rsp, rax
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x1270], rax
mov rsi, rcx
mov rax, qword [rcx]
mov rax, qword [rax + 0x98]
call qword [case.0x1400136d6.0]
test al, al
jne 0x140151cd4
xor eax, eax
jmp 0x1401521c7
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x88]
call qword [case.0x1400136d6.0]
cmp eax, 1
je 0x140151cf6
mov eax, 1
jmp 0x1401521c7
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x270]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0xa70]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x60]
call fcn.1401e7e40
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0xb0]
call qword [case.0x1400136d6.0]
mov rbx, rax
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.1400040b0
nop
lea rdx, [rbx + 0x20]
lea rcx, [rbp]
call fcn.1400040b0
nop
lea rdx, [rbx + 0x40]
lea rcx, [rbp + 0x20]
call fcn.1400040b0
nop
lea rdx, [rbx + 0x60]
lea rcx, [rbp + 0x40]
call fcn.14006d9f0
nop
mov rax, qword [rsi]
mov r9d, 0x400
lea r8, [rbp + 0x270]
xor edx, edx
mov rcx, rsi
mov rax, qword [rax + 0x70]
call qword [case.0x1400136d6.0]
test eax, eax
je 0x140151dfe
mov r8d, 0x104
lea rdx, [rbp + 0x270]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rcx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
add rcx, rbx
cmp rcx, 0x104
jae 0x140151dfe
lea rdx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rdx, qword [rbp]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp + 0x270]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140151e21
lea rcx, [rbp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140151eb7
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x60]
call fcn.1401e7e40
mov rax, qword [rsi]
mov r9d, 0x400
lea r8, [rbp + 0xa70]
mov edx, 1
mov rcx, rsi
mov rax, qword [rax + 0x70]
call qword [case.0x1400136d6.0]
test eax, eax
je 0x140151eb7
mov r8d, 0x104
lea rdx, [rbp + 0xa70]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rcx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
add rcx, rbx
cmp rcx, 0x104
jae 0x140151eb7
lea rdx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rdx, qword [rbp]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor edi, edi
test eax, eax
je 0x140151fa0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rax
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], WSAGetLastError
mov dword [rbp - 0x54], 1
mov word [rbp - 0x50], di
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1401521a1
mov rbx, qword [rsp + 0x58]
mov dword [rsp + 0x50], edi
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x140151f7f
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 rax, qword [rsi]
mov edx, 2
mov rcx, rsi
mov rax, qword [rax + 0x80]
call qword [case.0x1400136d6.0]
lea rcx, [rbp + 0x270]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14015219c
mov r8d, 0x104
lea rdx, [rbp + 0x270]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rcx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
add rcx, rbx
cmp rcx, 0x104
jae 0x140152014
lea rdx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rdx, qword [rbp]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14015204f
mov edx, 0x20
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14015204f
lea ecx, [rax + 0xa]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x64
jl 0x140152031
mov r8d, 0x104
lea rdx, [rbp + 0x270]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rcx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
add rcx, rbx
cmp rcx, 0x104
jae 0x1401520ae
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1401520d5
mov edx, 0x20
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8d, 0x104
lea rdx, [rbp + 0x270]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rcx, str.MFNP_ALRDY_INST.ini
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
add rcx, rbx
cmp rcx, 0x104
jae 0x140152126
lea rdx, str.MFNP_ALRDY_INST.ini
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14015214d
mov edx, 0x20
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rbp + 0x270]
lea rdx, str.UNINSTALLDEFAULTPATH
mov rcx, r9
call qword [case.0x1400136d6.0]
lea rcx, [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, 1
lea rcx, [rbp + 0x40]
call fcn.14001a060
lea rcx, [rbp + 0x20]
call fcn.1400048a0
lea rcx, [rbp]
call fcn.1400048a0
lea rcx, [rbp - 0x20]
call fcn.1400048a0
mov eax, edi
mov rcx, qword [rbp + 0x1270]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x1380]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret