Function at 0x403ed0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x407830
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 2
cmp eax, 3
ja case.default.0x403efe
jmp dword [eax*4 + 0x404210]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
push 0xf003f
push 0
push ecx
push 0x80000000
jmp 0x403f63
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
push 0xf003f
push 0
push eax
push 0x80000001
jmp 0x403f63
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push 0xf003f
push 0
push edx
push 0x80000002
jmp 0x403f63
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
push 0xf003f
push 0
push ecx
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0x2c]
cmp eax, 0xb
ja case.default.0x403f76
jmp dword [eax*4 + 0x404220]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x28]
mov eax, dword [edx - 8]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 0x24]
push 0
push 0
push esi
push eax
jmp 0x403fe4
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x28]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 0x20]
push eax
push 1
push 0
push esi
push edx
jmp 0x403fe4
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x28]
mov eax, dword [eax - 8]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 2
push 0
push esi
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x40406c
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_1
push 0
lea ecx, [esp + 8]
push 0
push ecx
push 0x400
push esi
push 0
push 0x1300
mov byte [esp + 0x30], 3
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
lea edx, [esp + 0x38]
push 0x40a7e0
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
call fcn.00406f3e
call fcn.00404250
mov ecx, dword [esp + 8]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x28]
mov eax, dword [edx - 8]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 0x24]
push 3
push 0
push esi
push eax
jmp 0x403fe4
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
push 4
push edx
push 4
push 0
push eax
jmp 0x403fdf
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x28]
mov eax, dword [edx - 8]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 0x24]
push 5
push 0
push esi
push eax
jmp 0x403fe4
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x28]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 0x20]
push eax
push 6
push 0
push esi
push edx
jmp 0x403fe4
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x28]
mov eax, dword [eax - 8]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 7
jmp 0x403fdc
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x28]
mov eax, dword [edx - 8]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 0x24]
push 8
push 0
push esi
push eax
jmp 0x403fe4
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x28]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 0x20]
push eax
push 9
push 0
push esi
push edx
jmp 0x403fe4
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x28]
mov eax, dword [eax - 8]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0xa
jmp 0x403fdc
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x28]
mov eax, dword [edx - 8]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 0x24]
push 0xb
push 0
push esi
push eax
jmp 0x403fe4
push 0
push 0
push 0x40a7cc
call sub.MFC42.DLL_AfxMessageBox
jmp 0x40406c