Function at 0x10adba4
Capabilities:
Get file attributes
Query environment variable
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x10de03c]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x438], eax
mov eax, dword [edi + 0x34]
mov word [esi + 6], bx
mov dword [esi], edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
push 0x1011c84
push dword [edi + 0xc]
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x434], eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10adc29
mov eax, dword [esi + 0x10]
or dword [eax], 0xffffffff
mov eax, dword [esi + 0x10]
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [eax + 0x40], ebx
xor ax, ax
jmp 0x10ae1d9
push ebx
push ebx
lea eax, [ebp - 0x418]
push eax
push ebx
push dword [edi + 0xc]
push edi
call fcn.010b51f9
test ax, ax
jne 0x10adffd
mov esi, dword [ebp - 0x434]
mov eax, dword [esi + 0x14f8]
cmp eax, ebx
je 0x10adc88
add esi, 0x14fc
cmp word [esi], bx
je 0x10adc88
lea ecx, [ebp - 0x420]
push ecx
push eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x54]
add eax, 4
push eax
push esi
call sub.query.dll_SetCatalogState
mov eax, dword [ebp - 0x434]
add eax, 0x14f8
mov dword [eax], ebx
mov word [esi], bx
mov eax, dword [edi + 4]
test byte [eax + 0x60], 0x80
jne 0x10add4c
push 0x5c
push dword [ebp - 0x418]
call dword [sym.imp.msvcrt.dll_wcsrchr]
cmp eax, ebx
pop ecx
pop ecx
je 0x10add4c
add eax, 2
push 0x1011f04
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10add4c
push dword [ebp - 0x418]
push edi
call fcn.010ad4ef
mov esi, eax
cmp esi, ebx
je 0x10add4c
mov eax, dword [ebp - 0x434]
add eax, 0x14f8
push eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x54]
push 2
add eax, 4
push eax
push esi
call sub.query.dll_SetCatalogState
test eax, eax
jne 0x10add4c
mov dword [ebp - 0x420], 1
lea eax, [ebp - 0x428]
push eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x54]
push 0x10
add eax, 4
push eax
push esi
call sub.query.dll_SetCatalogState
test eax, eax
jne 0x10add2a
cmp dword [ebp - 0x428], 2
je 0x10add4c
call fcn.01075a13
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x420]
cmp dword [ebp - 0x420], 0xa0
jl 0x10add04
mov eax, dword [edi + 4]
cmp word [eax + 0x32], bx
jne 0x10addc5
push 0x208
lea eax, [ebp - 0x414]
push eax
push 0x1011eb0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0x10
test eax, eax
mov eax, dword [ebp - 0x434]
jne 0x10addb1
add eax, 0x96
cmp word [eax], bx
jne 0x10addc5
push edi
mov word [eax], 1
call fcn.0108a647
jmp 0x10addc5
add eax, 0x96
cmp word [eax], 1
jne 0x10addc5
push edi
mov word [eax], bx
call fcn.0108a6c9
mov esi, dword [ebp - 0x438]
mov ecx, dword [esi + 0x40]
test ch, 4
je 0x10adddd
mov dword [ebp - 0x424], 0x200000
movsx eax, word [ebp + 0x14]
sub eax, ebx
je 0x10ade50
dec eax
je 0x10addf3
dec eax
je 0x10ade50
mov edi, dword [ebp - 0x43c]
jmp 0x10ade5f
test ch, 0x40
je 0x10ade22
push 0x80
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esi + 0x16], 2
mov edi, 0x10d0100
jne 0x10ade3a
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_EncryptFileW]
jmp 0x10ade3a
test byte [esi + 0x16], 2
mov edi, 0xc10d0000
jne 0x10ade3a
push ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_DecryptFileW]
mov dword [ebp - 0x430], 4
mov dword [ebp - 0x41c], 2
jmp 0x10ade5f
mov edi, 0x81000000
mov dword [ebp - 0x430], 3
mov ecx, dword [ebp - 0x424]
mov eax, dword [ebp - 0x41c]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
or ecx, 0xa000080
push ecx
push dword [ebp - 0x430]
or eax, 5
push ebx
push eax
push edi
push dword [ebp - 0x418]
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x420], eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x41c], eax
jne 0x10ae041
test edi, 0x10000
je 0x10adee2
push ebx
push dword [ebp - 0x428]
and edi, 0xfffeffff
push dword [ebp - 0x430]
push ebx
push dword [ebp - 0x420]
push edi
push dword [ebp - 0x418]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x41c], eax
jne 0x10ae041
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x424], eax
mov eax, 0x80
cmp dword [ebp - 0x424], eax
je 0x10ae006
cmp dword [ebp - 0x424], 0xffffffff
je 0x10ae006
cmp word [ebp + 0x14], 1
jne 0x10ae006
push eax
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push dword [ebp - 0x428]
push dword [ebp - 0x430]
push ebx
push dword [ebp - 0x420]
push edi
push dword [ebp - 0x418]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x41c], eax
jne 0x10ae041
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push dword [ebp - 0x428]
and edi, 0xfeffffff
push dword [ebp - 0x430]
push ebx
push dword [ebp - 0x420]
push edi
push dword [ebp - 0x418]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x41c], eax
jne 0x10ae041
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x424]
mov esi, eax
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0x43c]
push ebx
mov eax, esi
call fcn.010ad74c
mov esi, eax
push dword [ebp - 0x42c]
call fcn.010b4b1b
cmp si, bx
je 0x10ae1d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 1
mov edi, eax
lea eax, [ebp - 0x418]
push eax
mov eax, dword [ebp - 0x42c]
push ebx
push dword [eax + 0xc]
push eax
call fcn.010b51f9
test ax, ax
je 0x10ae152
or ax, 0xffff
jmp 0x10ae1d9
push ebx
push dword [ebp - 0x428]
and edi, 0xfeffffff
push dword [ebp - 0x430]
push ebx
push dword [ebp - 0x420]
push edi
push dword [ebp - 0x418]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x41c], eax
jne 0x10ae041
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10adfae
mov esi, dword [ebp - 0x438]
and byte [esi + 0x84], 0xf7
test byte [esi + 0x41], 4
mov dword [ebp - 0x424], ebx
je 0x10ae079
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x41c]
push esi
push dword [ebp - 0x418]
push dword [ebp - 0x42c]
call fcn.010ad019
lea eax, [ebp - 0x470]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x10ae131
mov eax, dword [esi + 0x7c]
mov eax, dword [eax + 0x18]
cmp word [eax], bx
jne 0x10ae0b1
mov eax, dword [ebp - 0x46c]
mov dword [esi + 0x60], eax
mov eax, dword [ebp - 0x468]
mov dword [esi + 0x64], eax
cmp dword [ebp - 0x424], 0xa0000003
jne 0x10ae131
mov edi, dword [ebp - 0x434]
mov eax, dword [edi + 0x78]
cmp eax, ebx
je 0x10ae0fe
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0x454]
jne 0x10ae0ea
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp - 0x440]
jne 0x10ae0ea
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x444]
je 0x10ae0f1
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x10ae0ca
cmp eax, ebx
je 0x10ae0fe
or byte [esi + 0x84], 8
jmp 0x10ae131
push 1
push 0x10
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, ebx
pop ecx
pop ecx
je 0x10ae131
mov ecx, dword [ebp - 0x454]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x440]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x444]
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0x78]
mov dword [eax + 0xc], ecx
mov dword [edi + 0x78], eax
mov eax, dword [ebp - 0x43c]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x41c]
mov dword [ecx], edx
mov ecx, dword [eax + 0x10]
mov dword [ecx + 4], ebx
mov dword [eax + 8], ebx
xor esi, esi
jmp 0x10adfbe
mov esi, dword [sym.imp.msvcrt.dll_wcsncmp]
push 8
push 0x1011dd4
push dword [ebp - 0x418]
call esi
add esp, 0xc
test eax, eax
jne 0x10ae183
add dword [ebp - 0x418], 0xc
mov eax, dword [ebp - 0x418]
mov dword [eax], 0x5c005c
jmp 0x10ae1a0
push 4
push 0x1005db4
push dword [ebp - 0x418]
call esi
add esp, 0xc
test eax, eax
jne 0x10ae1a0
add dword [ebp - 0x418], 8
cmp word [ebp + 0x14], 1
push dword [ebp - 0x418]
jne 0x10ae1b4
push 0x232f
jmp 0x10ae1b9
push 0x232e
push edi
push ebx
push dword [ebp - 0x42c]
call fcn.010892e6
push dword [ebp - 0x42c]
call fcn.010b4b1b
mov esi, 0xfffffe3f
mov ax, si
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 0x10