Function at 0x100e6f30
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x102458e8
push 0x101e25c0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10250150]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
xor eax, eax
mov ebx, dword [ebp + 0xc]
mov word [ebx], ax
mov edi, dword [ebp + 8]
cmp edi, 0x100
jge 0x100e7015
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x100e6fda
lea eax, [ebp - 0x1c]
push eax
push edi
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
js 0x100e6fd1
mov dword [ebp - 4], 1
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
jmp 0x100e6fbe
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x10257c90], eax
jne 0x100e718b
push 0x104
push 0x10256e4a
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x104
push 0x10257054
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x10257a86
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, 0x10257a86
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e7060
sub ecx, edx
sar ecx, 1
cmp word [ecx*2 + 0x10257a84], 0x5c
jne 0x100e7084
xor eax, eax
mov word [ecx*2 + 0x10257a84], ax
push 0x104
push 0x10256e4a
push 0x10256c40
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyNW]
call esi
push 0x3a
push 0x10256c40
call fcn.10213523
add esp, 8
test eax, eax
je 0x100e70b4
xor ecx, ecx
mov word [eax + 2], cx
push 0x20a
push 0
push 0x1025725e
call fcn.102134e7
add esp, 0xc
push 0x104
push 0x10256c40
push 0x1025725e
call esi
push str.Program_Files
push 0x104
push 0x1025725e
call fcn.10028ff0
mov dword [ebp - 0x20], 1
mov dword [ebp + 8], 0x208
push 0x20a
push 0
push 0x10257468
call fcn.102134e7
add esp, 0xc
lea eax, [ebp + 8]
push eax
push 0x10257468
lea eax, [ebp - 0x20]
push eax
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push 0x20a
push 0
push 0x10257672
call fcn.102134e7
add esp, 0xc
push 0x104
push 0x10257672
push str._UserProfile_
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
push 0x20a
push 0
push 0x1025787c
call fcn.102134e7
add esp, 0xc
push 0x104
push 0x1025787c
push str._AllUserProfile_
call esi
mov dword [0x10257c90], 1
cmp edi, 0x107
jg 0x100e71c3
push 0x104
lea eax, [edi - 0x100]
imul eax, eax, 0x20a
add eax, 0x10256c40
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub edi, 0x108
je 0x100e7203
sub edi, 1
jne 0x100e720f
push 0x104
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push ebx
call fcn.102135d7
add esp, 8
test eax, eax
je 0x100e720f
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret