Function at 0x506e80
Capabilities:
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6d4
mov eax, dword [0x5ac004]
xor eax, esp
mov dword [esp + 0x6d0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov ecx, dword [ebp + 0x10]
push 5
mov dword [esp + 0x6c], eax
mov dword [eax], edi
lea eax, [esp + 0x4b4]
push 0x18
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x38], edx
push eax
push edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x80], ecx
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [ecx], edi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x50722b
mov eax, dword [esi + 8]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x60], edi
mov dword [esp + 0x14], edi
cmp eax, 0xffffffff
je 0x506f5c
test eax, eax
mov ecx, 0x2000000
cmovne ecx, eax
cmp dword [esp + 0x4bc], ebx
jg 0x50722b
jl 0x506f5c
cmp dword [esp + 0x4b8], ecx
ja 0x50722b
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
lfence
call fcn.00506d00
jmp 0x506f80
test al, al
je 0x507202
mov esi, dword [esp + 0x24]
push 1
push dword [esp + 0x24]
push esi
call sym.ProcessHacker.exe_PhBufferToHexStringEx
push 0
push 0
push dword [esp + 0x28]
mov dword [esp + 0x3c], eax
push esi
push dword [esp + 0x2c]
mov esi, dword [0x5b4018]
mov ecx, esi
call dword [0x5404bc]
call esi
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
je 0x5070d0
push 0x20c
lea eax, [esp + 0x4cc]
push 0
push eax
call fcn.0051fd40
add esp, 0xc
lea eax, [esp + 0x70]
push 0x440
push 0
push eax
call fcn.0051fd40
add esp, 0xc
lea eax, [esp + 0x4c8]
push 0
push eax
push esi
mov esi, dword [0x5b4008]
mov ecx, esi
call dword [0x5404bc]
call esi
test eax, eax
je 0x5070b1
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x4cc]
mov dword [esp + 0x40], eax
mov edx, 2
mov dword [esp + 0x38], 0x28
mov dword [esp + 0x70], 0x440
mov eax, dword [ecx]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x78]
push eax
push 0x5b07c4
lea eax, [esp + 0x48]
push eax
call fcn.00506920
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x494]
test eax, eax
je 0x5070a9
mov esi, dword [0x5b4020]
mov ecx, esi
push eax
call dword [0x5404bc]
call esi
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov esi, dword [0x5b3ffc]
mov ecx, esi
push 0
push dword [esp + 0x1c]
push dword [esp + 0x24]
call dword [0x5404bc]
call esi
jmp 0x5071c2
mov ecx, dword ds:[esp + 0x28]
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [ecx + 0xc], ebx
jbe 0x5071c2
xor eax, eax
jmp 0x5070f0
test ebx, ebx
je 0x50712d
xor edi, edi
test eax, eax
je 0x50711e
lea ebx, [ebx]
push dword [ebx + edi*4]
mov esi, dword [0x5b4020]
mov ecx, esi
call dword [0x5404bc]
call esi
inc edi
cmp edi, dword [esp + 0x60]
jb 0x507100
mov esi, dword [esp + 0x18]
push ebx
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [esp + 0x28]
mov edx, 2
mov dword [esp + 0x38], 0x28
mov ecx, ebx
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + esi*4]
mov dword [esp + 0x40], eax
mov eax, dword [ebx]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0x5b07d4
lea eax, [esp + 0x48]
push eax
call fcn.00506920
mov dword [esp + 0x34], eax
cmp eax, 2
je 0x5071ba
inc esi
mov dword [esp + 0x18], esi
cmp esi, dword [ebx + 0xc]
jae 0x5071ba
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x60], eax
jmp 0x5070f0
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x5071d9
call fcn.004b3960
push dword [esp + 0x24]
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword [0x5b4000]
mov ecx, esi
push 0
push dword [esp + 0x20]
call dword [0x5404bc]
nop
call esi
mov eax, dword ds:[esp + 0x68]
mov dword [eax], ebx
mov eax, dword [esp + 0x6c]
mov dword [eax], edi
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6d0]
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword ds:[esp + 0x6dc]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0xc