Function at 0xf007686
Capabilities:
Get file attributes

Disassembly:
push 0x58
push 0xf003618
call fcn.0f01b5a4
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 0xf0076c3
mov dword [ebp - 0x20], 0x80000006
jmp 0xf0078de
cmp dword [ebp + 0x10], 0x260
ja 0xf0076d8
mov dword [ebp - 0x20], 0xc0000023
jmp 0xf0078de
cmp dword [ebp + 8], ebx
je 0xf00774a
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 0xf00783b
cmp dword [ebp - 0x24], ebx
je 0xf00773b
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeString]
mov byte [ebp - 0x19], al
cmp al, bl
je 0xf0077a1
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 0xf007745
add eax, 0xfffffffe
mov ecx, dword [ebp - 0x28]
mov word [ecx], ax
jmp 0xf007745
mov eax, dword [ebp - 0x2c]
mov word [eax], bx
mov word [eax + 2], bx
mov byte [ebp - 0x34], bl
jmp 0xf007753
mov al, byte [esi + 0x252]
mov byte [ebp - 0x34], al
mov eax, dword [ebp + 0x10]
cmp eax, dword [esi + 0x24]
je 0xf0077ad
cmp dword [esi + 0x1c], ebx
je 0xf00777b
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 0xf007781
inc dword [0xf0771e8]
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 0xf0077ad
mov dword [ebp - 0x20], 0xc0000017
jmp 0xf0078de
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 0xf00784d
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 0xf007847
cmp dword [ebp + 8], ebx
je 0xf007817
push dword [ebp - 0x38]
push dword [ebp + 8]
call fcn.0f006af9
mov dword [edi], eax
jmp 0xf007819
mov dword [edi], ebx
cmp dword [edi], ebx
je 0xf007825
mov dword [ebp - 0x20], ebx
jmp 0xf0078de
cmp dword [ebp - 0x20], 0xc0000034
je 0xf00783b
cmp dword [ebp - 0x20], 0xc0000024
jne 0xf0078de
mov dword [ebp - 0x20], 0xc000003a
jmp 0xf0078de
inc dword [0xf0771e4]
cmp dword [ebp + 8], ebx
je 0xf0078bc
mov eax, dword [ebp - 0x2c]
movzx edx, word [eax]
shr edx, 1
mov dword [ebp - 0x3c], edx
jne 0xf007879
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 0xf0078db
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 0xf0078bc
xor ecx, ecx
mov cx, word [eax]
mov dword [ebp - 0x48], ecx
cmp cx, 0x3f
jne 0xf0078b2
cmp word [ebp - 0x30], 0x2e
jne 0xf0078aa
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 0xf007882
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.0f0078f7
mov eax, dword [ebp - 0x20]
call fcn.0f01b5df
ret 0xc