Function at 0x4b5b80
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
push edi
call fcn.004b5950
push 0
push 0
lea eax, [esp + 0x28]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U_WithStatus]
mov esi, eax
test esi, esi
js 0x4b5c47
push 0
push 0
push 0x60
push 1
push 5
push 0x80
lea eax, [esp + 0x38]
mov dword [esp + 0x48], 0x18
mov dword [esp + 0x50], eax
lea eax, [esp + 0x2c]
push 0
push eax
lea eax, [esp + 0x50]
mov dword [esp + 0x54], 0
push eax
push 0x120089
lea eax, [esp + 0x44]
mov dword [esp + 0x64], 0x40
push eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
call dword [sym.imp.ntdll.dll_NtCreateFile]
mov esi, eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
test esi, esi
js 0x4b5c47
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x48]
push 5
push 0x18
push eax
lea eax, [esp + 0x34]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x4b5c52
mov eax, dword [esp + 0x50]
or eax, dword [esp + 0x54]
jne 0x4b5c52
push edi
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push sym.ProcessHacker.exe_mxml_opaque_cb
push edi
push 0
call sym.ProcessHacker.exe_mxmlLoadFd
mov ebx, eax
push edi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
je 0x4b5c7b
cmp dword [ebx], 0
je 0x4b5c89
push ebx
call sym.ProcessHacker.exe_mxmlDelete
mov eax, 0xc0000102
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebx + 0x10]
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x4b5e98
jmp 0x4b5ca0
cmp dword [ebx], 0
jne 0x4b5e89
cmp dword [ebx + 0x1c], 1
jl 0x4b5e89
mov eax, dword [ebx + 0x20]
push str.name
push dword [eax]
call fcn.004e38a1
add esp, 8
test eax, eax
jne 0x4b5e89
mov eax, dword [ebx + 0x20]
mov edx, dword [eax + 4]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b5cd8
sub eax, esi
push eax
push edx
call sym.ProcessHacker.exe_PhConvertUtf8ToUtf16Ex
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x4b5e89
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4b5d28
cmp dword [ecx], 2
jne 0x4b5d28
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x4b5d28
mov ecx, edx
lea edi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b5d10
sub ecx, edi
push ecx
push edx
call sym.ProcessHacker.exe_PhConvertUtf8ToUtf16Ex
mov edi, eax
mov dword [esp + 0x10], edi
jmp 0x4b5d33
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov edi, eax
mov dword [esp + 0x10], eax
mov eax, 0x5496b8
lock bts dword [eax], 0
jae 0x4b5d46
mov ecx, eax
call sym.ProcessHacker.exe_PhfAcquireQueuedLockExclusive
mov eax, dword [esi]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x48]
push eax
push dword [0x54b5e8]
call sym.ProcessHacker.exe_PhFindEntryHashtable
mov esi, eax
test esi, esi
je 0x4b5d97
mov ecx, dword [esi]
mov edx, esi
call fcn.004b5020
mov ecx, dword [esi]
mov edx, edi
push esi
push edi
call fcn.004b4df0
test al, al
jne 0x4b5e28
mov ecx, dword [esi]
lea edx, [esi + 0xc]
push esi
push 0
call fcn.004b4df0
jmp 0x4b5e28
push 0x1c
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov ebx, dword [eax]
mov edi, dword [eax + 4]
add ebx, 2
push ebx
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push ebx
mov esi, eax
push edi
push esi
call fcn.004dd620
mov ebx, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov dword [ebx + 8], esi
mov eax, dword [eax]
mov dword [ebx + 4], eax
lock inc dword [edi - 4]
mov esi, dword [0x54b5e4]
mov dword [ebx + 0x14], edi
mov ecx, dword [esi]
mov eax, dword [esi + 4]
cmp ecx, eax
jne 0x4b5e1c
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push dword [esi + 8]
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov ecx, dword [esi]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], ebx
inc dword [esi]
mov ebx, dword [esp + 0x1c]
or esi, 0xffffffff
mov eax, 0x5496b8
lock xadd dword [eax], esi
mov eax, esi
and al, 6
cmp al, 2
jne 0x4b5e5f
dec esi
mov edi, 0x5496b8
mov eax, esi
lea edx, [esi + 4]
mov ecx, edx
lock cmpxchg dword [edi], ecx
mov edi, dword [esp + 0x10]
cmp eax, esi
jne 0x4b5e5f
mov ecx, 0x5496b8
call fcn.004b4210
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4b5e72
call fcn.004a2a20
mov ecx, dword [esp + 0x14]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4b5e89
call fcn.004a2a20
mov ebx, dword [ebx + 4]
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x4b5ca0
push dword [esp + 0x28]
call sym.ProcessHacker.exe_mxmlDelete
call sym.ProcessHacker.exe_PhUpdateCachedSettings
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4