Function at 0x40239d
Capabilities:
Set registry value

Disassembly:
mov eax, 0x402fcc
call fcn.00402bc0
mov eax, 0x101c
call fcn.00402c20
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov byte [ebp - 0x154], 0x70
mov byte [ebp - 0xff1], 0x33
mov byte [ebp - 0xf56], 0x31
mov byte [ebp - 0x1008], 0x72
mov byte [ebp - 0x1011], 0x31
mov byte [ebp - 0x1019], 0x58
push 0x4f
pop eax
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
inc ecx
inc ecx
imul ecx, ecx, 0x4f
cmp dword [ebp - 0x18], ecx
jne 0x402405
cmp dword [ebp - 0x18], eax
jne 0x402405
push esi
push esi
push 0x4013dc
call sub.MFC42.DLL_AfxMessageBox
push ebx
push edi
mov dword [ebp - 0x10], esi
push 0x4013b4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1c]
push 0x401368
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [ebp - 0x20]
mov eax, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
mov edi, 0xf003f
push esi
push edi
push esi
push esi
push esi
push eax
push 0x80000002
mov dword [ebp - 0x14], esi
call ebx
cmp eax, esi
jne 0x40246e
cmp dword [ebp - 0x10], esi
je 0x402468
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
call dword [sym.imp.MSVCRT.dll_rand]
cmp eax, 0xe061077
jne 0x40248b
push 0x57
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push 0x401360
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [ebp - 0x20]
mov eax, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push esi
push edi
push esi
push esi
push esi
push eax
push 0x80000000
mov dword [ebp - 0x14], esi
call ebx
cmp eax, esi
jne 0x4024cf
cmp dword [ebp - 0x10], esi
je 0x4024c9
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push 0x401358
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [ebp - 0x20]
mov eax, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push esi
push edi
push esi
push esi
push esi
push eax
push 0x80000000
mov dword [ebp - 0x14], esi
call ebx
cmp eax, esi
jne 0x40251b
cmp dword [ebp - 0x10], esi
je 0x402515
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push 0x401358
push eax
call sub.MFC42.DLL_operator_1
push 0x401348
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
push eax
call sub.MFC42.DLL_operator
lea ecx, [ebp - 0x28]
mov eax, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push esi
push edi
push esi
push esi
push esi
push eax
push 0x80000000
mov byte [ebp - 4], 4
mov dword [ebp - 0x14], esi
call ebx
cmp eax, esi
jne 0x402578
lea ecx, [ebp - 0x10]
call fcn.00402637
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov dword [ebp - 0x20], eax
call ebx
inc eax
push eax
push dword [ebp - 0x20]
push 1
push esi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x40133c
call ebx
inc eax
push eax
push 0x40133c
push 1
push esi
push 0x40132c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
push 0x401300
push 0x80000001
lea ecx, [ebp - 0x10]
call fcn.0040201f
mov edi, 0x4012fc
push edi
call ebx
inc eax
push eax
push edi
push 1
push esi
push 0x4012e0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x10], esi
pop edi
pop ebx
je 0x40261e
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret