Function at 0x140018240
Capabilities:
Acquire debug privileges
Check if file exists
Execute command
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x198
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x110], 0xfffffffffffffffe
cmp ecx, 3
jne 0x140018274
mov rdi, qword [rdx + 8]
mov rcx, qword [rdx + 0x10]
call fcn.140016bf0
mov esi, eax
jmp 0x140018280
lea rdi, str.D:UEBasex64ReleaseUEBase.dll
mov esi, 0xc154
lea rcx, str.Process_pid:__d_n
mov edx, esi
call fcn.14000e8f0
xorps xmm0, xmm0
movaps xmmword [rbp + 0xf0], xmm0
mov qword [rbp + 0x108], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x108]
mov rcx, rax
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14001831e
mov dword [rbp + 0xf0], 1
lea r8, [rbp + 0xf4]
mov dword [rbp + 0xfc], 2
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140018311
mov rcx, qword [rbp + 0x108]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea r8, [rbp + 0xf0]
xor edx, edx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x1fffff
xor edx, edx
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x1400183dd
mov rsi, rax
mov rcx, rax
call fcn.1400161f0
test al, al
je 0x140018408
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140018434
mov dword [rsp + 0x20], 1
lea rbx, [rbp - 0x38]
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x24
mov r9d, 0x40
call fcn.1400185e0
mov rax, qword [rbp - 0x38]
movsxd rax, dword [rax + 4]
lea rcx, [rax + rbp]
add rcx, 0xffffffffffffffc8
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::fail_void_const___ptr64]
test al, al
je 0x140018460
mov rax, qword [rbp - 0x38]
movsxd rax, dword [rax + 4]
mov edx, dword [rax + rbx + 0x10]
lea rcx, str.Opening_the_file_failed:__X_n
call fcn.14000e8f0
mov rcx, rbx
call fcn.140018820
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov esi, 0xfffffffb
jmp 0x140018593
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenProcess_failed:_0x_X_n
mov edx, eax
call fcn.14000e8f0
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov esi, 0xfffffffe
jmp 0x14001859c
lea rcx, str.Invalid_Process_Architecture._n
call fcn.14000e8f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov esi, 0xfffffffd
jmp 0x14001859c
lea rcx, str.Dll_file_doesnt_exist_n
call fcn.14000e8f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov esi, 0xfffffffc
jmp 0x14001859c
lea rcx, [rbp - 0x38]
lea rdx, [rbp + 0xd8]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
lea rcx, [rbp + 0xd8]
call fcn.1400193b0
cmp rax, 0xfff
jg 0x1400184ba
lea rcx, str.Filesize_invalid._n
call fcn.14000e8f0
lea rcx, [rbp - 0x38]
call fcn.140018820
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov esi, 0xfffffffa
jmp 0x140018593
lea rcx, [rbp + 0xd8]
call fcn.1400193b0
mov rcx, rax
call fcn.140066cd0
mov rdi, rax
lea rcx, [rbp - 0x38]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
lea rcx, [rbp + 0xd8]
call fcn.1400193b0
lea rcx, [rbp - 0x38]
mov rdx, rdi
mov r8, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp - 0x38]
call fcn.140018820
lea rcx, str.Mapping..._n
call fcn.14000e8f0
lea rcx, [rbp + 0xd8]
call fcn.1400193b0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
mov byte [rsp + 0x30], 0
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rdi
mov r8, rax
xor r9d, r9d
call section..text
mov ebx, eax
mov rcx, rdi
call fcn.140066c9c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x140018575
lea rcx, [0x140068b5f]
call fcn.14000e8f0
xor esi, esi
jmp 0x140018593
lea rcx, str.Error_while_mapping._n
call fcn.14000e8f0
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov esi, 0xfffffff8
lea rcx, [rbp - 0x38]
call fcn.14001a6f0
mov eax, esi
add rsp, 0x198
pop rbx
pop rdi
pop rsi
pop rbp
ret