Function at 0x1400024e0
Capabilities:
Get common file path
Set current directory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x328
movaps xmmword [rsp + 0x310], xmm6
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], rdx
mov rsi, rcx
mov rax, qword [0x1401c6b58]
xor rax, rsp
mov qword [rsp + 0x308], rax
call fcn.140060130
mov rdi, rax
lea rcx, [0x14018590e]
lea r15, [rsp + 0x80]
mov qword [r15], rcx
call fcn.14016dd30
mov qword [r15 + 8], rax
lea rdx, [rsp + 0x100]
mov rcx, rdi
mov r8, r15
call fcn.140060b00
lea rbx, [rsi + 0x10]
test byte [rsi + 0x10], 1
je 0x140002563
mov rcx, qword [rsi + 0x20]
call fcn.140148278
mov rax, qword [rsp + 0x110]
mov qword [rbx + 0x10], rax
movups xmm0, xmmword [rsp + 0x100]
movups xmmword [rbx], xmm0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x38], rbx
movzx r15d, byte [rbx]
test r15b, 1
jne 0x140002596
shr r15d, 1
jmp 0x14000259a
mov r15, qword [rsi + 0x18]
mov qword [rsp + 0x30], rdi
mov rcx, rdi
call fcn.140066c00
test r15, r15
je 0x1400025b1
cmp eax, 6
je 0x1400025c7
call sub.nw_elf.dll_IsExtensionPointDisableSet
movzx edx, al
shl rdx, 0xc
lea rcx, [rsp + 0x70]
call fcn.140003124
movabs rbx, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x50]
mov qword [rcx + 0x10], rbx
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rcx], xmm6
call fcn.140045130
lea r12, str.nw.dll
mov rcx, r12
call fcn.14016dfe4
mov r13, rax
lea rdi, [rsp + 0xe0]
mov qword [rdi + 0x10], rbx
movaps xmmword [rdi], xmm6
mov rcx, rdi
call fcn.140045130
mov ecx, 3
mov rdx, rdi
call fcn.140043c10
lea rbp, [rsp + 0xc0]
mov qword [rbp + 0x10], rbx
movaps xmmword [rbp], xmm6
lea rcx, str.119.0.6045.105
lea rbx, [rsp + 0xb0]
mov qword [rbx], rcx
call fcn.14016dd30
mov qword [rbx + 8], rax
lea r14, [rsp + 0x100]
mov rcx, rdi
mov rdx, r14
mov r8, rbx
call fcn.14005db30
lea r8, [rsp + 0xa0]
mov qword [r8], r12
mov qword [r8 + 8], r13
mov rcx, r14
mov rdx, rbp
call fcn.14005cad0
mov rcx, r14
call fcn.14005b430
lea rdi, [rsp + 0x100]
mov rcx, rdi
mov rdx, rbp
mov r8d, 0x21
call fcn.14005e830
mov rcx, rdi
call fcn.140040c80
mov ebx, eax
mov rcx, rdi
call fcn.14005e9e0
test bl, bl
je 0x1400026c8
lea rcx, [rsp + 0x100]
lea rdx, [rsp + 0xc0]
call fcn.14005b350
jmp 0x1400026ec
lea r8, [rsp + 0x90]
mov qword [r8], r12
mov qword [r8 + 8], r13
lea rcx, [rsp + 0xe0]
lea rdx, [rsp + 0x100]
call fcn.14005cad0
lea rcx, [rsp + 0xc0]
call fcn.14005b430
lea rcx, [rsp + 0xe0]
call fcn.14005b430
lea rdi, [rsp + 0x50]
lea rbx, [rsp + 0x100]
mov rcx, rdi
mov rdx, rbx
call fcn.14005b460
mov rcx, rbx
call fcn.14005b430
movzx eax, byte [rdi]
test al, 1
je 0x140002734
mov rax, qword [rsp + 0x58]
jmp 0x140002736
shr eax, 1
test rax, rax
je 0x140002789
lea rdi, [rsp + 0x100]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14014b870
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebp, eax
lea rcx, [rsp + 0x50]
lea r12, [rsp + 0xe0]
mov rdx, r12
call fcn.14005be60
test byte [r12], 1
je 0x1400027f5
mov rcx, qword [rsp + 0xf0]
jmp 0x1400027fd
mov ecx, 2
call fcn.140056eb0
test al, al
je 0x14000293d
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.....chrome_appmain_dll_loader_win.cc
lea rdi, [rsp + 0x100]
mov rcx, rdi
mov r8d, 0x74
mov r9d, 2
call fcn.1400581a0
lea rcx, [rsp + 0x110]
lea rdx, str.Cannot_find_module
mov r8d, 0x13
call fcn.14000211d
lea rdx, str.nw.dll
mov rcx, rax
call fcn.14004a190
jmp 0x140002935
lea rcx, [rsp + 0xe2]
mov rdi, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, r12
call fcn.14005b430
lea rdx, str.no_pre_read_main_dll
mov rcx, rdi
call fcn.140060960
test al, al
jne 0x140002839
lea rcx, [rsp + 0x50]
movabs r8, 0x7fffffffffffffff
mov dl, 1
call fcn.140043040
test byte [rsp + 0x50], 1
je 0x140002847
mov rcx, qword [rsp + 0x60]
jmp 0x14000284c
lea rcx, [rsp + 0x52]
xor edx, edx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov r12, rax
test ebp, ebp
je 0x14000286f
lea rcx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test r12, r12
je 0x1400028d4
mov qword [rsi + 8], r12
test r15, r15
je 0x14000288d
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 + 0x50]
mov rcx, rsi
mov rdx, rdi
mov r8, qword [rsp + 0x38]
call qword [0x1401de008]
mov rcx, qword [rsi + 8]
lea rdx, str.ChromeMain
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
call qword [0x1401de008]
mov esi, eax
jmp 0x14000294a
mov ecx, 2
call fcn.140056eb0
test al, al
je 0x14000293d
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.....chrome_appmain_dll_loader_win.cc
lea rdi, [rsp + 0x100]
mov rcx, rdi
mov r8d, 0x79
mov r9d, 2
call fcn.1400581a0
lea rcx, [rsp + 0x110]
lea rdx, str.Failed_to_load_NW_DLL_from
mov r8d, 0x1b
call fcn.14000211d
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14004a230
mov rcx, rdi
call fcn.140058290
mov qword [rsi + 8], 0
mov esi, 7
lea rcx, [rsp + 0x50]
call fcn.14005b430
mov rcx, qword [rsp + 0x308]
xor rcx, rsp
call fcn.140148650
mov eax, esi
movaps xmm6, xmmword [rsp + 0x310]
add rsp, 0x328
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret