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

Disassembly:
push 0xffffffffffffffff
push 0x51efeb
mov eax, dword fs:[0]
push eax
sub esp, 0xc64
mov eax, dword [0x56b338]
xor eax, esp
mov dword [esp + 0xc60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56b338]
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 0x560d38
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.00436020
add esp, 0xc
push 0x206
lea ecx, [esp + 0x86a]
push ebx
push ecx
mov word [esp + 0x870], bx
call fcn.00436020
add esp, 0xc
push 0x206
lea edx, [esp + 0x45a]
push ebx
push edx
mov word [esp + 0x460], bx
call fcn.00436020
add esp, 0xc
push 0x206
lea eax, [esp + 0x4a]
push ebx
push eax
mov word [esp + 0x50], bx
call fcn.00436020
add esp, 0xc
push 0x206
lea ecx, [esp + 0xa72]
push ebx
push ecx
mov word [esp + 0xa78], bx
call fcn.00436020
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 0x418440
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 0x418460
lea edi, [esp + 0x24c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x418480
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x418480
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 0x4184a6
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 0x4184c0
lea edi, [esp + 0x24c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4184e0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4184e0
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 0x418506
mov edx, dword [0x562fcc]
mov ecx, dword [0x562fd0]
mov dword [eax], edx
mov dx, word [0x562fd4]
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 0x560d38
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 0x418562
sub eax, edx
sar eax, 1
cmp eax, ebx
jle 0x4185ef
xor eax, eax
jmp 0x418580
movzx ecx, word [esp + eax + 0x864]
mov word [esp + eax + 0x44], cx
add eax, 2
cmp cx, bx
jne 0x418580
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.00419170
test eax, eax
je 0x4185ef
lea eax, [esp + 0x44]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4185b3
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 0x4185e5
mov edx, dword [esp + 0x2c]
push edx
call fcn.0042f3a5
add esp, 4
mov eax, 1
jmp 0x418876
push 0x206
lea eax, [esp + 0x662]
push ebx
push eax
mov word [esp + 0x668], bx
call fcn.00436020
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 0x418610
mov eax, dword [esp + 0x20]
mov edx, eax
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x418630
lea edi, [esp + 0x65c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x418650
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x418650
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 0x418750
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 0x418750
jmp 0x4186d0
movzx ecx, word [esp + eax + 0xa6c]
mov word [esp + eax + 0x44], cx
add eax, 2
cmp cx, bx
jne 0x4186d0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00419170
test eax, eax
je 0x418750
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 0x418710
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 0x4185e5
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0042f3a5
add esp, 4
mov eax, 1
jmp 0x418876
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [esp + 0x454]
call fcn.00418ac0
mov edi, esi
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x418770
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 0x418790
lea edi, [esp + 0x454]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4187b0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4187b0
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 0x4187d6
mov dword [edi], ebp
xor eax, eax
jmp 0x4187f0
movzx ecx, word [esp + eax + 0x454]
mov word [esp + eax + 0x44], cx
add eax, 2
cmp cx, bx
jne 0x4187f0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00419170
test eax, eax
je 0x418860
lea eax, [esp + 0x44]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x418823
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 0x4185e5
mov eax, dword [esp + 0x2c]
push eax
call fcn.0042f3a5
add esp, 4
mov eax, 1
jmp 0x418876
cmp dword [esp + 0x40], 8
jb 0x418874
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0042f3a5
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.0042f3aa
add esp, 0xc70
ret 8