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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x102322e8
push fcn.101c8390
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x102519c8]
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 0x100dbe75
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x100dbe3a
lea eax, [ebp - 0x1c]
push eax
push edi
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
js 0x100dbe31
mov dword [ebp - 4], 1
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
jmp 0x100dbe1e
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 [0x10258e60], eax
jne 0x100dbfeb
push 0x104
push 0x10258028
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x104
push 0x10258230
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x10258c58
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, 0x10258c58
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100dbec0
sub ecx, edx
sar ecx, 1
cmp word [ecx*2 + 0x10258c56], 0x5c
jne 0x100dbee4
xor eax, eax
mov word [ecx*2 + 0x10258c56], ax
push 0x104
push 0x10258028
push 0x10257e20
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyNW]
call esi
push 0x3a
push 0x10257e20
call sub.msvcrt.dll_wcschr
add esp, 8
test eax, eax
je 0x100dbf14
xor ecx, ecx
mov word [eax + 2], cx
push 0x208
push 0
push 0x10258438
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
push 0x10257e20
push 0x10258438
call esi
push str.Program_Files
push 0x104
push 0x10258438
call fcn.10026a30
mov dword [ebp - 0x20], 1
mov dword [ebp + 8], 0x208
push 0x208
push 0
push 0x10258640
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp + 8]
push eax
push 0x10258640
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 0x208
push 0
push 0x10258848
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
push 0x10258848
push str._UserProfile_
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
push 0x208
push 0
push 0x10258a50
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
push 0x10258a50
push str._AllUserProfile_
call esi
mov dword [0x10258e60], 1
cmp edi, 0x107
jg 0x100dc023
push 0x104
lea eax, [edi - 0x100]
imul eax, eax, 0x208
add eax, 0x10257e20
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 0x100dc063
sub edi, 1
jne 0x100dc06f
push 0x104
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push ebx
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x100dc06f
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