Function at 0xf0470a4
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0xf062038]
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 0xf047109
mov eax, 0x80070008
jmp 0xf047478
push esi
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.0f0468ff
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 0xf047143
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or edi, 0x80070000
jmp 0xf04715f
cmp word [ebp - 0x26e], ax
mov word [ebp - 0x270], ax
ja 0xf047167
mov edi, 0x8007006f
mov word [ebp - 0x270], bx
cmp edi, ebx
jl 0xf047440
cmp dword [ebp + 0x10], ebx
je 0xf047191
push ebx
lea eax, [ebp - 0x270]
push eax
call fcn.0f046b94
mov edi, eax
cmp edi, ebx
jge 0xf047191
push edi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
cmp eax, 0x89
jne 0xf047440
mov esi, dword [ebp - 0x26c]
push esi
call dword [sym.imp.ntdll.dll_RtlDetermineDosPathNameType_U]
dec eax
je 0xf0471b3
dec eax
je 0xf0471ae
mov edi, 0x800700a1
jmp 0xf047440
add esi, 6
jmp 0xf0471d6
push 2
add esi, 4
pop ecx
jmp 0xf0471ce
cmp ecx, ebx
jbe 0xf0471d6
cmp ax, 0x5c
je 0xf0471cb
cmp ax, 0x2f
jne 0xf0471cc
dec ecx
inc esi
inc esi
mov ax, word [esi]
cmp ax, bx
jne 0xf0471bb
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 0xf04722e
mov ecx, dword [ebp - 0x274]
movzx ecx, word [ecx + 2]
add dword [ebp - 0x260], edi
cmp dword [ebp - 0x260], ecx
jae 0xf04741e
push edi
push eax
push dword [ebp - 0x268]
call fcn.0f01cfc0
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 0xf04723f
mov dword [ebp - 0x280], 1
jmp 0xf047255
mov ax, word [esi]
cmp ax, 0x5c
je 0xf047255
cmp ax, 0x2f
je 0xf047255
inc esi
inc esi
cmp word [esi], bx
jne 0xf04723f
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 0xf047417
cmp dword [ebp - 0x280], ebx
jne 0xf0472ce
mov eax, dword [ebp - 0x278]
cmp eax, ebx
je 0xf0472ce
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 0xf0472e2
add ecx, 0xfffffffe
mov word [ebp - 0x25c], cx
jmp 0xf0472e2
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 0xf047440
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 0xf047440
cmp dword [ebp - 0x280], ebx
jne 0xf047425
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 0xf04741e
mov edi, dword [ebp - 0x268]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
call fcn.0f01cfc0
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 0xf047425
mov eax, esi
inc esi
inc esi
jmp 0xf0471eb
mov edi, 0x80070002
jmp 0xf047440
mov edi, 0x8007006f
jmp 0xf047440
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 0xf047461
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 0xf047476
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.0f01b9b9
leave
ret 0xc