Function at 0xf046f74
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 0xf046fd9
mov eax, 0x80070008
jmp 0xf047348
push esi
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.0f0467cf
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 0xf047013
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or edi, 0x80070000
jmp 0xf04702f
cmp word [ebp - 0x26e], ax
mov word [ebp - 0x270], ax
ja 0xf047037
mov edi, 0x8007006f
mov word [ebp - 0x270], bx
cmp edi, ebx
jl 0xf047310
cmp dword [ebp + 0x10], ebx
je 0xf047061
push ebx
lea eax, [ebp - 0x270]
push eax
call fcn.0f046a64
mov edi, eax
cmp edi, ebx
jge 0xf047061
push edi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
cmp eax, 0x89
jne 0xf047310
mov esi, dword [ebp - 0x26c]
push esi
call dword [sym.imp.ntdll.dll_RtlDetermineDosPathNameType_U]
dec eax
je 0xf047083
dec eax
je 0xf04707e
mov edi, 0x800700a1
jmp 0xf047310
add esi, 6
jmp 0xf0470a6
push 2
add esi, 4
pop ecx
jmp 0xf04709e
cmp ecx, ebx
jbe 0xf0470a6
cmp ax, 0x5c
je 0xf04709b
cmp ax, 0x2f
jne 0xf04709c
dec ecx
inc esi
inc esi
mov ax, word [esi]
cmp ax, bx
jne 0xf04708b
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 0xf0470fe
mov ecx, dword [ebp - 0x274]
movzx ecx, word [ecx + 2]
add dword [ebp - 0x260], edi
cmp dword [ebp - 0x260], ecx
jae 0xf0472ee
push edi
push eax
push dword [ebp - 0x268]
call fcn.0f01cd90
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 0xf04710f
mov dword [ebp - 0x280], 1
jmp 0xf047125
mov ax, word [esi]
cmp ax, 0x5c
je 0xf047125
cmp ax, 0x2f
je 0xf047125
inc esi
inc esi
cmp word [esi], bx
jne 0xf04710f
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 0xf0472e7
cmp dword [ebp - 0x280], ebx
jne 0xf04719e
mov eax, dword [ebp - 0x278]
cmp eax, ebx
je 0xf04719e
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 0xf0471b2
add ecx, 0xfffffffe
mov word [ebp - 0x25c], cx
jmp 0xf0471b2
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 0xf047310
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 0xf047310
cmp dword [ebp - 0x280], ebx
jne 0xf0472f5
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 0xf0472ee
mov edi, dword [ebp - 0x268]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
call fcn.0f01cd90
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 0xf0472f5
mov eax, esi
inc esi
inc esi
jmp 0xf0470bb
mov edi, 0x80070002
jmp 0xf047310
mov edi, 0x8007006f
jmp 0xf047310
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 0xf047331
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 0xf047346
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.0f01b780
leave
ret 0xc