Function at 0x405f9a
Capabilities:
Create process on windows
Delete registry key
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ce68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push edi
mov dword [ebp - 0xac], ecx
lea ecx, [ebp - 0x64]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax + 0x78]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, dword [ebp - 0xac]
call fcn.00406b32
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xb4]
mov ecx, dword [eax]
push ecx
push 0x424414
lea edx, [ebp - 0x64]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x64]
call fcn.00401ee0
push eax
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0xac]
call fcn.00404d6e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.00406f00
test eax, eax
je 0x40607c
mov dword [ebp - 0x80], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x80]
jmp 0x4065ff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.00401ee0
push eax
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00401ee0
push eax
mov ecx, dword [ebp - 0xac]
call fcn.00404cab
test eax, eax
je 0x4060c5
mov ecx, dword [ebp - 0xac]
add ecx, 0x238
call fcn.004073a0
test eax, eax
je 0x40637d
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0xac]
mov eax, dword [edx + 0x74]
push eax
push str._s_s.arg
lea ecx, [ebp - 0x70]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x74]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax + 0x74]
push ecx
push str._s_s.reg
lea edx, [ebp - 0x74]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 6
push 0x424434
push 0x424438
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CString::Replace_1
mov ecx, dword [ebp - 0xac]
add ecx, 0x74
push ecx
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 7
push 0x42443c
push 0x424440
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CString::Replace_1
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00401ee0
push eax
lea ecx, [ebp - 0x78]
call fcn.00401ee0
push eax
lea ecx, [ebp - 0x6c]
call fcn.00401ee0
push eax
lea ecx, [ebp - 0x64]
call fcn.00401ee0
push eax
lea ecx, [ebp - 0x74]
call fcn.00401ee0
push eax
lea ecx, [ebp - 0x70]
call fcn.00401ee0
push eax
mov ecx, dword [ebp - 0xac]
call fcn.00404f51
test eax, eax
jne 0x40621c
mov dword [ebp - 0x84], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x84]
jmp 0x4065ff
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
push str.software_autodesk_autocad
push str._s_sProfiles_s
lea edx, [ebp - 0x68]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [ebp - 0x68]
call fcn.00401ee0
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push 0
push 0
lea eax, [ebp - 0x74]
push eax
push 0x424474
lea ecx, [ebp - 0x88]
push ecx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0xb8], eax
mov edx, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], edx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0xbc]
call fcn.00401ee0
push eax
push str.regedit.exe
push 0x424484
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x88]
call sub.MFC42.DLL_CString::CString
push 0x42448c
lea eax, [ebp - 0x70]
push eax
push str._p__
lea ecx, [ebp - 0x8c]
push ecx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], edx
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x90]
push ecx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 0xc8], eax
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], edx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0xcc]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041bd62
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x90]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x8c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CString::CString
jmp 0x4063c6
lea ecx, [ebp - 0x5c]
push ecx
push 0x424498
lea edx, [ebp - 0x94]
push edx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0xd4]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0041bd62
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x94]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
mov edx, esp
mov dword [ebp - 0x98], esp
push ecx
mov ecx, edx
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xac]
call fcn.00405502
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xac]
call fcn.00405aae
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0xac]
call fcn.00406bb6
and eax, 0xff
test eax, eax
jne 0x406477
mov dword [ebp - 0x9c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x9c]
jmp 0x4065ff
lea ecx, [ebp - 0x14]
call fcn.00406f00
test eax, eax
jne 0x40650d
push 0x42449c
lea ecx, [ebp - 0x14]
push ecx
push str.__t__
lea edx, [ebp - 0xa0]
push edx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xe0], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0xe0]
push ecx
lea edx, [ebp - 0xa4]
push edx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xe8], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0xe8]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0041bd62
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xa4]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xa0]
call sub.MFC42.DLL_CString::CString
push str._acad.exe
mov edx, dword [ebp + 8]
add edx, 0xc
push edx
lea eax, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_operator_2
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xac]
call fcn.00406b32
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], 0
mov ecx, 0xd
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x4c], str.open
lea ecx, [ebp - 0x1c]
call fcn.00401ee0
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x18]
call fcn.00401ee0
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x10]
call fcn.00401ee0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 1
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x10]
call fcn.00401ee0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0xa8], edx
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 4