Function at 0x4e2f80
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x5c7004]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.004e2d40
push 0
push 0
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U_WithStatus]
mov esi, eax
test esi, esi
js 0x4e3338
push 0
push 0
push 0x60
push 1
push 5
push 0x80
lea eax, [esp + 0x30]
mov dword [esp + 0x48], 0x18
mov dword [esp + 0x50], eax
lea eax, [esp + 0x38]
push 0
push eax
lea eax, [esp + 0x50]
mov dword [esp + 0x54], 0
push eax
push 0x120089
lea eax, [esp + 0x38]
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 + 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
test esi, esi
js 0x4e3338
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x48]
push 5
push 0x18
push eax
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x4e3069
mov eax, dword [esp + 0x50]
or eax, dword [esp + 0x54]
jne 0x4e3069
push esi
lfence
call dword [sym.imp.ntdll.dll_NtClose]
mov esi, 0xc0000011
jmp 0x4e3338
push ecx
mov edx, esi
call fcn.0052e7e0
mov ebx, eax
push esi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ntdll.dll_NtClose]
mov edi, edi
test ebx, ebx
je 0x4e3333
cmp dword [ebx], 0
jne 0x4e332c
mov ebx, dword ds:[ebx + 0x10]
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x4e3308
jmp 0x4e30b0
cmp dword [ebx], 0
jne 0x4e32f1
mov esi, dword ds:[ebx + 0x1c]
mov edi, dword [ebx + 0x20]
test esi, esi
jle 0x4e32f1
mov ecx, dword [edi]
mov eax, str.name
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4e30f3
test dl, dl
je 0x4e30ef
mov dl, byte ds:[ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4e30f3
add ecx, 2
add eax, 2
test dl, dl
jne 0x4e30d0
xor eax, eax
jmp 0x4e30f8
sbb eax, eax
or eax, 1
test eax, eax
je 0x4e3109
dec esi
add edi, 8
test esi, esi
jg 0x4e30c8
jmp 0x4e32f1
mov edx, dword [edi + 4]
test edx, edx
je 0x4e32f1
mov ecx, edx
lea esi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e3120
sub ecx, esi
push ecx
push edx
call sym.ProcessHacker.exe_PhConvertUtf8ToUtf16Ex
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x4e32f1
mov ecx, dword [ebx]
cmp ecx, 2
jne 0x4e314a
mov edx, dword [ebx + 0x18]
jmp 0x4e315d
test ecx, ecx
jne 0x4e318d
mov edx, dword [ebx + 0x10]
test edx, edx
je 0x4e318d
cmp dword [edx], 2
jne 0x4e318d
mov edx, dword [edx + 0x18]
lea ecx, [ecx]
test edx, edx
je 0x4e318d
mov ecx, edx
lea esi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e3170
sub ecx, esi
push ecx
push edx
call sym.ProcessHacker.exe_PhConvertUtf8ToUtf16Ex
mov ebx, eax
mov dword [esp + 0x20], ebx
jmp 0x4e3198
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov ebx, eax
mov dword [esp + 0x20], eax
mov eax, 0x5cd6dc
lock bts dword [eax], 0
jae 0x4e31ab
mov ecx, eax
call sym.ProcessHacker.exe_PhfAcquireQueuedLockExclusive
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x48]
push eax
push dword [0x5cf868]
mov dword [esp + 0x58], ecx
call sym.ProcessHacker.exe_PhFindEntryHashtable
mov esi, eax
test esi, esi
je 0x4e31ff
mov ecx, dword [esi]
mov edx, esi
call fcn.004e22c0
mov ecx, dword ds:[esi]
mov edx, ebx
push esi
push ebx
call fcn.004e20a0
test al, al
jne 0x4e328f
mov ecx, dword [esi]
lea edx, [esi + 0xc]
push esi
push 0
call fcn.004e20a0
jmp 0x4e328f
push 0x1c
push 4
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, dword [edi]
mov edi, dword [edi + 4]
add ebx, 2
push ebx
push 4
push dword [0x5cd55c]
mov dword [esp + 0x24], eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push ebx
mov esi, eax
push edi
push esi
call fcn.00537fe0
mov ecx, dword ds:[esp + 0x24]
add esp, 0xc
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x20]
mov dword [ecx + 8], esi
mov eax, dword [edi]
mov dword [ecx + 4], eax
lock inc dword [ebx - 4]
mov esi, dword [0x5cf864]
mov dword [ecx + 0x14], ebx
mov ecx, dword [esi]
mov eax, dword [esi + 4]
cmp ecx, eax
jne 0x4e3283
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push dword [esi + 8]
push 4
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov ecx, dword [esi]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4], edx
inc dword [esi]
or esi, 0xffffffff
mov eax, 0x5cd6dc
lock xadd dword [eax], esi
mov eax, esi
and al, 6
cmp al, 2
jne 0x4e32c7
dec esi
mov edi, 0x5cd6dc
mov eax, esi
lea edx, [esi + 4]
mov ecx, edx
lock cmpxchg dword [edi], ecx
mov edi, dword [esp + 0x10]
cmp eax, esi
jne 0x4e32c7
mov ecx, 0x5cd6dc
call fcn.004e1320
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4e32da
call fcn.004c1f60
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4e32ed
call fcn.004c1f60
mov ebx, dword [esp + 0x14]
mov eax, dword ds:[ebx + 4]
mov ebx, eax
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4e30b0
mov ecx, dword [esp + 0x28]
call fcn.0052e2c0
call sym.ProcessHacker.exe_PhUpdateCachedSettings
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 4
mov ecx, ebx
call fcn.0052e2c0
mov esi, 0xc0000102
mov ecx, dword [esp + 0x6c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
lfence
call fcn.00534c91
mov esp, ebp
pop ebp
ret 4