Function at 0x41d590
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 0x575c2b
mov eax, dword fs:[0]
push eax
sub esp, 0xc60
mov eax, dword [0x5e10a4]
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 0x5d78a0
mov dword [ebp - 0xc68], esi
mov dword [ebp - 0xc44], 7
mov dword [ebp - 0xc48], 0
mov word [ebp - 0xc58], ax
call fcn.004089f0
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0043fcd0
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.0043fcd0
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0043fcd0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0043fcd0
push 0x208
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.0043fcd0
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 0x41d690
mov eax, dword [0x5d7ba8]
mov edx, esi
mov dword [edi], eax
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x41d6a5
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 0x41d6c0
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 0x41d6e3
mov dword [edi], eax
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x41d6f3
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 0x41d710
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 0x41d733
mov eax, dword [str..ini]
mov dword [ecx], eax
mov eax, dword [0x57a28c]
mov dword [ecx + 4], eax
mov ax, word [0x57a290]
mov word [ecx + 8], ax
lea eax, [ebp - 0x420]
push eax
push 0x104
lea eax, [ebp - 0xa38]
push eax
push 0x5d78a0
push 0x57c634
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 0x41d790
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x41d803
xor ecx, ecx
movzx eax, word [ebp + ecx - 0xa38]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x21a], ax
test ax, ax
jne 0x41d7a5
push dword [ebp - 0xc64]
mov ecx, dword [ebp - 0xc5c]
lea eax, [ebp - 0x218]
push eax
call fcn.00420ac0
test eax, eax
je 0x41d803
cmp word [ebp - 0x218], 0
jne 0x41d7ea
xor ecx, ecx
jmp 0x41da1f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d7f3
jmp 0x41da1b
push 0x206
lea eax, [ebp - 0x82e]
push 0
push eax
call fcn.0043fcd0
movups xmm0, xmmword [str.SOFTWARE_]
mov ebx, dword [ebp - 0xc68]
add esp, 0xc
mov eax, dword [0x57c66c]
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 0x41d840
lea edi, [ebp - 0x830]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41d856
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 0x41d92c
lea eax, [ebp - 0xc6c]
mov dword [ebp - 0xc6c], 0x104
push eax
lea eax, [ebp - 0xc40]
push eax
push 0
push 0
push 0x57c634
push dword [ebp - 0xc60]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41d92c
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 0x41d8d0
push dword [ebp - 0xc64]
mov ecx, dword [ebp - 0xc5c]
lea eax, [ebp - 0x218]
push eax
call fcn.00420ac0
test eax, eax
je 0x41d92c
push dword [ebp - 0xc60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xc58]
call fcn.004089a0
mov esi, 1
jmp 0x41da3b
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.00420ed0
lea edi, [ebp - 0x628]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x41d960
mov eax, dword [0x5d7ba8]
mov esi, ebx
mov dword [edi], eax
mov cx, word [ebx]
add ebx, 2
test cx, cx
jne 0x41d975
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 0x41d990
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 0x41d9b3
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 0x41d9c3
push dword [ebp - 0xc64]
mov ecx, dword [ebp - 0xc5c]
lea eax, [ebp - 0x218]
push eax
call fcn.00420ac0
test eax, eax
je 0x41da39
cmp word [ebp - 0x218], 0
jne 0x41da05
xor ecx, ecx
jmp 0x41da1f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41da10
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xc58]
call fcn.004089f0
mov esi, 1
jmp 0x41da3b
xor esi, esi
mov ecx, dword [ebp - 0xc44]
cmp ecx, 8
jb 0x41da59
inc ecx
push ecx
push dword [ebp - 0xc58]
lea ecx, [ebp - 0xc58]
call fcn.00409050
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.004273c3
mov esp, ebp
pop ebp
ret 0xc