Function at 0x1400180f0
Capabilities:
Check if file exists
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x140147040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r13, rcx
mov qword [rbp - 0x71], rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], rax
mov r8, qword [0x1401482c0]
mov r8, qword [r8 + 0x78]
lea rdx, str._s_build.prop
lea rcx, [rbp + 0xf]
call fcn.140013670
nop
mov rbx, qword [0x1401482f8]
mov r15, qword [rbp + 0x1f]
mov r9, r15
lea r8, str._system_build.prop
lea rdx, str.pull__s__s
lea rcx, [rbp - 0x51]
call fcn.140013670
nop
mov r9, qword [rax + 0x10]
mov r8, qword [rbx + 0x20]
lea rdx, str._s__s
lea rcx, [rbp - 0x69]
call fcn.140013670
nop
mov rdi, qword [rax + 0x10]
cmp byte [rbx + 0x28], 0
je 0x1400181ba
lea rdx, [0x1400191f0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
jmp 0x1400181c8
mov edx, 0xffffffff
mov rcx, rdi
call fcn.14001ca50
nop
mov rcx, qword [rbp - 0x59]
call fcn.14001cc58
nop
mov rcx, qword [rbp - 0x41]
call fcn.14001cc58
mov rcx, r15
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1400181f0
xor dil, dil
jmp 0x1400184f6
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], rax
mov rdx, r15
lea rcx, [rbp - 0x21]
call fcn.140016d80
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rax
lea rcx, [rbp - 9]
call fcn.140017050
nop
xor bl, bl
mov byte [rbp - 0x79], bl
xor esi, esi
mov r14d, esi
mov r12, qword [rbp - 1]
test r12, r12
je 0x140018310
mov r15d, esi
mov r11, qword [rbp - 0x19]
mov r13, qword [rbp - 0x21]
nop dword [rax]
nop word [rax + rax]
mov rdi, qword [rbp - 9]
mov rbx, qword [rdi + r15]
mov r9, rsi
test r11, r11
je 0x1400182f4
lea r10, [r13 + 0x10]
nop dword [rax + rax]
mov rax, qword [r10]
mov r8, rbx
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140018293
inc rax
test ecx, ecx
jne 0x140018280
test edx, edx
je 0x1400182a5
inc r9
add r10, 0x30
cmp r9, r11
jb 0x140018270
jmp 0x1400182f4
lea rax, [r9 + r9*2]
add rax, rax
mov rcx, qword [r13 + rax*8 + 0x28]
mov r8, qword [rdi + r15 + 8]
test rcx, rcx
je 0x1400182f4
mov r9, r8
sub r9, rcx
movzx edx, byte [rcx]
movzx eax, byte [rcx + r9]
sub edx, eax
jne 0x1400182d4
inc rcx
test eax, eax
jne 0x1400182c1
test edx, edx
je 0x1400182f4
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.140017ef0
mov byte [rbp - 0x79], 1
mov r11, qword [rbp - 0x19]
mov r13, qword [rbp - 0x21]
mov r12, qword [rbp - 1]
inc r14
add r15, 0x10
cmp r14, r12
jb 0x140018250
mov r15, qword [rbp + 0x1f]
movzx ebx, byte [rbp - 0x79]
mov r13, qword [rbp - 0x71]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
test bl, bl
je 0x140018481
lea rdx, [0x140022e58]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
je 0x140018375
cmp qword [rbp - 0x19], rsi
jbe 0x14001836c
mov rbx, rsi
mov rcx, qword [rbp - 0x21]
mov r9, qword [rbx + rcx + 0x28]
mov r8, qword [rbx + rcx + 0x10]
lea rdx, str._s_s_n
mov rcx, rdi
call fcn.1400162a0
inc rsi
lea rbx, [rbx + 0x30]
cmp rsi, qword [rbp - 0x19]
jb 0x140018342
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
cmp dword [r13 + 0x74], 3
je 0x1400183df
mov rbx, qword [0x1401482f8]
lea r9, str.remount
mov r8, qword [rbx + 0x20]
lea rdx, str._s__s
lea rcx, [rbp - 0x51]
call fcn.140013670
nop
mov rdi, qword [rax + 0x10]
cmp byte [rbx + 0x28], 0
je 0x1400183c8
lea rdx, [0x1400191f0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
jmp 0x1400183d6
mov edx, 0xffffffff
mov rcx, rdi
call fcn.14001ca50
nop
mov rcx, qword [rbp - 0x41]
call fcn.14001cc58
mov rbx, qword [0x1401482f8]
lea rdx, str._system_build.prop
mov rcx, rbx
call fcn.1400142f0
lea r9, str._system_build.prop
mov r8, r15
lea rdx, str.push__s__s
lea rcx, [rbp - 0x39]
call fcn.140013670
nop
mov r9, qword [rax + 0x10]
mov r8, qword [rbx + 0x20]
lea rdx, str._s__s
lea rcx, [rbp - 0x69]
call fcn.140013670
nop
mov rdi, qword [rax + 0x10]
cmp byte [rbx + 0x28], 0
je 0x140018452
lea rdx, [0x1400191f0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
jmp 0x140018460
mov edx, 0xffffffff
mov rcx, rdi
call fcn.14001ca50
nop
mov rcx, qword [rbp - 0x59]
call fcn.14001cc58
nop
mov rcx, qword [rbp - 0x29]
call fcn.14001cc58
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
xor dil, dil
jmp 0x140018484
mov dil, 1
mov rsi, qword [rbp - 9]
test rsi, rsi
je 0x1400184bb
lea r9, [fcn.140001300]
mov r8, qword [rsi - 8]
mov edx, reloc.WS2_32.dll_recv
mov rcx, rsi
call fcn.14001cb88
mov rdx, qword [rsi - 8]
shl rdx, 4
add rdx, 8
lea rcx, [rsi - 8]
call fcn.14001cb80
nop
mov rsi, qword [rbp - 0x21]
test rsi, rsi
je 0x1400184f6
lea r9, [0x140018ba0]
mov r8, qword [rsi - 8]
mov edx, 0x30
mov rcx, rsi
call fcn.14001cb88
mov rdx, qword [rsi - 8]
lea rdx, [rdx + rdx*2]
shl rdx, 4
add rdx, 8
lea rcx, [rsi - 8]
call fcn.14001cb80
nop
mov rcx, r15
call fcn.14001cc58
movzx eax, dil
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14001cb60
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret