Function at 0xf046fb2
Capabilities:
Get file attributes

Disassembly:
push 0x44
push 0xf06e238
call fcn.0f005d34
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov esi, dword [ebp + 0xc]
lea eax, [esi + 0x254]
mov dword [ebp - 0x24], eax
lea ecx, [esi + 0x25c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x18]
cmp dword [edi], 0xffffffff
jne 0xf046fef
mov dword [ebp - 0x1c], 0x80000006
jmp 0xf0471fa
cmp dword [ebp + 0x10], 0x260
ja 0xf047004
mov dword [ebp - 0x1c], 0xc0000023
jmp 0xf0471fa
cmp dword [ebp + 8], ebx
je 0xf047082
push ebx
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
cmp al, bl
jne 0xf047028
mov dword [ebp - 0x1c], 0xc000003a
jmp 0xf0471fa
cmp dword [ebp - 0x20], ebx
je 0xf047071
push dword [ebp - 0x20]
push dword [ebp - 0x28]
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeString]
cmp al, bl
jne 0xf047049
mov dword [ebp - 0x1c], 0xc0000017
jmp 0xf0471fa
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx + 4]
mov eax, dword [ebp - 0x20]
sub eax, ecx
mov word [edx], ax
movzx eax, ax
mov edx, eax
shr edx, 1
cmp word [ecx + edx*2 - 4], 0x3a
je 0xf04707d
add eax, 0xfffffffe
mov ecx, dword [ebp - 0x24]
mov word [ecx], ax
jmp 0xf04707d
xor ecx, ecx
mov eax, dword [ebp - 0x28]
mov word [eax], cx
mov word [eax + 2], cx
mov byte [ebp - 0x2c], bl
jmp 0xf04708b
mov al, byte [esi + 0x252]
mov byte [ebp - 0x2c], al
mov eax, dword [ebp + 0x10]
cmp eax, dword [esi + 0x24]
je 0xf0470d7
mov ecx, dword [esi + 0x1c]
cmp ecx, ebx
je 0xf0470b0
mov eax, dword fs:[0x18]
push ecx
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0xf0470b6
inc dword [0xf089720]
mov eax, dword fs:[0x18]
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
je 0xf04703d
mov dword [esi + 0x20], ebx
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x30], eax
cmp dword [edi], ebx
jne 0xf047174
mov dword [ebp - 0x54], 0x18
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], 0x40
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
push 0x4021
push 7
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x100001
push edi
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jge 0xf04716e
cmp dword [ebp + 8], ebx
je 0xf047141
push dword [ebp - 0x30]
push dword [ebp + 8]
call fcn.0f046bf7
mov dword [edi], eax
jmp 0xf047143
mov dword [edi], ebx
cmp dword [edi], ebx
je 0xf04714f
mov dword [ebp - 0x1c], ebx
jmp 0xf0471fa
cmp dword [ebp - 0x1c], 0xc0000034
je 0xf04701c
cmp dword [ebp - 0x1c], 0xc0000024
jne 0xf0471fa
jmp 0xf04701c
inc dword [0xf08971c]
cmp dword [ebp + 8], ebx
je 0xf0471d8
mov eax, dword [ebp - 0x28]
movzx edi, word [eax]
shr edi, 1
mov dword [ebp - 0x34], edi
jne 0xf04719d
push 0xe
pop eax
mov ecx, dword [ebp - 0x24]
cmp ax, word [ecx]
sbb eax, eax
and eax, 0x40000034
add eax, 0x80000006
jmp 0xf0471f7
mov eax, dword [eax + 4]
xor ecx, ecx
mov dword [ebp - 0x20], eax
mov edx, edi
dec edi
mov dword [ebp - 0x34], edi
test edx, edx
je 0xf0471d8
movzx edx, word [eax]
cmp dx, 0x3f
jne 0xf0471d1
cmp cx, 0x2e
jne 0xf0471c8
push 0x22
pop ecx
mov word [eax - 2], cx
mov eax, dword [ebp - 0x20]
push 0x3e
pop ecx
mov word [eax], cx
mov eax, dword [ebp - 0x20]
movzx ecx, dx
inc eax
inc eax
jmp 0xf0471a2
push ebx
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push 3
push dword [ebp + 0x10]
push dword [ebp - 0x30]
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push ebx
push dword [esi + 0x18]
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0f047216
mov eax, dword [ebp - 0x1c]
call fcn.0f005d79
ret 0xc