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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3818
call fcn.00432710
and word [ebp - 0x818], 0
push ebx
push esi
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x816]
push str.Software360360se5
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x3ff
push 0x463d38
lea eax, [ebp - 0x818]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov esi, 0x464d4c
push dword [ebp + 8]
push 1
push esi
push str.option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
push 4
lea eax, [ebp - 0x818]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ebx, SysReAllocString
push eax
push ebx
call esi
and word [ebp - 0x2818], 0
mov ecx, edi
xor eax, eax
lea edi, [ebp - 0x2816]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x2818]
push 0x800
push eax
push 0x464d38
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x420b46
and word [ebp - 0x1018], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x1016]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.Software360360se5
push 0x464d0c
lea eax, [ebp - 0x1018]
push 0x3ff
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x2818]
lea edi, [ebp - 0x2818]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x420b46
push edi
lea ecx, [ebp - 0xc]
call fcn.00404707
push 0
push 0x43c588
lea ecx, [ebp - 0xc]
call fcn.00404a42
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0xc]
push eax
call fcn.004047b8
mov eax, dword [0x43c4ec]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax - 8], ecx
jle 0x420b1d
mov eax, dword [eax - 8]
sub eax, ecx
lea ecx, [ebp - 0xc]
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00404803
push eax
lea ecx, [ebp - 4]
call fcn.00404768
lea ecx, [ebp - 0x18]
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 - 0x1018]
push dword [ebp - 0x10]
push eax
push ebx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 4]
lea edi, [edi + eax*2 + 2]
call fcn.00404beb
lea ecx, [ebp - 0x10]
call fcn.00404beb
lea ecx, [ebp - 0xc]
call fcn.00404beb
push edi
jmp 0x420a95
push dword [ebp + 8]
push 0
push 0x464cf8
push str.option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
push 4
lea eax, [ebp - 0x818]
push 0x464cdc
push eax
push ebx
call esi
push dword [ebp + 8]
mov edi, 0x464cc0
push 1
push edi
push str.option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
push 4
lea eax, [ebp - 0x818]
push edi
push eax
push ebx
call esi
and word [ebp - 0x3818], 0
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x3816]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x3818]
push 0x800
push eax
push 0x464cb0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x420cd2
and word [ebp - 0x1818], 0
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1816]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.Software360360se5
push 0x464c8c
lea eax, [ebp - 0x1818]
push 0x7ff
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x3818]
lea edi, [ebp - 0x3818]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x420cd2
push edi
lea ecx, [ebp + 8]
call fcn.00404707
push 0
push 0x43c588
lea ecx, [ebp + 8]
call fcn.00404a42
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0x10]
lea ecx, [ebp + 8]
push eax
call fcn.004047b8
mov eax, dword [0x43c4ec]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 8], ecx
jle 0x420ca9
mov eax, dword [eax - 8]
sub eax, ecx
lea ecx, [ebp + 8]
dec eax
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404803
push eax
lea ecx, [ebp - 4]
call fcn.00404768
lea ecx, [ebp - 0x14]
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 - 0x1818]
push dword [ebp - 0x10]
push eax
push ebx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 4]
lea edi, [edi + eax*2 + 2]
call fcn.00404beb
lea ecx, [ebp - 0x10]
call fcn.00404beb
lea ecx, [ebp + 8]
call fcn.00404beb
push edi
jmp 0x420c21
pop edi
pop esi
pop ebx
leave
ret 4