Function at 0x12870
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0xc0000001
mov dword [ebp - 0x10], 0xfffffffe
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x5c], 0
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x68], 0
xor eax, eax
mov dword [ebp - 0x64], eax
cmp dword [ebp + 8], 0
je 0x12903
cmp dword [ebp + 0xc], 0
jne 0x12908
jmp 0x12a90
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
push 0
lea eax, [ebp - 0x60]
push eax
push 0
mov ecx, dword [sym.imp.ntoskrnl.exe_IoFileObjectType]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x12956
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 4]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x12956
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0xfffffffe
jne 0x12961
jmp 0x12a90
cmp dword [ebp - 0x10], 7
je 0x129b5
cmp dword [ebp - 0x10], 8
je 0x129b5
cmp dword [ebp - 0x10], 9
je 0x129b5
cmp dword [ebp - 0x10], 0x22
je 0x129b5
cmp dword [ebp - 0x10], 2
je 0x129b5
cmp dword [ebp - 0x10], 3
je 0x129b5
cmp dword [ebp - 0x10], 0x14
je 0x129b5
cmp dword [ebp - 0x10], 0x10
jne 0x129aa
mov eax, dword [ebp - 0x60]
cmp dword [eax + 0x34], 0
je 0x129a5
mov eax, dword [ebp - 0x60]
movzx ecx, word [eax + 0x30]
test ecx, ecx
jne 0x129aa
jmp 0x12a90
cmp dword [ebp - 0x10], 0x28
je 0x129b5
jmp 0x12a90
cmp dword [ebp - 4], 0
je 0x129c4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x129de
mov eax, dword [ebp - 8]
cmp dword [eax + 0x20], 0
je 0x129de
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x1c]
test ecx, ecx
jne 0x129e3
jmp 0x12a90
push 0xf
push str.DriverFastfat
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x20]
push ecx
call sub.ntoskrnl.exe__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x12a01
mov byte [ebp - 0x11], 1
push 1
push 0x18
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwQueryVolumeInformationFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x12a22
jmp 0x12a90
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
movzx eax, byte [ebp - 0x11]
test eax, eax
jne 0x12a62
push 6
push 8
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x12a60
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x34]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x30]
mov dword [eax + 0xc], edx
jmp 0x12a90
push 4
push 0x28
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x12a90
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x5c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x58]
mov dword [eax + 0xc], edx
cmp dword [ebp - 0x60], 0
je 0x12a9f
mov ecx, dword [ebp - 0x60]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8