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

Disassembly:
push 0xffffffffffffffff
push 0x51cb8b
mov eax, dword fs:[0]
push eax
sub esp, 0xc64
mov eax, dword [0x569338]
xor eax, esp
mov dword [esp + 0xc60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x569338]
xor eax, esp
push eax
lea eax, [esp + 0xc78]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc88]
mov ebp, dword [esp + 0xc8c]
xor ebx, ebx
push ebx
push 0x55ed30
lea esi, [esp + 0x30]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
call fcn.004021f0
push 0x206
lea eax, [esp + 0x252]
push ebx
mov dword [esp + 0xc88], ebx
push eax
mov word [esp + 0x258], bx
call fcn.00433df0
add esp, 0xc
push 0x206
lea ecx, [esp + 0x86a]
push ebx
push ecx
mov word [esp + 0x870], bx
call fcn.00433df0
add esp, 0xc
push 0x206
lea edx, [esp + 0x45a]
push ebx
push edx
mov word [esp + 0x460], bx
call fcn.00433df0
add esp, 0xc
push 0x206
lea eax, [esp + 0x4a]
push ebx
push eax
mov word [esp + 0x50], bx
call fcn.00433df0
add esp, 0xc
push 0x206
lea ecx, [esp + 0xa72]
push ebx
push ecx
mov word [esp + 0xa78], bx
call fcn.00433df0
add esp, 0xc
push ebx
push 0x2b
lea edx, [esp + 0x254]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [esp + 0x24c]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x416ad0
mov eax, dword [str._.]
mov dword [edi], eax
mov eax, dword [esp + 0x20]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416af0
lea edi, [esp + 0x24c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x416b10
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x416b10
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x24c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x416b36
mov ecx, dword [str._.]
mov eax, ebp
mov dword [edi], ecx
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416b50
lea edi, [esp + 0x24c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x416b70
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x416b70
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x24c]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x416b96
mov edx, dword [0x560e2c]
mov ecx, dword [0x560e30]
mov dword [eax], edx
mov dx, word [0x560e34]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp + 0x24c]
push eax
push 0x104
lea ecx, [esp + 0x86c]
push ecx
push 0x55ed30
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x864]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416bf2
sub eax, edx
sar eax, 1
cmp eax, ebx
jle 0x416c7f
xor eax, eax
jmp 0x416c10
movzx ecx, word [esp + eax + 0x864]
mov word [esp + eax + 0x44], cx
add eax, 2
cmp cx, bx
jne 0x416c10
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.004177e0
test eax, eax
je 0x416c7f
lea eax, [esp + 0x44]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416c43
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x48]
push ecx
lea esi, [esp + 0x30]
call fcn.004021f0
cmp dword [esp + 0x40], 8
jb 0x416c75
mov edx, dword [esp + 0x2c]
push edx
call fcn.0042d197
add esp, 4
mov eax, 1
jmp 0x416f06
push 0x206
lea eax, [esp + 0x662]
push ebx
push eax
mov word [esp + 0x668], bx
call fcn.00433df0
add esp, 0xc
xor eax, eax
nop
movzx ecx, word [eax + str.SOFTWARE_]
mov word [esp + eax + 0x65c], cx
add eax, 2
cmp cx, bx
jne 0x416ca0
mov eax, dword [esp + 0x20]
mov edx, eax
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416cc0
lea edi, [esp + 0x65c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x416ce0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x416ce0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
lea edx, [esp + 0x668]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416de0
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xa70]
push ecx
push ebx
push ebx
push str.InstallPath
push edx
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416de0
jmp 0x416d60
movzx ecx, word [esp + eax + 0xa6c]
mov word [esp + eax + 0x44], cx
add eax, 2
cmp cx, bx
jne 0x416d60
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004177e0
test eax, eax
je 0x416de0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x44]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416da0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x48]
push eax
lea esi, [esp + 0x30]
call fcn.004021f0
cmp dword [esp + 0x40], 8
jb 0x416c75
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0042d197
add esp, 4
mov eax, 1
jmp 0x416f06
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [esp + 0x454]
call fcn.00417150
mov edi, esi
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x416e00
mov ebp, dword [str._.]
mov eax, dword [esp + 0x20]
mov dword [edi], ebp
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416e20
lea edi, [esp + 0x454]
sub eax, edx
add edi, 0xfffffffe
jmp 0x416e40
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x416e40
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x454]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x416e66
mov dword [edi], ebp
xor eax, eax
jmp 0x416e80
movzx ecx, word [esp + eax + 0x454]
mov word [esp + eax + 0x44], cx
add eax, 2
cmp cx, bx
jne 0x416e80
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004177e0
test eax, eax
je 0x416ef0
lea eax, [esp + 0x44]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416eb3
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x48]
push edx
lea esi, [esp + 0x30]
call fcn.004021f0
cmp dword [esp + 0x40], 8
jb 0x416c75
mov eax, dword [esp + 0x2c]
push eax
call fcn.0042d197
add esp, 4
mov eax, 1
jmp 0x416f06
cmp dword [esp + 0x40], 8
jb 0x416f04
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0042d197
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xc78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc60]
xor ecx, esp
call fcn.0042d085
add esp, 0xc70
ret 8