Function at 0x140002430
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 + 0x40], r8
mov qword [rsp + 0x38], rdx
mov rsi, rcx
mov rax, qword [0x1401c2c08]
xor rax, rsp
mov qword [rsp + 0x308], rax
call fcn.14005b6f0
mov rbx, rax
lea rcx, [0x140180b7e]
lea r14, [rsp + 0x80]
mov qword [r14], rcx
call fcn.140169380
mov qword [r14 + 8], rax
lea rdx, [rsp + 0x100]
mov rcx, rbx
mov r8, r14
call fcn.14005c210
lea rdi, [rsi + 0x10]
test byte [rsi + 0x10], 1
je 0x1400024b3
mov rcx, qword [rsi + 0x20]
call fcn.1401438d8
mov rax, qword [rsp + 0x110]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x100]
movups xmmword [rdi], xmm0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x30], rdi
movzx r14d, byte [rdi]
test r14b, 1
jne 0x1400024e6
shr r14d, 1
jmp 0x1400024ea
mov r14, qword [rsi + 0x18]
mov qword [rsp + 0x48], rbx
mov rcx, rbx
call fcn.140062300
test r14, r14
je 0x140002501
cmp eax, 7
je 0x140002516
call sub.nw_elf.dll_IsExtensionPointDisableSet
movzx edx, al
shl edx, 0xc
lea rcx, [rsp + 0x70]
call fcn.140003044
movabs rbx, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x50]
mov qword [rcx + 0x10], rbx
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rcx], xmm6
call fcn.140040d10
lea r12, str.nw.dll
mov rcx, r12
call fcn.140169634
mov r13, rax
lea rdi, [rsp + 0xe0]
mov qword [rdi + 0x10], rbx
movaps xmmword [rdi], xmm6
mov rcx, rdi
call fcn.140040d10
mov ecx, 3
mov rdx, rdi
call fcn.14003fd40
lea rbp, [rsp + 0xc0]
mov qword [rbp + 0x10], rbx
movaps xmmword [rbp], xmm6
lea rcx, str.122.0.6261.69
lea rbx, [rsp + 0xb0]
mov qword [rbx], rcx
call fcn.140169380
mov qword [rbx + 8], rax
lea r15, [rsp + 0x100]
mov rcx, rdi
mov rdx, r15
mov r8, rbx
call fcn.140059070
lea r8, [rsp + 0xa0]
mov qword [r8], r12
mov qword [r8 + 8], r13
mov rcx, r15
mov rdx, rbp
call fcn.140057f20
mov rcx, r15
call fcn.1400568a0
lea rdi, [rsp + 0x100]
mov rcx, rdi
mov rdx, rbp
mov r8d, 0x21
call fcn.140059c50
mov rcx, rdi
call fcn.14003d030
mov ebx, eax
mov rcx, rdi
call fcn.140059e00
test bl, bl
je 0x140002617
lea rcx, [rsp + 0x100]
lea rdx, [rsp + 0xc0]
call fcn.140056790
jmp 0x14000263b
lea r8, [rsp + 0x90]
mov qword [r8], r12
mov qword [r8 + 8], r13
lea rcx, [rsp + 0xe0]
lea rdx, [rsp + 0x100]
call fcn.140057f20
lea rcx, [rsp + 0xc0]
call fcn.1400568a0
lea rcx, [rsp + 0xe0]
call fcn.1400568a0
lea rdi, [rsp + 0x50]
lea rbx, [rsp + 0x100]
mov rcx, rdi
mov rdx, rbx
call fcn.140056920
mov rcx, rbx
call fcn.1400568a0
movzx eax, byte [rdi]
test al, 1
je 0x140002683
mov rax, qword [rsp + 0x58]
jmp 0x140002685
shr eax, 1
test rax, rax
je 0x1400026d8
lea rdi, [rsp + 0x100]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140146ec0
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.140057230
test byte [r12], 1
je 0x140002744
mov rcx, qword [rsp + 0xf0]
jmp 0x14000274c
mov ecx, 2
call fcn.140051fe0
test al, al
je 0x140002886
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.1400533b0
lea rcx, [rsp + 0x110]
lea rdx, str.Cannot_find_module
mov r8d, 0x13
call fcn.14000206f
lea rdx, str.nw.dll
mov rcx, rax
call fcn.140045ea0
jmp 0x14000287e
lea rcx, [rsp + 0xe2]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, r12
call fcn.1400568a0
lea rdx, str.no_pre_read_main_dll
mov rcx, qword [rsp + 0x48]
call fcn.14005c190
test al, al
jne 0x140002785
lea rcx, [rsp + 0x50]
movabs r8, 0x7fffffffffffffff
mov dl, 1
call fcn.14003f1d0
test byte [rsp + 0x50], 1
je 0x140002793
mov rcx, qword [rsp + 0x60]
jmp 0x140002798
lea rcx, [rsp + 0x52]
xor edx, edx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov r15, rax
test ebp, ebp
je 0x1400027bb
lea rcx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test r15, r15
je 0x14000281d
mov qword [rsi + 8], r15
test r14, r14
je 0x1400027d9
mov ecx, 0x27f
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov rax, qword [rsi]
mov rax, qword [rax + 8]
lea r8, [rsp + 0x50]
mov rcx, rsi
mov rdx, qword [rsp + 0x30]
call qword [0x1401b1be0]
mov rcx, qword [rsi + 8]
lea rdx, str.ChromeMain
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
call qword [0x1401b1be0]
mov esi, eax
jmp 0x140002893
mov ecx, 2
call fcn.140051fe0
test al, al
je 0x140002886
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.1400533b0
lea rcx, [rsp + 0x110]
lea rdx, str.Failed_to_load_NW_DLL_from
mov r8d, 0x1b
call fcn.14000206f
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140045f40
mov rcx, rdi
call fcn.1400534a0
mov qword [rsi + 8], 0
mov esi, 7
lea rcx, [rsp + 0x50]
call fcn.1400568a0
mov rcx, qword [rsp + 0x308]
xor rcx, rsp
call fcn.140143c30
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