Function at 0xf0077cc
Capabilities:
Get file attributes

Disassembly:
push 0x58
push 0xf003688
call fcn.0f01bb00
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 0xf007809
mov dword [ebp - 0x20], 0x80000006
jmp 0xf007a24
cmp dword [ebp + 0x10], 0x260
ja 0xf00781e
mov dword [ebp - 0x20], 0xc0000023
jmp 0xf007a24
cmp dword [ebp + 8], ebx
je 0xf007890
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 0xf007981
cmp dword [ebp - 0x24], ebx
je 0xf007881
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeString]
mov byte [ebp - 0x19], al
cmp al, bl
je 0xf0078e7
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 0xf00788b
add eax, 0xfffffffe
mov ecx, dword [ebp - 0x28]
mov word [ecx], ax
jmp 0xf00788b
mov eax, dword [ebp - 0x2c]
mov word [eax], bx
mov word [eax + 2], bx
mov byte [ebp - 0x34], bl
jmp 0xf007899
mov al, byte [esi + 0x252]
mov byte [ebp - 0x34], al
mov eax, dword [ebp + 0x10]
cmp eax, dword [esi + 0x24]
je 0xf0078f3
cmp dword [esi + 0x1c], ebx
je 0xf0078c1
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 0xf0078c7
inc dword [0xf078298]
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 0xf0078f3
mov dword [ebp - 0x20], 0xc0000017
jmp 0xf007a24
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 0xf007993
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 0xf00798d
cmp dword [ebp + 8], ebx
je 0xf00795d
push dword [ebp - 0x38]
push dword [ebp + 8]
call fcn.0f006c3f
mov dword [edi], eax
jmp 0xf00795f
mov dword [edi], ebx
cmp dword [edi], ebx
je 0xf00796b
mov dword [ebp - 0x20], ebx
jmp 0xf007a24
cmp dword [ebp - 0x20], 0xc0000034
je 0xf007981
cmp dword [ebp - 0x20], 0xc0000024
jne 0xf007a24
mov dword [ebp - 0x20], 0xc000003a
jmp 0xf007a24
inc dword [0xf078294]
cmp dword [ebp + 8], ebx
je 0xf007a02
mov eax, dword [ebp - 0x2c]
movzx edx, word [eax]
shr edx, 1
mov dword [ebp - 0x3c], edx
jne 0xf0079bf
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 0xf007a21
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 0xf007a02
xor ecx, ecx
mov cx, word [eax]
mov dword [ebp - 0x48], ecx
cmp cx, 0x3f
jne 0xf0079f8
cmp word [ebp - 0x30], 0x2e
jne 0xf0079f0
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 0xf0079c8
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.0f007a3d
mov eax, dword [ebp - 0x20]
call fcn.0f01bb3b
ret 0xc