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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2d7b
mov eax, dword fs:[0]
push eax
sub esp, 0xc60
mov eax, dword [0x62e15c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc5c], ecx
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0xc58]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc64], eax
xor eax, eax
push eax
push 0x5a7890
mov dword [ebp - 0xc68], esi
mov dword [ebp - 0xc44], 7
mov dword [ebp - 0xc48], 0
mov word [ebp - 0xc58], ax
call fcn.00402100
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004463a0
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.004463a0
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004463a0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004463a0
push 0x208
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.004463a0
add esp, 0x3c
lea eax, [ebp - 0x420]
push 0
push 0x2b
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x420]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x40f050
mov eax, dword [0x5a7cc8]
mov edx, esi
mov dword [edi], eax
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40f065
lea edi, [ebp - 0x420]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40f080
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x420]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x40f0a3
mov dword [edi], eax
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x40f0b3
lea edi, [ebp - 0x420]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40f0d0
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x420]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x40f0f3
mov eax, dword [0x5a910c]
mov dword [ecx], eax
mov eax, dword [0x5a9110]
mov dword [ecx + 4], eax
mov ax, word [0x5a9114]
mov word [ecx + 8], ax
lea eax, [ebp - 0x420]
push eax
push 0x104
lea eax, [ebp - 0xa38]
push eax
push 0x5a7890
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0xa38]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f150
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x40f1c3
xor ecx, ecx
movzx eax, word [ebp + ecx - 0xa38]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x21a], ax
test ax, ax
jne 0x40f165
push dword [ebp - 0xc64]
mov ecx, dword [ebp - 0xc5c]
lea eax, [ebp - 0x218]
push eax
call fcn.004123b0
test eax, eax
je 0x40f1c3
cmp word [ebp - 0x218], 0
jne 0x40f1aa
xor ecx, ecx
jmp 0x40f3df
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f1b3
jmp 0x40f3db
push 0x206
lea eax, [ebp - 0x82e]
push 0
push eax
call fcn.004463a0
movups xmm0, xmmword [str.SOFTWARE_]
mov ebx, dword [ebp - 0xc68]
add esp, 0xc
mov eax, dword [0x5a9138]
mov edx, ebx
movups xmmword [ebp - 0x830], xmm0
mov dword [ebp - 0x820], eax
mov esi, edx
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40f200
lea edi, [ebp - 0x830]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40f216
mov ecx, edx
lea eax, [ebp - 0xc60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
push 0
mov ecx, edx
lea eax, [ebp - 0x830]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f2ec
lea eax, [ebp - 0xc6c]
mov dword [ebp - 0xc6c], 0x104
push eax
lea eax, [ebp - 0xc40]
push eax
push 0
push 0
push str.InstallPath
push dword [ebp - 0xc60]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f2ec
xor ecx, ecx
nop dword [eax + eax]
movzx eax, word [ebp + ecx - 0xc40]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x21a], ax
test ax, ax
jne 0x40f290
push dword [ebp - 0xc64]
mov ecx, dword [ebp - 0xc5c]
lea eax, [ebp - 0x218]
push eax
call fcn.004123b0
test eax, eax
je 0x40f2ec
push dword [ebp - 0xc60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xc58]
call fcn.004038f0
mov esi, 1
jmp 0x40f3fb
push dword [ebp - 0xc60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc5c]
lea eax, [ebp - 0x628]
push 0
push 0x26
push eax
push 0
call fcn.004127c0
lea edi, [ebp - 0x628]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x40f320
mov eax, dword [0x5a7cc8]
mov esi, ebx
mov dword [edi], eax
mov cx, word [ebx]
add ebx, 2
test cx, cx
jne 0x40f335
lea edi, [ebp - 0x628]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40f350
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x628]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x40f373
mov dword [edi], eax
xor edx, edx
movzx eax, word [ebp + edx - 0x628]
lea edx, [edx + 2]
mov word [ebp + edx - 0x21a], ax
test ax, ax
jne 0x40f383
push dword [ebp - 0xc64]
mov ecx, dword [ebp - 0xc5c]
lea eax, [ebp - 0x218]
push eax
call fcn.004123b0
test eax, eax
je 0x40f3f9
cmp word [ebp - 0x218], 0
jne 0x40f3c5
xor ecx, ecx
jmp 0x40f3df
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f3d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xc58]
call fcn.00402100
mov esi, 1
jmp 0x40f3fb
xor esi, esi
mov ecx, dword [ebp - 0xc44]
cmp ecx, 8
jb 0x40f419
inc ecx
push ecx
push dword [ebp - 0xc58]
lea ecx, [ebp - 0xc58]
call fcn.00402250
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043ae55
mov esp, ebp
pop ebp
ret 0xc