Function at 0x140003e50
Capabilities:
Accept command line arguments
Check if file exists
Copy file
Get file attributes

Disassembly:
push rbx
push rsi
sub rsp, 0x68
xor esi, esi
mov ebx, esi
mov qword [rsp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x50]
lea edx, [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140003eab
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea r9d, [rsi + 4]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x48]
mov dword [rsp + 0x40], 4
lea edx, [rsi + 0x14]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne ebx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140003ebb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x90], r12
test ebx, ebx
je 0x140004208
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
test rax, rax
je 0x140004208
lea rdx, [rsp + 0x44]
mov dword [rsp + 0x44], esi
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [rsp + 0x44]
mov rdx, rax
call fcn.140002af0
test al, al
je 0x140004208
cmp qword [0x140028008], rsi
jne 0x140003f1d
call fcn.140001cf0
xor eax, eax
jmp 0x14000420d
call fcn.140002ca0
mov rdi, rax
test rax, rax
je 0x140004208
mov rbx, qword [0x140028008]
mov r12d, 1
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x60], r15
test rbx, rbx
je 0x140004010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140004010
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov r8d, r12d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140004010
mov rcx, rax
call fcn.1400055e0
mov r15, rax
test rax, rax
jne 0x140003fbf
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r14b, r14b
jmp 0x14000401c
mov rcx, r15
call fcn.1400059a0
mov rcx, r15
test eax, eax
jne 0x140003fe1
call fcn.14000cd64
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r14b, r14b
jmp 0x14000401c
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, esi
mov rcx, r15
test eax, eax
setne r14b
test eax, eax
cmove ebx, r12d
call fcn.14000cd64
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14000401c
mov rdx, rdi
call fcn.140002ea0
movzx r14d, al
mov rcx, qword [0x140028008]
mov r15, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x80]
test rcx, rcx
je 0x14000403a
call fcn.14000cd64
test r14b, r14b
mov qword [0x140028008], rdi
mov r14, qword [rsp + 0x98]
je 0x140004208
xor bl, bl
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], si
jne 0x140004060
cmp rax, 4
jb 0x14000417e
add rax, 0xfffffffffffffffc
lea rdx, str..msi
mov r8d, 4
lea rcx, [rdi + rax*2]
call fcn.14000c920
test eax, eax
jne 0x14000417e
call fcn.140004f00
test al, al
je 0x1400041ae
mov rax, qword [0x140028048]
lea r8, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x40], esi
mov rcx, rdi
call qword [0x1400193d0]
test eax, eax
jne 0x1400040d4
mov ecx, dword [rsp + 0x40]
lea rdx, str.UpgradeCode
call fcn.140005090
mov rsi, rax
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x1400040e9
mov rax, qword [0x140028030]
call qword [0x1400193d0]
test rsi, rsi
je 0x1400041ae
lea rdx, str.C819B794_A45C_4F27_9860_0C86492A52CC
mov rcx, rsi
call fcn.14000aa5c
test eax, eax
movzx ebx, bl
mov rcx, rsi
cmove ebx, r12d
call fcn.14000cd64
test bl, bl
je 0x1400041ae
mov rcx, qword [0x140028008]
call fcn.1400059a0
test eax, eax
je 0x1400041ae
call fcn.140003200
test al, al
je 0x1400041ae
call fcn.140003c60
test al, al
jne 0x140003f16
mov rcx, qword [0x140028008]
test rcx, rcx
je 0x140004208
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140004160
cmp rax, 4
jb 0x140004208
lea rcx, [rcx + rax*2]
add rcx, 0xfffffffffffffff8
jmp 0x1400041d9
mov rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], si
jne 0x140004185
cmp rax, 4
jb 0x1400041ae
add rax, 0xfffffffffffffffc
lea rdx, str..exe
mov r8d, 4
lea rcx, [rdi + rax*2]
call fcn.14000c920
mov rdx, qword [0x140028008]
test rdx, rdx
je 0x140004208
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x1400041c1
cmp rcx, 4
jb 0x140004208
add rdx, 0xfffffffffffffff8
lea rcx, [rdx + rcx*2]
mov r8d, 4
lea rdx, str..msi
call fcn.14000c920
test eax, eax
jne 0x140004208
mov rcx, qword [0x140028008]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov rcx, qword [0x140028008]
call fcn.140001710
mov eax, 0xffffffff
mov r12, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
add rsp, 0x68
pop rsi
pop rbx
ret