Function at 0x402df0
Capabilities:
Get common file path
Get memory capacity
Query environment variable
Read .ini file

Disassembly:
sub esp, 0x860
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00402990
mov ecx, ebx
call fcn.00401920
test eax, eax
je 0x402efa
lea esi, [ebx + 4]
lea eax, [esp + 0x16c]
push esi
push str._sTemplateUpdate.ini
push eax
call fcn.0040c6b2
add esp, 0xc
lea ecx, [esp + 0x36c]
push esi
push str._scycle_id.ini
push ecx
call fcn.0040c6b2
add esp, 0xc
lea edx, [esp + 0x16c]
lea eax, [ebx + 0x264]
push edx
push 0x20
push eax
push 0x424bf0
push str.OfferLocale
push str.Configuration
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x402e77
mov ecx, dword [esp + 0x870]
push ecx
mov ecx, ebx
call fcn.00401cb0
lea edx, [esp + 0x36c]
lea eax, [esp + 0x2c]
push edx
push 0x40
push eax
push str.cycle_id
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
test eax, eax
je 0x402f09
lea ecx, [esp + 0x2c]
push 0x3d
push ecx
mov ecx, ebx
call fcn.00403b40
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x224]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x3d
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00403b40
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x204]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x402f09
mov ecx, dword [esp + 0x870]
push ecx
mov ecx, ebx
call fcn.00401cb0
mov edi, dword [esp + 0x874]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x104]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x100
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x270]
push ecx
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edx, [esp + 0x6c]
push 0x100
push edx
call fcn.0040cb9c
lea eax, [esp + 0x74]
push eax
call fcn.0040cb12
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
add esp, 0xc
lea ecx, [esp + 0x46c]
push 0
push 0x19
push ecx
push 0
call esi
push 0
lea edx, [esp + 0x670]
push 0
push edx
push 0
call esi
mov edi, dword [esp + 0x878]
cmp byte [edi], 0
je 0x402fa1
lea edx, [ebx + 0x244]
jmp 0x403011
lea ecx, [esp + 0x26c]
lea edx, [esp + 0x6c]
push ecx
push edx
call fcn.0040c0d6
add esp, 8
test eax, eax
jne 0x402fc7
lea edx, [ebx + 0x244]
mov edi, 0x4214f0
jmp 0x403011
lea ecx, [esp + 0x46c]
lea edx, [esp + 0x6c]
push ecx
push edx
call fcn.0040c0d6
add esp, 8
test eax, eax
je 0x403006
lea eax, [esp + 0x66c]
lea ecx, [esp + 0x6c]
push eax
push ecx
call fcn.0040c0d6
add esp, 8
test eax, eax
je 0x403006
lea edx, [ebx + 0x244]
mov edi, str.RUBIK
jmp 0x403011
lea edx, [ebx + 0x244]
mov edi, str.DESKTOP
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x14]
test eax, 0xfffff
jne 0x403049
shr eax, 0x14
jmp 0x40304d
shr eax, 0x14
inc eax
mov ecx, ebx
mov dword [ebx + 0x2e8], eax
call fcn.00403be0
pop edi
pop esi
pop ebx
add esp, 0x860
ret 0xc