Function at 0x402d40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40e3b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6d8
mov eax, dword [0x412200]
push ebx
mov dword [esp + 0x6d4], eax
cmp dword [ebp + 8], 2
push esi
push edi
jne 0x403026
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push str.initcache
push ecx
call fcn.0040b6d5
add esp, 8
test eax, eax
jne 0x402d9c
call fcn.00402760
jmp 0x403026
call fcn.00401c30
lea edx, [esp + 0x88]
xor eax, eax
push 0x40
mov ecx, 0x100
lea edi, [esp + 0x2dc]
push edx
rep stosd dword es:[edi], eax
call fcn.00404f50
lea eax, [esp + 0x50]
push 0x40
push eax
call fcn.00403340
lea ecx, [esp + 0x1e0]
push 0x104
push ecx
call fcn.00405140
lea edx, [esp + 0xe0]
push 0x104
push edx
call fcn.004033e0
add esp, 0x20
test al, al
je 0x402e8e
push 0x40f3ec
lea ecx, [esp + 0x30]
call fcn.00401830
lea eax, [esp + 0xc8]
xor edi, edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x6f0], edi
call fcn.00401830
push str.ACT:UNINST
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x18]
push 4
push edx
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 0x402e5f
mov eax, dword [esp + 0x14]
push eax
call fcn.00405f98
add esp, 4
cmp dword [esp + 0x44], esi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], edi
mov byte [esp + 0x14], 0
mov dword [esp + 0x6ec], 0xffffffff
jb 0x402e8e
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00405f98
add esp, 4
lea edx, [esp + 0x1d0]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x90]
push ecx
push str.id_sver_ssrc_s
lea edx, [esp + 0x2e8]
push 0x3ff
push edx
call fcn.00405f9d
lea eax, [esp + 0x2f0]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402ec7
sub eax, edx
lea ecx, [eax + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea edx, [edx*4 + 1]
push edx
call fcn.004053f9
mov esi, eax
add esp, 4
test esi, esi
je 0x403026
lea eax, [esp + 0x2d8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402f00
sub eax, edx
push str.yeelion
push eax
lea eax, [esp + 0x2e0]
push eax
push esi
call fcn.00403d40
mov eax, esi
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402f25
sub eax, edx
add eax, 0x104
push eax
call fcn.004053f9
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403026
mov eax, esi
lea edx, [eax + 1]
jmp 0x402f50
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402f50
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 0x402f80
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402f80
sub eax, edx
mov edx, eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402f90
push esi
push edx
sub eax, edi
push str._d_s
add eax, 0x103
push eax
push ebx
call fcn.00405f9d
mov eax, esi
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402fb4
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 0x40300d
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 0x403002
mov byte [ebx], 0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.004065f8
push esi
call fcn.004065f8
push 0x40f3b7
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.00405b2e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret