Function at 0x140012420
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1a8
movaps xmmword [rsp + 0x190], xmm7
movaps xmmword [rsp + 0x180], xmm6
mov ebx, edx
mov rbp, rcx
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x178], rax
lea rcx, str.EnforceNoExecutableFileHandles
call fcn.14012f5c0
mov dil, 1
test al, al
je 0x14001253e
test bl, bl
jne 0x140012574
mov ecx, 4
call fcn.14018f5a8
mov rdi, rax
mov dword [rax], 6
movabs rsi, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x70]
mov qword [rcx + 0x10], rsi
movaps xmm6, xmmword [0x14026f080]
movaps xmmword [rcx], xmm6
mov rdx, rbp
call fcn.1400442c0
xorps xmm7, xmm7
lea rbx, [rsp + 0x50]
movaps xmmword [rbx], xmm7
mov qword [rbx + 0x10], 0
xor r12d, r12d
lea r14, [rsp + 0x100]
jmp 0x14001277b
mov eax, 4
test rax, rax
je 0x1400124ef
add rax, 0xfffffffffffffffc
mov rcx, rdi
add rcx, rax
jne 0x1400124d9
jmp 0x140012cbb
mov rcx, rdi
call fcn.14018f5a0
jmp 0x140012538
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x108], rsi
call fcn.14018f5a0
jmp 0x14001253e
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rsi
call fcn.14018f5a0
cmp byte [rsp + 0x87], 0
jns 0x140012533
mov rcx, qword [rsp + 0x70]
call fcn.14018f5a0
test rdi, rdi
jne 0x1400124d4
test bl, bl
je 0x140012574
xor edi, edi
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.140191d70
mov eax, edi
movaps xmm6, xmmword [rsp + 0x180]
movaps xmm7, xmmword [rsp + 0x190]
add rsp, 0x1a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmm0, xmmword [0x14026f080]
movaps xmmword [rsp + 0x110], xmm0
movaps xmmword [rsp + 0x100], xmm0
lea rax, [rsp + 0x15c]
mov byte [rax + 0x13], 2
lea rcx, [0x140281bc4]
lea rdx, [rsp + 0x158]
cmp rdx, rcx
seta dl
cmp rax, rcx
setbe al
or al, dl
je 0x140012cbe
mov dword [rsp + 0x158], 0x440057
mov word [rsp + 0x15c], 0
mov ecx, Ordinal_26
call fcn.14018f5a8
mov qword [rsp + 0xc0], rax
lea rcx, [rax + 0x18]
mov qword [rsp + 0xd0], rcx
test rax, rax
je 0x140012cc1
mov rdx, qword [rsp + 0x168]
mov qword [rax + 0x10], rdx
movups xmm0, xmmword [rsp + 0x158]
movups xmmword [rax], xmm0
lea rdi, [rsp + 0xc0]
mov qword [rdi + 8], rcx
lea rcx, [rsp + 0x100]
mov rdx, rdi
call fcn.14004d850
mov rsi, qword [rdi]
test rsi, rsi
je 0x140012681
mov rdi, qword [rsp + 0xc8]
mov rcx, rsi
cmp rdi, rsi
je 0x140012674
add rdi, 0xffffffffffffffe8
jmp 0x14001265b
mov rcx, qword [rdi]
call fcn.14018f5a0
lea rax, [rdi - 0x18]
cmp rdi, rsi
mov rdi, rax
je 0x14001266c
test rdi, rdi
je 0x140012cb2
cmp byte [rdi + 0x17], 0
js 0x140012647
jmp 0x14001264f
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rsi
call fcn.14018f5a0
cmp byte [rsp + 0x16f], 0
jns 0x140012698
mov rcx, qword [rsp + 0x158]
call fcn.14018f5a0
cmp byte [rsp + 0x118], 0
je 0x140012cc4
mov dword [rsp + 0x28], 2
mov byte [rsp + 0x20], 0
lea rbx, [rsp + 0x100]
mov rcx, rbp
mov rdx, rbx
mov r8d, 0x20
xor r9d, r9d
call fcn.140041e80
mov edi, eax
cmp byte [rbx + 0x18], 1
jne 0x14001253e
mov rsi, qword [rsp + 0x100]
test rsi, rsi
je 0x14001253e
mov rbx, qword [rsp + 0x108]
mov rcx, rsi
cmp rbx, rsi
je 0x140012501
add rbx, 0xffffffffffffffe8
jmp 0x14001271f
mov qword [rbx + 8], rcx
call fcn.14018f5a0
lea rax, [rbx - 0x18]
cmp rbx, rsi
mov rbx, rax
je 0x1400124f9
test rbx, rbx
je 0x140012caf
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001270f
mov rax, qword [rbx + 8]
mov rdx, rax
sub rdx, rcx
dec rax
cmp rdx, rax
jbe 0x140012706
jmp 0x140012cb8
mov rcx, rbx
mov rdx, r14
call fcn.140067ce0
mov r15, rax
mov qword [rsp + 0x58], r15
cmp byte [rsp + 0x117], 0
jns 0x140012771
mov rcx, qword [rsp + 0x100]
call fcn.14018f5a0
add r12, 4
cmp r12, 4
je 0x1400127f9
mov ecx, dword [rdi + r12]
movaps xmmword [rsp + 0x100], xmm7
mov qword [rsp + 0x110], 0
mov rdx, r14
call fcn.14004bf30
test al, al
je 0x14001275a
mov r15, qword [rsp + 0x58]
cmp r15, qword [rsp + 0x60]
jae 0x140012747
test r15, r15
je 0x140012cb5
cmp byte [rsp + 0x117], 0
jns 0x1400127df
mov rdx, qword [rsp + 0x100]
mov r8, qword [rsp + 0x108]
mov rcx, r15
call fcn.140145f50
add r15, 0x18
jmp 0x140012755
mov rax, qword [rsp + 0x110]
mov qword [r15 + 0x10], rax
movaps xmm0, xmmword [rsp + 0x100]
movups xmmword [r15], xmm0
jmp 0x1400127d6
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
call qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x140012bb0
lea r14, [rsp + 0xc0]
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
lea rdx, str.GetSecureSystemTemp
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x100]
mov rcx, rbx
mov r9d, 0x2bf
call fcn.14012cb70
mov rcx, r14
xor edx, edx
xor r8d, r8d
call fcn.14011ac80
mov qword [rsp + 0x150], 0xa
mov al, byte [0x1402c585a]
test al, al
jne 0x140012cf1
xorps xmm0, xmm0
lea rbx, [rsp + 0xa0]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov ecx, 0x65
mov rdx, rbx
call fcn.14004bf30
test al, al
je 0x140012cc7
lea rax, str.SystemTemp
lea r8, [rsp + 0x90]
mov qword [r8], rax
mov qword [r8 + 8], 0xa
lea r14, [rsp + 0xa0]
lea rdx, [rsp + 0x100]
mov rcx, r14
call fcn.140051780
cmp byte [r14 + 0x17], 0
jns 0x1400128ef
mov rcx, qword [rsp + 0xa0]
call fcn.14018f5a0
lea r12, [rsp + 0x100]
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0xb0], rax
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [r12 + 0x30], xmm6
movaps xmmword [r12 + 0x20], xmm6
movaps xmmword [r12 + 0x10], xmm6
movaps xmmword [r12], xmm6
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x158]
mov rcx, r15
mov r9d, 0x211
call fcn.14012cb70
mov rcx, r12
xor edx, edx
xor r8d, r8d
call fcn.14011ac80
mov qword [rsp + 0x140], 0xa
mov al, byte [0x1402c585a]
test al, al
jne 0x140012d23
mov r13, rbp
cmp byte [rsp + 0xb7], 0
jns 0x140012988
mov r14, qword [rsp + 0xa0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
lea rcx, [rsp + 0x100]
call fcn.140159490
cmp ebp, 0xffffffff
je 0x140012a98
lea rcx, [rsp + 0xa0]
call fcn.140067770
test al, al
je 0x140012a98
cmp byte [rsp + 0x47], 0
movzx r8d, byte [rsp + 0xb7]
mov rbp, r13
js 0x140012c85
test r8b, r8b
js 0x140012a35
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0xc0]
call fcn.140159490
mov r14, qword [rsp + 0x58]
cmp r14, qword [rsp + 0x60]
jae 0x140012a7c
test r14, r14
je 0x140012cee
cmp byte [rsp + 0x47], 0
jns 0x140012a68
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov rcx, r14
call fcn.140145f50
add r14, 0x18
jmp 0x140012a8e
mov rdx, qword [rsp + 0xa0]
mov r8, qword [rsp + 0xa8]
lea rcx, [rsp + 0x30]
call fcn.14000ae50
cmp byte [rsp + 0xb7], 0
jns 0x1400129f4
mov rcx, qword [rsp + 0xa0]
call fcn.14018f5a0
jmp 0x1400129f4
mov rax, qword [rsp + 0x40]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [rsp + 0x30]
movups xmmword [r14], xmm0
jmp 0x140012a2f
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x30]
call fcn.140067ce0
mov r14, rax
mov qword [rsp + 0x58], r14
jmp 0x140012bb5
cmp byte [rsp + 0xb7], 0
jns 0x140012aaf
mov rcx, qword [rsp + 0xa0]
call fcn.14018f5a0
xorps xmm0, xmm0
lea r14, [rsp + 0xa0]
movaps xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
mov ecx, 0x67
mov rdx, r14
call fcn.14004bf30
test al, al
je 0x140012ccf
lea r12, [rsp + 0x100]
movaps xmmword [r12 + 0x30], xmm6
movaps xmmword [r12 + 0x20], xmm6
movaps xmmword [r12 + 0x10], xmm6
movaps xmmword [r12], xmm6
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x158]
mov rcx, r15
mov r9d, 0x211
call fcn.14012cb70
mov rcx, r12
xor edx, edx
xor r8d, r8d
call fcn.14011ac80
mov qword [rsp + 0x140], 0xa
mov al, byte [0x1402c585a]
test al, al
jne 0x140012d55
cmp byte [rsp + 0xb7], 0
jns 0x140012b57
mov r14, qword [rsp + 0xa0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
lea rcx, [rsp + 0x100]
call fcn.140159490
cmp ebp, 0xffffffff
je 0x140012b89
lea rcx, [rsp + 0xa0]
call fcn.140067770
test al, al
jne 0x1400129be
cmp byte [rsp + 0xb7], 0
mov rbp, r13
jns 0x140012ba3
mov rcx, qword [rsp + 0xa0]
call fcn.14018f5a0
lea rcx, [rsp + 0xc0]
call fcn.140159490
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
cmp r15, r14
je 0x140012bce
lea r12, [rsp + 0x100]
lea r13, [rsp + 0x70]
jmp 0x140012bef
mov bl, 1
jmp 0x140012c29
mov rcx, qword [rsp + 0x100]
call fcn.14018f5a0
add r15, 0x18
cmp r15, r14
sete al
or al, bl
cmp al, 1
je 0x140012c26
mov qword [rsp + 0x110], rsi
movaps xmmword [rsp + 0x100], xmm6
mov rcx, r12
mov rdx, r15
call fcn.1400442c0
mov rcx, r12
mov rdx, r13
xor r8d, r8d
call fcn.140010920
mov ebx, eax
cmp byte [rsp + 0x117], 0
js 0x140012bd2
jmp 0x140012bdf
xor bl, 1
cmp byte [rsp + 0x47], 0
jns 0x140012c3a
mov rcx, qword [rsp + 0x30]
call fcn.14018f5a0
mov rsi, qword [rsp + 0x50]
test rsi, rsi
je 0x14001251f
mov r14, qword [rsp + 0x58]
mov rcx, rsi
cmp r14, rsi
je 0x140012515
add r14, 0xffffffffffffffe8
jmp 0x140012c77
mov rcx, qword [r14]
call fcn.14018f5a0
lea rax, [r14 - 0x18]
cmp r14, rsi
mov r14, rax
je 0x140012510
test r14, r14
je 0x140012cac
cmp byte [r14 + 0x17], 0
js 0x140012c5f
jmp 0x140012c67
test r8b, r8b
cmovs r8, qword [rsp + 0xa8]
cmovs rbx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.14000af50
jmp 0x140012a4f
int3
int3
int3
int3
int3
int3
int3
int3
int3
mov r13, rbp
jmp 0x140012a98
cmp byte [rsp + 0xb7], 0
jns 0x140012ce6
mov rcx, qword [rsp + 0xa0]
call fcn.14018f5a0
mov rbp, r13
jmp 0x140012ba3
int3
movzx ecx, al
lea r9, [rsp + 0x158]
mov qword [r9], rbx
lea rax, str.ScopedBlockingCall
lea r8, [rsp + 0xa0]
mov qword [r8], rax
lea rdx, [rsp + 0x150]
call fcn.1401f5bf0
jmp 0x14001287e
movzx ecx, al
lea r9, [rsp + 0x150]
mov qword [r9], r15
lea rax, str.ScopedBlockingCall
lea r8, [rsp + 0x148]
mov qword [r8], rax
lea rdx, [rsp + 0x140]
call fcn.1401f5bf0
jmp 0x140012973
movzx ecx, al
lea r9, [rsp + 0x150]
mov qword [r9], r15
lea rax, str.ScopedBlockingCall
lea r8, [rsp + 0x148]
mov qword [r8], rax
lea rdx, [rsp + 0x140]
call fcn.1401f5bf0
jmp 0x140012b45