Function at 0x7dd90ef1
Capabilities:
Get file attributes

Disassembly:
push 0x6c
push 0x7dd90fd8
call fcn.7dd715c0
or dword [ebp - 0x28], 0xffffffff
or dword [ebp - 0x20], 0xffffffff
xor edi, edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], 0x1000
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x3c], eax
mov eax, dword fs:[0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x3c]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov dword [ebp - 0x30], esi
cmp esi, edi
je 0x7dda2152
push 0x16
push dword [ebp - 0x1c]
push esi
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov dword [ebp - 0x34], eax
cmp eax, edi
jl 0x7dda215c
cmp eax, 0x80000005
je 0x7dd90f2a
cmp eax, 0xc0000023
je 0x7dd90f2a
cmp esi, edi
je 0x7dda2187
cmp eax, edi
jl 0x7dda219d
mov dword [ebp - 0x2c], esi
cmp dword [esi + 4], 2
jbe 0x7dd90faa
cmp word [esi + 0x1a], 0x3a
jne 0x7dda21b2
cmp dword [esi], 0
jne 0x7dd9103a
mov dword [ebp - 0x38], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.7dd90ff9
mov eax, dword [ebp - 0x38]
call fcn.7dd71605
ret 0xc
add esi, dword [esi]
jmp 0x7dd90f96
mov eax, 0xc0000017
jmp 0x7dd90f86
mov eax, dword fs:[0x18]
push dword [ebp - 0x30]
push edi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor esi, esi
mov dword [ebp - 0x30], esi
mov eax, dword [ebp - 0x1c]
add eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x34]
jmp 0x7dd90f78
cmp eax, 0xc000000d
je 0x7dd90fb3
cmp eax, 0xc0000002
je 0x7dd90fb3
test byte [ebp + 0x10], 1
jne 0x7dd90fb3
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
jmp 0x7dd90fba
xor edi, edi
cmp dword [ebp - 0x24], edi
jne 0x7dda2257
mov dword [ebp - 0x1c], 0x1000
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x40], eax
mov eax, dword fs:[0x18]
mov esi, dword [ebp - 0x1c]
push esi
push dword [ebp - 0x40]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x7dda21f6
mov eax, 0xc0000017
jmp 0x7dda2243
push 0x16
add esi, 0xfffffffe
push esi
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov dword [ebp - 0x34], eax
cmp eax, edi
jge 0x7dda2235
mov eax, dword fs:[0x18]
push dword [ebp - 0x24]
push edi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x1c]
add eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x34]
cmp eax, 0x80000005
je 0x7dda21c4
cmp eax, 0xc0000023
je 0x7dda21c4
cmp dword [ebp - 0x24], edi
je 0x7dda219d
cmp eax, edi
jl 0x7dda219d
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x24]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x54], edi
mov eax, dword [edi + 4]
cmp dword [esi + 4], eax
jne 0x7dda2283
shr eax, 1
push eax
lea eax, [edi + 0x18]
push eax
lea eax, [esi + 0x18]
push eax
call sub.ntdll.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x7dda2283
xor ebx, ebx
jmp 0x7dda228c
cmp dword [edi], 0
jne 0x7dda238f
cmp ebx, 1
jne 0x7dda2387
lea eax, [esi + 0x18]
mov dword [ebp - 0x58], eax
mov ax, word [esi + 4]
mov word [ebp - 0x5c], ax
mov word [ebp - 0x5a], ax
mov dword [ebp - 0x7c], 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
xor edi, edi
mov dword [ebp - 0x70], edi
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
push 0x24
push 7
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x7c]
push eax
mov ebx, 0x80100000
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ntdll.dll_NtOpenFile]
cmp eax, edi
jge 0x7dda22fc
test byte [ebp + 0x10], 1
je 0x7dda21a7
cmp dword [esi], edi
jne 0x7dd9103a
jmp 0x7dd90fb3
movzx eax, word [ebp - 0x5c]
shr eax, 1
mov ecx, dword [ebp - 0x58]
lea eax, [ecx + eax*2]
movzx edi, word [eax]
xor ecx, ecx
mov word [eax], cx
or dword [ebp - 0x20], 0xffffffff
lea eax, [ebp - 0x44]
push eax
xor eax, eax
push eax
push eax
push eax
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [esi + 8]
push ecx
push dword [ebp + 0xc]
push dword [ebp - 0x58]
push ebx
push dword [ebp - 0x28]
push eax
call fcn.7dd9438b
test eax, eax
jne 0x7dda235c
movzx eax, word [ebp - 0x5c]
shr eax, 1
mov ecx, dword [ebp - 0x58]
mov word [ecx + eax*2], di
test byte [ebp + 0x10], 1
je 0x7dd90fba
movzx eax, word [ebp - 0x5c]
shr eax, 1
mov ecx, dword [ebp - 0x58]
mov word [ecx + eax*2], di
push dword [ebp - 0x28]
mov edi, dword [sym.imp.ntdll.dll_NtClose]
call edi
or dword [ebp - 0x28], 0xffffffff
cmp dword [ebp - 0x20], 0xffffffff
je 0x7dda2387
push dword [ebp - 0x20]
call edi
or dword [ebp - 0x20], 0xffffffff
cmp dword [esi], 0
jmp 0x7dda22f1
add edi, dword [edi]
jmp 0x7dda225d