Function at 0x140089cc0
Capabilities:
Get file attributes

Disassembly:
push rbx
push rdi
sub rsp, 0x98
mov rbx, rcx
call fcn.140089a00
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0xc0]
mov dword [rsp + 0x30], 0x60
xor r9d, r9d
mov dword [rsp + 0x28], 1
mov r8d, 0x120089
mov rdx, rbx
mov dword [rsp + 0x20], 5
call sym.ProcessHacker.exe_PhCreateFileWin32Ex
mov edi, eax
test eax, eax
js 0x14008a010
mov rbx, qword [rsp + 0xc0]
lea r8, [rsp + 0x50]
mov rcx, rbx
mov dword [rsp + 0x20], 5
mov r9d, 0x18
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x140089d60
cmp qword [rsp + 0x58], 0
jne 0x140089d60
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, edi
add rsp, 0x98
pop rdi
pop rbx
ret
lea r8, [0x140089cb0]
mov qword [rsp + 0x88], r12
mov rdx, rbx
xor ecx, ecx
call sym.ProcessHacker.exe_mxmlLoadFd
mov rcx, rbx
mov r12, rax
call qword [sym.imp.ntdll.dll_NtClose]
test r12, r12
je 0x140089d99
cmp dword [r12], 0
je 0x140089db0
mov rcx, r12
call sym.ProcessHacker.exe_mxmlDelete
mov eax, 0xc0000102
mov r12, qword [rsp + 0x88]
add rsp, 0x98
pop rdi
pop rbx
ret
mov qword [rsp + 0xb0], rbp
mov rbp, qword [r12 + 0x20]
test rbp, rbp
je 0x140089ff1
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r15
cmp dword [rbp], 0
jne 0x140089fca
cmp dword [rbp + 0x38], 1
jl 0x140089fca
mov rcx, qword [rbp + 0x40]
lea rdx, str.name
mov rcx, qword [rcx]
call fcn.1400e9cd4
test eax, eax
jne 0x140089fca
mov rax, qword [rbp + 0x40]
or rdx, 0xffffffffffffffff
mov rcx, qword [rax + 8]
nop dword [rax + rax]
inc rdx
cmp byte [rcx + rdx], 0
jne 0x140089e20
call sym.ProcessHacker.exe_PhConvertUtf8ToUtf16Ex
mov r15, rax
test rax, rax
je 0x140089fca
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x140089e65
cmp dword [rcx], 2
jne 0x140089e65
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x140089e65
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rcx + rdx], 0
jne 0x140089e55
call sym.ProcessHacker.exe_PhConvertUtf8ToUtf16Ex
jmp 0x140089e6a
call sym.ProcessHacker.exe_PhReferenceEmptyString
lock bts qword [0x14015c288], 0
mov r14, rax
jae 0x140089e85
lea rcx, [0x14015c288]
call sym.ProcessHacker.exe_PhfAcquireQueuedLockExclusive
mov rcx, r15
call fcn.140088ce0
mov rbx, rax
test rax, rax
je 0x140089ecd
mov ecx, dword [rax]
mov rdx, rax
call fcn.140088c70
mov ecx, dword [rbx]
mov r9, rbx
mov r8, r14
mov rdx, r14
call fcn.140088790
test al, al
jne 0x140089f69
mov ecx, dword [rbx]
lea rdx, [rbx + 0x18]
mov r9, rbx
xor r8d, r8d
call fcn.140088790
jmp 0x140089f69
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov edx, 4
lea r8d, [rdx + 0x2c]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, qword [r15]
mov edx, 4
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r13, rax
mov rdi, qword [r15 + 8]
lea r8, [rsi + 2]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
lea r8, [rsi + 2]
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call fcn.1400e31d0
mov qword [r13 + 0x10], rbx
mov rax, qword [r15]
mov qword [r13 + 8], rax
lock inc dword [r14 - 8]
mov rbx, qword [0x14015faf8]
mov qword [r13 + 0x28], r14
mov eax, dword [rbx + 4]
cmp dword [rbx], eax
jne 0x140089f5d
mov r8, qword [rbx + 8]
add eax, eax
mov r9d, eax
mov edx, 4
mov dword [rbx + 4], eax
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
shl r9, 3
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov qword [rbx + 8], rax
mov ecx, dword [rbx]
mov rax, qword [rbx + 8]
mov qword [rax + rcx*8], r13
inc dword [rbx]
or rcx, 0xffffffffffffffff
lock xadd qword [0x14015c288], rcx
movzx eax, cl
and al, 6
cmp al, 2
jne 0x140089f9e
lea rax, [rcx - 1]
lea rdx, [rax + 4]
lock cmpxchg qword [0x14015c288], rdx
jne 0x140089f9e
lea rcx, [0x14015c288]
call fcn.1400c0c90
lea rcx, [r14 - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140089fb4
call fcn.1400ae580
lea rcx, [r15 - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140089fca
call fcn.1400ae580
mov rbp, qword [rbp + 8]
test rbp, rbp
jne 0x140089de0
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov r13, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x90]
mov rcx, r12
call sym.ProcessHacker.exe_mxmlDelete
call fcn.140088260
mov rbp, qword [rsp + 0xb0]
xor eax, eax
mov r12, qword [rsp + 0x88]
add rsp, 0x98
pop rdi
pop rbx
ret