Function at 0x7d704dd0
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 0x7d704dff
cmp dword [ebp + 0xc], 0
jne 0x7d704dff
cmp dword [ebp + 0x10], 0
jne 0x7d704e0e
push 0x57
call sub.kernel32.dll_SetLastError
or eax, 0xffffffff
jmp 0x7d70507b
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 0x7d704e36
push 3
call sub.kernel32.dll_SetLastError
or eax, 0xffffffff
jmp 0x7d70507b
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 0x7d704e8f
jmp 0x7d70503a
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 0x7d704eba
mov dword [ebp - 8], 0xc0000017
jmp 0x7d70503a
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 0x7d704f27
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 0x7d70503a
mov ecx, dword [ebp - 0x10]
add ecx, 0x1000
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x7d704f6e
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 0x7d704f6c
mov dword [ebp - 8], 0xc0000017
jmp 0x7d704fd3
jmp 0x7d704fa8
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 0x7d704f9f
mov dword [ebp - 8], 0xc0000017
jmp 0x7d704fd3
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 0x7d704f27
cmp dword [ebp - 8], 0
jl 0x7d704ffe
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.7d704c10
add esp, 8
mov dword [ebp - 8], 0
jmp 0x7d70503a
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
je 0x7d705022
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 0x7d70504a
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 0x7d70506f
mov eax, dword [ebp - 0xc]
jmp 0x7d70507b
mov edx, dword [ebp - 8]
push edx
call sym.kernelbase.dll_BaseSetLastNTError
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 0x10