Function at 0x404d70
Capabilities:
Get common file path
Get program files directory
Get startup folder
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f840
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x5fcff4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x14c], eax
call fcn.00421dc2
xorps xmm0, xmm0
mov dword [ebp - 0x118], 0
xor eax, eax
mov dword [ebp - 0x114], 7
movups xmmword [ebp - 0x128], xmm0
mov word [ebp - 0x128], ax
push 0x100
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x110]
push eax
call fcn.00564770
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x404e16
push 0xe
push str.C:ProgramData
lea ecx, [ebp - 0x128]
call fcn.004062c0
jmp 0x404e65
push 0x5c
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x110]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404e33
sub ecx, edx
lea eax, [ebp - 0x110]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x128]
call fcn.004062c0
push str.ProgramData
lea ecx, [ebp - 0x128]
call fcn.00406200
mov ecx, dword [ebp - 0x118]
xor eax, eax
mov word [ebp - 0x110], ax
mov eax, SysReAllocString
sub eax, ecx
mov dword [ebp - 0x148], ecx
cmp eax, 0x1c
jb 0x4050d9
cmp dword [ebp - 0x114], 8
lea eax, [ebp - 0x128]
lea edx, [ecx + 0x1c]
mov dword [ebp - 0x130], 0
cmovae eax, dword [ebp - 0x128]
lea edi, [ebp - 0x140]
mov esi, 7
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x12c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x144], edx
movups xmmword [ebp - 0x140], xmm0
cmp edx, esi
jbe 0x404f78
mov esi, edx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x404ef9
mov eax, closesocket
mov esi, SysReAllocString
add eax, eax
jmp 0x404f1a
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4050e3
add eax, eax
cmp eax, 0x1000
jb 0x404f4d
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4050e3
push ecx
call fcn.00417cca
add esp, 4
test eax, eax
je 0x4050de
mov ecx, dword [ebp - 0x148]
lea edi, [eax + 0x23]
mov edx, dword [ebp - 0x144]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x404f6c
test eax, eax
je 0x404f6a
push eax
call fcn.00417cca
mov ecx, dword [ebp - 0x148]
add esp, 4
mov edx, dword [ebp - 0x144]
mov edi, eax
jmp 0x404f6c
xor edi, edi
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x12c], esi
lea esi, [ecx + ecx]
push esi
push eax
push edi
mov dword [ebp - 0x130], edx
call fcn.005641f0
movups xmm0, xmmword [str.PORSCHE_VCIX64PDU_VCI.ini]
mov eax, dword [ebp - 0x144]
add esp, 0xc
xor ecx, ecx
movups xmmword [esi + edi], xmm0
movups xmm0, xmmword [0x5dafbc]
movups xmmword [esi + edi + 0x10], xmm0
movups xmm0, xmmword [0x5dafcc]
movups xmmword [esi + edi + 0x20], xmm0
movq xmm0, qword [0x5dafdc]
movq qword [esi + edi + 0x30], xmm0
mov word [edi + eax*2], cx
lea eax, [ebp - 0x140]
cmp dword [ebp - 0x12c], 8
cmovae eax, dword [ebp - 0x140]
push eax
push 0x100
lea eax, [ebp - 0x110]
push eax
push 0x5dafe8
push 0x5dafec
push str.T6CONFIG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0x12c]
cmp ecx, 8
jb 0x405045
mov edx, dword [ebp - 0x140]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40503b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050de
push ecx
push edx
call fcn.00561389
add esp, 8
mov esi, dword [ebp - 0x14c]
mov eax, 0x30
cmp ax, word [ebp - 0x110]
je 0x40506b
lea eax, [ebp - 0x110]
push eax
lea ecx, [esi + 0x558]
call fcn.00420a94
push 0
push 0x7d0
push 0x312d
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [ebp - 0x114]
cmp ecx, 8
jb 0x4050bc
mov edx, dword [ebp - 0x128]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4050b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050e8
push ecx
push edx
call fcn.00561389
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00560f1e
mov esp, ebp
pop ebp
ret
call fcn.00407220
call fcn.00567a6f
call fcn.00407360
call fcn.00567a6f
int3