Function at 0x10020af3
Capabilities:
Create directory
Get common file path
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5e
mov dword [ebp - 0x14], ecx
jne 0x10020b0d
inc edi
inc edi
mov dword [ebp + 8], edi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 0x400
push eax
lea ecx, [ebp - 0x34]
call fcn.10046141
mov esi, dword [ebp - 0x34]
xor eax, eax
cmp dword [ebp + 0xc], 0x24
push 0x23
mov dword [ebp - 0x20], esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], eax
pop ebx
jne 0x10020b45
mov dword [ebp - 0xc], 0x24
jmp 0x10020b4d
cmp dword [ebp + 0xc], ebx
jne 0x10020b4d
mov dword [ebp - 0x10], ebx
mov ax, word [edi]
push 0x24
pop ecx
cmp ax, cx
jne 0x10020b64
cmp word [ebp - 0xc], 0
jne 0x10020b64
mov dword [ebp - 0xc], ecx
jmp 0x10020b73
cmp ax, bx
jne 0x10020b78
cmp word [ebp - 0x10], 0
jne 0x10020b78
mov dword [ebp - 0x10], ebx
inc edi
inc edi
mov dword [ebp + 8], edi
cmp word [edi], 0x20
jne 0x10020b83
inc edi
inc edi
mov dword [ebp + 8], edi
xor eax, eax
mov ax, word [edi]
cmp ax, 0x2a
je 0x10020b94
cmp ax, 0x2d
jne 0x10020b9c
inc edi
inc edi
mov dword [ebp - 0x24], eax
mov dword [ebp + 8], edi
and dword [ebp - 0x28], 0
cmp byte [ebp + 0xc], 0
lea ecx, [ebp - 0x1c]
setne byte [ebp - 1]
call fcn.10046123
cmp word [edi], 0
jne 0x10020c8f
cmp dword [ebp + 0x10], 0
je 0x10020c88
cmp dword [ebp + 0x10], ebx
je 0x10020c88
mov word [esi], 0x2a
xor esi, esi
mov eax, dword [esi + 0x100c8104]
mov ebx, dword [ebp - 0x20]
inc eax
inc eax
push eax
push 0x100cb028
add ebx, 2
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 1
lea edi, [esi + 0x100c8100]
push dword [edi]
lea ebx, [ebx + eax*2]
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10020c7a
cmp dword [edi], 0x1a
jne 0x10020c2d
push str.MicrosoftInternet_ExplorerQuick_Launch
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
call fcn.10014e9e
pop ecx
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.HKCUEnvironment_
lea ecx, [ebp - 0x1c]
call fcn.1005026c
mov eax, dword [ebp - 0x20]
add eax, 2
push eax
lea ecx, [ebp - 0x1c]
call fcn.1004618f
push 1
push dword [ebp - 0x1c]
mov edi, 0x100e3108
mov ecx, edi
call fcn.10063431
push ebx
push dword [esi + 0x100c8104]
mov ecx, edi
call fcn.100457c2
mov ecx, dword [ebp - 0x14]
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x20]
call fcn.10020af3
add esi, 8
cmp esi, 0x40
jb 0x10020bd4
jmp 0x10020c8c
mov byte [ebp - 1], 0x10
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
xor bl, bl
test ecx, ecx
mov byte [ebp + 0xf], bl
mov byte [ebp + 0xb], bl
mov byte [ebp + 0x13], bl
je 0x10020db9
cmp word [ecx], 0
je 0x10020db9
push 0x7e
pop esi
xor edx, edx
mov dx, word [ecx]
mov eax, edx
call fcn.10002df6
test al, al
jne 0x10020da5
cmp dx, 0x2e
je 0x10020d99
cmp dx, 0x24
je 0x10020d99
cmp dx, 0x25
je 0x10020d99
cmp dx, 0x2a
jne 0x10020cf2
or bl, 4
jmp 0x10020d99
cmp dx, si
jne 0x10020d37
lea eax, [ecx + 2]
cmp word [eax], si
jne 0x10020d07
or bl, 2
jmp 0x10020d97
cmp dx, si
jne 0x10020d37
lea eax, [ecx + 2]
cmp word [eax], 0x2e
jne 0x10020d1a
or bl, 8
jmp 0x10020d97
cmp dx, si
jne 0x10020d37
lea eax, [ecx + 2]
cmp word [eax], 0x2a
jne 0x10020d2d
or bl, 9
jmp 0x10020d97
cmp dx, si
jne 0x10020d37
or bl, 1
jmp 0x10020d99
cmp dx, 0x2d
jne 0x10020d99
cmp word [ecx + 2], 0x65
jne 0x10020d5a
cmp word [ecx + 4], 0x6e
jne 0x10020d5a
lea eax, [ecx + 6]
cmp word [eax], 0x76
jne 0x10020d5a
or byte [ebp + 0xf], 0x40
jmp 0x10020d97
cmp dx, 0x2d
jne 0x10020d99
cmp word [ecx + 2], 0x72
jne 0x10020d7d
cmp word [ecx + 4], 0x61
jne 0x10020d7d
lea eax, [ecx + 6]
cmp word [eax], 0x77
jne 0x10020d7d
or byte [ebp + 0xb], 0x40
jmp 0x10020d97
cmp dx, 0x2d
jne 0x10020d99
cmp word [ecx + 2], 0x65
jne 0x10020d99
lea eax, [ecx + 4]
cmp word [eax], 0x78
jne 0x10020d99
mov byte [ebp + 0x13], 1
mov ecx, eax
inc ecx
inc ecx
cmp word [ecx], 0
jne 0x10020cb2
cmp byte [ebp + 0xb], 0
je 0x10020db9
lea eax, [ebp + 0x14]
push eax
xor bl, bl
call fcn.10008e60
mov edi, dword [eax]
pop ecx
push 0x3d
push edi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
xor edx, edx
cmp eax, edx
mov dword [ebp - 8], eax
je 0x10020dd2
mov word [eax], dx
add dword [ebp - 8], 2
mov ecx, dword [ebp - 0x14]
cmp byte [ecx + 0x92], 0
mov dword [ebp - 0x18], edx
jne 0x10020df6
test byte [ecx + 9], 0xf
jne 0x10020df6
push 1
push edx
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.10058e84
jmp 0x10020e03
push 1
push edx
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.10057b62
mov esi, dword [ebp - 0x18]
xor edi, edi
test bl, bl
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
je 0x10020e3c
cmp dword [ebp - 8], edi
je 0x10020e6c
xor eax, eax
mov al, byte [ebp + 0xf]
or al, bl
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 8]
call fcn.1005026c
mov ecx, dword [ebp - 0x14]
push eax
call fcn.1005f470
mov dword [ebp - 8], eax
cmp dword [ebp - 8], edi
je 0x10020e6c
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.1005eb1f
add esp, 0x10
cmp dword [ebp - 8], edi
je 0x10020e6c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
shl edi, 1
jmp 0x10020e6e
xor edi, edi
xor ebx, ebx
cmp word [esi], bx
je 0x10020f27
cmp word [ebp - 0xc], bx
je 0x10020eb2
cmp dword [ebp - 8], ebx
jne 0x10020e99
push esi
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push 0x80000002
call fcn.10040cb4
add esp, 0xc
jmp 0x10020eb2
push edi
push dword [ebp - 8]
push 1
push esi
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push 0x80000002
call fcn.10040c59
add esp, 0x18
cmp word [esi], bx
je 0x10020f27
cmp word [ebp - 0x10], bx
je 0x10020ef0
cmp dword [ebp - 8], ebx
jne 0x10020ed7
push esi
push str.Environment
push 0x80000001
call fcn.10040cb4
add esp, 0xc
jmp 0x10020ef0
push edi
push dword [ebp - 8]
push 1
push esi
push str.Environment
push 0x80000001
call fcn.10040c59
add esp, 0x18
cmp word [esi], bx
je 0x10020f27
cmp byte [ebp + 0x13], 0
je 0x10020f0b
push dword [ebp - 8]
push dword [ebp - 0x14]
call fcn.10049c3e
pop ecx
pop ecx
mov dword [ebp - 8], eax
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x10020f1e
mov dword [ebp - 0x28], ebx
jmp 0x10020f27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
cmp byte [ebp - 1], 0
je 0x10020f79
cmp word [ebp - 0x24], 0x2a
je 0x10020f79
cmp word [ebp - 0x24], 0x2d
je 0x10020f5e
mov al, byte [0x100e2e7d]
cmp al, 0x2d
je 0x10020f5e
cmp byte [ebp - 1], 0x10
je 0x10020f57
test al, al
je 0x10020f57
mov byte [0x100e2e7e], 1
jmp 0x10020f79
call fcn.100209b5
jmp 0x10020f79
push ebx
push 0x100e2c24
mov eax, 0x10000
push eax
push eax
push ebx
push 0x100209dd
call fcn.1003fafe
add esp, 0x18
lea ecx, [ebp - 0x2c]
call fcn.1003f96c
lea ecx, [ebp - 0x30]
call fcn.1003f96c
lea ecx, [ebp - 0x18]
call fcn.1003f96c
lea ecx, [ebp - 0x1c]
call fcn.1003f96c
lea ecx, [ebp - 0x34]
call fcn.1003f96c
mov eax, dword [ebp - 0x28]
pop edi
pop esi
pop ebx
leave
ret 0x10