Function at 0x100219c
Capabilities:
Create directory
Delete file
Query environment variable
Query or enumerate registry value
Read file on windows
Set file attributes
Set registry value
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1a5c
call fcn.010037a0
mov eax, dword [0x10050b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x414], ax
xor ebx, ebx
lea eax, [ebp - 0x412]
push ebx
push eax
mov dword [ebp - 0x1a54], esi
mov dword [ebp - 0x1a4c], 0x80004005
call sub.msvcrt.dll_memset
xor eax, eax
push edi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call sub.msvcrt.dll_memset
or dword [ebp - 0x1a40], 0xffffffff
or dword [ebp - 0x1a48], 0xffffffff
add esp, 0x18
lea eax, [ebp - 0x1a3c]
push eax
mov dword [ebp - 0x1a50], ebx
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jl 0x1002550
push 0x27
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x1a3c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
cmp eax, 0x27
jne 0x1002550
push 0x10017ac
mov edi, 0x104
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.01001ede
mov eax, dword [0x1005010]
cmp byte [esi + 8], bl
jne 0x1002271
mov eax, dword [0x1005008]
push edi
lea ecx, [ebp - 0x824]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1a58], eax
cmp eax, ebx
je 0x1002550
cmp eax, edi
ja 0x1002550
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x824]
push eax
push 0x10017a0
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.01001f38
add esp, 0x14
test eax, eax
jne 0x1002550
push ebx
mov edi, 0x80
push edi
push 3
push ebx
push ebx
push 0x80000000
push dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call esi
mov dword [ebp - 0x1a40], eax
cmp eax, 0xffffffff
je 0x1002550
push ebx
push edi
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call esi
mov dword [ebp - 0x1a48], eax
cmp eax, 0xffffffff
jne 0x1002343
push ebx
lea eax, [ebp - 0x824]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x1002550
push ebx
push edi
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call esi
mov dword [ebp - 0x1a48], eax
cmp eax, 0xffffffff
je 0x1002550
push 0x2000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0x1a44]
push eax
push 0x20
lea eax, [ebp - 0x1a2c]
push eax
push dword [ebp - 0x1a40]
call esi
test eax, eax
je 0x1002550
cmp dword [ebp - 0x1a44], 0x20
jne 0x1002550
mov edi, 0x1000
jmp 0x10023d3
cmp dword [ebp - 0x1a44], ebx
jbe 0x10023f5
push ebx
lea eax, [ebp - 0x1a5c]
push eax
push dword [ebp - 0x1a44]
lea eax, [ebp - 0x1a2c]
push eax
push dword [ebp - 0x1a48]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1002550
mov eax, dword [ebp - 0x1a44]
cmp eax, dword [ebp - 0x1a5c]
jne 0x1002550
push ebx
lea eax, [ebp - 0x1a44]
push eax
push edi
lea eax, [ebp - 0x1a2c]
push eax
push dword [ebp - 0x1a40]
call esi
test eax, eax
jne 0x1002390
cmp dword [ebp - 0x1a44], ebx
jne 0x1002550
push dword [ebp - 0x1a40]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1a48]
or dword [ebp - 0x1a40], 0xffffffff
call esi
mov edi, dword [ebp - 0x1a54]
or dword [ebp - 0x1a48], 0xffffffff
push 0x100178c
lea eax, [edi + 0x10]
push eax
push dword [0x1005004]
mov esi, 0x104
push 0x1001778
lea eax, [ebp - 0xa2c]
push esi
push eax
call fcn.01001f38
add esp, 0x18
test eax, eax
jne 0x1002550
push ebx
lea eax, [ebp - 0x1a50]
push eax
push ebx
push 0x103
push ebx
push ebx
push ebx
lea eax, [ebp - 0xa2c]
push eax
xor eax, eax
cmp byte [edi + 8], bl
sete al
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1002550
push dword [edi + 0xc]
lea eax, [ebp - 0x61c]
push 0x1001764
push 0x1001758
push esi
push eax
call fcn.01001f38
add esp, 0x14
test eax, eax
jne 0x1002550
lea eax, [ebp - 0x1a54]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01001f97
test eax, eax
jl 0x1002550
cmp byte [ebp + 0xc], bl
je 0x1002518
lea eax, [ebp - 0x1a58]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0x1a50]
mov dword [ebp - 0x1a58], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10024fe
push 0x2715
jmp 0x1002503
push 0x2711
call fcn.01001b83
test al, al
jne 0x1002518
mov dword [ebp - 0x1a4c], 1
jmp 0x1002550
mov eax, dword [ebp - 0x1a54]
lea eax, [eax + eax + 2]
push eax
mov dword [ebp - 0x1a58], eax
lea eax, [ebp - 0x414]
push eax
push 1
push ebx
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0x1a50]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1002550
mov dword [ebp - 0x1a4c], ebx
cmp dword [ebp - 0x1a50], ebx
je 0x1002564
push dword [ebp - 0x1a50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1a40], 0xffffffff
je 0x1002579
push dword [ebp - 0x1a40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1a48], 0xffffffff
je 0x100258e
push dword [ebp - 0x1a48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1a4c], ebx
jge 0x10025ac
cmp word [ebp - 0x20c], bx
je 0x10025ac
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1a4c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100377d
leave
ret 8