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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d0fa
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.00406bf3
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 0x42441c
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.00404e1b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.00406fe0
test eax, eax
je 0x406129
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 0x4066c0
call fcn.00407320
mov ecx, dword [eax + 0x74]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0041bfd6
mov byte [ebp - 4], 3
push 0x424424
lea ecx, [ebp - 0x18]
call fcn.0041c04e
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.00404d58
test eax, eax
je 0x406188
mov ecx, dword [ebp - 0xac]
add ecx, 0x23c
call fcn.00407460
test eax, eax
je 0x406440
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax + 0x74]
push ecx
push str._s_s.arg
lea edx, [ebp - 0x70]
push edx
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 eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0xac]
mov edx, dword [ecx + 0x74]
push edx
push str._s_s.reg
lea eax, [ebp - 0x74]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, dword [ebp + 8]
add ecx, 0xc
push ecx
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 6
push 0x424440
push 0x424444
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CString::Replace_1
mov edx, dword [ebp - 0xac]
add edx, 0x74
push edx
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 7
push 0x424448
push 0x42444c
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.00404ffe
test eax, eax
jne 0x4062df
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 0x4066c0
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
push str.software_autodesk_autocad
push str._s_sProfiles_s
lea eax, [ebp - 0x68]
push eax
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 ecx, [ebp - 0x74]
push ecx
push 0x424480
lea edx, [ebp - 0x88]
push edx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0xbc]
call fcn.00401ee0
push eax
push str.regedit.exe
push 0x424490
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 0x424498
lea ecx, [ebp - 0x70]
push ecx
push str._p__
lea edx, [ebp - 0x8c]
push edx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0xc4]
push ecx
lea edx, [ebp - 0x90]
push edx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xcc]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0041bfe8
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 0x406489
lea edx, [ebp - 0x5c]
push edx
push 0x4244a4
lea eax, [ebp - 0x94]
push eax
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], ecx
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0xd4]
push edx
lea ecx, [ebp - 0x18]
call fcn.0041bfe8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x94]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 8]
add edx, 4
push ecx
mov ecx, esp
mov dword [ebp - 0x98], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xac]
call fcn.004055af
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xac]
call fcn.00405b5b
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.00406c77
and eax, 0xff
test eax, eax
jne 0x406538
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 0x4066c0
lea ecx, [ebp - 0x14]
call fcn.00406fe0
test eax, eax
jne 0x4065ce
push 0x4244a8
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.0041bfe8
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.00406bf3
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