Function at 0x140050f60
Capabilities:
Set current directory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x188
movaps xmmword [rsp + 0x170], xmm6
mov rsi, r8
mov rdi, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x168], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0xb0]
mov qword [rbx + 0x50], r13
movaps xmm6, xmmword [0x140270690]
movaps xmmword [rbx + 0x40], xmm6
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea r14, str.LoadNativeLibraryHelper
lea r15, str....._base_native_library_win.cc
lea r12, [rsp + 0x110]
mov rcx, r12
mov rdx, r14
mov r8, r15
mov r9d, 0x5b
call fcn.140120f60
mov rcx, rbx
mov rdx, r12
xor r8d, r8d
call fcn.140121610
lea rbx, [rsp + 0x90]
mov qword [rbx + 0x10], r13
movaps xmmword [rbx], xmm6
lea r12, [rsp + 0x110]
mov rcx, r12
mov rdx, r14
mov r8, r15
mov r9d, 0x61
call fcn.140120f60
mov rcx, rbx
mov rdx, r12
xor r8d, r8d
call fcn.140051390
mov eax, dword [0x1402a26e8]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400510f7
mov rbp, qword [0x1402a26e0]
test rbp, rbp
je 0x140051186
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140051075
mov rcx, qword [rdi]
xor edx, edx
mov r8d, 0x1100
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x140051179
mov rbx, rax
mov rcx, qword [0x1402a26f0]
test rcx, rcx
je 0x140051145
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
xor edx, edx
call qword [case.0x1401e7f70.0]
lea rcx, [rsp + 0x90]
call fcn.1400514e0
lea rcx, [rsp + 0xb0]
call fcn.140120f80
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.14017e7b0
mov rax, rbx
movaps xmm6, xmmword [rsp + 0x170]
add rsp, 0x188
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x1402a26e8]
call fcn.14017b2bc
cmp dword [0x1402a26e8], 0xffffffff
jne 0x140051059
lea rcx, [0x1402726da]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.AddDllDirectory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402a26e0], rax
lea rcx, [0x1402a26e8]
call fcn.14017b25c
jmp 0x140051059
mov dword [rsp + 0x20], 1
lea rcx, str.LibraryLoader.LoadNativeLibraryWindows
mov r9d, 6
mov edx, 1
mov r8d, 5
call fcn.1400fd040
mov rcx, rax
mov qword [0x1402a26f0], rax
jmp 0x14005109f
test rsi, rsi
je 0x140051186
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
xorps xmm0, xmm0
lea r15, [rsp + 0x50]
movaps xmmword [r15], xmm0
mov qword [r15 + 0x10], 0
mov rcx, r15
call fcn.1400516e0
test al, al
je 0x140051347
lea rbx, [rsp + 0x30]
mov qword [rbx + 0x10], r13
movaps xmmword [rbx], xmm6
mov rcx, rdi
mov rdx, rbx
call fcn.14014ae20
movzx eax, byte [rbx + 0x17]
test al, al
jns 0x1400511d0
mov r14, qword [rsp + 0x38]
jmp 0x1400511d7
mov r14d, eax
and r14d, 0x7f
test r14, r14
je 0x140051255
lea r15, [rsp + 0x110]
mov qword [r15 + 0x50], r13
movaps xmmword [r15 + 0x40], xmm6
movaps xmmword [r15 + 0x30], xmm6
movaps xmmword [r15 + 0x20], xmm6
movaps xmmword [r15 + 0x10], xmm6
movaps xmmword [r15], xmm6
lea rdx, [0x140275915]
lea r8, str....._base_files_file_util_win.cc
lea r12, [rsp + 0x70]
mov rcx, r12
mov r9d, 0x3f1
call fcn.140120f60
mov rcx, r15
mov rdx, r12
xor r8d, r8d
call fcn.140121610
cmp byte [rsp + 0x47], 0
jns 0x14005123b
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, r15
call fcn.140120f80
mov al, byte [rsp + 0x47]
lea r15, [rsp + 0x50]
test r14, r14
setne r14b
test al, al
jns 0x14005126a
mov rcx, qword [rsp + 0x30]
call fcn.14017b254
cmp byte [rdi + 0x17], 0
jns 0x140051273
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rsi, rsi
je 0x14005128d
test rbx, rbx
je 0x140051380
test r14b, r14b
je 0x1400512fd
lea rsi, [rsp + 0x110]
mov qword [rsi + 0x50], r13
movaps xmmword [rsi + 0x40], xmm6
movaps xmmword [rsi + 0x30], xmm6
movaps xmmword [rsi + 0x20], xmm6
movaps xmmword [rsi + 0x10], xmm6
movaps xmmword [rsi], xmm6
lea rdx, [0x140275915]
lea r8, str....._base_files_file_util_win.cc
lea rdi, [rsp + 0x70]
mov rcx, rdi
mov r9d, 0x3f1
call fcn.140120f60
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
call fcn.140121610
cmp byte [rsp + 0x67], 0
jns 0x1400512ec
mov r15, qword [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rsi
call fcn.140120f80
xor eax, eax
test rbx, rbx
sete al
xor ecx, ecx
test rbp, rbp
sete cl
lea esi, [rax + rcx*2]
inc esi
mov rcx, qword [0x1402a26f0]
test rcx, rcx
je 0x14005134f
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
mov edx, esi
call qword [case.0x1401e7f70.0]
cmp byte [rsp + 0x67], 0
jns 0x1400510ae
mov rcx, qword [rsp + 0x50]
call fcn.14017b254
jmp 0x1400510ae
xor r14d, r14d
jmp 0x14005126a
mov dword [rsp + 0x20], 1
lea rcx, str.LibraryLoader.LoadNativeLibraryWindows
mov r9d, 6
mov edx, 1
mov r8d, 5
call fcn.1400fd040
mov rcx, rax
mov qword [0x1402a26f0], rax
jmp 0x14005131e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
jmp 0x14005128d