Function at 0x1400be586
Capabilities:
Set current directory
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x248
movaps xmmword [rsp + 0x230], xmm6
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rdx
mov rsi, rcx
mov rax, qword [0x14033f038]
xor rax, rsp
mov qword [rsp + 0x228], rax
call fcn.14006b710
mov r14, rax
lea rax, str.type
lea r8, [rsp + 0x70]
mov qword [r8], rax
mov qword [r8 + 8], 4
lea rdx, [rsp + 0x80]
mov rcx, r14
call fcn.140067040
lea r15, [rsi + 0x10]
cmp byte [rsi + 0x27], 0
js 0x1400be97e
mov rax, qword [rsp + 0x90]
mov qword [r15 + 0x10], rax
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [r15], xmm0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movzx ecx, byte [rsi + 0x27]
test cl, cl
js 0x1400be98b
mov rdi, rcx
mov rax, r15
test cl, cl
jns 0x1400be636
mov rax, qword [r15]
test rdi, rdi
je 0x1400be644
test rax, rax
je 0x1400beb14
cmp rdi, 7
jne 0x1400be977
mov ecx, 0x76726573
xor ecx, dword [rax]
mov edx, 0x65636976
xor edx, dword [rax + 3]
or edx, ecx
sete bpl
lea rdx, str.check_state_and_terminate
mov rcx, r14
call fcn.1400684d0
test al, al
jne 0x1400be994
mov rcx, r14
call fcn.1400c0d50
cmp eax, 6
setne al
test rdi, rdi
je 0x1400be95c
or bpl, al
jne 0x1400be95c
movabs rbx, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x40]
mov qword [rcx + 0x10], rbx
movaps xmm6, xmmword [0x140301d60]
movaps xmmword [rcx], xmm6
call fcn.1400785c0
lea r13, [rsp + 0x210]
mov qword [r13 + 0x10], rbx
movaps xmmword [r13], xmm6
mov rcx, r13
call fcn.1400785c0
mov ecx, 3
mov rdx, r13
call fcn.140077820
lea r12, [rsp + 0x1f0]
mov qword [r12 + 0x10], rbx
movaps xmmword [r12], xmm6
lea rax, [0x14030cb1b]
lea r8, [rsp + 0x1e0]
mov qword [r8], rax
mov qword [r8 + 8], 0xe
lea rbp, [rsp + 0x80]
mov rcx, r13
mov rdx, rbp
call fcn.14007dc60
lea rbx, [0x1403025a0]
lea r8, [rsp + 0x1d0]
mov qword [r8], rbx
mov qword [r8 + 8], 0xa
mov rcx, rbp
mov rdx, r12
call fcn.14006cbc0
mov rcx, rbp
call fcn.14007be00
lea r13, [rsp + 0x80]
mov rcx, r13
mov rdx, r12
mov r8d, 0x21
call fcn.1400bee20
mov rcx, r13
call fcn.1400522d0
mov ebp, eax
mov rcx, r13
call fcn.1400e2da0
test bpl, bpl
jne 0x1400bea16
lea r8, [rsp + 0x1c0]
mov qword [r8], rbx
mov qword [r8 + 8], 0xa
lea rcx, [rsp + 0x210]
lea rdx, [rsp + 0x80]
call fcn.14006cbc0
lea rcx, [rsp + 0x1f0]
call fcn.14007be00
lea rcx, [rsp + 0x210]
call fcn.14007be00
lea r12, [rsp + 0x40]
lea r13, [rsp + 0x80]
mov rcx, r12
mov rdx, r13
call fcn.14007be10
mov rcx, r13
call fcn.14007be00
movzx eax, byte [r12 + 0x17]
test al, al
jns 0x1400be7f5
mov rax, qword [rsp + 0x48]
jmp 0x1400be7f8
and eax, 0x7f
test rax, rax
je 0x1400bea30
lea r12, [rsp + 0x40]
mov rcx, r12
mov rdx, r13
call fcn.140050490
cmp byte [rsp + 0x97], 0
mov rcx, r13
jns 0x1400be826
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, r13
call fcn.14007be00
mov rcx, r13
call fcn.1400beb41
cmp byte [rsp + 0x97], 0
jns 0x1400be84e
mov r13, qword [rsp + 0x80]
mov rcx, r13
call fcn.1400becb0
mov ebp, eax
cmp byte [rsp + 0x97], 0
jns 0x1400be86f
mov rcx, qword [rsp + 0x80]
call fcn.14016eccc
xor bpl, 1
movabs r8, 0x7fffffffffffffff
mov rcx, r12
mov dl, 1
mov r9d, ebp
call fcn.1400bf090
cmp byte [rsp + 0x57], 0
jns 0x1400be896
mov r12, qword [rsp + 0x40]
mov rcx, r12
xor edx, edx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x1400bea99
mov qword [rsi + 8], rax
test rdi, rdi
je 0x1400be8c9
mov ecx, 0x27f
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov rax, qword [rsi]
mov rax, qword [rax + 8]
lea r9, [rsp + 0x40]
mov rcx, rsi
mov rdx, r14
mov r8, r15
call qword [case.0x140211850.0]
mov rcx, qword [rsi + 8]
lea rdx, str.ChromeMain
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
call fcn.14006b710
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov r9, rax
mov rax, rsi
call qword [case.0x140211850.0]
mov esi, eax
lea rcx, [rsp + 0x40]
call fcn.14007be00
lea rcx, [rsp + 0x60]
call fcn.1400bebfc
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.140171860
mov eax, esi
movaps xmm6, xmmword [rsp + 0x230]
add rsp, 0x248
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.msedge_elf.dll_IsExtensionPointDisableSet
movzx edx, al
shl rdx, 0xc
lea rcx, [rsp + 0x60]
call fcn.1400c0bf9
jmp 0x1400be69a
xor ebp, ebp
jmp 0x1400be663
mov rcx, qword [r15]
call fcn.14016eccc
jmp 0x1400be5fd
mov rdi, qword [rsi + 0x18]
jmp 0x1400be62c
mov ecx, 2
call fcn.1400d98c0
test al, al
je 0x1400be9fd
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.....chrome_appmain_dll_loader_win.cc
lea r12, [rsp + 0x80]
mov rcx, r12
mov r8d, 0x96
mov r9d, 2
call fcn.14020a880
lea rcx, [rsp + 0x90]
lea rdx, str.Browser_state_checked_and_exiting.
mov r8d, 0x22
call fcn.14015f6d6
mov rcx, rax
mov edx, 0xa0
call fcn.1401c7e26
mov rcx, r12
call fcn.14020a900
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xa0
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1400be67a
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x1f0]
call fcn.140072d70
jmp 0x1400be7aa
mov ecx, 2
call fcn.1400d98c0
test al, al
je 0x1400beb02
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.....chrome_appmain_dll_loader_win.cc
lea rdi, [rsp + 0x80]
mov rcx, rdi
mov r8d, 0x77
mov r9d, 2
call fcn.14020a880
lea rcx, [rsp + 0x90]
lea rdx, str.Cannot_find_module
mov r8d, 0x13
call fcn.14015f6d6
lea rdx, [0x1403025a0]
mov rcx, rax
call fcn.14020a9c0
jmp 0x1400beafa
mov ecx, 2
call fcn.1400d98c0
test al, al
je 0x1400beb02
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.....chrome_appmain_dll_loader_win.cc
lea rdi, [rsp + 0x80]
mov rcx, rdi
mov r8d, 0x7c
mov r9d, 2
call fcn.14020a880
lea rcx, [rsp + 0x90]
lea rdx, str.Failed_to_load_Chrome_DLL_from
mov r8d, 0x1f
call fcn.14015f6d6
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140115ef0
mov rcx, rdi
call fcn.14020a900
mov qword [rsi + 8], 0
mov esi, 7
jmp 0x1400be91a
lea rax, str.string_view::string_view__CharT___size_t_:_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_string_view
lea r9, str.__len__0____s___nullptr
mov r8d, 0x129
call fcn.1401c469a
int3