Function at 0x421c88
Capabilities:
Query or enumerate registry value
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1e9c
call fcn.00432710
and dword [ebp - 0x1c4], 0
push ebx
push esi
push edi
mov esi, ecx
push 0x31
pop ecx
xor eax, eax
and word [ebp - 0x1e9c], ax
lea edi, [ebp - 0x1c0]
rep stosd dword es:[edi], eax
mov ebx, 0x3ff
lea edi, [ebp - 0x1e9a]
mov ecx, ebx
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1e9c]
push 0x800
push eax
push 0x465330
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x42232f
and word [ebp - 0xe9c], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xe9a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.Software360360se5
push 0x46530c
lea eax, [ebp - 0xe9c]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
and word [ebp - 0xfc], 0
add esp, 0x10
xor eax, eax
lea edi, [ebp - 0xfa]
push 0x13
and byte [ebp - 0x5c], 0
pop ecx
and word [ebp - 0xac], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 9
xor eax, eax
pop ecx
lea edi, [ebp - 0x5b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x13
xor eax, eax
pop ecx
lea edi, [ebp - 0xaa]
rep stosd dword es:[edi], eax
and word [ebp - 0x3cc], 0
mov ecx, 0x81
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0x3ca]
mov edx, dword [0x43c4ec]
and dword [ebp - 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x1e9c]
lea ebx, [ebp - 0x1e9c]
mov dword [ebp - 0x14], edx
mov dword [ebp + 8], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 0x104
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
push eax
call edi
test eax, eax
je 0x4221d1
test ebx, ebx
jne 0x421dc0
xor eax, eax
jmp 0x421dc3
push ebx
call edi
push ebx
push eax
lea ecx, [ebp - 0x14]
call fcn.00404cc7
push 0
push 0x43c588
lea ecx, [ebp - 0x14]
call fcn.00404a42
mov dword [ebp - 0xc], eax
push eax
lea eax, [ebp - 8]
lea ecx, [ebp - 0x14]
push eax
call fcn.004047b8
push dword [ebp - 8]
lea eax, [ebp - 0xfc]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov eax, dword [0x43c4ec]
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
cmp dword [eax - 8], ecx
jle 0x42201a
mov eax, dword [eax - 8]
sub eax, ecx
lea ecx, [ebp - 0x14]
dec eax
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00404803
push dword [eax]
mov eax, dword [esi + 0x53bc]
lea eax, [eax + eax*4]
shl eax, 5
lea eax, [eax + esi + 0x153a]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
lea ecx, [ebp - 0x24]
call fcn.00404beb
xor eax, eax
lea ecx, [ebp - 0xfc]
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push ecx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 0x28
ja 0x4221c1
xor eax, eax
lea ecx, [ebp - 0x5c]
push eax
push eax
push 0x28
push ecx
lea ecx, [ebp - 0xfc]
push 0x28
push ecx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov byte [esi + 0x1534], al
mov ecx, eax
shr ecx, 0x10
mov word [esi + 0x1536], cx
mov ecx, 0x465308
mov eax, ecx
test eax, eax
je 0x421eb9
push ecx
call edi
mov ecx, 0x465308
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.00404cc7
lea eax, [ebp - 0xac]
mov ecx, esi
push eax
mov al, byte [esi + 0x1534]
push eax
call fcn.004223b8
lea eax, [ebp - 0xac]
test eax, eax
je 0x421eeb
lea eax, [ebp - 0xac]
push eax
call edi
lea ecx, [ebp - 0xac]
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.00404d06
mov ecx, 0x465300
mov eax, ecx
test eax, eax
je 0x421f0e
push ecx
call edi
mov ecx, 0x465300
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.00404d06
movzx eax, word [esi + 0x1536]
push eax
lea eax, [ebp - 0x20]
push 0x4644f8
push eax
call fcn.00409c93
mov eax, dword [ebp - 0x20]
add esp, 0xc
lea ecx, [ebp + 8]
push eax
push dword [eax - 8]
call fcn.00404d06
mov ecx, 0x4652fc
mov eax, ecx
test eax, eax
je 0x421f53
push ecx
call edi
mov ecx, 0x4652fc
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.00404d06
mov eax, dword [esi + 0x53bc]
push dword [ebp + 8]
lea eax, [eax + eax*4]
shl eax, 5
lea eax, [eax + esi + 0x158a]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
mov dword [ebp - 4], 0x441378
pop ecx
mov eax, dword [esi + 0x53bc]
lea eax, [eax + eax*4]
shl eax, 5
lea eax, [eax + esi + 0x158a]
push eax
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x421ff9
add dword [ebp - 4], 0xa0
cmp dword [ebp - 4], 0x4414b8
jl 0x421f83
and dword [ebp - 0xc], 0
mov dword [ebp - 4], 0x441468
mov eax, dword [esi + 0x53bc]
lea eax, [eax + eax*4]
shl eax, 5
lea eax, [eax + esi + 0x153a]
push eax
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x422026
add dword [ebp - 4], 0xa0
inc dword [ebp - 0xc]
cmp dword [ebp - 4], 0x442ae8
jle 0x421fc1
jmp 0x42201a
mov eax, dword [esi + 0x53bc]
push 0x467084
lea eax, [eax + eax*4]
shl eax, 5
lea eax, [eax + esi + 0x158a]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
push ebx
call edi
lea ebx, [ebx + eax*2 + 2]
jmp 0x4221ab
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], str._3113_
shl eax, 2
and dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp + eax - 0x69c], 1
mov eax, dword [esi + 0x53bc]
lea eax, [eax + eax*4]
shl eax, 5
lea eax, [eax + esi + 0x158a]
push eax
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x42207d
add dword [ebp - 4], 0xa0
inc dword [ebp - 0xc]
cmp dword [ebp - 4], 0x442b38
jle 0x422045
jmp 0x422099
mov eax, dword [ebp - 0xc]
push 0x4652f4
lea eax, [eax + eax*4]
shl eax, 5
add eax, str._3113_
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [esi + 0x53bc]
lea eax, [eax + eax*4]
shl eax, 5
lea eax, [eax + esi + 0x153a]
push eax
lea eax, [ebp - 0xe9c]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x3cc]
push 0x467084
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x422124
lea eax, [ebp - 0x3cc]
push 0x465308
push eax
mov ecx, esi
call fcn.00422339
cmp eax, 2
mov dword [ebp - 0x10], eax
jg 0x422124
lea eax, [ebp - 0x3cc]
test eax, eax
je 0x422114
lea eax, [ebp - 0x3cc]
push eax
call edi
lea ecx, [ebp - 0x3cc]
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.00404d06
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
inc eax
cmp eax, 3
mov dword [ebp + ecx - 0x1c4], eax
jg 0x422169
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
shl ecx, 1
push ecx
push eax
mov eax, dword [esi + 0x53bc]
push 1
lea eax, [eax + eax*4]
shl eax, 5
lea eax, [eax + esi + 0x153a]
push eax
lea eax, [ebp - 0xe9c]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
inc dword [esi + 0x53bc]
push ebx
call edi
and word [esi + 0x1536], 0
and byte [esi + 0x1534], 0
lea ebx, [ebx + eax*2 + 2]
lea eax, [ebp - 0x3cc]
push 0x467084
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
and dword [ebp - 0x10], 0
pop ecx
pop ecx
mov dword [ebp - 0x28], 0x104
mov dword [ebp - 0x2c], 1
lea ecx, [ebp - 0x18]
call fcn.00404beb
lea ecx, [ebp - 8]
call fcn.00404beb
push ebx
jmp 0x421dae
lea ecx, [ebp - 0x18]
call fcn.00404beb
lea ecx, [ebp - 8]
call fcn.00404beb
xor edi, edi
mov dword [ebp - 8], edi
and dword [ebp - 0x10], 0
test edi, edi
jle 0x42220c
lea eax, [edi + edi*4]
shl eax, 5
lea eax, [eax + 0x441468]
lea ecx, [eax - 0xa0]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
jne 0x42220c
mov eax, dword [ebp + edi*4 - 0x1c8]
mov dword [ebp + edi*4 - 0x1c4], eax
cmp dword [ebp + edi*4 - 0x1c4], 3
lea ebx, [ebp + edi*4 - 0x1c4]
jge 0x4222fa
lea esi, [edi + edi*4]
shl esi, 5
add esi, 0x441468
jmp 0x422232
mov edi, dword [ebp - 8]
cmp dword [ebp - 0x10], 2
jg 0x4222fa
and word [ebp - 0x5d4], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x5d2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x104
push eax
lea eax, [ebp - 0x5d4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xe9c]
push esi
push eax
push SysReAllocString
mov dword [ebp - 0x24], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea edi, [esi + 0xa0]
lea eax, [edi - 0x50]
push eax
lea eax, [ebp - 0x5d4]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x5d4]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0xc
shl eax, 1
push eax
lea eax, [ebp - 0x5d4]
push eax
push 1
lea eax, [ebp - 0xe9c]
push esi
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
inc dword [ebx]
push edi
push esi
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
jne 0x4222f7
inc dword [ebp - 8]
mov eax, dword [ebx]
add ebx, 4
add esi, 0xa0
inc dword [ebp - 0x10]
cmp eax, 3
mov dword [ebx], eax
jl 0x42222f
mov edi, dword [ebp - 8]
inc edi
cmp edi, 0x24
mov dword [ebp - 8], edi
jl 0x4221d6
lea ecx, [ebp - 0x30]
call fcn.00404beb
lea ecx, [ebp - 0x34]
call fcn.00404beb
lea ecx, [ebp - 0x20]
call fcn.00404beb
lea ecx, [ebp + 8]
call fcn.00404beb
lea ecx, [ebp - 0x14]
call fcn.00404beb
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4