Function at 0x419070
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 0x5fe88b
mov eax, dword fs:[0]
push eax
sub esp, 0xc60
mov eax, dword [0x69def4]
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 0x6097e8
mov dword [ebp - 0xc68], esi
mov dword [ebp - 0xc44], 7
mov dword [ebp - 0xc48], 0
mov word [ebp - 0xc58], ax
call fcn.00407210
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.005d4960
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.005d4960
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.005d4960
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005d4960
push 0x208
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.005d4960
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 0x419170
mov eax, dword [0x609b38]
mov edx, esi
mov dword [edi], eax
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x419185
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 0x4191a0
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 0x4191c3
mov dword [edi], eax
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4191d3
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 0x4191f0
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 0x419213
mov eax, dword [0x609b3c]
mov dword [ecx], eax
mov eax, dword [0x609b40]
mov dword [ecx + 4], eax
mov ax, word [0x609b44]
mov word [ecx + 8], ax
lea eax, [ebp - 0x420]
push eax
push 0x104
lea eax, [ebp - 0xa38]
push eax
push 0x6097e8
push str.InstallPath
push 0x60be24
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 0x419270
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x4192e3
xor ecx, ecx
movzx eax, word [ebp + ecx - 0xa38]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x21a], ax
test ax, ax
jne 0x419285
push dword [ebp - 0xc64]
mov ecx, dword [ebp - 0xc5c]
lea eax, [ebp - 0x218]
push eax
call fcn.0041c520
test eax, eax
je 0x4192e3
cmp word [ebp - 0x218], 0
jne 0x4192ca
xor ecx, ecx
jmp 0x4194ff
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4192d3
jmp 0x4194fb
push 0x206
lea eax, [ebp - 0x82e]
push 0
push eax
call fcn.005d4960
movups xmm0, xmmword [0x609c20]
mov ebx, dword [ebp - 0xc68]
add esp, 0xc
mov eax, dword [0x609c30]
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 0x419320
lea edi, [ebp - 0x830]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x419336
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 0x41940c
lea eax, [ebp - 0xc6c]
mov dword [ebp - 0xc6c], 0x104
push eax
lea eax, [ebp - 0xc40]
push eax
push 0
push 0
push str.InstallPath
push dword [ebp - 0xc60]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41940c
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 0x4193b0
push dword [ebp - 0xc64]
mov ecx, dword [ebp - 0xc5c]
lea eax, [ebp - 0x218]
push eax
call fcn.0041c520
test eax, eax
je 0x41940c
push dword [ebp - 0xc60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xc58]
call fcn.0040ada0
mov esi, 1
jmp 0x41951b
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.0041c930
lea edi, [ebp - 0x628]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x419440
mov eax, dword [0x609b38]
mov esi, ebx
mov dword [edi], eax
mov cx, word [ebx]
add ebx, 2
test cx, cx
jne 0x419455
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 0x419470
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 0x419493
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 0x4194a3
push dword [ebp - 0xc64]
mov ecx, dword [ebp - 0xc5c]
lea eax, [ebp - 0x218]
push eax
call fcn.0041c520
test eax, eax
je 0x419519
cmp word [ebp - 0x218], 0
jne 0x4194e5
xor ecx, ecx
jmp 0x4194ff
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4194f0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xc58]
call fcn.00407210
mov esi, 1
jmp 0x41951b
xor esi, esi
mov ecx, dword [ebp - 0xc44]
cmp ecx, 8
jb 0x419539
inc ecx
push ecx
push dword [ebp - 0xc58]
lea ecx, [ebp - 0xc58]
call fcn.00407310
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.005caa5c
mov esp, ebp
pop ebp
ret 0xc