Function at 0x1028de2
Capabilities:
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp eax, 0x208
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x11c], eax
jb 0x102902f
push edi
lea eax, [ebp - 0x118]
push eax
push edi
push 3
push edi
push edi
push edi
push 0x1002db8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102902f
cmp dword [ebp + 0x10], edi
push esi
je 0x1028e91
lea eax, [ebp - 0x11c]
push eax
push ebx
lea eax, [ebp - 0x10c]
push eax
push edi
push 0x1002ff4
push dword [ebp - 0x118]
xor esi, esi
inc esi
mov dword [ebp - 0x10c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1028e91
cmp dword [ebp - 0x10c], esi
jne 0x1028e91
mov dword [ebp - 0x114], esi
jmp 0x102901a
lea eax, [ebp - 0x10c]
push eax
mov dword [ebp - 0x10c], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x102901a
push 0x35
pop esi
push edi
push edi
push 2
push 5
mov dword [ebp - 0x108], edi
call fcn.01034068
test eax, eax
jne 0x1028ec9
mov esi, 0x8035
lea eax, [ebp - 0x108]
push eax
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push edi
call esi
mov ebx, eax
cmp ebx, edi
jl 0x1028f27
push dword [ebp - 0x110]
push dword [ebp - 0x108]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1028f02
mov dword [ebp - 0x114], 1
jmp 0x1028f1f
mov eax, dword [ebp - 0x10c]
push dword [ebp - 0x108]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp - 0x108], edi
mov ebx, 0x80004005
cmp ebx, edi
jge 0x1028fb1
lea eax, [ebp - 0x108]
push eax
push 0x802e
push edi
call esi
cmp eax, edi
jge 0x1028f4d
lea eax, [ebp - 0x108]
push eax
push 0x8005
push edi
call esi
cmp eax, edi
jl 0x1028fb1
push dword [ebp - 0x110]
push dword [ebp - 0x108]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1028fb1
push 0x80
lea eax, [ebp - 0x104]
push eax
push 0x9e
push dword [0x1047500]
mov dword [ebp - 0x114], 1
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1028fb1
push dword [ebp - 0x110]
call fcn.01032458
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp + 0xc]
shr eax, 1
push eax
push dword [ebp - 0x110]
call fcn.01028adc
cmp dword [ebp - 0x108], edi
je 0x1028fcb
mov eax, dword [ebp - 0x10c]
push dword [ebp - 0x108]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x114], edi
je 0x102901a
cmp dword [ebp + 0x10], edi
je 0x102901a
mov eax, dword [ebp - 0x110]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1028fed
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x110]
push 1
push edi
push 0x1002ff4
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x114]
pop esi
jmp 0x1029031
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.01031a01
leave
ret 0xc