Function at 0x18002cac0
Capabilities:
Accept command line arguments
Check if file exists
Copy file
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x320]
sub rsp, 0x420
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rbp + 0x310], rax
mov r15, rdx
mov r14, rcx
xor edx, edx
lea rcx, [rbp]
mov r8d, 0x208
call fcn.180113150
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.Wow64DisableWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
test rax, rax
jne 0x18002cb27
mov edi, esi
jmp 0x18002cb30
lea rcx, [rsp + 0x20]
call rax
mov edi, eax
lea rcx, [rbp]
test r14, r14
jne 0x18002cb99
mov edx, 0x104
call sym.SafeBase64.dll_GetWorkDirectory
test eax, eax
jne 0x18002cb5c
test edi, edi
je 0x18002cb55
mov rcx, qword [rsp + 0x20]
call sym.SafeBase64.dll_DLWow64RevertWow64FsRedirection
xor eax, eax
jmp 0x18002cdff
lea r8, [0x180155ad4]
mov edx, 0x103
lea rcx, [rbp]
call fcn.180125a58
mov r8, r15
lea rcx, [rbp]
mov edx, 0x103
call fcn.180125a58
lea r8, str..sys
mov edx, 0x103
lea rcx, [rbp]
call fcn.180125a58
jmp 0x18002cba6
mov r8, r14
mov edx, 0x103
call fcn.1801259f0
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0xc8
call fcn.180113150
mov edx, 0x63
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str.Drivers_
mov edx, 0x63
lea rcx, [rsp + 0x30]
call fcn.180125a58
mov r8, r15
lea rcx, [rsp + 0x30]
mov edx, 0x63
call fcn.180125a58
lea r8, str..sys
mov edx, 0x63
lea rcx, [rsp + 0x30]
call fcn.180125a58
lea rdx, [rsp + 0x30]
lea rcx, [rbp]
call fcn.1801153c8
xor edx, edx
test eax, eax
jne 0x18002cc32
lea rcx, [rsp + 0x30]
call fcn.18012561c
cmp eax, 0xffffffff
setne sil
mov eax, esi
jmp 0x18002cdff
mov r8d, 0x80
lea rcx, [rbp + 0x210]
call fcn.180113150
xor edx, edx
lea rcx, [rbp + 0x290]
mov r8d, 0x80
call fcn.180113150
lea r8, [rbp + 0x210]
lea rdx, [0x180155c40]
lea rcx, [rbp]
call sym.SafeBase64.dll_GetFileVersion
test eax, eax
je 0x18002ccd0
lea r8, [rbp + 0x290]
lea rdx, [0x180155c40]
lea rcx, [rsp + 0x30]
call sym.SafeBase64.dll_GetFileVersion
test eax, eax
je 0x18002ccd0
lea rax, [rbp + 0x210]
lea r8, [rbp + 0x290]
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x18002ccb4
add rax, 2
test ecx, ecx
jne 0x18002cca0
test edx, edx
jg 0x18002ccd0
test edi, edi
je 0x18002ccc6
mov rcx, qword [rsp + 0x20]
call sym.SafeBase64.dll_DLWow64RevertWow64FsRedirection
mov eax, 1
jmp 0x18002cdff
xor r8d, r8d
mov qword [rsp + 0x460], rbx
lea rdx, [rsp + 0x30]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
test eax, eax
jne 0x18002cdc5
test r14, r14
jne 0x18002cdc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x18002cdc5
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, 0x103
lea rcx, [rbp]
mov r8, rax
call fcn.1801259f0
cmp word [rbp], 0x22
jne 0x18002cd3c
lea r8, [rbp + 2]
mov edx, 0x103
lea rcx, [rbp]
call fcn.1801259f0
lea rcx, [rbp]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x18002cd47
dec eax
movsxd rcx, eax
test eax, eax
jle 0x18002cd76
nop dword [rax]
cmp word [rbp + rcx*2], 0x5c
je 0x18002ce1d
dec eax
dec rcx
test rcx, rcx
jg 0x18002cd60
lea r8, [0x180155ad4]
mov edx, 0x103
lea rcx, [rbp]
call fcn.180125a58
mov r8, r15
lea rcx, [rbp]
mov edx, 0x103
call fcn.180125a58
lea r8, str..sys
mov edx, 0x103
lea rcx, [rbp]
call fcn.180125a58
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
test edi, edi
je 0x18002cdf5
mov rdi, qword [rsp + 0x20]
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.Wow64RevertWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18002cdf5
mov rcx, rdi
call rax
mov eax, ebx
mov rbx, qword [rsp + 0x460]
mov rcx, qword [rbp + 0x310]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x420
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
cdqe
add rax, rax
cmp rax, 0x208
jae 0x18002ce34
mov word [rbp + rax], si
jmp 0x18002cd76
call fcn.18010fc24
int3