Function at 0x10add5f
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 0x1011c9c
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 0x10adde4
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 0x10ae394
push ebx
push ebx
lea eax, [ebp - 0x418]
push eax
push ebx
push dword [edi + 0xc]
push edi
call fcn.010b5387
test ax, ax
jne 0x10ae1b8
mov esi, dword [ebp - 0x434]
mov eax, dword [esi + 0x14f8]
cmp eax, ebx
je 0x10ade43
add esi, 0x14fc
cmp word [esi], bx
je 0x10ade43
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 fcn.010cb5a6
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 0x10adf07
push 0x5c
push dword [ebp - 0x418]
call dword [sym.imp.msvcrt.dll_wcsrchr]
cmp eax, ebx
pop ecx
pop ecx
je 0x10adf07
add eax, 2
push 0x1011f1c
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10adf07
push dword [ebp - 0x418]
push edi
call fcn.010ad6aa
mov esi, eax
cmp esi, ebx
je 0x10adf07
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 fcn.010cb5a6
test eax, eax
jne 0x10adf07
mov dword [ebp - 0x420], 1
lea eax, [ebp - 0x428]
push eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x54]
push reloc.KERNEL32.dll_LoadLibraryW
add eax, 4
push eax
push esi
call fcn.010cb5a6
test eax, eax
jne 0x10adee5
cmp dword [ebp - 0x428], 2
je 0x10adf07
call fcn.01075adf
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x420]
cmp dword [ebp - 0x420], 0xa0
jl 0x10adebf
mov eax, dword [edi + 4]
cmp word [eax + 0x32], bx
jne 0x10adf80
push 0x208
lea eax, [ebp - 0x414]
push eax
push 0x1011ec8
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 0x10adf6c
add eax, 0x96
cmp word [eax], bx
jne 0x10adf80
push edi
mov word [eax], 1
call fcn.0108a7d5
jmp 0x10adf80
add eax, 0x96
cmp word [eax], 1
jne 0x10adf80
push edi
mov word [eax], bx
call fcn.0108a857
mov esi, dword [ebp - 0x438]
mov ecx, dword [esi + 0x40]
test ch, 4
je 0x10adf98
mov dword [ebp - 0x424], 0x200000
movsx eax, word [ebp + 0x14]
sub eax, ebx
je 0x10ae00b
dec eax
je 0x10adfae
dec eax
je 0x10ae00b
mov edi, dword [ebp - 0x43c]
jmp 0x10ae01a
test ch, 0x40
je 0x10adfdd
push 0x80
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esi + 0x16], 2
mov edi, 0x10d0100
jne 0x10adff5
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_EncryptFileW]
jmp 0x10adff5
test byte [esi + 0x16], 2
mov edi, 0xc10d0000
jne 0x10adff5
push ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_DecryptFileW]
mov dword [ebp - 0x430], 4
mov dword [ebp - 0x41c], 2
jmp 0x10ae01a
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 0x10ae1fc
test edi, 0x10000
je 0x10ae09d
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 0x10ae1fc
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 0x10ae1c1
cmp dword [ebp - 0x424], 0xffffffff
je 0x10ae1c1
cmp word [ebp + 0x14], 1
jne 0x10ae1c1
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 0x10ae1fc
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 0x10ae1fc
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.010ad907
mov esi, eax
push dword [ebp - 0x42c]
call fcn.010b4ca9
cmp si, bx
je 0x10ae391
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.010b5387
test ax, ax
je 0x10ae30d
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10ae394
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 0x10ae1fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10ae169
mov esi, dword [ebp - 0x438]
and byte [esi + 0x84], 0xf7
test byte [esi + 0x41], 4
mov dword [ebp - 0x424], ebx
je 0x10ae234
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x41c]
push esi
push dword [ebp - 0x418]
push dword [ebp - 0x42c]
call fcn.010ad1d4
lea eax, [ebp - 0x470]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x10ae2ec
mov eax, dword [esi + 0x7c]
mov eax, dword [eax + 0x18]
cmp word [eax], bx
jne 0x10ae26c
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 0x10ae2ec
mov edi, dword [ebp - 0x434]
mov eax, dword [edi + 0x78]
cmp eax, ebx
je 0x10ae2b9
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0x454]
jne 0x10ae2a5
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp - 0x440]
jne 0x10ae2a5
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x444]
je 0x10ae2ac
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x10ae285
cmp eax, ebx
je 0x10ae2b9
or byte [esi + 0x84], 8
jmp 0x10ae2ec
push 1
push reloc.KERNEL32.dll_LoadLibraryW
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, ebx
pop ecx
pop ecx
je 0x10ae2ec
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 0x10ae179
mov esi, dword [sym.imp.msvcrt.dll_wcsncmp]
push 8
push 0x1011dec
push dword [ebp - 0x418]
call esi
add esp, 0xc
test eax, eax
jne 0x10ae33e
add dword [ebp - 0x418], 0xc
mov eax, dword [ebp - 0x418]
mov dword [eax], 0x5c005c
jmp 0x10ae35b
push 4
push 0x1005db4
push dword [ebp - 0x418]
call esi
add esp, 0xc
test eax, eax
jne 0x10ae35b
add dword [ebp - 0x418], 8
cmp word [ebp + 0x14], 1
push dword [ebp - 0x418]
jne 0x10ae36f
push 0x232f
jmp 0x10ae374
push 0x232e
push edi
push ebx
push dword [ebp - 0x42c]
call fcn.01089474
push dword [ebp - 0x42c]
call fcn.010b4ca9
mov esi, 0xfffffe3f
mov ax, si
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 0x10