Function at 0x405c80
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x408279
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc1c
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x40c988
lea ecx, [esp + 0x18]
mov dword [esp + 0xc38], 4
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [esp + 0xc44]
mov bl, 5
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0xc3c], bl
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0xc44]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0xc40], 6
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x28]
mov ecx, esi
push eax
mov byte [esp + 0xc40], bl
call fcn.00404020
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xc38], 7
call fcn.00407534
lea ecx, [esp + 0x20]
mov byte [esp + 0xc34], bl
call fcn.004074ce
mov ecx, dword [esp + 0x14]
push 0x40c988
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x405d99
lea ecx, [esp + 0x14]
mov byte [esp + 0xc34], 4
call fcn.004074ce
lea ecx, [esp + 0xc3c]
mov byte [esp + 0xc34], 3
call fcn.004074ce
lea ecx, [esp + 0xc40]
mov byte [esp + 0xc34], 2
call fcn.004074ce
lea ecx, [esp + 0xc44]
mov byte [esp + 0xc34], 1
call fcn.004074ce
mov byte [esp + 0xc34], 0
jmp 0x405f72
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
xor ebx, ebx
push 3
push ebx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x405f1e
mov ecx, dword [esp + 0xc50]
mov edx, dword [esp + 0xc54]
mov edi, dword [esp + 0xc44]
mov dword [esp + 0x1c], ecx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x18], edx
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x30]
push ecx
push 1
push ebx
push 0x40c844
push edx
call ebp
cmp eax, ebx
jne 0x405f13
mov edi, dword [esp + 0xc48]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x42c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x42c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x430]
push ecx
push 1
push ebx
push 0x40c840
push edx
call ebp
cmp eax, ebx
jne 0x405f13
mov edi, dword [esp + 0xc4c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x82c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x82c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x830]
push ecx
push 1
push ebx
push 0x40c83c
push edx
call ebp
cmp eax, ebx
jne 0x405f13
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push 4
push ecx
push 3
push ebx
push str.NEWS
push edx
call ebp
cmp eax, ebx
jne 0x405f13
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 4
push ecx
push 3
push ebx
push str.INFO
push edx
call ebp
cmp eax, ebx
je 0x405f9c
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov byte [esp + 0xc34], 4
call fcn.004074ce
lea ecx, [esp + 0xc3c]
mov byte [esp + 0xc34], 3
call fcn.004074ce
lea ecx, [esp + 0xc40]
mov byte [esp + 0xc34], 2
call fcn.004074ce
lea ecx, [esp + 0xc44]
mov byte [esp + 0xc34], 1
call fcn.004074ce
mov byte [esp + 0xc34], bl
lea ecx, [esp + 0xc48]
call fcn.004074ce
lea ecx, [esp + 0xc4c]
mov dword [esp + 0xc34], 0xffffffff
call fcn.004074ce
xor eax, eax
jmp 0x406023
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov byte [esp + 0xc34], 4
call fcn.004074ce
lea ecx, [esp + 0xc3c]
mov byte [esp + 0xc34], 3
call fcn.004074ce
lea ecx, [esp + 0xc40]
mov byte [esp + 0xc34], 2
call fcn.004074ce
lea ecx, [esp + 0xc44]
mov byte [esp + 0xc34], 1
call fcn.004074ce
lea ecx, [esp + 0xc48]
mov byte [esp + 0xc34], bl
call fcn.004074ce
lea ecx, [esp + 0xc4c]
mov dword [esp + 0xc34], 0xffffffff
call fcn.004074ce
mov eax, 1
mov ecx, dword [esp + 0xc2c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc28
ret 0x1c