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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x2d8
mov rax, qword [0x140191d78]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov r14, rdx
mov rbx, rcx
lea r15, str.nw.dll
cmp qword [rbx + 0x20], 0
je 0x140002bb0
add rbx, 0x10
lea rdx, str.service
mov rcx, rbx
call fcn.140001cf0
test al, al
jne 0x140002bb0
lea rdx, str.watcher
mov rcx, rbx
call fcn.140001cf0
lea rcx, str.chrome_watcher.dll
lea r15, str.nw.dll
test al, al
cmovne r15, rcx
mov rcx, r15
call fcn.1400f4120
mov r12, rax
lea rsi, [rsp + 0xa0]
mov rcx, rsi
call fcn.140012850
mov ecx, 2
mov rdx, rsi
call fcn.14001aa40
lea r8, [rsp + 0x50]
mov qword [r8], r15
mov qword [r8 + 8], r12
lea rdi, [rsp + 0x80]
mov rcx, rsi
mov rdx, rdi
call fcn.140013c40
lea rsi, [rsp + 0xc0]
mov r8d, 0x21
mov rcx, rsi
mov rdx, rdi
call fcn.140021860
mov rcx, rsi
call fcn.140021a70
mov ebx, eax
mov rcx, rsi
call fcn.1400219c0
test bl, bl
je 0x140002c3a
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x80]
call fcn.140012870
jmp 0x140002c8e
lea rcx, str.65.0.3325.146
lea rsi, [rsp + 0x40]
mov qword [rsi], rcx
call fcn.1400f3f20
mov qword [rsi + 8], rax
lea rcx, [rsp + 0xa0]
lea rdi, [rsp + 0xc0]
mov rdx, rdi
mov r8, rsi
call fcn.1400146a0
lea r8, [rsp + 0x30]
mov qword [r8], r15
mov qword [r8 + 8], r12
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140013c40
mov rcx, rdi
call fcn.1400138f0
lea rcx, [rsp + 0x80]
call fcn.1400138f0
lea rbx, [rsp + 0xa0]
mov rcx, rbx
call fcn.1400138f0
lea rsi, [rsp + 0x60]
mov rcx, r14
mov rdx, rsi
call fcn.1400129f0
mov rcx, rsi
call fcn.1400138f0
cmp qword [r14 + 0x10], 0
je 0x140002dc2
lea rdx, [rsp + 0xc0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
mov rcx, r14
mov rdx, rbx
call fcn.140013550
mov esi, 7
cmp qword [rsp + 0xb8], rsi
mov rcx, rbx
jbe 0x140002d08
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rbx
call fcn.1400138f0
mov rcx, r14
call fcn.1400035e0
cmp qword [r14 + 0x18], rsi
mov rcx, r14
jbe 0x140002d2a
mov rcx, qword [r14]
xor edx, edx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test edi, edi
je 0x140002d4d
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test rbx, rbx
jne 0x140002e25
mov ecx, 2
call fcn.140015cf0
test al, al
je 0x140002e23
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._chrome_app_main_dll_loader_win.cc
lea rdi, [rsp + 0xc0]
mov r8d, 0x91
mov r9d, 2
mov rcx, rdi
call fcn.1400170c0
lea rcx, [rsp + 0xd0]
lea rdx, str.Failed_to_load_NW_DLL_from
call fcn.140001700
cmp qword [r14 + 0x18], 7
jbe 0x140002db2
mov r14, qword [r14]
mov rcx, rax
mov rdx, r14
call fcn.1400172d0
mov rcx, rdi
jmp 0x140002e1e
mov ecx, 2
call fcn.140015cf0
test al, al
je 0x140002e23
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._chrome_app_main_dll_loader_win.cc
lea rsi, [rsp + 0xc0]
mov r8d, 0x8c
mov r9d, 2
mov rcx, rsi
call fcn.1400170c0
lea rcx, [rsp + 0xd0]
lea rdx, str.Cannot_find_module
call fcn.140001700
mov rcx, rax
mov rdx, r15
call fcn.1400172d0
mov rcx, rsi
call fcn.140017200
xor ebx, ebx
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1400edc60
mov rax, rbx
add rsp, 0x2d8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret