Function at 0x7d704d50
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 0x7d704d7f
cmp dword [ebp + 0xc], 0
jne 0x7d704d7f
cmp dword [ebp + 0x10], 0
jne 0x7d704d8e
push 0x57
call sub.kernel32.dll_SetLastError
or eax, 0xffffffff
jmp 0x7d704ffb
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 0x7d704db6
push 3
call sub.kernel32.dll_SetLastError
or eax, 0xffffffff
jmp 0x7d704ffb
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 0x7d704e0f
jmp 0x7d704fba
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 0x7d704e3a
mov dword [ebp - 8], 0xc0000017
jmp 0x7d704fba
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 0x7d704ea7
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 0x7d704fba
mov ecx, dword [ebp - 0x10]
add ecx, 0x1000
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x7d704eee
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 0x7d704eec
mov dword [ebp - 8], 0xc0000017
jmp 0x7d704f53
jmp 0x7d704f28
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 0x7d704f1f
mov dword [ebp - 8], 0xc0000017
jmp 0x7d704f53
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 0x7d704ea7
cmp dword [ebp - 8], 0
jl 0x7d704f7e
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.7d704b90
add esp, 8
mov dword [ebp - 8], 0
jmp 0x7d704fba
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
je 0x7d704fa2
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 0x7d704fca
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 0x7d704fef
mov eax, dword [ebp - 0xc]
jmp 0x7d704ffb
mov edx, dword [ebp - 8]
push edx
call sym.kernel32.dll_BaseSetLastNTError
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 0x10