Function at 0x405c2a
Capabilities:
Create directory
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594566
mov eax, dword fs:[0]
push eax
mov eax, 0x2938
call fcn.00571a00
mov eax, dword [0x601ff0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x191c]
push eax
mov dword [ebx], 0x63
mov byte [ebp - 0x191c], 0
call fcn.00405785
pop ecx
push 0xc
pop ecx
mov esi, str.https:__services.stardock.net_apptrials_activate_
lea edi, [ebp - 0x291c]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x191c]
movsw word es:[edi], word [esi]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x405c95
lea edi, [ebp - 0x291c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405ca5
mov ecx, edx
mov dword [ebp - 0x2920], 0xf
shr ecx, 2
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [ebp - 0x2924], eax
and ecx, 3
mov byte [ebp - 0x2934], al
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0x291c]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x2934]
call fcn.004053d8
test eax, eax
je 0x405f59
cmp dword [ebp - 0x2920], 0x10
lea eax, [ebp - 0x2934]
lea ecx, [ebp - 0x2938]
cmovae eax, dword [ebp - 0x2934]
push eax
call fcn.00409b36
push 0
push 0x5d93d0
lea ecx, [ebp - 0x2938]
mov byte [ebp - 4], 1
call fcn.00409768
mov edi, eax
test edi, edi
js 0x405f36
push edi
lea eax, [ebp - 0x2940]
push eax
lea ecx, [ebp - 0x2938]
call fcn.00402815
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x2940]
push esi
call fcn.0057ad33
pop ecx
push esi
mov dword [ebx], eax
call fcn.0057ad33
pop ecx
test eax, eax
jne 0x405f2e
mov eax, dword [ebp - 0x2938]
lea ecx, [ebp - 0x2938]
mov eax, dword [eax - 0xc]
sub eax, edi
dec eax
push eax
lea eax, [ebp - 0x293c]
push eax
call fcn.00404ffb
push eax
lea ecx, [ebp - 0x2938]
mov byte [ebp - 4], 3
call fcn.00402f00
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x293c]
lea ecx, [ecx - 0x10]
call fcn.0040241e
xor ebx, ebx
lea ecx, [ebp - 0x2938]
push ebx
mov esi, 0x5d93d0
push esi
call fcn.00409768
mov ecx, dword [ebp - 0x2938]
mov ecx, dword [ecx - 0xc]
sub ecx, eax
lea eax, [ebp - 0x293c]
dec ecx
push ecx
push eax
lea ecx, [ebp - 0x2938]
call fcn.00404ffb
push eax
lea ecx, [ebp - 0x2938]
mov byte [ebp - 4], 4
call fcn.00402f00
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x293c]
lea ecx, [ecx - 0x10]
call fcn.0040241e
push ebx
push esi
lea ecx, [ebp - 0x2938]
call fcn.00409768
test eax, eax
js 0x405e42
push eax
lea eax, [ebp - 0x293c]
push eax
lea ecx, [ebp - 0x2938]
call fcn.00402815
push eax
lea ecx, [ebp - 0x2940]
mov byte [ebp - 4], 5
call fcn.00402f00
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x293c]
lea ecx, [ecx - 0x10]
call fcn.0040241e
jmp 0x405e54
lea eax, [ebp - 0x2938]
push eax
lea ecx, [ebp - 0x2940]
call fcn.00402f00
lea eax, [ebp - 0x11c]
push eax
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea edi, [ebp - 0x11c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405e6d
push 6
pop ecx
lea eax, [ebp - 0x11c]
mov esi, str.StardockRegistrations
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0057ceee
lea edi, [ebp - 0x11c]
pop ecx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405e93
push 5
pop ecx
lea eax, [ebp - 0x11c]
mov esi, str.ModernMixTrial.bin
push 0x5d928c
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0057b0a1
mov esi, dword [ebp - 0x2940]
xor edi, edi
pop ecx
pop ecx
mov ebx, eax
cmp dword [esi - 0xc], edi
jle 0x405ee0
push edi
lea ecx, [ebp - 0x2940]
call fcn.0040292b
mov byte [ebp + edi - 0x91c], al
inc edi
cmp edi, dword [esi - 0xc]
jl 0x405ec7
mov eax, dword [esi - 0xc]
cmp eax, 0x800
jae 0x405f29
push ebx
mov byte [ebp + eax - 0x91c], 0
lea eax, [ebp - 0x91c]
push 1
push dword [esi - 0xc]
push eax
call fcn.0057b2f0
push ebx
call fcn.0057b3be
add esp, 0x14
lea edx, [ebp - 0x293c]
call fcn.00405f8c
test eax, eax
je 0x405f2e
lea ecx, [esi - 0x10]
call fcn.0040241e
xor esi, esi
inc esi
jmp 0x405f38
call fcn.0057112d
lea ecx, [esi - 0x10]
call fcn.0040241e
xor esi, esi
mov ecx, dword [ebp - 0x2938]
add ecx, 0xfffffff0
call fcn.0040241e
push 0
push 1
lea ecx, [ebp - 0x2934]
call fcn.004097f6
mov eax, esi
jmp 0x405f70
push 0
push 1
lea ecx, [ebp - 0x2934]
mov dword [ebx], 0x378
call fcn.004097f6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00570fd6
mov esp, ebp
pop ebp
ret