Function at 0x100e0eb
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 [0x102a0ec]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
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 0x100e32c
push edi
lea eax, [ebp - 0x118]
push eax
push edi
push 3
push edi
push edi
push edi
push 0x10026e8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100e32c
cmp dword [ebp + 0x10], edi
push esi
je 0x100e198
lea eax, [ebp - 0x11c]
push eax
push ebx
lea eax, [ebp - 0x10c]
push eax
push edi
push 0x10026d8
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 0x100e198
cmp dword [ebp - 0x10c], esi
jne 0x100e198
mov dword [ebp - 0x114], esi
jmp 0x100e317
lea eax, [ebp - 0x10c]
push eax
mov dword [ebp - 0x10c], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x100e317
push 0x35
pop esi
push edi
push edi
push 2
push 5
mov dword [ebp - 0x108], edi
call fcn.01018dae
test eax, eax
jne 0x100e1d0
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 0x100e22e
push dword [ebp - 0x110]
push dword [ebp - 0x108]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x100e209
mov dword [ebp - 0x114], 1
jmp 0x100e226
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 0x100e2b8
lea eax, [ebp - 0x108]
push eax
push 0x802e
push edi
call esi
cmp eax, edi
jge 0x100e254
lea eax, [ebp - 0x108]
push eax
push 0x8005
push edi
call esi
cmp eax, edi
jl 0x100e2b8
push dword [ebp - 0x110]
push dword [ebp - 0x108]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x100e2b8
push 0x80
lea eax, [ebp - 0x104]
push eax
push 0x9e
push dword [0x102aec0]
mov dword [ebp - 0x114], 1
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x100e2b8
push dword [ebp - 0x110]
call fcn.01016cfc
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp + 0xc]
shr eax, 1
push eax
push dword [ebp - 0x110]
call fcn.0100dd4f
cmp dword [ebp - 0x108], edi
je 0x100e2d2
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 0x100e317
cmp dword [ebp + 0x10], edi
je 0x100e317
push dword [ebp - 0x110]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x110]
push 1
push edi
push 0x10026d8
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 0x100e32e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0101672d
leave
ret 0xc