Function at 0xf046a24
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0xf061038]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x274], eax
push ebx
lea eax, [ebp - 0x25c]
push eax
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x280], ebx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, 0x208
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp eax, ebx
jne 0xf046a89
mov eax, 0x80070008
jmp 0xf046df8
push esi
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.0f04627f
movzx eax, word [ebp - 0x26e]
push ebx
push dword [ebp - 0x26c]
push eax
push dword [edi + 4]
call dword [sym.imp.ntdll.dll_RtlGetFullPathName_U]
cmp eax, ebx
jne 0xf046ac3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or edi, 0x80070000
jmp 0xf046adf
cmp word [ebp - 0x26e], ax
mov word [ebp - 0x270], ax
ja 0xf046ae7
mov edi, 0x8007006f
mov word [ebp - 0x270], bx
cmp edi, ebx
jl 0xf046dc0
cmp dword [ebp + 0x10], ebx
je 0xf046b11
push ebx
lea eax, [ebp - 0x270]
push eax
call fcn.0f046514
mov edi, eax
cmp edi, ebx
jge 0xf046b11
push edi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
cmp eax, 0x89
jne 0xf046dc0
mov esi, dword [ebp - 0x26c]
push esi
call dword [sym.imp.ntdll.dll_RtlDetermineDosPathNameType_U]
dec eax
je 0xf046b33
dec eax
je 0xf046b2e
mov edi, 0x800700a1
jmp 0xf046dc0
add esi, 6
jmp 0xf046b56
push 2
add esi, 4
pop ecx
jmp 0xf046b4e
cmp ecx, ebx
jbe 0xf046b56
cmp ax, 0x5c
je 0xf046b4b
cmp ax, 0x2f
jne 0xf046b4c
dec ecx
inc esi
inc esi
mov ax, word [esi]
cmp ax, bx
jne 0xf046b3b
mov eax, dword [ebp - 0x274]
mov eax, dword [eax + 4]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x26c]
mov edi, esi
sub edi, eax
je 0xf046bae
mov ecx, dword [ebp - 0x274]
movzx ecx, word [ecx + 2]
add dword [ebp - 0x260], edi
cmp dword [ebp - 0x260], ecx
jae 0xf046d9e
push edi
push eax
push dword [ebp - 0x268]
call fcn.0f01ca60
mov eax, dword [ebp - 0x268]
add esp, 0xc
shr edi, 1
lea eax, [eax + edi*2]
mov dword [ebp - 0x268], eax
cmp word [esi], bx
jne 0xf046bbf
mov dword [ebp - 0x280], 1
jmp 0xf046bd5
mov ax, word [esi]
cmp ax, 0x5c
je 0xf046bd5
cmp ax, 0x2f
je 0xf046bd5
inc esi
inc esi
cmp word [esi], bx
jne 0xf046bbf
mov ax, word [esi]
mov word [ebp - 0x28c], ax
push ebx
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x26c]
mov word [esi], bx
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
je 0xf046d97
cmp dword [ebp - 0x280], ebx
jne 0xf046c4e
mov eax, dword [ebp - 0x278]
cmp eax, ebx
je 0xf046c4e
mov edx, dword [ebp - 0x258]
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x25c]
sub eax, ecx
movzx edi, cx
mov word [ebp - 0x27c], ax
mov word [ebp - 0x25c], cx
cmp word [edi + edx - 4], 0x3a
je 0xf046c62
add ecx, 0xfffffffe
mov word [ebp - 0x25c], cx
jmp 0xf046c62
xor ax, ax
mov dword [ebp - 0x280], 1
mov word [ebp - 0x27c], ax
mov word [ebp - 0x27a], ax
mov ax, word [ebp - 0x25c]
mov word [ebp - 0x25a], ax
mov ax, word [ebp - 0x28c]
mov word [esi], ax
push 0x4021
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x29c], eax
push 3
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x2a4]
push eax
push 0x100001
lea eax, [ebp - 0x264]
push eax
mov dword [ebp - 0x2a4], 0x18
mov dword [ebp - 0x2a0], ebx
mov dword [ebp - 0x298], 0x40
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x290], ebx
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov edi, eax
cmp edi, ebx
jl 0xf046dc0
push ebx
lea eax, [ebp - 0x27c]
push eax
push 1
push 1
push 0x250
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x288]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x264]
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
push dword [ebp - 0x264]
mov edi, eax
call dword [sym.imp.ntdll.dll_NtClose]
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
cmp edi, ebx
mov dword [ebp - 0x258], ebx
jl 0xf046dc0
cmp dword [ebp - 0x280], ebx
jne 0xf046da5
mov ecx, dword [ebp - 0x274]
mov eax, dword [ebp - 0x218]
movzx ecx, word [ecx + 2]
add dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], ecx
jae 0xf046d9e
mov edi, dword [ebp - 0x268]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
call fcn.0f01ca60
mov eax, dword [ebp - 0x218]
shr eax, 1
add esp, 0xc
cmp word [esi], bx
lea eax, [edi + eax*2]
mov dword [ebp - 0x268], eax
je 0xf046da5
mov eax, esi
inc esi
inc esi
jmp 0xf046b6b
mov edi, 0x80070002
jmp 0xf046dc0
mov edi, 0x8007006f
jmp 0xf046dc0
mov eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x274]
mov word [eax], bx
mov ax, word [ebp - 0x260]
xor edi, edi
mov word [ecx], ax
cmp dword [ebp - 0x26c], ebx
je 0xf046de1
mov eax, dword fs:[0x18]
push dword [ebp - 0x26c]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x258], ebx
je 0xf046df6
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0f01b45c
leave
ret 0xc