Function at 0x10026126
Capabilities:
Get common file path
Get startup folder
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
sub esp, 0xc4c
lea ebp, [esp - 4]
mov eax, dword [0x10207390]
xor eax, ebp
mov dword [ebp + 0xc4c], eax
push 0x18
mov eax, 0x1017d494
call fcn.1008546d
mov eax, dword [ebp + 0xc58]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc5c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc60]
mov dword [ebp - 0x10], ecx
push 0x101ebf0c
lea ecx, [ebp]
mov dword [ebp - 0x14], eax
call fcn.100015f0
xor edi, edi
mov esi, 0x206
push esi
lea eax, [ebp + 0x83e]
push edi
push eax
mov dword [ebp - 4], edi
mov word [ebp + 0x83c], di
call fcn.10085bc0
push esi
lea eax, [ebp + 0x42e]
push edi
push eax
mov word [ebp + 0x42c], di
call fcn.10085bc0
push esi
lea eax, [ebp + 0x636]
push edi
push eax
mov word [ebp + 0x634], di
call fcn.10085bc0
push esi
lea eax, [ebp + 0xa46]
push edi
push eax
mov word [ebp + 0xa44], di
call fcn.10085bc0
push esi
lea eax, [ebp + 0x1e]
push edi
push eax
mov word [ebp + 0x1c], di
call fcn.10085bc0
add esp, 0x3c
push edi
push 0x2b
lea eax, [ebp + 0x83c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, 0x101ebeec
lea eax, [ebp + 0x83c]
push ebx
push eax
call fcn.100860a3
push dword [ebp - 0x18]
lea eax, [ebp + 0x83c]
push eax
call fcn.100860a3
lea eax, [ebp + 0x83c]
push ebx
push eax
call fcn.100860a3
push dword [ebp - 0x20]
lea eax, [ebp + 0x83c]
push eax
call fcn.100860a3
lea eax, [ebp + 0x83c]
push str..ini
push eax
call fcn.100860a3
add esp, 0x28
lea eax, [ebp + 0x83c]
push eax
push 0x104
lea eax, [ebp + 0x42c]
push eax
push 0x101ebf0c
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0x42c]
push eax
call fcn.10085b54
test eax, eax
pop ecx
jle 0x100262ed
lea eax, [ebp + 0x42c]
push eax
lea eax, [ebp + 0xa44]
push eax
call fcn.100860cd
pop ecx
pop ecx
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0xa44]
push eax
call fcn.10025e49
test eax, eax
je 0x100262ed
lea eax, [ebp + 0xa44]
push eax
lea ecx, [ebp]
call fcn.10003610
push edi
push 1
lea ecx, [ebp]
call fcn.100017c0
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc4c]
xor ecx, ebp
call fcn.1008545e
add ebp, 0xc50
leave
ret 0xc
push esi
lea eax, [ebp + 0x226]
push edi
push eax
mov word [ebp + 0x224], di
call fcn.10085bc0
lea eax, [ebp + 0x224]
push 0x1018a1c8
push eax
call fcn.100860cd
push dword [ebp - 0x18]
lea eax, [ebp + 0x224]
push eax
call fcn.100860a3
add esp, 0x1c
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push edi
lea eax, [ebp + 0x224]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002639e
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x1c]
push eax
push edi
push edi
push str.InstallPath
push dword [ebp - 0x1c]
mov dword [ebp - 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002639e
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0xa44]
push eax
call fcn.100860cd
pop ecx
pop ecx
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0xa44]
push eax
call fcn.10025e49
test eax, eax
je 0x1002639e
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100262ab
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
push edi
push 0x26
lea eax, [ebp + 0x634]
push eax
push edi
call fcn.10023a8b
lea eax, [ebp + 0x634]
push ebx
push eax
call fcn.100860a3
push dword [ebp - 0x18]
lea eax, [ebp + 0x634]
push eax
call fcn.100860a3
lea eax, [ebp + 0x634]
push ebx
push eax
call fcn.100860a3
lea eax, [ebp + 0x634]
push eax
lea eax, [ebp + 0xa44]
push eax
call fcn.100860cd
mov ecx, dword [ebp - 0x10]
add esp, 0x20
push dword [ebp - 0x14]
lea eax, [ebp + 0xa44]
push eax
call fcn.10025e49
test eax, eax
je 0x10026433
lea eax, [ebp + 0xa44]
push eax
lea ecx, [ebp]
call fcn.10003610
xor esi, esi
inc esi
push edi
push 1
lea ecx, [ebp]
call fcn.100017c0
mov eax, esi
jmp 0x100262c8
xor esi, esi
jmp 0x10026421