Function at 0x140052dc4
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x6b0
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov r12, rcx
or qword [rsp + 0x60], 0xffffffffffffffff
xor r13d, r13d
mov edi, r13d
mov qword [rsp + 0x50], r13
lea esi, [r13 + 0x10]
mov dword [rsp + 0x44], r13d
cmp edx, 0x20
jne 0x1400531a0
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x100080
lea r8d, [r13 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r14, rax
mov qword [rsp + 0x60], rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x140052e91
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jg 0x140052e74
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
jmp 0x140052e88
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx eax, ax
or eax, 0xc0070000
mov dword [rsp + 0x40], eax
jmp 0x140053162
mov r15d, 0x80000005
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
test rdi, rdi
je 0x140052ecf
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test eax, eax
cmovne rdi, r13
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8d, esi
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x140052f0c
mov dword [rsp + 0x40], 0xc0000017
jmp 0x140053162
mov dword [rsp + 0x20], 0x2f
mov r9d, esi
mov r8, rdi
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
mov dword [rsp + 0x40], eax
test eax, eax
js 0x14005314f
mov eax, dword [rdi]
lea eax, [rax*4 + 0xc]
cmp eax, esi
jbe 0x140052f51
mov dword [rsp + 0x40], r15d
jmp 0x140053162
mov esi, r13d
mov dword [rsp + 0x58], r13d
lea rbx, str.LogSharingViolationErrorInfo
cmp esi, dword [rdi]
jae 0x140053162
mov eax, esi
mov r15d, dword [rdi + rax*8 + 8]
mov dword [rsp + 0x48], r15d
mov r8d, r15d
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
nop dword [rax + rax]
mov r13, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14005310f
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1b]
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
nop dword [rax + rax]
mov ebx, eax
mov dword [rsp + 0x40], eax
cmp eax, 0xc0000004
jne 0x1400530b7
mov ebx, dword [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8d, ebx
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov r15, rax
test rax, rax
jne 0x14005300c
mov ebx, 0xc0000023
mov dword [rsp + 0x40], ebx
xor r13d, r13d
jmp 0x14005308b
and qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x44]
mov r8, r15
mov edx, 0x1b
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
nop dword [rax + rax]
mov ebx, eax
mov dword [rsp + 0x40], eax
xor r13d, r13d
test eax, eax
js 0x14005308b
mov qword [rsp + 0x20], r12
mov r9, qword [r15 + 8]
lea r8, str.Process__s_is_accessing_file_wim__s
mov edx, 0x30c
lea rcx, [rsp + 0x80]
call fcn.14002ba4c
mov dword [rsp + 0x30], 0x7c3
lea rax, str.LogSharingViolationErrorInfo
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
lea r9, [rsp + 0x80]
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 2]
call fcn.140052bb0
test r15, r15
je 0x1400530b0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov r15d, dword [rsp + 0x48]
jmp 0x1400530ba
xor r13d, r13d
test ebx, ebx
je 0x14005313d
mov qword [rsp + 0x20], r12
mov r9d, r15d
lea r8, str.Process_PID__d_is_accessing_file_wim__s
mov edx, 0x30c
lea rcx, [rsp + 0x80]
call fcn.14002ba4c
mov dword [rsp + 0x30], 0x7d2
lea rbx, str.LogSharingViolationErrorInfo
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], r13d
lea r9, [rsp + 0x80]
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 2]
call fcn.140052bb0
jmp 0x140053144
mov qword [rsp + 0x20], r12
mov r9d, r15d
lea r8, str.Process_PID__d_is_accessing_file_wim__s
mov edx, 0x30c
lea rcx, [rsp + 0x80]
call fcn.14002ba4c
mov dword [rsp + 0x30], 0x7d9
xor r13d, r13d
jmp 0x1400530ee
lea rbx, str.LogSharingViolationErrorInfo
inc esi
mov dword [rsp + 0x58], esi
jmp 0x140052f60
cmp eax, r15d
je 0x1400531d0
cmp eax, 0xc0000023
je 0x1400531d0
cmp eax, 0xc0000004
je 0x1400531d0
test rdi, rdi
je 0x140053187
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
lea rax, [r14 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400531a0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.140094220
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
add esi, esi
mov dword [rsp + 0x68], esi
mov dword [rsp + 0x40], r13d
jmp 0x140052e97