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

Disassembly:
push 0xffffffffffffffff
push 0x51e66b
mov eax, dword fs:[0]
push eax
sub esp, 0xc64
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0xc60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56a338]
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 0x55fd30
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.00435740
add esp, 0xc
push 0x206
lea ecx, [esp + 0x86a]
push ebx
push ecx
mov word [esp + 0x870], bx
call fcn.00435740
add esp, 0xc
push 0x206
lea edx, [esp + 0x45a]
push ebx
push edx
mov word [esp + 0x460], bx
call fcn.00435740
add esp, 0xc
push 0x206
lea eax, [esp + 0x4a]
push ebx
push eax
mov word [esp + 0x50], bx
call fcn.00435740
add esp, 0xc
push 0x206
lea ecx, [esp + 0xa72]
push ebx
push ecx
mov word [esp + 0xa78], bx
call fcn.00435740
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 0x417cf0
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 0x417d10
lea edi, [esp + 0x24c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x417d30
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x417d30
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 0x417d56
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 0x417d70
lea edi, [esp + 0x24c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x417d90
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x417d90
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 0x417db6
mov edx, dword [0x561e8c]
mov ecx, dword [0x561e90]
mov dword [eax], edx
mov dx, word [0x561e94]
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 0x55fd30
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 0x417e12
sub eax, edx
sar eax, 1
cmp eax, ebx
jle 0x417e9f
xor eax, eax
jmp 0x417e30
movzx ecx, word [esp + eax + 0x864]
mov word [esp + eax + 0x44], cx
add eax, 2
cmp cx, bx
jne 0x417e30
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.00418a20
test eax, eax
je 0x417e9f
lea eax, [esp + 0x44]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417e63
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 0x417e95
mov edx, dword [esp + 0x2c]
push edx
call fcn.0042eca7
add esp, 4
mov eax, 1
jmp 0x418126
push 0x206
lea eax, [esp + 0x662]
push ebx
push eax
mov word [esp + 0x668], bx
call fcn.00435740
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 0x417ec0
mov eax, dword [esp + 0x20]
mov edx, eax
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417ee0
lea edi, [esp + 0x65c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x417f00
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x417f00
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 0x418000
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 0x418000
jmp 0x417f80
movzx ecx, word [esp + eax + 0xa6c]
mov word [esp + eax + 0x44], cx
add eax, 2
cmp cx, bx
jne 0x417f80
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00418a20
test eax, eax
je 0x418000
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 0x417fc0
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 0x417e95
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0042eca7
add esp, 4
mov eax, 1
jmp 0x418126
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [esp + 0x454]
call fcn.00418370
mov edi, esi
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x418020
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 0x418040
lea edi, [esp + 0x454]
sub eax, edx
add edi, 0xfffffffe
jmp 0x418060
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x418060
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 0x418086
mov dword [edi], ebp
xor eax, eax
jmp 0x4180a0
movzx ecx, word [esp + eax + 0x454]
mov word [esp + eax + 0x44], cx
add eax, 2
cmp cx, bx
jne 0x4180a0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00418a20
test eax, eax
je 0x418110
lea eax, [esp + 0x44]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4180d3
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 0x417e95
mov eax, dword [esp + 0x2c]
push eax
call fcn.0042eca7
add esp, 4
mov eax, 1
jmp 0x418126
cmp dword [esp + 0x40], 8
jb 0x418124
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0042eca7
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.0042eb95
add esp, 0xc70
ret 8