Function at 0x51c0a0
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 [0x5c7004]
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 0x51c44b
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 0x51c17c
test eax, eax
mov ecx, 0x2000000
cmovne ecx, eax
cmp dword [esp + 0x4bc], ebx
jg 0x51c44b
jl 0x51c17c
cmp dword [esp + 0x4b8], ecx
ja 0x51c44b
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.0051bf20
jmp 0x51c1a0
test al, al
je 0x51c422
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 [0x5cf848]
mov ecx, esi
call dword [0x55890c]
call esi
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
je 0x51c2f0
push 0x20c
lea eax, [esp + 0x4cc]
push 0
push eax
call fcn.00536b00
add esp, 0xc
lea eax, [esp + 0x70]
push 0x440
push 0
push eax
call fcn.00536b00
add esp, 0xc
lea eax, [esp + 0x4c8]
push 0
push eax
push esi
mov esi, dword [0x5cf838]
mov ecx, esi
call dword [0x55890c]
call esi
test eax, eax
je 0x51c2d1
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 0x5cbf44
lea eax, [esp + 0x48]
push eax
call fcn.0051bd60
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x494]
test eax, eax
je 0x51c2c9
mov esi, dword [0x5cf850]
mov ecx, esi
push eax
call dword [0x55890c]
call esi
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov esi, dword [0x5cf82c]
mov ecx, esi
push 0
push dword [esp + 0x1c]
push dword [esp + 0x24]
call dword [0x55890c]
call esi
jmp 0x51c3e2
mov ecx, dword ds:[esp + 0x28]
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [ecx + 0xc], ebx
jbe 0x51c3e2
xor eax, eax
jmp 0x51c310
test ebx, ebx
je 0x51c34d
xor edi, edi
test eax, eax
je 0x51c33e
lea ebx, [ebx]
push dword [ebx + edi*4]
mov esi, dword [0x5cf850]
mov ecx, esi
call dword [0x55890c]
call esi
inc edi
cmp edi, dword [esp + 0x60]
jb 0x51c320
mov esi, dword [esp + 0x18]
push ebx
push 0
push dword [0x5cd55c]
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 0x5cbf54
lea eax, [esp + 0x48]
push eax
call fcn.0051bd60
mov dword [esp + 0x34], eax
cmp eax, 2
je 0x51c3da
inc esi
mov dword [esp + 0x18], esi
cmp esi, dword [ebx + 0xc]
jae 0x51c3da
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x60], eax
jmp 0x51c310
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 0x51c3f9
call fcn.004c1f60
push dword [esp + 0x24]
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword [0x5cf830]
mov ecx, esi
push 0
push dword [esp + 0x20]
call dword [0x55890c]
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.00534c91
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.00534c91
mov esp, ebp
pop ebp
ret 0xc