Function at 0x140001164
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x140007008]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov qword [rcx + 0x10], rdx
lea rbx, [rcx + 0x18]
mov rcx, rdx
mov rdx, rbx
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
mov qword [rsi], rax
test rax, rax
je 0x140001396
cmp dword [rbx], 2
jl 0x14000135a
mov r13d, 1
lea r14, str.__system_level
mov r12, qword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea r15, str.__msedge
lea rbp, str.56EB18F8_B008_4CBD_B6D2_8C97FE7E9062
mov rax, qword [rsi]
mov rcx, qword [rax + r13*8]
mov rdx, r14
call r12
test eax, eax
je 0x1400012eb
mov rax, qword [rsi]
mov rcx, qword [rax + r13*8]
mov rdx, r15
call r12
test eax, eax
je 0x1400012f1
mov rax, qword [rsi]
mov rcx, qword [rax + r13*8]
lea rdx, str.__msedge_beta
call r12
test eax, eax
je 0x1400012f7
mov rax, qword [rsi]
mov rcx, qword [rax + r13*8]
lea rdx, str.__msedge_dev
call r12
test eax, eax
je 0x140001300
mov rax, qword [rsi]
mov rcx, qword [rax + r13*8]
lea rdx, str.__msedge_sxs
call r12
test eax, eax
je 0x140001309
mov rax, qword [rsi]
mov rcx, qword [rax + r13*8]
lea rdx, str.__msedge_internal
call r12
test eax, eax
je 0x140001312
mov rax, qword [rsi]
mov rcx, qword [rax + r13*8]
lea rdx, str.__msedgewebview
call r12
test eax, eax
je 0x14000131b
mov rax, qword [rsi]
mov rcx, qword [rax + r13*8]
lea rdx, str.__extract_archive
call r12
test eax, eax
je 0x140001337
mov rax, qword [rsi]
mov rcx, qword [rax + r13*8]
lea rdx, str.__cleanup
call r12
test eax, eax
je 0x140001354
mov rax, qword [rsi]
mov rbp, qword [rax + r13*8]
mov rcx, rbp
lea rdx, [0x140005522]
call fcn.140003a97
test al, al
je 0x14000133d
add rbp, 4
mov rcx, rbp
lea rdx, str.critical_update_version
call fcn.140003a97
test al, al
je 0x14000133d
mov byte [rsi + 0x1e], 0
lea rbp, str.56EB18F8_B008_4CBD_B6D2_8C97FE7E9062
jmp 0x140001326
mov byte [rsi + 0x1c], 1
jmp 0x140001326
mov qword [rsi + 8], rbp
jmp 0x140001326
lea rax, str.2CD8A007_E189_409D_A2C8_9AF4EF3C72AA
jmp 0x140001322
lea rax, str.0D50BFEC_CD6A_4F9A_964C_C7416E3ACB10
jmp 0x140001322
lea rax, str.65C35B14_6C1D_4122_AC46_7148CC9D6497
jmp 0x140001322
lea rax, str.BE59E8FD_089A_411B_A3B0_051D9E417818
jmp 0x140001322
lea rax, str.F3017226_FE2A_4295_8BDF_00C3A9A7E4C5
mov qword [rsi + 8], rax
inc r13
movsxd rax, dword [rbx]
cmp r13, rax
jl 0x1400011d4
jmp 0x14000135a
mov byte [rsi + 0x38], 1
jmp 0x140001326
mov rax, qword [rsi]
mov rdx, qword [rax + r13*8]
call fcn.1400013bc
test al, al
lea rbp, str.56EB18F8_B008_4CBD_B6D2_8C97FE7E9062
je 0x140001326
mov byte [rsi + 0x1d], 1
jmp 0x140001326
cmp byte [rsi + 0x1c], 0
jne 0x140001396
xor eax, eax
lea rbx, [rsp + 0x2a]
mov word [rbx + 4], ax
mov word [rbx], ax
lea rcx, [0x140005528]
mov rdx, rbx
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, 1
sete al
cmp word [rbx], 0x31
sete cl
and cl, al
mov byte [rsi + 0x1c], cl
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400049e0
mov eax, ebx
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret