Function at 0x401c60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40b786
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6d8
mov eax, dword [0x40f200]
push ebx
mov dword [esp + 0x6d4], eax
cmp dword [ebp + 8], 2
push esi
push edi
jne 0x401f66
call fcn.00401950
xor eax, eax
mov ecx, 0x100
lea edi, [esp + 0x2d8]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x88]
push 0x40
push eax
call fcn.00402740
lea ecx, [esp + 0x50]
push 0x40
push ecx
call fcn.004020e0
lea edx, [esp + 0x1e0]
push 0x104
push edx
call fcn.00402930
lea eax, [esp + 0xe0]
push 0x104
push eax
call fcn.00402180
add esp, 0x20
xor edi, edi
test al, al
je 0x401dc2
push 3
mov ebx, 0xf
push 0x40c2d4
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], edi
mov byte [esp + 0x38], 0
call fcn.00401620
lea eax, [esp + 0xc8]
mov dword [esp + 0x6ec], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
mov byte [esp + 0x14], 0
lea edx, [eax + 1]
jmp 0x401d40
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401d40
sub eax, edx
push eax
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401620
push str.ACT:UNINST
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x18]
push 4
push eax
mov byte [esp + 0x6fc], 1
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
mov eax, dword [esp + 0x38]
mov esi, 0x10
add esp, 0x10
cmp eax, esi
jb 0x401d97
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00403788
add esp, 4
cmp dword [esp + 0x44], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
mov byte [esp + 0x14], 0
mov dword [esp + 0x6ec], 0xffffffff
jb 0x401dc2
mov edx, dword [esp + 0x30]
push edx
call fcn.00403788
add esp, 4
lea eax, [esp + 0x1d0]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x90]
push edx
push str.id_sver_ssrc_s
lea eax, [esp + 0x2e8]
push 0x3ff
push eax
call fcn.0040378d
lea eax, [esp + 0x2f0]
add esp, 0x18
lea edx, [eax + 1]
jmp 0x401e00
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401e00
sub eax, edx
lea ecx, [eax + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea edx, [edx*4 + 1]
push edx
call fcn.00402be9
mov esi, eax
add esp, 4
cmp esi, edi
je 0x401f66
lea eax, [esp + 0x2d8]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401e40
sub eax, edx
push str.yeelion
push eax
lea eax, [esp + 0x2e0]
push eax
push esi
call fcn.004024e0
mov eax, esi
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401e65
sub eax, edx
add eax, 0x104
push eax
call fcn.00402be9
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x401f66
mov eax, esi
lea edx, [eax + 1]
jmp 0x401e90
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401e90
sub eax, edx
lea ecx, [eax + 0x104]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x2d8]
lea edx, [eax + 1]
jmp 0x401ec0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ec0
sub eax, edx
mov edx, eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ed0
push esi
push edx
sub eax, edi
push str._d_s
add eax, 0x103
push eax
push ebx
call fcn.0040378d
mov eax, esi
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ef4
mov ecx, dword [str.SOFTWAREKWMUSIC]
sub eax, edx
mov edi, eax
lea eax, [esp + 0xc]
push eax
push 2
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401f4d
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0xc]
add edi, 0x104
push edi
push ebx
push 1
push eax
mov eax, dword [edx + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x401f42
mov byte [ebx], 0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00403d11
push esi
call fcn.00403d11
push 0x40c29f
call fcn.004010a0
add esp, 0xc
mov ecx, dword [esp + 0x6e4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x6dc]
xor eax, eax
call fcn.0040331e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret