Function at 0x7d702750
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x14], 0
jne 0x7d70277f
cmp dword [ebp + 0xc], 0
jne 0x7d70277f
cmp dword [ebp + 0x10], 0
jne 0x7d70278e
push 0x57
call sub.kernel32.dll_SetLastError
or eax, 0xffffffff
jmp 0x7d7029fb
push 0
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntext.dll_RtlDosPathNameToNtPathName_U]
movzx edx, al
test edx, edx
jne 0x7d7027b6
push 3
call sub.kernel32.dll_SetLastError
or eax, 0xffffffff
jmp 0x7d7029fb
mov dword [ebp - 0x40], 0x18
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], 0x40
lea eax, [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push 0
push 0
push 0
push 1
push 7
push 0
push 0
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x40]
push edx
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntext.dll_NtCreateFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x7d70280f
jmp 0x7d7029ba
push 0x2c
push 8
call fcn.7d701060
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.ntext.dll_RtlAllocateHeap]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x7d70283a
mov dword [ebp - 8], 0xc0000017
jmp 0x7d7029ba
mov eax, dword [ebp - 0xc]
mov dword [eax], 2
mov ecx, dword [ebp - 0xc]
add ecx, 0x20
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call dword [sym.imp.ntext.dll_RtlInitializeCriticalSection]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x7d7028a7
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call fcn.7d701060
mov edx, dword [eax + 0x30]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.ntext.dll_RtlFreeHeap]
jmp 0x7d7029ba
mov ecx, dword [ebp - 0x10]
add ecx, 0x1000
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x7d7028ee
mov eax, dword [ebp - 0x10]
push eax
push 8
call fcn.7d701060
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.ntext.dll_RtlAllocateHeap]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x7d7028ec
mov dword [ebp - 8], 0xc0000017
jmp 0x7d702953
jmp 0x7d702928
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
push 0
call fcn.7d701060
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.ntext.dll_RtlReAllocateHeap]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x7d70291f
mov dword [ebp - 8], 0xc0000017
jmp 0x7d702953
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
mov dword [edx + 4], eax
push 0x16
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ntext.dll_NtQueryInformationFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xc0000023
je 0x7d7028a7
cmp dword [ebp - 8], 0
jl 0x7d70297e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [eax + 8], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.7d702620
add esp, 8
mov dword [ebp - 8], 0
jmp 0x7d7029ba
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
je 0x7d7029a2
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
push 0
call fcn.7d701060
mov edx, dword [eax + 0x30]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.ntext.dll_RtlFreeHeap]
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call fcn.7d701060
mov edx, dword [eax + 0x30]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.ntext.dll_RtlFreeHeap]
cmp dword [ebp - 0x14], 0
je 0x7d7029ca
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ntext.dll_NtClose]
mov edx, dword [ebp - 0x1c]
push edx
push 0
call fcn.7d701060
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.ntext.dll_RtlFreeHeap]
cmp dword [ebp - 8], 0
jl 0x7d7029ef
mov eax, dword [ebp - 0xc]
jmp 0x7d7029fb
mov edx, dword [ebp - 8]
push edx
call fcn.7d701e50
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 0x10