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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x648]
sub rsp, 0x740
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rbp + 0x630], rax
xor r8d, r8d
lea rdx, str.Tool_UnInstallMFNPportMonitor
lea rcx, [rsp + 0x50]
call fcn.140001190
nop
call fcn.140059f20
mov rbx, qword [rax + 8]
test rbx, rbx
jne 0x1400303a7
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rbx + 2]
lea rcx, [rsp + 0x50]
call fcn.140001370
nop
lea rcx, [rsp + 0x50]
call fcn.140001320
xor eax, eax
jmp 0x14003073e
xor eax, eax
lea rdi, str.item_not_found__
mov rsi, qword [rbx + 0xa98]
mov ecx, 0x11
repe cmpsw word [rsi], word [rdi]
je 0x1400303c6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x140030715
xor eax, eax
lea rdi, str.item_not_found__
mov rsi, qword [rbx + 0xa90]
mov ecx, 0x11
repe cmpsw word [rsi], word [rdi]
je 0x1400303ed
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x140030715
xor r12d, r12d
mov dword [rbp + 0x210], r12d
xor edx, edx
mov r8d, 0x204
lea rcx, [rbp + 0x214]
call fcn.14019d7c0
lea rcx, [rbp + 0x210]
call fcn.14001fbb0
lea rcx, [rbp + 0x210]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140030452
mov edi, 1
mov r9d, edi
lea r8, str.return___08x
lea edx, [rax + 2]
lea rcx, [rsp + 0x50]
call fcn.140001370
nop
jmp 0x140030732
mov rax, qword [rbx + 0xa98]
cmp dword [rax - 0x10], r12d
je 0x1400306ee
mov rax, qword [rbx + 0xa90]
cmp dword [rax - 0x10], r12d
je 0x1400306ee
mov dword [rbp + 0x420], r12d
xor edx, edx
mov r8d, 0x204
lea rcx, [rbp + 0x424]
call fcn.14019d7c0
mov rdx, qword [rbx + 0xa90]
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x210]
mov qword [rsp + 0x20], rax
lea r9, [0x14021c280]
or r8, 0xffffffffffffffff
mov edx, 0x104
lea rcx, [rbp + 0x420]
call fcn.140198b84
mov edi, 1
lea rcx, [rbp + 0x420]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400305f3
xor edx, edx
lea r8d, [rdi + 0x67]
lea rcx, [rbp - 0x70]
call fcn.14019d7c0
xor edx, edx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x78], rdx
mov dword [rbp - 0x70], 0x68
mov dword [rbp - 0x34], edi
mov word [rbp - 0x30], r12w
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rcx, [rbp + 0x420]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140030573
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rdi + 1]
lea rcx, [rsp + 0x50]
call fcn.140001370
nop
lea rcx, [rsp + 0x50]
call fcn.140001320
xor eax, eax
jmp 0x14003073e
mov rsi, qword [rsp + 0x68]
mov dword [rsp + 0x60], r12d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x1400305a7
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x20
lea rcx, [rbp + 0x420]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, r12d
nop word [rax + rax]
lea rcx, [rbp + 0x420]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400305f6
lea ecx, [rax + 0xa]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x64
jl 0x1400305d0
jmp 0x1400305f6
mov edi, r12d
mov dword [rbp], r12d
xor edx, edx
mov r8d, 0x204
lea rcx, [rbp + 4]
call fcn.14019d7c0
mov rdx, qword [rbx + 0xa98]
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x210]
mov qword [rsp + 0x20], rax
lea r9, [0x14021c280]
or r8, 0xffffffffffffffff
mov edx, 0x104
lea rcx, [rbp]
call fcn.140198b84
lea rcx, [rbp]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140030665
mov edx, 0x20
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140030668
mov edi, r12d
lea rax, str.MFNP_ALRDY_INST.ini
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x210]
mov qword [rsp + 0x20], rax
lea r9, [0x14021c280]
or r8, 0xffffffffffffffff
mov edx, 0x104
lea rcx, [rbp]
call fcn.140198b84
lea rcx, [rbp]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400306c2
mov edx, 0x20
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400306c5
mov edi, r12d
lea rcx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov r9d, edi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140001370
nop
jmp 0x140030732
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x50]
call fcn.140001370
nop
lea rcx, [rsp + 0x50]
call fcn.140001320
xor eax, eax
jmp 0x14003073e
mov edi, 1
mov r9d, edi
lea r8, str.return___08x
lea edx, [rdi + 1]
lea rcx, [rsp + 0x50]
call fcn.140001370
nop
lea rcx, [rsp + 0x50]
call fcn.140001320
mov eax, edi
mov rcx, qword [rbp + 0x630]
xor rcx, rsp
call fcn.140198b40
lea r11, [rsp + 0x740]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret