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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x2c0
movaps xmmword [rsp + 0x2b0], xmm6
mov r15, rdx
mov rax, qword [0x1401af6a8]
xor rax, rsp
mov qword [rsp + 0x2a8], rax
cmp word [str.nw.dll], 0
je 0x1400021b4
xor edi, edi
lea rax, str.nw.dll
cmp word [rax + rdi*2 + 2], 0
lea rdi, [rdi + 1]
jne 0x1400021a6
jmp 0x1400021b6
xor edi, edi
movabs rsi, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x80]
mov qword [rbx + 0x10], rsi
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rbx], xmm6
mov rcx, rbx
call fcn.140029490
mov ecx, 2
mov rdx, rbx
call fcn.140032ad0
lea r14, [rsp + 0x60]
mov qword [r14 + 0x10], rsi
movaps xmmword [r14], xmm6
lea rcx, str.85.0.4183.83
lea rsi, [rsp + 0x50]
mov qword [rsi], rcx
call fcn.14014ba90
mov qword [rsi + 8], rax
lea r12, [rsp + 0xa0]
mov rcx, rbx
mov rdx, r12
mov r8, rsi
call fcn.14002ad50
lea r13, str.nw.dll
lea r8, [rsp + 0x40]
mov qword [r8], r13
mov qword [r8 + 8], rdi
mov rcx, r12
mov rdx, r14
call fcn.14002a550
mov rcx, r12
call fcn.1400295c0
lea rsi, [rsp + 0xa0]
mov rcx, rsi
mov rdx, r14
mov r8d, 0x21
call fcn.140029270
mov rcx, rsi
call fcn.14003f5b0
mov ebx, eax
mov rcx, rsi
call fcn.1400293e0
test bl, bl
je 0x14000228f
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x60]
call fcn.1400294b0
jmp 0x1400022b0
lea r8, [rsp + 0x30]
mov qword [r8], r13
mov qword [r8 + 8], rdi
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0xa0]
call fcn.14002a550
lea rcx, [rsp + 0x60]
call fcn.1400295c0
lea rcx, [rsp + 0x80]
call fcn.1400295c0
lea rsi, [rsp + 0xa0]
mov rcx, r15
mov rdx, rsi
call fcn.1400295f0
mov rcx, rsi
call fcn.1400295c0
movzx eax, byte [r15]
test al, 1
jne 0x1400022ef
shr rax, 1
jmp 0x1400022f3
mov rax, qword [r15 + 8]
test rax, rax
je 0x140002342
lea rsi, [rsp + 0xa0]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140130ac0
mov ecx, 0x104
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
lea rdi, [rsp + 0x80]
mov rcx, r15
mov rdx, rdi
call fcn.14002a160
test byte [rdi], 1
je 0x1400023b1
mov rcx, qword [rsp + 0x90]
jmp 0x1400023b9
mov ecx, 2
call fcn.14002c580
test al, al
je 0x140002485
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, pe_nt_image_headers64
mov r9d, 2
call fcn.14002d550
lea rcx, [rsp + 0xb0]
lea rdx, str.Cannot_find_module
mov r8d, 0x13
call fcn.140001e21
lea rdx, str.nw.dll
mov rcx, rax
call fcn.14002d700
mov rcx, rsi
jmp 0x140002480
lea rcx, [rsp + 0x82]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rdi
call fcn.1400295c0
movabs r8, 0x7fffffffffffffff
mov rcx, r15
mov dl, 1
call fcn.14003f1b0
lea r14, [r15 + 2]
test byte [r15], 1
mov rcx, r14
je 0x1400023ec
mov rcx, qword [r15 + 0x10]
xor edx, edx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test ebx, ebx
je 0x14000240f
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test rdi, rdi
jne 0x140002487
mov ecx, 2
call fcn.14002c580
test al, al
je 0x140002485
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._chrome_app_main_dll_loader_win.cc
lea rdi, [rsp + 0xa0]
mov rcx, rdi
mov r8d, 0x7d
mov r9d, 2
call fcn.14002d550
lea rcx, [rsp + 0xb0]
lea rdx, str.Failed_to_load_NW_DLL_from
mov r8d, 0x1b
call fcn.140001e21
test byte [r15], 1
je 0x140002472
mov r14, qword [r15 + 0x10]
mov rcx, rax
mov rdx, r14
call fcn.14002d700
mov rcx, rdi
call fcn.14002d640
xor edi, edi
mov rcx, qword [rsp + 0x2a8]
xor rcx, rsp
call fcn.14012d670
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x2b0]
add rsp, 0x2c0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret