Function at 0x41ae20
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 0x59e42b
mov eax, dword fs:[0]
push eax
sub esp, 0xc68
mov eax, dword [0x627a40]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc68], ecx
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0xc5c]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc64], eax
xor eax, eax
push eax
push 0x619488
mov dword [ebp - 0xc6c], esi
mov dword [ebp - 0xc48], 7
mov dword [ebp - 0xc4c], 0
mov word [ebp - 0xc5c], ax
call fcn.00403d10
push 0x208
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00576f50
add esp, 0xc
lea eax, [ebp - 0xa3c]
push 0x208
push 0
push eax
call fcn.00576f50
add esp, 0xc
lea eax, [ebp - 0x62c]
push 0x208
push 0
push eax
call fcn.00576f50
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x208
push 0
push eax
call fcn.00576f50
add esp, 0xc
lea eax, [ebp - 0xc44]
push 0x208
push 0
push eax
call fcn.00576f50
add esp, 0xc
lea eax, [ebp - 0x424]
push 0
push 0x2b
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x424]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x41af30
mov eax, dword [0x61970c]
mov edx, esi
mov dword [edi], eax
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x41af45
lea edi, [ebp - 0x424]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x41af60
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 - 0x424]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x41af83
mov dword [edi], eax
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x41af93
lea edi, [ebp - 0x424]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41afb0
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 - 0x424]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x41afd3
mov eax, dword [str..ini]
mov dword [ecx], eax
mov eax, dword [0x619728]
mov dword [ecx + 4], eax
mov ax, word [0x61972c]
mov word [ecx + 8], ax
lea eax, [ebp - 0x424]
push eax
push 0x104
lea eax, [ebp - 0xa3c]
push eax
push 0x619488
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0xa3c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b030
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x41b0a3
xor ecx, ecx
movzx eax, word [ebp + ecx - 0xa3c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x21e], ax
test ax, ax
jne 0x41b045
push dword [ebp - 0xc64]
mov ecx, dword [ebp - 0xc68]
lea eax, [ebp - 0x21c]
push eax
call fcn.0041bb20
test eax, eax
je 0x41b0a3
cmp word [ebp - 0x21c], 0
jne 0x41b08a
xor ecx, ecx
jmp 0x41b2af
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b093
jmp 0x41b2ab
push 0x206
lea eax, [ebp - 0x832]
push 0
push eax
call fcn.00576f50
movups xmm0, xmmword [0x61981c]
mov ebx, dword [ebp - 0xc6c]
add esp, 0xc
mov eax, dword [0x61982c]
mov edx, ebx
movups xmmword [ebp - 0x834], xmm0
mov dword [ebp - 0x824], eax
mov esi, edx
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41b0e0
lea edi, [ebp - 0x834]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41b0f6
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 - 0x834]
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 0x41b1cc
lea eax, [ebp - 0xc70]
mov dword [ebp - 0xc70], 0x104
push eax
lea eax, [ebp - 0xc44]
push eax
push 0
push 0
push str.InstallPath
push dword [ebp - 0xc60]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b1cc
xor ecx, ecx
nop dword [eax + eax]
movzx eax, word [ebp + ecx - 0xc44]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x21e], ax
test ax, ax
jne 0x41b170
push dword [ebp - 0xc64]
mov ecx, dword [ebp - 0xc68]
lea eax, [ebp - 0x21c]
push eax
call fcn.0041bb20
test eax, eax
je 0x41b1cc
push dword [ebp - 0xc60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0xc5c]
call fcn.00403920
mov esi, 1
jmp 0x41b2cb
push dword [ebp - 0xc60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 8
lea eax, [ebp - 0x62c]
push eax
push ecx
call fcn.0041b520
lea edi, [ebp - 0x62c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x41b1f1
mov eax, dword [0x61970c]
mov esi, ebx
mov dword [edi], eax
mov cx, word [ebx]
add ebx, 2
test cx, cx
jne 0x41b206
lea edi, [ebp - 0x62c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x41b220
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 - 0x62c]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x41b243
mov dword [edi], eax
xor edx, edx
movzx eax, word [ebp + edx - 0x62c]
lea edx, [edx + 2]
mov word [ebp + edx - 0x21e], ax
test ax, ax
jne 0x41b253
push dword [ebp - 0xc64]
mov ecx, dword [ebp - 0xc68]
lea eax, [ebp - 0x21c]
push eax
call fcn.0041bb20
test eax, eax
je 0x41b2c9
cmp word [ebp - 0x21c], 0
jne 0x41b295
xor ecx, ecx
jmp 0x41b2af
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b2a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0xc5c]
call fcn.00403d10
mov esi, 1
jmp 0x41b2cb
xor esi, esi
mov ecx, dword [ebp - 0xc48]
cmp ecx, 8
jb 0x41b2e9
inc ecx
push ecx
push dword [ebp - 0xc5c]
lea ecx, [ebp - 0xc5c]
call fcn.00404090
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 - 0x14]
xor ecx, ebp
call fcn.00570ea9
mov esp, ebp
pop ebp
ret 0xc