Function at 0x140086050
Capabilities:
Set current directory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x248
movaps xmmword [rsp + 0x230], xmm6
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rdx
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x228], rax
mov r15, qword [0x140231be8]
lea rax, str.type
lea r8, [rsp + 0x70]
mov qword [r8], rax
mov qword [r8 + 8], 4
lea rdx, [rsp + 0x80]
mov rcx, r15
call fcn.1400dcc20
lea r14, [rsi + 0x10]
cmp byte [rsi + 0x27], 0
jns 0x1400860ca
mov rcx, qword [r14]
call fcn.14012c25c
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 edi, byte [rsi + 0x27]
test dil, dil
jns 0x1400860f7
mov rdi, qword [rsi + 0x18]
mov rcx, r15
call fcn.14008b340
test rdi, rdi
je 0x140086109
cmp eax, 7
je 0x14008611f
call sub.chrome_elf.dll_IsExtensionPointDisableSet
movzx edx, al
shl rdx, 0xc
lea rcx, [rsp + 0x60]
call fcn.14004a8a0
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
xor eax, eax
mov qword [rsp + 0x50], rax
lea r12, [rsp + 0x210]
mov qword [r12 + 0x10], rax
movaps xmmword [r12], xmm6
mov ecx, 3
mov rdx, r12
call fcn.14003f9b0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r13, [rsp + 0x1f0]
mov qword [r13 + 0x10], rax
movaps xmm0, xmmword [0x1401ee3a0]
movaps xmmword [r13], xmm0
lea rax, [0x1401fcd80]
lea r8, [rsp + 0x1e0]
mov qword [r8], rax
mov qword [r8 + 8], 0xe
lea rbp, [rsp + 0x80]
mov rcx, r12
mov rdx, rbp
call fcn.14004aa50
lea rbx, str.chrome.dll
lea r8, [rsp + 0x1d0]
mov qword [r8], rbx
mov qword [r8 + 8], 0xa
mov rcx, rbp
mov rdx, r13
call fcn.1400cdb10
cmp byte [rbp + 0x17], 0
jns 0x1400861d4
mov rcx, qword [rsp + 0x80]
call fcn.14012c25c
lea r12, [rsp + 0x80]
mov dword [r12 + 0x24], 0
mov word [r12 + 0x28], 0
movaps xmmword [r12], xmm6
movaps xmmword [r12 + 0x10], xmm6
lea rdx, [rsp + 0x1f0]
mov rcx, r12
mov r8d, 0x21
call fcn.140046390
mov r13, qword [r12]
mov rcx, r12
call fcn.1400fb8e0
inc r13
cmp r13, 2
jae 0x1400862a1
lea r8, [rsp + 0x1c0]
mov qword [r8], rbx
mov qword [r8 + 8], 0xa
lea rcx, [rsp + 0x210]
lea rdx, [rsp + 0x80]
call fcn.1400cdb10
cmp byte [rsp + 0x207], 0
jns 0x140086262
mov rcx, qword [rsp + 0x1f0]
call fcn.14012c25c
cmp byte [rsp + 0x227], 0
jns 0x140086279
mov rcx, qword [rsp + 0x210]
call fcn.14012c25c
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
movups xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x40], xmm0
movzx eax, byte [rsp + 0x57]
test al, al
js 0x1400862b8
and eax, 0x7f
jmp 0x1400862bd
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x1f0]
call fcn.1400f4ad0
jmp 0x14008624b
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140086414
lea r13, [rsp + 0x40]
mov rcx, r13
mov rdx, r12
call fcn.1400fddd0
cmp byte [rsp + 0x97], 0
jns 0x1400862e8
mov r12, qword [rsp + 0x80]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [rsp + 0x97], 0
jns 0x140086308
mov rcx, qword [rsp + 0x80]
call fcn.14012c25c
lea rdx, str.no_pre_read_main_dll
mov rcx, r15
call fcn.1401114c0
test al, al
jne 0x140086331
lea rcx, [rsp + 0x40]
movabs r8, 0x7fffffffffffffff
mov dl, 1
call fcn.140046030
cmp byte [rsp + 0x57], 0
jns 0x14008633d
mov r13, qword [rsp + 0x40]
mov rcx, r13
xor edx, edx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x1400863b1
mov qword [rsi + 8], rax
test rdi, rdi
je 0x14008636c
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 + 0x40]
mov rcx, rsi
mov rdx, r14
call qword [0x140243008]
mov rcx, qword [rsi + 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]
call qword [0x140243008]
mov esi, eax
jmp 0x140086488
cmp dword [0x140231b60], 2
jg 0x14008647b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str.....chrome_appmain_dll_loader_win.cc
lea rdi, [rsp + 0x80]
mov rcx, rdi
mov r8d, 0x70
mov r9d, 2
call fcn.140192990
lea rcx, [rsp + 0x90]
lea rdx, str.Failed_to_load_Chrome_DLL_from
mov r8d, 0x1f
call fcn.140167320
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.14005a8e0
jmp 0x140086473
cmp dword [0x140231b60], 2
jg 0x14008647b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str.....chrome_appmain_dll_loader_win.cc
lea rdi, [rsp + 0x80]
mov rcx, rdi
mov r8d, 0x6b
mov r9d, 2
call fcn.140192990
lea rcx, [rsp + 0x90]
lea rdx, str.Cannot_find_module
mov r8d, 0x13
call fcn.140167320
lea rdx, str.chrome.dll
mov rcx, rax
call fcn.140190810
mov rcx, rdi
call fcn.140192a10
mov qword [rsi + 8], 0
mov esi, 7
cmp byte [rsp + 0x57], 0
jns 0x140086499
mov rcx, qword [rsp + 0x40]
call fcn.14012c25c
movabs rdi, 0xfffffffc00000000
mov rcx, qword [rsp + 0x68]
mov rax, rcx
and rax, rdi
cmp rax, qword [0x140219dc8]
jne 0x1400864bc
call fcn.1400ace30
mov qword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x60]
and rdi, rcx
cmp rdi, qword [0x140219dc8]
jne 0x1400864db
call fcn.1400ace30
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14012ec00
mov eax, esi
movaps xmm6, xmmword [rsp + 0x230]
add rsp, 0x248
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret