Function at 0x14009d690
Capabilities:
Set current directory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x238
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rdx
mov r13, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov r12, qword [0x1402256a0]
lea rax, str.type
lea r8, [rsp + 0x70]
mov qword [r8], rax
mov qword [r8 + 8], 4
lea rdx, [rsp + 0x80]
mov rcx, r12
call fcn.1400fe320
lea r14, [r13 + 0x10]
cmp byte [r13 + 0x27], 0
jns 0x14009d703
mov rcx, qword [r14]
call fcn.14011d780
mov rax, qword [rsp + 0x90]
mov qword [r14 + 0x10], rax
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [r14], xmm0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movzx r15d, byte [r14 + 0x17]
test r15b, r15b
jns 0x14009d731
mov r15, qword [r13 + 0x18]
mov rcx, r12
call fcn.1400a2ed0
test r15, r15
je 0x14009d743
cmp eax, 6
je 0x14009d74d
lea rcx, [rsp + 0x60]
call fcn.1400531c0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
xor eax, eax
mov qword [rsp + 0x50], rax
lea rbp, [rsp + 0x210]
mov qword [rbp + 0x10], rax
movaps xmmword [rbp], xmm0
mov ecx, 3
mov rdx, rbp
call fcn.1400439d0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x1f0]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1401efb80]
movaps xmmword [rdi], xmm0
lea rax, [0x1401fbe00]
lea r8, [rsp + 0x1e0]
mov qword [r8], rax
mov qword [r8 + 8], 0xd
lea rsi, [rsp + 0x80]
mov rcx, rbp
mov rdx, rsi
call fcn.140014560
lea rbp, str.chrome.dll
lea r8, [rsp + 0x1d0]
mov qword [r8], rbp
mov qword [r8 + 8], 0xa
mov rcx, rsi
mov rdx, rdi
call fcn.1400f42c0
mov rcx, rsi
call fcn.14010a440
lea rsi, [rsp + 0x80]
mov rcx, rsi
mov rdx, rdi
mov r8d, 0x21
call fcn.14001bff0
mov rcx, rsi
call fcn.1400f5e20
mov ebx, eax
mov rcx, rsi
call fcn.1400f4bc0
test bl, bl
jne 0x14009d9e0
lea r8, [rsp + 0x1c0]
mov qword [r8], rbp
mov qword [r8 + 8], 0xa
lea rcx, [rsp + 0x210]
lea rdx, [rsp + 0x80]
call fcn.1400f42c0
lea rcx, [rsp + 0x1f0]
call fcn.14010a440
lea rcx, [rsp + 0x210]
call fcn.14010a440
lea rdi, [rsp + 0x40]
lea rbp, [rsp + 0x80]
mov rcx, rdi
mov rdx, rbp
call fcn.14010de20
mov rcx, rbp
call fcn.14010a440
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x14009d895
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14009d9fa
mov rcx, rdi
mov rdx, rbp
call fcn.140101df0
cmp byte [rsp + 0x97], 0
mov rcx, rbp
jns 0x14009d8be
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rbp
call fcn.14010a440
movabs r8, 0x7fffffffffffffff
mov rcx, rdi
mov dl, 1
call fcn.14001bbf0
mov ebp, eax
cmp byte [rsp + 0x57], 0
jns 0x14009d8ee
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
xor edx, edx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x14009da5f
mov qword [r13 + 8], rax
test r15, r15
je 0x14009d921
mov ecx, 0x27f
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov rax, qword [r13]
mov rax, qword [rax + 8]
lea r9, [rsp + 0x40]
mov rcx, r13
mov rdx, r12
mov r8, r14
call qword [0x14023a010]
mov rcx, qword [r13 + 8]
lea rdx, str.ChromeMain
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov r9d, ebp
call qword [0x14023a010]
mov esi, eax
movabs rdi, 0xfffffffe00000000
lea rcx, [rsp + 0x40]
call fcn.14010a440
mov rcx, qword [rsp + 0x68]
mov rdx, rcx
and rdx, rdi
mov rax, qword [0x14021af08]
cmp rdx, rax
jne 0x14009d99f
call fcn.1400f23b0
mov rax, qword [0x14021af08]
mov qword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x60]
and rdi, rcx
cmp rdi, rax
jne 0x14009d9ba
call fcn.1400f23b0
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14011fe20
mov eax, esi
add rsp, 0x238
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x1f0]
call fcn.1400f5d80
jmp 0x14009d84e
mov ecx, 2
call fcn.1400d5300
test al, al
je 0x14009da6d
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._chrome_app_main_dll_loader_win.cc
lea rsi, [rsp + 0x80]
mov rcx, rsi
mov r8d, 0x68
mov r9d, 2
call fcn.14016e140
lea rcx, [rsp + 0x90]
lea rdx, str.Cannot_find_module
mov r8d, 0x13
call fcn.140152d20
lea rdx, str.chrome.dll
mov rcx, rax
call fcn.14016e270
jmp 0x14009dad2
mov ecx, 2
call fcn.1400d5300
test al, al
jne 0x14009da7f
mov qword [r13 + 8], 0
mov esi, 7
jmp 0x14009d968
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._chrome_app_main_dll_loader_win.cc
lea rsi, [rsp + 0x80]
mov rcx, rsi
mov r8d, 0x6d
mov r9d, 2
call fcn.14016e140
lea rcx, [rsp + 0x90]
lea rdx, str.Failed_to_load_Chrome_DLL_from
mov r8d, 0x1f
call fcn.140152d20
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.1400462d0
mov rcx, rsi
call fcn.14016e1c0
jmp 0x14009da6d