Function at 0x10aec08
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
xor edi, edi
cmp word [esi + 0x38], di
mov dword [ebp - 4], edi
mov dword [ebp - 8], eax
je 0x10aec45
push 0x298
push 1
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, edi
mov ebx, dword [ebp + 0xc]
pop ecx
pop ecx
mov dword [ebx], eax
jne 0x10aec60
or dword [ebp - 4], 0xffffffff
jmp 0x10aec53
mov eax, dword [esi + 0x3c]
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov word [esi + 0x38], 1
cmp dword [ebx], edi
jne 0x10aec60
or ax, 0xffff
jmp 0x10aef8a
mov eax, dword [ebx]
lea ecx, [eax + 0x18]
mov dword [eax + 0x10], ecx
mov edx, dword [ebx]
mov edi, dword [edx + 0x10]
xor eax, eax
cmp word [ebp - 4], ax
mov ecx, 0xa0
rep stosd dword es:[edi], eax
jne 0x10aee7d
mov eax, dword [ebx]
mov esi, dword [eax + 0x10]
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x34]
mov cx, word [ebp + 0x14]
mov dword [eax], edi
mov eax, dword [ebx]
mov word [eax + 4], cx
mov ecx, dword [ebx]
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0x14], eax
xor ecx, ecx
mov word [esi + 0x248], cx
mov word [esi + 0x25a], cx
mov word [esi + 0x25e], cx
mov word [esi + 0x266], cx
mov word [esi + 0x268], cx
mov word [esi + 0x240], 1
mov word [edx + 0x2e], cx
mov ecx, dword [esi + 0x254]
test ecx, ecx
je 0x10aecdf
and word [ecx], 0
and word [esi + 0x258], 0
mov dword [esi + 0x278], 2
movzx ecx, byte [eax]
dec ecx
je 0x10aee43
sub ecx, 7
je 0x10aed33
dec ecx
je 0x10aed12
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0xfffffe02
jmp 0x10aee61
test byte [eax + 0x41], 0x40
push dword [ebp + 0x14]
push eax
push dword [ebx]
push edi
je 0x10aed29
call fcn.010aea36
jmp 0x10aedfb
call fcn.010ae1ed
jmp 0x10aedfb
mov cl, byte [eax + 0x2a]
test cl, cl
je 0x10aee03
cmp cl, 1
je 0x10aedf0
cmp cl, 2
je 0x10aed70
cmp cl, 3
je 0x10aedf0
jbe 0x10aed73
cmp cl, 6
jbe 0x10aed70
cmp cl, 7
jne 0x10aed73
cmp dword [ebp + 0x14], 1
jne 0x10aed70
mov word [edx + 0x8e], 1
or dword [esi], 0xffffffff
mov esi, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
test ch, 0x40
jne 0x10aef08
xor edx, edx
inc edx
cmp dword [ebp + 0x14], edx
jne 0x10aef50
cmp byte [eax + 0x2a], 0
jne 0x10aef50
cmp byte [eax], 9
jne 0x10aedab
cmp word [eax + 0xa0], 0
jne 0x10aef13
cmp word [ebp - 4], 0
jne 0x10aef13
mov edi, dword [ebx]
mov edi, dword [edi + 0x10]
cmp dword [edi], 0xffffffff
je 0x10aef13
mov edi, dword [esi + 4]
mov edi, dword [edi + 0x5c]
test byte [edi + 0x10], 0x10
je 0x10aef13
and dword [ebp - 8], 0
mov edi, 0x800
test edi, ecx
mov dword [ebp + 0xc], edx
je 0x10aee92
mov dword [ebp - 8], edx
jmp 0x10aeed9
push dword [ebp + 0x14]
push eax
push ebx
push edi
call fcn.010b9520
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
jmp 0x10aee47
push dword [edi + 0xc]
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 1
pop ecx
ja 0x10aee33
mov eax, dword [ebp - 8]
cmp byte [eax + 0x30], 6
jne 0x10aee22
mov dword [ebp - 4], 0xfffffe38
and dword [esi + 0x278], 0
cmp word [ebp - 4], 0
jne 0x10aee78
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebx]
push edi
call fcn.010adba4
jmp 0x10aedfb
and dword [ebp - 4], 0
cmp word [ebp - 4], 0
je 0x10aed73
mov esi, dword [ebp + 8]
cmp word [ebp - 4], 0xfe10
je 0x10aed76
mov eax, dword [ebx]
cmp dword [esi + 0x3c], eax
jne 0x10aee82
and word [esi + 0x38], 0
mov edi, dword [ebx]
push 6
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
jmp 0x10aee8a
mov eax, dword [ebp + 0x10]
jmp 0x10aee52
mov eax, dword [ebp + 0x10]
jmp 0x10aee55
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp + 0x10]
jmp 0x10aed76
test cl, 0x10
lea ecx, [ebp + 8]
je 0x10aeea2
xor eax, eax
push eax
push eax
push ecx
push eax
jmp 0x10aeead
mov eax, dword [eax + 0x7c]
push 0
push 0
push ecx
push dword [eax + 0x18]
push dword [esi + 0xc]
push esi
call fcn.010b51f9
test ax, ax
jne 0x10aeed9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test edi, eax
jne 0x10aeecc
and dword [ebp + 0xc], 0
push esi
call fcn.010b4b1b
cmp word [ebp + 0xc], 0
je 0x10aef10
xor eax, eax
push eax
lea ecx, [ebp - 0xc]
push ecx
push eax
push eax
push 2
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
push 0x9c040
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10aef10
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0xfffffeb5
cmp dword [ebp + 0x14], 1
jne 0x10aef50
jmp 0x10aef13
mov eax, dword [ebp + 0x10]
cmp byte [eax + 0x2a], 0
jne 0x10aef50
xor ecx, ecx
cmp byte [eax], 9
jne 0x10aef29
cmp word [eax + 0xa0], cx
jne 0x10aef50
cmp word [ebp - 4], cx
jne 0x10aef50
test byte [eax + 0x41], 2
je 0x10aef86
push ecx
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
push ecx
push ecx
push ecx
push ecx
push 0x900c4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp word [ebp - 4], 0xfeb5
je 0x10aef86
cmp word [ebp - 4], 0
je 0x10aef86
cmp word [ebp - 4], 0xfe10
je 0x10aef86
mov eax, dword [ebx]
cmp dword [esi + 0x3c], eax
jne 0x10aef7e
and word [esi + 0x38], 0
mov edi, dword [ebx]
push 6
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
jmp 0x10aef86
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ax, word [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10