Function at 0x42065f
Capabilities:
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40a4
call fcn.00432710
and word [ebp - 0x814], 0
push ebx
push esi
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x812]
push str.Software360360se5
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x463d38
lea eax, [ebp - 0x814]
push 0x3ff
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, 0x464c38
mov esi, str.option
push dword [ebp + 8]
push 0
push ebx
push esi
call edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
push 4
lea eax, [ebp - 0x814]
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push eax
push SysReAllocString
call ebx
push dword [ebp + 8]
push 0
push 0x464c24
push esi
call edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
push 4
lea eax, [ebp - 0x814]
push 0x464c24
push eax
push SysReAllocString
call ebx
and word [ebp - 0x40a4], 0
mov ecx, 0x823
xor eax, eax
lea edi, [ebp - 0x40a2]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x40a4]
push 0x104
mov edi, 0x467084
push eax
push edi
push 0x464c08
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x40a4]
push eax
push edi
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x420786
lea eax, [ebp - 0x40a4]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x40a4]
push eax
push 1
lea eax, [ebp - 0x814]
push 0x464c08
push eax
push SysReAllocString
call ebx
and word [ebp - 0x2014], 0
mov esi, 0x3ff
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x2012]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x2014]
push 0x800
push eax
push 0x464bfc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x4208b7
and word [ebp - 0x1014], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x1012]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.Software360360se5
push 0x464bd8
lea eax, [ebp - 0x1014]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x10
lea eax, [ebp - 0x2014]
lea edi, [ebp - 0x2014]
push eax
call esi
test eax, eax
je 0x4208b7
push edi
lea ecx, [ebp + 8]
call fcn.00404707
push 0
push 0x43c588
lea ecx, [ebp + 8]
call fcn.00404a42
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
lea ecx, [ebp + 8]
push eax
call fcn.004047b8
mov eax, dword [0x43c4ec]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 8], ecx
jle 0x420892
mov eax, dword [eax - 8]
sub eax, ecx
lea ecx, [ebp + 8]
dec eax
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00404803
push eax
lea ecx, [ebp - 4]
call fcn.00404768
lea ecx, [ebp - 0x10]
call fcn.00404beb
mov eax, dword [ebp - 4]
mov ecx, dword [eax - 8]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
lea eax, [ebp - 0x1014]
push dword [ebp - 0xc]
push eax
push SysReAllocString
call ebx
push edi
call esi
lea ecx, [ebp - 4]
lea edi, [edi + eax*2 + 2]
call fcn.00404beb
lea ecx, [ebp - 0xc]
call fcn.00404beb
lea ecx, [ebp + 8]
call fcn.00404beb
push edi
jmp 0x42080a
pop edi
pop esi
pop ebx
leave
ret 4