Function at 0xf00778c
Capabilities:
Get file attributes

Disassembly:
push 0x58
push 0xf003668
call fcn.0f01b8c8
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov esi, dword [ebp + 0xc]
lea eax, [esi + 0x254]
mov dword [ebp - 0x28], eax
lea ecx, [esi + 0x25c]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x18]
cmp dword [edi], 0xffffffff
jne 0xf0077c9
mov dword [ebp - 0x20], 0x80000006
jmp 0xf0079e4
cmp dword [ebp + 0x10], 0x260
ja 0xf0077de
mov dword [ebp - 0x20], 0xc0000023
jmp 0xf0079e4
cmp dword [ebp + 8], ebx
je 0xf007850
push ebx
lea ecx, [ebp - 0x24]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
mov byte [ebp - 0x19], al
cmp al, bl
je 0xf007941
cmp dword [ebp - 0x24], ebx
je 0xf007841
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeString]
mov byte [ebp - 0x19], al
cmp al, bl
je 0xf0078a7
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx + 4]
mov eax, dword [ebp - 0x24]
sub eax, ecx
mov word [edx], ax
movzx eax, ax
mov edx, eax
shr edx, 1
cmp word [ecx + edx*2 - 4], 0x3a
je 0xf00784b
add eax, 0xfffffffe
mov ecx, dword [ebp - 0x28]
mov word [ecx], ax
jmp 0xf00784b
mov eax, dword [ebp - 0x2c]
mov word [eax], bx
mov word [eax + 2], bx
mov byte [ebp - 0x34], bl
jmp 0xf007859
mov al, byte [esi + 0x252]
mov byte [ebp - 0x34], al
mov eax, dword [ebp + 0x10]
cmp eax, dword [esi + 0x24]
je 0xf0078b3
cmp dword [esi + 0x1c], ebx
je 0xf007881
mov eax, dword fs:[0x18]
mov dword [ebp - 0x40], eax
push dword [esi + 0x1c]
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0xf007887
inc dword [0xf077298]
mov eax, dword fs:[0x18]
mov dword [ebp - 0x44], eax
push dword [ebp + 0x10]
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi + 0x1c], eax
cmp eax, ebx
jne 0xf0078b3
mov dword [ebp - 0x20], 0xc0000017
jmp 0xf0079e4
mov dword [esi + 0x20], ebx
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x38], eax
cmp dword [edi], ebx
jne 0xf007953
mov dword [ebp - 0x68], 0x18
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x5c], 0x40
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
push 0x4021
push 7
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x100001
push edi
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jge 0xf00794d
cmp dword [ebp + 8], ebx
je 0xf00791d
push dword [ebp - 0x38]
push dword [ebp + 8]
call fcn.0f006bff
mov dword [edi], eax
jmp 0xf00791f
mov dword [edi], ebx
cmp dword [edi], ebx
je 0xf00792b
mov dword [ebp - 0x20], ebx
jmp 0xf0079e4
cmp dword [ebp - 0x20], 0xc0000034
je 0xf007941
cmp dword [ebp - 0x20], 0xc0000024
jne 0xf0079e4
mov dword [ebp - 0x20], 0xc000003a
jmp 0xf0079e4
inc dword [0xf077294]
cmp dword [ebp + 8], ebx
je 0xf0079c2
mov eax, dword [ebp - 0x2c]
movzx edx, word [eax]
shr edx, 1
mov dword [ebp - 0x3c], edx
jne 0xf00797f
xor eax, eax
mov ax, 0xe
mov ecx, dword [ebp - 0x28]
cmp ax, word [ecx]
sbb eax, eax
and eax, 0x40000034
add eax, 0x80000006
jmp 0xf0079e1
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], ebx
mov ecx, edx
dec edx
mov dword [ebp - 0x3c], edx
test ecx, ecx
je 0xf0079c2
xor ecx, ecx
mov cx, word [eax]
mov dword [ebp - 0x48], ecx
cmp cx, 0x3f
jne 0xf0079b8
cmp word [ebp - 0x30], 0x2e
jne 0xf0079b0
mov word [eax - 2], 0x22
mov eax, dword [ebp - 0x24]
mov word [eax], 0x3e
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], ecx
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0xf007988
push ebx
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
push 3
push dword [ebp + 0x10]
push dword [ebp - 0x38]
lea eax, [ebp - 0x50]
push eax
push ebx
push ebx
push ebx
push dword [esi + 0x18]
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
mov dword [ebp - 0x20], eax
or dword [ebp - 4], 0xffffffff
call fcn.0f0079fd
mov eax, dword [ebp - 0x20]
call fcn.0f01b903
ret 0xc