Function at 0x10aedc3
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 0x10aee00
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 0x10aee1b
or dword [ebp - 4], 0xffffffff
jmp 0x10aee0e
mov eax, dword [esi + 0x3c]
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov word [esi + 0x38], 1
cmp dword [ebx], edi
jne 0x10aee1b
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10af145
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 0x10af038
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 + reloc.ADVAPI32.dll_RegDeleteValueW], cx
mov word [esi + reloc.ADVAPI32.dll_RegDeleteValueW], cx
mov word [esi + reloc.ADVAPI32.dll_RegDeleteValueW], cx
mov word [esi + reloc.ADVAPI32.dll_RegDeleteValueW], cx
mov word [esi + reloc.ADVAPI32.dll_RegDeleteValueW], cx
mov word [esi + reloc.ADVAPI32.dll_RegDeleteValueW], 1
mov word [edx + 0x2e], cx
mov ecx, dword [esi + 0x254]
test ecx, ecx
je 0x10aee9a
and word [ecx], 0
and word [esi + reloc.KERNEL32.dll_GetTapeParameters], 0
mov dword [esi + 0x278], 2
movzx ecx, byte [eax]
dec ecx
je 0x10aeffe
sub ecx, 7
je 0x10aeeee
dec ecx
je 0x10aeecd
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0xfffffe02
jmp 0x10af01c
test byte [eax + 0x41], 0x40
push dword [ebp + 0x14]
push eax
push dword [ebx]
push edi
je 0x10aeee4
call fcn.010aebf1
jmp 0x10aefb6
call fcn.010ae3a8
jmp 0x10aefb6
mov cl, byte [eax + 0x2a]
test cl, cl
je 0x10aefbe
cmp cl, 1
je 0x10aefab
cmp cl, 2
je 0x10aef2b
cmp cl, 3
je 0x10aefab
jbe 0x10aef2e
cmp cl, 6
jbe 0x10aef2b
cmp cl, 7
jne 0x10aef2e
cmp dword [ebp + 0x14], 1
jne 0x10aef2b
mov word [edx + 0x8e], 1
or dword [esi], 0xffffffff
mov esi, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
test ch, 0x40
jne 0x10af0c3
xor edx, edx
inc edx
cmp dword [ebp + 0x14], edx
jne 0x10af10b
cmp byte [eax + 0x2a], 0
jne 0x10af10b
cmp byte [eax], 9
jne 0x10aef66
cmp word [eax + 0xa0], 0
jne 0x10af0ce
cmp word [ebp - 4], 0
jne 0x10af0ce
mov edi, dword [ebx]
mov edi, dword [edi + 0x10]
cmp dword [edi], 0xffffffff
je 0x10af0ce
mov edi, dword [esi + 4]
mov edi, dword [edi + 0x5c]
test byte [edi + 0x10], 0x10
je 0x10af0ce
and dword [ebp - 8], 0
mov edi, 0x800
test edi, ecx
mov dword [ebp + 0xc], edx
je 0x10af04d
mov dword [ebp - 8], edx
jmp 0x10af094
push dword [ebp + 0x14]
push eax
push ebx
push edi
call fcn.010b96ae
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
jmp 0x10af002
push dword [edi + 0xc]
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 1
pop ecx
ja 0x10aefee
mov eax, dword [ebp - 8]
cmp byte [eax + 0x30], 6
jne 0x10aefdd
mov dword [ebp - 4], 0xfffffe38
and dword [esi + 0x278], 0
cmp word [ebp - 4], 0
jne 0x10af033
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebx]
push edi
call fcn.010add5f
jmp 0x10aefb6
and dword [ebp - 4], 0
cmp word [ebp - 4], 0
je 0x10aef2e
mov esi, dword [ebp + 8]
cmp word [ebp - 4], reloc.ADVAPI32.dll_RegDeleteValueW
je 0x10aef31
mov eax, dword [ebx]
cmp dword [esi + 0x3c], eax
jne 0x10af03d
and word [esi + 0x38], 0
mov edi, dword [ebx]
push 6
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
jmp 0x10af045
mov eax, dword [ebp + 0x10]
jmp 0x10af00d
mov eax, dword [ebp + 0x10]
jmp 0x10af010
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp + 0x10]
jmp 0x10aef31
test cl, 0x10
lea ecx, [ebp + 8]
je 0x10af05d
xor eax, eax
push eax
push eax
push ecx
push eax
jmp 0x10af068
mov eax, dword [eax + 0x7c]
push 0
push 0
push ecx
push dword [eax + 0x18]
push dword [esi + 0xc]
push esi
call fcn.010b5387
test ax, ax
jne 0x10af094
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test edi, eax
jne 0x10af087
and dword [ebp + 0xc], 0
push esi
call fcn.010b4ca9
cmp word [ebp + 0xc], 0
je 0x10af0cb
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 0x10af0cb
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0xfffffeb5
cmp dword [ebp + 0x14], 1
jne 0x10af10b
jmp 0x10af0ce
mov eax, dword [ebp + 0x10]
cmp byte [eax + 0x2a], 0
jne 0x10af10b
xor ecx, ecx
cmp byte [eax], 9
jne 0x10af0e4
cmp word [eax + 0xa0], cx
jne 0x10af10b
cmp word [ebp - 4], cx
jne 0x10af10b
test byte [eax + 0x41], 2
je 0x10af141
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], reloc.ADVAPI32.dll_RegDeleteValueW
je 0x10af141
cmp word [ebp - 4], 0
je 0x10af141
cmp word [ebp - 4], reloc.ADVAPI32.dll_RegDeleteValueW
je 0x10af141
mov eax, dword [ebx]
cmp dword [esi + 0x3c], eax
jne 0x10af139
and word [esi + 0x38], 0
mov edi, dword [ebx]
push 6
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
jmp 0x10af141
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