Function at 0xf048a22
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0xf072008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
push eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x260]
push eax
mov dword [ebp - 0x274], ebx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, 0x208
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
test eax, eax
jne 0xf048a8a
mov eax, 0x80070008
jmp 0xf048e28
push esi
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.0f048265
movzx eax, word [ebp - 0x266]
xor esi, esi
push esi
push dword [ebp - 0x264]
push eax
push dword [edi + 4]
call dword [sym.imp.ntdll.dll_RtlGetFullPathName_U]
cmp eax, esi
jne 0xf048ac6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or edi, 0x80070000
jmp 0xf048ae4
mov word [ebp - 0x268], ax
cmp word [ebp - 0x266], ax
ja 0xf048aec
xor eax, eax
mov edi, 0x8007006f
mov word [ebp - 0x268], ax
cmp edi, esi
jl 0xf048dee
cmp dword [ebp + 0x10], esi
je 0xf048b16
push esi
lea eax, [ebp - 0x268]
push eax
call fcn.0f04850d
mov edi, eax
cmp edi, esi
jge 0xf048b16
push edi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
cmp eax, 0x89
jne 0xf048dee
mov esi, dword [ebp - 0x264]
push esi
call dword [sym.imp.ntdll.dll_RtlDetermineDosPathNameType_U]
dec eax
je 0xf048b38
dec eax
je 0xf048b33
mov edi, 0x800700a1
jmp 0xf048dee
add esi, 6
jmp 0xf048b61
push 2
add esi, 4
pop ecx
jmp 0xf048b57
test ecx, ecx
jbe 0xf048b61
push 0x5c
pop edx
cmp dx, ax
je 0xf048b54
push 0x2f
pop edx
cmp dx, ax
jne 0xf048b55
dec ecx
inc esi
inc esi
movzx eax, word [esi]
xor edx, edx
cmp dx, ax
jne 0xf048b40
mov ebx, dword [ebx + 4]
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x26c], ebx
mov edi, esi
sub edi, eax
je 0xf048ba8
mov ecx, dword [ebp - 0x274]
movzx ecx, word [ecx + 2]
add dword [ebp - 0x258], edi
cmp dword [ebp - 0x258], ecx
jae 0xf048dd8
push edi
push eax
push ebx
call fcn.0f00a4b0
add esp, 0xc
shr edi, 1
lea ebx, [ebx + edi*2]
mov dword [ebp - 0x26c], ebx
xor eax, eax
cmp ax, word [esi]
jne 0xf048bd0
mov dword [ebp - 0x270], 1
jmp 0xf048bd7
movzx eax, word [esi]
push 0x5c
pop ecx
cmp cx, ax
je 0xf048bd7
push 0x2f
pop ecx
cmp cx, ax
je 0xf048bd7
inc esi
inc esi
xor eax, eax
cmp ax, word [esi]
jne 0xf048bbb
movzx eax, word [esi]
mov dword [ebp - 0x284], eax
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
je 0xf048db4
cmp dword [ebp - 0x270], 0
jne 0xf048c5b
mov eax, dword [ebp - 0x27c]
test eax, eax
je 0xf048c5b
mov edx, dword [ebp - 0x25c]
sub eax, edx
movzx ecx, ax
mov eax, dword [ebp - 0x260]
sub eax, ecx
movzx edi, cx
push 0x3a
pop ebx
mov word [ebp - 0x280], ax
mov word [ebp - 0x260], cx
cmp bx, word [edi + edx - 4]
mov ebx, dword [ebp - 0x26c]
je 0xf048c6e
add ecx, 0xfffffffe
mov word [ebp - 0x260], cx
jmp 0xf048c6e
xor eax, eax
mov dword [ebp - 0x270], 1
mov word [ebp - 0x280], ax
mov word [ebp - 0x27e], ax
mov ax, word [ebp - 0x260]
mov word [ebp - 0x25e], ax
mov ax, word [ebp - 0x284]
mov word [esi], ax
xor eax, eax
push 0x4021
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x288], eax
push 3
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x29c]
push eax
push 0x100001
lea eax, [ebp - 0x278]
lea ecx, [ebp - 0x260]
push eax
mov dword [ebp - 0x29c], 0x18
mov dword [ebp - 0x290], 0x40
mov dword [ebp - 0x294], ecx
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov edi, eax
xor eax, eax
cmp edi, eax
jl 0xf048dee
push eax
lea ecx, [ebp - 0x280]
push ecx
push 1
push 1
push 0x250
lea ecx, [ebp - 0x254]
push ecx
lea ecx, [ebp - 0x2a4]
push ecx
push eax
push eax
push eax
push dword [ebp - 0x278]
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
push dword [ebp - 0x278]
mov edi, eax
call dword [sym.imp.ntdll.dll_NtClose]
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
and dword [ebp - 0x25c], 0
test edi, edi
jl 0xf048dee
xor edi, edi
cmp dword [ebp - 0x270], edi
jne 0xf048dbd
mov eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 0x218]
add dword [ebp - 0x258], ecx
cmp dword [ebp - 0x258], eax
jb 0xf048dd8
mov eax, dword [ebp - 0x274]
movzx eax, word [eax + 2]
cmp dword [ebp - 0x258], eax
jae 0xf048dd8
push ecx
lea eax, [ebp - 0x214]
push eax
push ebx
call fcn.0f00a4b0
mov eax, dword [ebp - 0x218]
shr eax, 1
lea ebx, [ebx + eax*2]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x26c], ebx
cmp ax, word [esi]
je 0xf048dbb
mov eax, esi
inc esi
inc esi
jmp 0xf048b70
mov edi, 0x80070002
jmp 0xf048dee
xor edi, edi
mov ecx, dword [ebp - 0x274]
movzx eax, word [ecx + 2]
mov edx, dword [ecx + 4]
lea eax, [edx + eax*2]
cmp ebx, eax
ja 0xf048ddf
xor eax, eax
mov word [ebx], ax
jmp 0xf048de4
mov edi, 0x8007006f
jmp 0xf048dee
xor edx, edx
mov word [eax], dx
mov ax, word [ebp - 0x258]
mov word [ecx], ax
xor esi, esi
cmp dword [ebp - 0x264], esi
je 0xf048e11
push dword [ebp - 0x264]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x25c], esi
je 0xf048e26
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0f0057d5
leave
ret 0xc