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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x2c0
movaps xmmword [rsp + 0x2b0], xmm6
mov r14, rdx
mov rbp, rcx
mov rax, qword [0x14019e638]
xor rax, rsp
mov qword [rsp + 0x2a8], rax
lea rbx, [rcx + 0x10]
mov rcx, rbx
call fcn.14000271d
lea rdi, str.nw.dll
test al, al
jne 0x14000240d
lea rcx, str.watcher
call fcn.140140690
movzx ecx, byte [rbp + 0x10]
mov dl, 1
test cl, dl
je 0x1400023d4
mov rcx, qword [rbp + 0x18]
jmp 0x1400023d7
shr rcx, 1
cmp rax, rcx
jne 0x14000240d
mov qword [rsp + 0x20], rax
lea r9, str.watcher
mov rcx, rbx
xor edx, edx
mov r8, 0xffffffffffffffff
call fcn.1400256aa
test eax, eax
lea rax, str.chrome_watcher.dll
lea rdi, str.nw.dll
cmove rdi, rax
cmp word [rdi], 0
je 0x140002423
xor esi, esi
cmp word [rdi + rsi*2 + 2], 0
lea rsi, [rsi + 1]
jne 0x140002415
jmp 0x140002425
xor esi, esi
movabs rbx, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], rbx
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rbp], xmm6
mov rcx, rbp
call fcn.14002c720
mov ecx, 2
mov rdx, rbp
call fcn.140035820
lea r15, [rsp + 0x60]
mov qword [r15 + 0x10], rbx
movaps xmmword [r15], xmm6
lea rcx, str.81.0.4044.113
lea rbx, [rsp + 0x50]
mov qword [rbx], rcx
call fcn.140140690
mov qword [rbx + 8], rax
lea r12, [rsp + 0xa0]
mov rcx, rbp
mov rdx, r12
mov r8, rbx
call fcn.14002df90
lea r8, [rsp + 0x40]
mov qword [r8], rdi
mov qword [r8 + 8], rsi
mov rcx, r12
mov rdx, r15
call fcn.14002d7c0
mov rcx, r12
call fcn.14002c850
lea rbp, [rsp + 0xa0]
mov rcx, rbp
mov rdx, r15
mov r8d, 0x21
call fcn.14002c500
mov rcx, rbp
call fcn.140047e70
mov ebx, eax
mov rcx, rbp
call fcn.14002c670
test bl, bl
je 0x1400024f8
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x60]
call fcn.14002c740
jmp 0x140002519
lea r8, [rsp + 0x30]
mov qword [r8], rdi
mov qword [r8 + 8], rsi
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0xa0]
call fcn.14002d7c0
lea rcx, [rsp + 0x60]
call fcn.14002c850
lea rbx, [rsp + 0x80]
mov rcx, rbx
call fcn.14002c850
lea rsi, [rsp + 0xa0]
mov rcx, r14
mov rdx, rsi
call fcn.14002c880
mov rcx, rsi
call fcn.14002c850
movzx eax, byte [r14]
test al, 1
jne 0x14000255b
shr rax, 1
jmp 0x14000255f
mov rax, qword [r14 + 8]
test rax, rax
je 0x1400025b3
lea rsi, [rsp + 0xa0]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.1401236f0
mov ecx, 0x104
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebp, eax
mov rcx, r14
mov rdx, rbx
call fcn.14002d3f0
mov edi, 2
mov sil, 1
test byte [rsp + 0x80], sil
je 0x14000261e
mov rcx, qword [rsp + 0x90]
jmp 0x140002624
mov ecx, 2
call fcn.1400302f0
test al, al
je 0x1400026ee
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._chrome_app_main_dll_loader_win.cc
lea rsi, [rsp + 0xa0]
mov rcx, rsi
mov r8d, 0x8e
mov r9d, 2
call fcn.140030be0
lea rcx, [rsp + 0xb0]
lea rdx, str.Cannot_find_module
mov r8d, 0x13
call fcn.140001c63
mov rcx, rax
mov rdx, rdi
call fcn.140030d60
mov rcx, rsi
jmp 0x1400026e9
mov rcx, rbx
or rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rbx
call fcn.14002c850
movabs r8, 0x7fffffffffffffff
mov rcx, r14
mov dl, 1
call fcn.140047a90
add rdi, r14
mov rcx, rdi
test byte [r14], sil
je 0x140002655
mov rcx, qword [r14 + 0x10]
xor edx, edx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test ebp, ebp
je 0x140002678
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test rbx, rbx
jne 0x1400026f0
mov ecx, 2
call fcn.1400302f0
test al, al
je 0x1400026ee
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._chrome_app_main_dll_loader_win.cc
lea rbx, [rsp + 0xa0]
mov rcx, rbx
mov r8d, 0x93
mov r9d, 2
call fcn.140030be0
lea rcx, [rsp + 0xb0]
lea rdx, str.Failed_to_load_NW_DLL_from
mov r8d, 0x1b
call fcn.140001c63
test byte [r14], 1
je 0x1400026db
mov rdi, qword [r14 + 0x10]
mov rcx, rax
mov rdx, rdi
call fcn.140030d60
mov rcx, rbx
call fcn.140030cb0
xor ebx, ebx
mov rcx, qword [rsp + 0x2a8]
xor rcx, rsp
call fcn.1401207e0
mov rax, rbx
movaps xmm6, xmmword [rsp + 0x2b0]
add rsp, 0x2c0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret