Function at 0x140003d40
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
xor edi, edi
mov ebx, edi
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x40]
lea edx, [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140003d9e
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
lea r9d, [rdi + 4]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x38]
mov dword [rsp + 0x30], 4
lea edx, [rdi + 0x14]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne ebx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140003dae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], rsi
test ebx, ebx
je 0x140004008
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
test rax, rax
je 0x140004008
lea rdx, [rsp + 0x34]
mov dword [rsp + 0x34], edi
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [rsp + 0x34]
mov rdx, rax
call fcn.140002a20
test al, al
je 0x140004008
cmp qword [0x140027008], rdi
jne 0x140003e10
call fcn.140001c20
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
call fcn.140002bd0
mov rbx, rax
test rax, rax
je 0x140004008
mov rdx, rax
call fcn.140002dd0
mov rcx, qword [0x140027008]
movzx esi, al
test rcx, rcx
je 0x140003e3d
call fcn.14000ca34
mov qword [0x140027008], rbx
test sil, sil
je 0x140004008
xor sil, sil
mov rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140003e57
cmp rax, 4
jb 0x140003f7e
add rax, 0xfffffffffffffffc
lea rdx, str..msi
mov r8d, 4
lea rcx, [rbx + rax*2]
call fcn.14000c5f0
test eax, eax
jne 0x140003f7e
call fcn.140004cf0
test al, al
je 0x140003fae
mov rax, qword [0x140027048]
lea r8, [rsp + 0x30]
xor edx, edx
mov dword [rsp + 0x30], edi
mov rcx, rbx
call qword [0x1400183c0]
test eax, eax
jne 0x140003ecb
mov ecx, dword [rsp + 0x30]
lea rdx, str.UpgradeCode
call fcn.140004e80
mov rdi, rax
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x140003ee0
mov rax, qword [0x140027030]
call qword [0x1400183c0]
test rdi, rdi
je 0x140003fae
lea rdx, str.C819B794_A45C_4F27_9860_0C86492A52CC
mov rcx, rdi
call fcn.14000a7ac
test eax, eax
movzx ebx, sil
mov ecx, 1
cmove ebx, ecx
mov rcx, rdi
call fcn.14000ca34
test bl, bl
je 0x140003fae
mov rcx, qword [0x140027008]
call fcn.1400056f0
test eax, eax
je 0x140003fae
call fcn.1400030f0
test al, al
je 0x140003fae
call fcn.140003b50
test al, al
jne 0x140003dfe
mov rcx, qword [0x140027008]
test rcx, rcx
je 0x140004008
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140003f60
cmp rax, 4
jb 0x140004008
lea rcx, [rcx + rax*2]
add rcx, 0xfffffffffffffff8
jmp 0x140003fd9
mov rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140003f85
cmp rax, 4
jb 0x140003fae
add rax, 0xfffffffffffffffc
lea rdx, str..exe
mov r8d, 4
lea rcx, [rbx + rax*2]
call fcn.14000c5f0
mov rdx, qword [0x140027008]
test rdx, rdx
je 0x140004008
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x140003fc1
cmp rcx, 4
jb 0x140004008
add rdx, 0xfffffffffffffff8
lea rcx, [rdx + rcx*2]
mov r8d, 4
lea rdx, str..msi
call fcn.14000c5f0
test eax, eax
jne 0x140004008
mov rcx, qword [0x140027008]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov rcx, qword [0x140027008]
call fcn.140001640
mov rsi, qword [rsp + 0x60]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret